T Rich [
http://community.jboss.org/people/techtigre1] created the discussion
"JBoss AOP error message - org.jboss.aop.SuperClassesFirstWeavingStrategy
error"
To view the discussion, visit:
http://community.jboss.org/message/594892#594892
--------------------------------------------------------------
Can anyone shed some light as to why I get this error message: *ERROR
[org.jboss.aop.SuperClassesFirstWeavingStrategy] (main) java.lang.RuntimeException: Error
converting class.* The following is my JBoss AS configuration:
1 JBoss 5.1.0GA setup/configured successfully
2 JBoss AOP 2.1.8GA setup/deployed successfully
3 Custom Webapp(HelpDesk.ear) deployed on JBoss AS with custom annotations from *another*
framework works successfully (e.g. annotations, custom aspect from third party framework
work as advertised)
4. Created a second javaagent that bytecode weaves the Custom Webapp classes and adds
third party annotations to specified class; custom agent works and *does* instrument the
Webapp class successfully however the above error message happens at runtime.
Note: The second javaagent properly instruments a method with before/after code (timing
code), but the when i try and add the annotation to a method the
error above happens at runtime.
Stack Trace:
2011-03-22 14:50:15,124 INFO [STDOUT] *(main) Agent Transformer() was called.”*
2011-03-22 14:50:15,124 INFO [STDOUT] *(main) txfrmd
class:com.mycompany.demoapps.helpdesk.CreateTicketServlet*
2011-03-22 14:50:15,233 *ERROR [org.jboss.aop.SuperClassesFirstWeavingStrategy] (main)
java.lang.RuntimeException: Error converting class*
2011-03-22 14:50:15,233 *ERROR [org.jboss.aop.SuperClassesFirstWeavingStrategy] (main)
java.lang.RuntimeException: Error converting class*
2011-03-22 14:50:15,233 INFO [STDOUT] *(main) Annotation
key:com.mycompany.demoapps.helpdesk.CreateTicketServlet*
2011-03-22 14:50:19,796 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment]
(main) deploy, ctxPath=/helpdesk
2011-03-22 14:50:21,905 ERROR [STDERR] (main) log4j:ERROR A
"org.jboss.logging.appender.FileAppender" object is not assignable to a
"org.apache.log4j.Appender" variable.
2011-03-22 14:50:21,905 ERROR [STDERR] (main) log4j:ERROR The class
"org.apache.log4j.Appender" was loaded by
2011-03-22 14:50:21,905 ERROR [STDERR] (main) log4j:ERROR
[BaseClassLoader@afaa85{vfszip:/C:/java/webservers/jboss-5.1.0.GA/server/default/deploy/helpdesk.ear/helpdesk.war/}]
whereas object of type
2011-03-22 14:50:21,905 ERROR [STDERR] (main) log4j:ERROR
"org.jboss.logging.appender.FileAppender" was loaded by
[org.jboss.bootstrap.NoAnnotationURLClassLoader@17a29a1].
2011-03-22 14:50:21,905 ERROR [STDERR] (main) log4j:ERROR Could not instantiate appender
named "FILE".
2011-03-22 14:50:22,218 INFO [STDOUT] (main) 14:50:22,218 INFO [ResolverUtil] Checking
URL
'/C:/java/webservers/jboss-5.1.0.GA/server/default/tmp/5c4o11t-rq0ayi-gll8ke66-1-gll8ocbd-9s/helpdesk.war/WEB-INF/lib/commons-logging.jar'
for instances of net.sourceforge.stripes.action.ActionBean
2011-03-22 14:50:22,296 INFO [STDOUT] (main) 14:50:22,296 INFO [ResolverUtil] Checking
URL
'/C:/java/webservers/jboss-5.1.0.GA/server/default/tmp/5c4o11t-rq0ayi-gll8ke66-1-gll8ocbd-9s/helpdesk.war/WEB-INF/lib/commons-logging-1.0.3.jar'
for instances of net.sourceforge.stripes.action.ActionBean
2011-03-22 14:50:22,312 INFO [STDOUT] (main) 14:50:22,312 INFO [ResolverUtil] Checking
URL
'/C:/java/webservers/jboss-5.1.0.GA/server/default/tmp/5c4o11t-rq0ayi-gll8ke66-1-gll8ocbd-9s/helpdesk.war/WEB-INF/lib/log4j-1.2.16.jar'
for instances of net.sourceforge.stripes.action.ActionBean
2011-03-22 14:50:24,015 INFO [STDOUT] (main) 14:50:24,015 INFO [ResolverUtil] Checking
URL
'/C:/java/webservers/jboss-5.1.0.GA/server/default/tmp/5c4o11t-rq0ayi-gll8ke66-1-gll8ocbd-9s/helpdesk.war/WEB-INF/lib/commons-collections-3.1.jar'
for instances of net.sourceforge.stripes.action.ActionBean
2011-03-22 14:50:28,718 INFO [STDOUT] (main) 14:50:28,718 INFO [ResolverUtil] Checking
URL
'/C:/java/webservers/jboss-5.1.0.GA/server/default/tmp/5c4o11t-rq0ayi-gll8ke66-1-gll8ocbd-9s/helpdesk.war/WEB-INF/lib/stripes.jar'
for instances of net.sourceforge.stripes.action.ActionBean
2011-03-22 14:50:29,390 INFO [STDOUT] (main) 14:50:29,390 WARN [ResolverUtil] Could not
examine class 'net/sourceforge/stripes/tools/SiteStructureTool.class' due to a
java.lang.NoClassDefFoundError with message: com/sun/mirror/apt/AnnotationProcessor
2011-03-22 14:50:29,515 INFO [STDOUT] (main) 14:50:29,515 INFO [ResolverUtil] Checking
URL
'/C:/java/webservers/jboss-5.1.0.GA/server/default/tmp/5c4o11t-rq0ayi-gll8ke66-1-gll8ocbd-9s/helpdesk.war/WEB-INF/classes'
for instances of net.sourceforge.stripes.action.ActionBean
2011-03-22 14:50:29,515 INFO [STDOUT] (main) 14:50:29,515 INFO [ResolverUtil] Checking
URL
'/C:/java/webservers/jboss-5.1.0.GA/server/default/tmp/5c4o11t-rq0ayi-gll8ke66-1-gll8ocbd-9s/helpdesk.war/WEB-INF/lib/helpdesk.jar'
for instances of net.sourceforge.stripes.action.ActionBean
2011-03-22 14:50:29,546 INFO [STDOUT] (main) 14:50:29,546 INFO [ResolverUtil] Checking
URL
'/C:/java/webservers/jboss-5.1.0.GA/server/default/tmp/5c4o11t-rq0ayi-gll8ke66-1-gll8ocbd-9s/helpdesk.war/WEB-INF/lib/commons-io-1.3.2.jar'
for instances of net.sourceforge.stripes.action.ActionBean
2011-03-22 14:50:29,687 INFO [STDOUT] (main) 14:50:29,687 INFO [DefaultLocalePicker] No
locale list specified, defaulting to single locale: en_US
2011-03-22 14:50:29,718 INFO [STDOUT] (main) 14:50:29,718 INFO [StripesFilter] Stripes
Initialization Complete. Version: 1.4.3, Build: 542
2011-03-22 14:50:30,140 ERROR
[org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load
profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "AppClientParsingDeployer" is missing the following dependencies:
Dependency "AspectLibrary" (should be in state "Create", but is
actually in state "** NOT FOUND Depends on 'AspectLibrary' **")
Deployment "Ejb3ClientDeployer" is missing the following dependencies:
Dependency "AspectLibrary" (should be in state "Create", but is
actually in state "** NOT FOUND Depends on 'AspectLibrary' **")
Deployment "Ejb3Deployer" is missing the following dependencies:
Dependency "AspectLibrary" (should be in state "Create", but is
actually in state "** NOT FOUND Depends on 'AspectLibrary' **")
Deployment "JBossClientParsingDeployer" is missing the following
dependencies:
Dependency "AppClientParsingDeployer" (should be in state
"Create", but is actually in state "Configured")
Deployment "MergedJBossClientMetaDataDeployer" is missing the following
dependencies:
Dependency "AppClientParsingDeployer" (should be in state
"Create", but is actually in state "Configured")
Deployment "WSDeployerHook_JAXRPC_EJB21" is missing the following
dependencies:
Dependency "WebServiceDeployerEJB" (should be in state "Create",
but is actually in state "Configured")
Deployment "WSDeployerHook_JAXWS_EJB3" is missing the following dependencies:
Dependency "WebServiceDeployerEJB" (should be in state "Create",
but is actually in state "Configured")
Deployment "WebServiceDeployerEJB" is missing the following dependencies:
Dependency "Ejb3Deployer" (should be in state "Create", but is
actually in state "Configured")
Deployment
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint"
is missing the following dependencies:
Dependency
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3"
(should be in state "Configured", but is actually in state "** NOT FOUND
Depends on
'jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3'
**")
Deployment
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint"
is missing the following dependencies:
Dependency
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3"
(should be in state "Configured", but is actually in state "** NOT FOUND
Depends on
'jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3'
**")
Deployment
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint"
is missing the following dependencies:
Dependency
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3"
(should be in state "Configured", but is actually in state "** NOT FOUND
Depends on
'jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3'
**")
DEPLOYMENTS IN ERROR:
Deployment
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3"
is in error due to the following reason(s): ** NOT FOUND Depends on
'jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3'
**
Deployment "AspectLibrary" is in error due to the following reason(s): ** NOT
FOUND Depends on 'AspectLibrary' **
Deployment
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3"
is in error due to the following reason(s): ** NOT FOUND Depends on
'jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3'
**
Deployment
"jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3"
is in error due to the following reason(s): ** NOT FOUND Depends on
'jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3'
**
2011-03-22 14:50:30,202 INFO [org.apache.coyote.http11.Http11Protocol] (main) Starting
Coyote HTTP/1.1 on http-0.0.0.0-8080
2011-03-22 14:50:30,312 INFO [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote
AJP/1.3 on ajp-0.0.0.0-8009
2011-03-22 14:50:30,327 INFO [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss
(Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in
3m:18s:515ms
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/594892#594892]
Start a new discussion in JBoss AOP at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]