Has anyone JBossAOPized any JBoss application and successfully on JBoss?

I tried to JBossAOPized an application and run it on JBoss 3.0.6. I got the following 
error messages:

    javax.servlet.ServletException: Unexpected Error
    java.lang.NoClassDefFoundError: org/jboss/aop/AspectManager
         at xpetstore.services.petstore.ejb.PetstoreEJB.(Unknown Source)

The original application was runnable on JBoss 3.0.6.

What I did was:

1. Created an jboss-aop.xml to include a MethodInterceptor to intercept any methods 
invoked
    on a session EJB,  CustomerEJB.
2. Compiled the MethodInterceptor and aopc the classses files as the example build.xml 
does.
    This step also AOPized another session EJB, PetstoreEJB which "utilizes" 
CustomerEJB.
3. Built the Ear file of the application containing some JBossAOPized class files.
4. Copied jboss-aop.xml to the lib directory of the JBoss application.
5. Starts JBoss with the following command:
     run -c myapp
6. Copied the application Ear file to the deploy directory.
7. Accessed the application index.jsp using web browser.
8. Clicked a link which sent request to PetstoreEJB. This step result a 
ServletException as
    mentioned above.

I had the jboss-aop.jar in the lib directory of the application, ie, 
$(JBOSS_HOME}/server/myapp/lib

Do I have to change the run.bat file? Since I pre-compiled the classes,
I shouldn't have to specify the option:
 -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader
Right?

Thanks in advance.

Ben C

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833392#3833392

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833392


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to