Re: [aspectwerkz-user] AspectwerkZ Websphere 6.1 problem
akhilesh laddha <[email protected]> Tue, 3 Apr 2007 09:31:51 -0700 (PDT)
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
--0-1074781500-1175617911=:62771 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi Mark, I add the BootClasspath and classpaths to the JVM running the server not the JVM starting the server using admin console. But, not sure how to add JAVA_OPTIONS and ="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.jar using admin console. Entries in server.xml looks as below. After doing these changes, not getting the message AspectWerkz - INFO - Pre-processor org.codehaus.aspectwerkz.transform.AspectWerk zPreProcessor loaded and initialized <jvmEntries xmi:id="JavaVirtualMachine_1175430184847" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" initialHeapSize="256" maximumHeapSize="512" runHProf="false" debugMode="false" debugArgs="-Djava.compiler=NONE -Xdebug -Xnoagent Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Xbootclasspath/p:C:\IBM\WebSphere\AppServer\lib\enhanced.jar -Daspectwerkz.definition.file=D:\EProfilerFolder\eprofilerIBM\src\refrence\j2ee\aop.xml" disableJIT="false"> <classpath>C:\IBM\WebSphere\AppServer\lib\aspectwerkz-2.0.jar C:\IBM\WebSphere\AppServer\lib\aspectwerkz-extensions-2.0.jar C:\IBM\WebSphere\AppServer\lib\aspectwerkz-jdk5-2.0.jar C:\IBM\WebSphere\AppServer\lib\dom4j-1.4.jar C:\IBM\WebSphere\AppServer\lib\qdox-1.4.jar C:\IBM\WebSphere\AppServer\lib\concurrent-1.3.1.jar C:\IBM\WebSphere\AppServer\lib\trove-1.0.2.jar C:\IBM\WebSphere\AppServer\lib\jrexx-1.1.1.jar C:\IBM\WebSphere\AppServer\lib\eProfiler.jar C:\IBM\WebSphere\AppServer\lib\demo.jar </classpath> <bootClasspath>C:\IBM\WebSphere\AppServer\lib\aspectwerkz-core-2.0.jar;C:\IBM\WebSphere\AppServer\java\lib\tools.jar</bootClasspath> <systemProperties xmi:id="Property_1175600965378" name="JAVA_OPTIONS" value="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.jar" required="true"/> </jvmEntries> Any help is appriciated Thanks Akhilesh Mark Lui <[email protected]> wrote: Akhilesh, I believe you need to add the java_options and addition classpaths to the JVM running the server not the JVM starting the server. This may be done through the console. Navigate to Servers/Application Servers/ (server1 by default)/Process Definition/Java Virtual Machine. You will see a place to enter the Classpath, Boot Classpath, and Generic JVM arguments. Fill in the appropriate values and save to the master configuration. This should fix your problem. Mark 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 capt 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. > > > > ------------------------------------------------------------------------ > Don't be flakey. Get Yahoo! Mail for Mobile > and > always stay connected > to > friends. -- Mark Lui [email protected] 310-737-7835 --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------- Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. --0-1074781500-1175617911=:62771 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <div>Hi Mark,</div> <div>I add the BootClasspath and classpaths to the JVM running the server not the JVM starting the server using admin console. But, not sure how to add JAVA_OPTIONS and ="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.jar using admin console.</div> <div> </div> <div>Entries in server.xml looks as below. After doing these changes, not getting the message</div> <div>AspectWerkz - INFO - Pre-processor org.codehaus.aspectwerkz.transform.AspectWerk<BR>zPreProcessor loaded and initialized</div> <div> </div> <div><jvmEntries xmi:id="JavaVirtualMachine_1175430184847" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" initialHeapSize="256" maximumHeapSize="512" runHProf="false" debugMode="false" debugArgs="-Djava.compiler=NONE -Xdebug -Xnoagent Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777"<BR> genericJvmArguments="-Xbootclasspath/p:C:\IBM\WebSphere\AppServer\lib\enhanced.jar -Daspectwerkz.definition.file=D:\EProfilerFolder\eprofilerIBM\src\refrence\j2ee\aop.xml" disableJIT="false"></div> <div><BR><classpath>C:\IBM\WebSphere\AppServer\lib\aspectwerkz-2.0.jar C:\IBM\WebSphere\AppServer\lib\aspectwerkz-extensions-2.0.jar C:\IBM\WebSphere\AppServer\lib\aspectwerkz-jdk5-2.0.jar C:\IBM\WebSphere\AppServer\lib\dom4j-1.4.jar</div> <div>C:\IBM\WebSphere\AppServer\lib\qdox-1.4.jar </div> <div>C:\IBM\WebSphere\AppServer\lib\concurrent-1.3.1.jar C:\IBM\WebSphere\AppServer\lib\trove-1.0.2.jar </div> <div>C:\IBM\WebSphere\AppServer\lib\jrexx-1.1.1.jar C:\IBM\WebSphere\AppServer\lib\eProfiler.jar </div> <div>C:\IBM\WebSphere\AppServer\lib\demo.jar</div> <div></classpath><BR></div> <div><bootClasspath>C:\IBM\WebSphere\AppServer\lib\aspectwerkz-core-2.0.jar;C:\IBM\WebSphere\AppServer\java\lib\tools.jar</boot Classpath><BR><systemProperties xmi:id="Property_1175600965378" name="JAVA_OPTIONS" value="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.jar" required="true"/></div> <div> </div> <div></jvmEntries></div> <div> </div> <div>Any help is appriciated</div> <div> </div> <div>Thanks</div> <div>Akhilesh<BR><BR><B><I>Mark Lui <[email protected]></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Akhilesh,<BR><BR>I believe you need to add the java_options and addition classpaths to <BR>the JVM running the server not the JVM starting the server. This may <BR>be done through the console.<BR><BR>Navigate to Servers/Application Servers/<SERVER name> (server1 by <BR>default)/Process Definition/Java Virtual Machine. You will see a place <BR>to enter the Classpath, Boot Classpath, and Generic JVM arguments. Fill <BR>in the appropriate values and save to th e master configuration. This <BR>should fix your problem.<BR><BR>Mark<BR><BR>akhilesh laddha wrote:<BR>> It would be great if somebody helpe me out.<BR>> <BR>> Thanks<BR>> Akl<BR>><BR>><BR>> */akhilesh laddha <[email protected]>/* wrote:<BR>><BR>> I configured aspectwerkZ2.0 with Websphere 6.1. Application<BR>> server started 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. To capt profiling metrics of the application, defines<BR>> point cuts (Runtime/Load time) for the application. And run the<BR>> 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] in class<BR>> loader [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>> 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>> -javaagent:%ASPECTWERKZ_HOME%\lib\aspectw erkz-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>> -Djavax.management.builder.initial=com.ibm.ws.management.PlatformMBeanServerBuilder<BR>> -Dcom.sun.management.config.file=C:\IBM\WebSphere\AppServer\java\jre\lib\management/management.properties<BR>> -Dcmd.properties.file=%TMPJAVAPROPFILE% %WAS_TRACE% %WAS_DEBUG%<BR>> %CONSOLE_ENCODING% "%CLIENTSAS%" "%CLIENTSSL%" %USER_INSTALL_PROP%<BR>> "-Dwas.install.root=%WAS_HOME%" com.ibm.ws.bootstrap.WSLauncher<BR>> com.ibm.ws.management.tools.WsServerLauncher "%CONFIG_ROOT%"<BR>> "%WAS_CELL%" "%WAS_NODE%" %* %WORKSPACE_ROOT_PROP%*<BR>> *set 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<BR>> <HTTP: evt="49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50" us.rd.yahoo.com><BR>> on your site using Yahoo! Search Marketing.<BR>> <HTTP: evt="49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50" us.rd.yahoo.com><BR>><BR>><BR>> ------------------------------------------------------------------------<BR>> Don't be flakey. Get Yahoo! Mail for Mobile <BR>> <HTTP: evt="43909/*http://mobile.yahoo.com/mail" us.rd.yahoo.com>and<BR>> always stay connected <BR>> <HTTP: evt="43909/*http://mobile.yahoo.com/mail" us.rd.yahoo.com>to <BR>> friends. <BR><BR>-- <BR><BR>Mark Lui<BR>[email protected]<BR>310-737-7835<BR><BR>---------------------------------------------------------------------<BR>To unsubscribe fr om this list please visit:<BR><BR>http://xircles.codehaus.org/manage_email<BR><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-1074781500-1175617911=:62771--