I am continuing to have problems making injboss example to work and would 
appreciate any help.

This time I started with a fresh version of JBoss 4.2.2 and JBoss-aop-2.1.3.GA

ran the default ant task in script under 
C:\Downloads\JBoss\jboss-aop-2.1.3.GA\jboss-40-install\jboss-aop-jdk50.deployer 
after modifying properties to point to JBoss instance


In 
C:\jboss-4.2.2.GA\server\all\deploy\jboss-aop-jdk50.deployer\META-INF\jboss-service.xml

<attribute name="EnableLoadtimeWeaving">true</attribute>

copied pluggable-instrumentor.jar from jboss-aop-2.1.3.GA\lib to 
C:\jboss-4.2.2.GA\bin

set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% 
-javaagent:C:\jboss-4.2.2.GA\bin\pluggable-instrumentor.jar in run.bat

ran the deploy-basic-lt-war-in-jar task for the examples\injboss

C:\jboss-4.2.2.GA\bin>run -c all
===============================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: C:\jboss-4.2.2.GA

  JAVA: C:\java\jdk1.5.0_13\bin\java

  JAVA_OPTS:  -Dprogram.name=run.bat 
-javaagent:C:\jboss-4.2.2.GA\bin\pluggable-instrumentor.jar -server -Xms128m 
-Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 
-Dsun.rmi.dgc.server.gcInterval=3600000

  CLASSPATH: C:\java\jdk1.5.0_13\lib\tools.jar;C:\jboss-4.2.2.GA\bin\run.jar

===============================================================================

Also seeing the following on console:

ERROR [SuperClassesFirstWeavingStrategy] Error converting class .. Do verbose 
mode if you want full stack trace.

got the following error when I go to http://localhost:8080/aopexample/index.jsp

org.apache.jasper.JasperException: An exception occurred processing JSP page 
/index.jsp at line 2

1: <%...@page language="java" contentType="text/html" 
import="org.jboss.injbossaop.lib.ExampleValue"%>
2: <jsp:useBean id="exampleValue" scope="session" 
type="org.jboss.injbossaop.lib.ExampleValue" />
3: 
4: AOP in JBoss Simple WAR example
5: 


Stacktrace:
        
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

javax.servlet.ServletException: java.lang.InstantiationException: bean 
exampleValue not found within scope
        
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
        
I get the following When I run DisplayClassInfo for 
org.jboss.injbossaop.lib.ExampleValue in JMX console
        
org.jboss.injbossaop.lib.ExampleValue Information
Repository cache version:
org.jboss.injbossaop.lib.ExampleValue(fb305f).classloader=org.jboss.mx.loading.unifiedclassload...@8eaec8{
 url=file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar 
,addedOrder=44}
..org.jboss.mx.loading.unifiedclassload...@8eaec8{ 
url=file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar 
,addedOrder=44}
....file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar
....file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar-contents/aopexamplelib.aop
....file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar-contents/aopexample-exp.war/
....file:/C:/jboss-4.2.2.GA/server/all/tmp/aopdynclasses/ucl56834/
..org.jboss.system.server.noannotationurlclassloa...@186db54
..sun.misc.launcher$appclassloa...@9fbe93
....file:/C:/Java/jdk1.5.0_13/lib/tools.jar
....file:/C:/jboss-4.2.2.GA/bin/run.jar
....file:/C:/jboss-4.2.2.GA/bin/pluggable-instrumentor.jar
..sun.misc.launcher$extclassloa...@198dfaf
....file:/C:/Java/jdk1.5.0_13/jre/lib/ext/dnsns.jar
....file:/C:/Java/jdk1.5.0_13/jre/lib/ext/localedata.jar
....file:/C:/Java/jdk1.5.0_13/jre/lib/ext/sunjce_provider.jar
....file:/C:/Java/jdk1.5.0_13/jre/lib/ext/sunpkcs11.jar
++++CodeSource: 
(file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar-contents/aopexamplelib.aop
 )
Implemented Interfaces:
++interface java.io.Serializable(1c8b884)
++++ClassLoader: null
++++Null CodeSource
++interface org.jboss.aop.Advised(1f4cdd2)
++++ClassLoader: org.jboss.mx.loading.unifiedclassload...@119db9e{ 
url=file:/C:/jboss-4.2.2.GA/server/all/deploy/jboss-aop-jdk50.deployer/ 
,addedOrder=4}
++++CodeSource: 
(file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56735jboss-aop-jarjar.jar )

### Instance0 found in UCL: org.jboss.mx.loading.unifiedclassload...@8eaec8{ 
url=file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar 
,addedOrder=44}
anonymous wrote : 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247454
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to