Re: [aspectwerkz-user] AspectwerkZ Websphere 6.1 problem
akhilesh laddha <[email protected]> Tue, 3 Apr 2007 10:25:56 -0700 (PDT)
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
--0-1828229731-1175621156=:36358
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Target code is not getting instrumented. I am not sure why it was not working.
It seems the problem could be class loader relegated. Because, I ran a demo sample (load time instrumentation), place a demo.jar in application classpath and start Websphere 6.1 server, got these error message on console. Even, I created enhanced.jar and place in application classpath, but got the same error.
Please do let me know, how this could be fixed
AspectWerkz - INFO - Pre-processor org.codehaus.aspectwerkz.transform.AspectWerk
zPreProcessor loaded and initialized
AW::WARNING - could not load class [DemoAspect] as a resource in loader [com.ibm
.ws.bootstrap.ExtClassLoader@130c130c]
Warning: could not load aspect DemoAspect from com.ibm.ws.bootstrap.ExtClassLoad
er@130c130cdue to: java.io.IOException: Class not found
java.io.IOException: Class not found
Any help is appriciated
Thanks
Akhilesh
Jonas Bonér <[email protected]> wrote:
are you sure that you are instrumenting the target code?
decompile it with JAD or javap
On 4/2/07, akhilesh laddha wrote:
>
> I ran it in precompiled (offline mode) too. Even, it is not working. Details
> are as below mentioned
>
>
> AOP.xml
>
> > "-//AspectWerkz//DTD//EN"
>
> "http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd246">
>
>
>
> name="com.wipro.eprofile.Aspects.Matrics.Aspect">
>
>
> com.sample.*.*(..))" />
> > jp)" bind-to="profile" />
> > jp)" bind-to="profile" />
>
>
>
>
>
> Method signature
>
> /**
> * This aspect advice will be added just before any WebTier method call
> */
> public void startWebTier(StaticJoinPoint jp) throws EProfileException
> {
> super.start(jp);
> }
> /**
> * This aspect advice will be added just after the last WebTier method
> call
> */
> public void endWebTier(StaticJoinPoint jp) throws EProfileException
> {
> super.end(jp);
> }
>
> Target Application package structure
>
> Any help is appriciated
>
>
> .
> 岸岸com
> 弩岸岸岸sample
> 岫 EProfileSampleServlet.java
> 岫
> 念岸岸岸beans
> 岫 Children.java
> 岫 Family.java
> 岫 FamilyInfo.java
> 岫
> 念岸岸岸database
> 岫 DataTransfer.java
> 岫
> 弩岸岸岸Utils
> Util.java
>
>
> Thanks
> Akhilesh
>
> Jonas Bonè°·r wrote:
> try to precompile/preweave it (offline mode)
>
> On 4/1/07, akhilesh laddha wrote:
> > It would be great if somebody helpe me out.
> >
> > Thanks
> > Akl
> >
> >
> >
> > akhilesh laddha wrote:
> >
> > I configured aspectwerkZ2.0 with Websphere 6.1. Application server started
> > with the log message
> > AspectWerkz - INFO - Pre-processor
> > org.codehaus.aspectwerkz.transform.AspectWerk
> > zPreProcessor loaded and initialized
> >
> > The log message indicates that AspectWerkz loaded and initialized
> properly.
> > To capture profiling metrics of the application, defines point cuts
> > (Runtime/Load time) for the application. And run the target application.
> > However, there were no data captured.
> > It seems AspectWerkz Pre-processor does not work.
> >
> > In Websphere log this message found after deploying aspect rule.
> >
> > Deployer::INFO - deploying aspect
> > [com.wipro.eprofile.Aspects.Matrics.Aspect.WebTierAspect]
> > in class loader
> > [com.ibm.ws.bootstrap.ExtClassLoader@4560456]
> >
> > I made these changes in startServer.bat file of Websphere
> >
> > SET ASPECTWERKZ_VERSION=2.0
> > SET ASPECTWERKZ_HOME=D:\aspectwerkz
> >
> > SET
> >
> ASPECTWERKZ_LIBS=%WAS_CLASSPATH%;%ASPECTWERKZ_HOME%\lib\dom4j-1.4.jar;%ASPECTWERKZ_HOME%\lib\qdox-1.4.jar;%ASPECTWERKZ_HOME%\lib\concurrent-1.3.1.jar;%ASPECTWERKZ_HOME%\lib\trove-1.0.2.jar;%ASPECTWERKZ_HOME%\lib\jrexx-1.1.1.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk5-2.0.jar;C:\IBM\WebSphere\AppServer\lib\eProfiler.jar
> >
> > set JAVA_OPTIONS=%JAVA_OPTIONS%
> >
> -javaagent:%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk5-2.0.jar
> > set JAVA_OPTIONS=%JAVA_OPTIONS%
> > -Daspectwerkz.transform.details=false
> >
> >
> >
> > "%JAVA_HOME%\bin\java" %JAVA_OPTIONS% -cp %ASPECTWERKZ_LIBS%
> >
> -Djavax.management.builder.initial=com.ibm.ws.management.PlatformMBeanServerBuilder
> >
> -Dcom.sun.management.config.file=C:\IBM\WebSphere\AppServer\java\jre\lib\management/management.properties
> > -Dcmd.properties.file=%TMPJAVAPROPFILE% %WAS_TRACE%
> > %WAS_DEBUG% %CONSOLE_ENCODING% "%CLIENTSAS%" "%CLIENTSSL%"
> > %USER_INSTALL_PROP% "-Dwas.install.root=%WAS_HOME%"
> > com.ibm.ws.bootstrap.WSLauncher
> > com.ibm.ws.management.tools.WsServerLauncher
> > "%CONFIG_ROOT%" "%WAS_CELL%" "%WAS_NODE%" %* %WORKSPACE_ROOT_PROP%
> > set RC=%ERRORLEVEL%
> >
> >
> > Any help is appriciated
> >
> >
> > Thanks
> > Akhilesh
> > ________________________________
> > The fish are biting.
> > Get more visitors on your site using Yahoo! Search Marketing.56
> >
> >
> > ________________________________
> > Don't be flakey. Get Yahoo! Mail for Mobile57 and
> > always stay connected58 to friends.
> >
> >
>
>
> --
> Jonas Bonè°·r
>
> http://jonasboner.com248
>
>
>
> ________________________________
> Looking for earth-friendly autos?
> Browse Top Cars by "Green Rating"249 at Yahoo! Autos' Green Center.
>
>
--
Jonas Bonér
http://jonasboner.com
---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
--0-1828229731-1175621156=:36358
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Target code is not getting instrumented. I am not sure why it was not working. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></div> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It seems the problem could be class loader relegated. Because, I ran a demo sample (load time instrumentation), place a demo.jar in application classpath and start Websphere 6.1 server, got these error message on console. Even, I created enhanced.jar and place in application classpath, but got the same error.<o:p></o:p></SPAN></div> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Please do let me know, how this could be fixed</SPAN></div> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN> </div> <div> <div>AspectWerkz - INFO - Pre-processor or
g.codehaus.aspectwerkz.transform.AspectWerk<BR>zPreProcessor loaded and
initialized<BR>AW::WARNING - could not load class [DemoAspect] as a resource in loader [com.ibm<BR><A href="mailto:.ws.bootstrap.ExtClassLoader@130c130c">.ws.bootstrap.ExtClassLoader@130c130c</A>]<BR>Warning: could not load aspect DemoAspect from com.ibm.ws.bootstrap.ExtClassLoad<BR><A href="mailto:er@130c130cdue">er@130c130cdue</A> to: java.io.IOException: Class not found<BR>java.io.IOException: Class not found<BR></div> <div> </div> <div>Any help is appriciated<BR></div> <div> </div> <div>Thanks</div> <div>Akhilesh</div> <div> </div> <div><BR><B><I>Jonas Bonér <[email protected]></I></B> wrote:</div></div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">are you sure that you are instrumenting the target code?<BR>decompile it with JAD or javap<BR><BR>On 4/2/07, akhilesh laddha <[email protected]
M>wrote:<BR>><BR>> I ran it in precompiled (offline mode) too. Even, it is not
working. Details<BR>> are as below mentioned<BR>><BR>><BR>> AOP.xml<BR>><BR>> > "-//AspectWerkz//DTD//EN"<BR>><BR>> "http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd246"><BR>> <ASPECTWERKZ><BR>> <SYSTEM id=samples><BR>> <PACKAGE<BR>> name="com.wipro.eprofile.Aspects.Matrics.Aspect"><BR>> <ASPECT class=WebTierAspect><BR>> <POINTCUT name="profile" expression="execution(public *<br>> com.sample.*.*(..))" /><BR>> <ADVICE type="before" name="startWebTier(StaticJoinPoint<br>> jp)" bind-to="profile" /><BR>> <ADVICE type="after" name="endWebTier(StaticJoinPoint<br>> jp)" bind-to="profile" /><BR>> </ASPECT><BR>> </PACKAGE><BR>> </SYSTEM><BR>> </ASPECTWERKZ><BR>><BR>> Method signature<BR>><BR>> /**<BR>> * This aspect advice will be added just before any WebTier method call<BR>> */<BR>> public void startW
ebTier(StaticJoinPoint jp) throws EProfileException<BR>> {<BR>>
super.start(jp);<BR>> }<BR>> /**<BR>> * This aspect advice will be added just after the last WebTier method<BR>> call<BR>> */<BR>> public void endWebTier(StaticJoinPoint jp) throws EProfileException<BR>> {<BR>> super.end(jp);<BR>> }<BR>><BR>> Target Application package structure<BR>><BR>> Any help is appriciated<BR>><BR>><BR>> .<BR>> 岸岸com<BR>> 弩岸岸岸sample<BR>> 岫 EProfileSampleServlet.java<BR>> 岫<BR>> 念岸岸岸beans<BR>> 岫 Children.java<BR>> 岫 Family.java<BR>> 岫 FamilyInfo.java<BR>> 岫<BR>> 念岸岸岸database<BR>> 岫 DataTransfer.java<BR>> 岫<BR>> 弩岸岸岸Utils<BR>> Util.java<BR>><BR>><BR>> Thanks<BR>> Akhilesh<BR>><BR>> Jonas Bon谷r <[email protected]>wrote:<BR>> try to precompile/preweave it (offline mode)<BR>><BR>> On 4/1/07, akhiles
h laddha wrote:<BR>> > It would be great if somebody helpe me out.<BR>>
><BR>> > Thanks<BR>> > Akl<BR>> ><BR>> ><BR>> ><BR>> > akhilesh laddha wrote:<BR>> ><BR>> > I configured aspectwerkZ2.0 with Websphere 6.1. Application server started<BR>> > with the log message<BR>> > AspectWerkz - INFO - Pre-processor<BR>> > org.codehaus.aspectwerkz.transform.AspectWerk<BR>> > zPreProcessor loaded and initialized<BR>> ><BR>> > The log message indicates that AspectWerkz loaded and initialized<BR>> properly.<BR>> > To capture profiling metrics of the application, defines point cuts<BR>> > (Runtime/Load time) for the application. And run the target application.<BR>> > However, there were no data captured.<BR>> > It seems AspectWerkz Pre-processor does not work.<BR>> ><BR>> > In Websphere log this message found after deploying aspect rule.<BR>>
><BR>> > Deployer::INFO - deploying aspect<BR>> >
[com.wipro.eprofile.Aspects.Matrics.Aspect.WebTierAspect]<BR>> > in class loader<BR>> > [com.ibm.ws.bootstrap.ExtClassLoader@4560456]<BR>> ><BR>> > I made these changes in startServer.bat file of Websphere<BR>> ><BR>> > SET ASPECTWERKZ_VERSION=2.0<BR>> > SET ASPECTWERKZ_HOME=D:\aspectwerkz<BR>> ><BR>> > SET<BR>> ><BR>> ASPECTWERKZ_LIBS=%WAS_CLASSPATH%;%ASPECTWERKZ_HOME%\lib\dom4j-1.4.jar;%ASPECTWERKZ_HOME%\lib\qdox-1.4.jar;%ASPECTWERKZ_HOME%\lib\concurrent-1.3.1.jar;%ASPECTWERKZ_HOME%\lib\trove-1.0.2.jar;%ASPECTWERKZ_HOME%\lib\jrexx-1.1.1.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-2.0.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk5-2.0.jar;C:\IBM\WebSphere\AppServer\lib\eProfiler.jar<BR>> ><BR>> > set JAVA_OPTIONS=%JAVA_
OPTIONS%<BR>> ><BR>>
-javaagent:%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk5-2.0.jar<BR>> > set JAVA_OPTIONS=%JAVA_OPTIONS%<BR>> > -Daspectwerkz.transform.details=false<BR>> ><BR>> ><BR>> ><BR>> > "%JAVA_HOME%\bin\java" %JAVA_OPTIONS% -cp %ASPECTWERKZ_LIBS%<BR>> ><BR>> -Djavax.management.builder.initial=com.ibm.ws.management.PlatformMBeanServerBuilder<BR>> ><BR>> -Dcom.sun.management.config.file=C:\IBM\WebSphere\AppServer\java\jre\lib\management/management.properties<BR>> > -Dcmd.properties.file=%TMPJAVAPROPFILE% %WAS_TRACE%<BR>> > %WAS_DEBUG% %CONSOLE_ENCODING% "%CLIENTSAS%" "%CLIENTSSL%"<BR>> > %USER_INSTALL_PROP% "-Dwas.install.root=%WAS_HOME%"<BR>> > com.ibm.ws.bootstrap.WSLauncher<BR>> > com.ibm.ws.management.tools.WsServerLauncher<BR>> > "%CONFIG_ROOT%" "%WAS_CELL%" "%WAS_NODE%" %* %WORKSPACE_ROOT_PROP%<BR>> > s
et RC=%ERRORLEVEL%<BR>> ><BR>> ><BR>> > Any help is
appriciated<BR>> ><BR>> ><BR>> > Thanks<BR>> > Akhilesh<BR>> > ________________________________<BR>> > The fish are biting.<BR>> > Get more visitors on your site using Yahoo! Search Marketing.56<BR>> ><BR>> ><BR>> > ________________________________<BR>> > Don't be flakey. Get Yahoo! Mail for Mobile57 and<BR>> > always stay connected58 to friends.<BR>> ><BR>> ><BR>><BR>><BR>> --<BR>> Jonas Bon谷r<BR>><BR>> http://jonasboner.com248<BR>><BR>><BR>><BR>> ________________________________<BR>> Looking for earth-friendly autos?<BR>> Browse Top Cars by "Green Rating"249 at Yahoo! Autos' Green Center.<BR>><BR>><BR><BR><BR>-- <BR>Jonas Bonér<BR><BR>http://jonasboner.com<BR></BLOCKQUOTE><BR><p> 
<hr size=1><a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Food fight?</a> Enjoy some healthy debate<br>in the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Yahoo! Answers Food & Drink Q&A.</a>
--0-1828229731-1175621156=:36358--