<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Error in deploying .aop file
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/kabir.khan%40jboss.com">Kabir Khan</a> in <i>JBoss AOP</i> - <a href="http://community.jboss.org/message/583862#583862">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>2 Problems:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>[kabir ~/Downloads]</p><p>$unzip -l LoggingAspect.aop </p><p>Archive:&#160; LoggingAspect.aop</p><p>&#160; Length&#160;&#160;&#160;&#160; Date&#160;&#160; Time&#160;&#160;&#160; Name</p><p> --------&#160;&#160;&#160; ----&#160;&#160; ----&#160;&#160;&#160; ----</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 12:16&#160;&#160; META-INF/</p><p>&#160;&#160;&#160;&#160;&#160;&#160; 71&#160; 01-27-11 12:16&#160;&#160; META-INF/MANIFEST.MF</p><p>&#160; <strong>3436644&#160; 08-19-08 07:44&#160;&#160; jboss-aop-jdk50-single.jar</strong></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 11:50&#160;&#160; classes/</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 11:50&#160;&#160; classes/org/</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 11:50&#160;&#160; classes/org/jboss/</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 11:50&#160;&#160; classes/org/jboss/soa/</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 11:50&#160;&#160; classes/org/jboss/soa/esb/</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 11:50&#160;&#160; classes/org/jboss/soa/esb/samples/</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 11:50&#160;&#160; classes/org/jboss/soa/esb/samples/quickstart/</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0&#160; 01-27-11 12:12&#160;&#160; classes/org/jboss/soa/esb/samples/quickstart/helloworld/</p><p>&#160;&#160;&#160;&#160; 1184&#160; 01-27-11 12:12&#160;&#160; classes/org/jboss/soa/esb/samples/quickstart/helloworld/LoggingAspect.class</p><p>&#160;&#160;&#160;&#160;&#160; 577&#160; 01-27-11 11:50&#160;&#160; META-INF/jboss-aop.xml</p><p> --------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -------</p><p>&#160; 3438476&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 13 files</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1) jboss-aop-jdk50-single.jar should NOT be bundled with your application</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>[kabir ~/Downloads]</p><p>$unzip -p LoggingAspect.aop META-INF/jboss-aop.xml</p><p>&lt;aop&gt;</p><p>&#160;&#160; &lt;aspect class="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect"/&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!--&#160; </p><p>&#160;&#160; &lt;bind pointcut="execution(raid.BankAccount-&gt;new(int))"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;around aspect="raid.RaidAspect" name="log"/&gt;</p><p>&#160;&#160; &lt;/bind&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; &lt;bind pointcut="execution(void bank.BankAccount-&gt;*(int))"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;around aspect="raid.RaidAspect" name="log"/&gt;</p><p>&#160;&#160; &lt;/bind&gt;</p><p> --&gt;&#160; </p><p>&#160;&#160; &lt;bind pointcut="execution(* org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction-&gt;*(..))"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;around aspect="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect" name="log"/&gt;</p><p>&#160;&#160; &lt;/bind&gt;</p><p>&lt;/aop&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2) For deployment in AS your xml must use aop beans namespace, e.g.:</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p>&lt;aop&#160; <strong>xmlns="urn:jboss:aop-beans:1.0"</strong>&gt;</p><p>&#160;&#160; &lt;aspect class="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect"/&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!--&#160; </p><p>&#160;&#160; &lt;bind pointcut="execution(raid.BankAccount-&gt;new(int))"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;around aspect="raid.RaidAspect" name="log"/&gt;</p><p>&#160;&#160; &lt;/bind&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; &lt;bind pointcut="execution(void bank.BankAccount-&gt;*(int))"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;around aspect="raid.RaidAspect" name="log"/&gt;</p><p>&#160;&#160; &lt;/bind&gt;</p><p> --&gt;&#160; </p><p>&#160;&#160; &lt;bind pointcut="execution(* org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction-&gt;*(..))"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;around aspect="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect" name="log"/&gt;</p><p>&#160;&#160; &lt;/bind&gt;</p><p>&lt;/aop&gt;</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/583862#583862">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AOP at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2027">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>