[jboss-user] [JBoss AOP] - Re: [i]Introduction[/i] not working in my project but workin

elysch do-not-reply at jboss.com
Wed Dec 12 22:01:42 EST 2007

Well. It took me a wile to find out how to see debug messages. Just adding -Djboss.aop.verbose=true or -Djboss.aop.debug.classes=true  -Djboss.aop.verbose=true to the run.bat file didn't do the trick.

I finally got it by changing the "Verbose" attribute at C:\jboss-4.2.1.GA\server\default\deploy\jboss-aop-jdk50.deployer\META-INF\jboss-service.xml to:
      <attribute name="Verbose">true</attribute>

With all that, what I found is:
2007-12-12 19:50:12,734 INFO  [STDOUT] [trying to transform] org.andromda.samples.aop.sades.domain.SolicitudProfesorGrupoDaoImpl
  | 2007-12-12 19:50:12,734 INFO  [STDOUT] [debug] There are no caller pointcuts!
  | 2007-12-12 19:50:12,734 INFO  [STDOUT] [debug] javassist.CtMethod at 1bc0b5ca[protected handleBuscarConCriterios (Lorg/andromda/samples/aop/sades/vo/CriteriosBusquedaSolicitudesProfesorGrupoVO;)Ljava/util/List;] matches no pointcuts
  | ...
  | 2007-12-12 19:50:13,000 INFO  [STDOUT] [debug] was org.andromda.samples.aop.sades.domain.SolicitudProfesorGrupoDaoImpl converted: true
  | 2007-12-12 19:50:13,046 INFO  [STDOUT] [cannot compile] isInterface: org.andromda.samples.aop.sades.useCaseSlices.specific.solicitudProfesorGrupo.IAspectoUnoSolicitudProfesorGrupo
  | 2007-12-12 19:50:13,046 INFO  [STDOUT] [trying to transform] org.andromda.samples.aop.sades.domain.SolicitudProfesorGrupoDaoBase
  | ...

And then, after some more messages, the already seen error message:

2007-12-12 19:50:13,250 ERROR [STDERR] org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name '' defined in class path resource [applicationContext.xml]: Bean class [org.andromda.samples.aop.sades.domain.SolicitudProfesorGrupoDaoImpl] not found; nested exception is java.lang.ClassNotFoundException: org.andromda.samples.aop.sades.domain.SolicitudProfesorGrupoDaoImpl
  | 2007-12-12 19:50:13,250 ERROR [STDERR] java.lang.ClassNotFoundException: org.andromda.samples.aop.sades.domain.SolicitudProfesorGrupoDaoImpl
  | 2007-12-12 19:50:13,250 ERROR [STDERR] 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
  | 2007-12-12 19:50:13,250 ERROR [STDERR] 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
  | 2007-12-12 19:50:13,250 ERROR [STDERR] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  | 2007-12-12 19:50:13,250 ERROR [STDERR] 	at java.lang.Class.forName0(Native Method)
  | 2007-12-12 19:50:13,250 ERROR [STDERR] 	at java.lang.Class.forName(Class.java:247)
  | 2007-12-12 19:50:13,250 ERROR [STDERR] 	at org.springframework.util.ClassUtils.forName(ClassUtils.java:109)
  | 2007-12-12 19:50:13,250 ERROR [STDERR] 	at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)
  | 2007-12-12 19:50:13,265 ERROR [STDERR] 	at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:466)

I got the same messages with jboss-aop.xml in an .aop file, or deploying it before the ear file.

What I mean is: I created the ear file in two forms:
a) Just deploying the same ear file as before (I'm not aopc'ing the classes anyway).
b) Separated jboss-aop.xml from the ear file:
....1) Remove the META-INF\jboss-aop.xml from the previously called sades-aop-1.0-SNAPSHOT.aop, and now call it sades-aop-1.0-SNAPSHOT.jar
....2) Change the ear META-INF\application.xml file in order to change the  previously called sades-aop-1.0-SNAPSHOT.aop to sades-aop-1.0-SNAPSHOT.jar
....3) Putting all together in the ear file.
....4) Deploy the jboss-aop.xml file
....5) Deploy the ear file

Do you think this findings help us?  I feel just like at the beginning.

Thank you very much for your patience. 


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

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

More information about the jboss-user mailing list