Re: [aspectwerkz-user] AspectwerkZ Websphere 6.1 problem

akhilesh laddha <[email protected]> Tue, 3 Apr 2007 20:33:31 -0700 (PDT)
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
--0-1530967346-1175657611=:30202
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi Alex,
  I used Websphere admin console to setup server classpath and boot classpath. Could you let me know where I should set class information to fix classloader problem? Snippet of the server.xml is as given below. 
  Even, I am not getting AspectWerkZ log message, while starting server. 
   
     
   <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="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.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&#xA;&#x9;  C:\IBM\WebSphere\AppServer\lib\trove-1.0.2.jar C:\IBM\WebSphere\AppServer\lib\jrexx-1.1.1.jar&#xA;      C:\IBM\WebSphere\AppServer\lib\eProfiler.jar</classpath>
      <bootClasspath>C:\IBM\WebSphere\AppServer\lib\enhanced.jar; C:\IBM\WebSphere\AppServer\lib\aspectwerkz-core-2.0.jar;C:\IBM\WebSphere\AppServer\java\lib\tools.jar</bootClasspath>
    </jvmEntries>
   

  Any help is appriciated

    Thanks
  Akhilesh
Alexandre Vasseur <[email protected]> wrote:

  sounds like the aop.xml is found by the ext classloader and that the
aspect is looked in the standard (main) classloader
looks like classpath issue between aspect class and aop.xml to me
Alex

On 4/3/07, akhilesh laddha wrote:
> Hi Mark,
> I added JAVA_OPTIONS in "genericJvmArguments". However, I did not get
> AspectwerkZ log message on Console.
> AspectWerkz - INFO - Pre-processor
> org.codehaus.aspectwerkz.transform.AspectWerk
> zPreProcessor loaded and initialized
>
> When, I checked SystemOut.log, got these messages. It seems there is
> classloader related problem. Please help me out to fix the problem
>
> [4/3/07 23:09:36:398 IST] 0000001d SystemOut O Deployer::INFO -
> deploying aspect
> [com.wipro.eprofile.Aspects.Matrics.Aspect.WebTierAspect]
> in class loader
> [com.ibm.ws.bootstrap.ExtClassLoader@7ba47ba4]
> [4/3/07 23:09:36:578 IST] 0000001d SystemOut O AW::WARNING - could not
> load class
> [com/wipro/eprofile/Aspects/Matrics/Aspect/WebTierAspect]
> as a resource in loader
> [sun.misc.Launcher$AppClassLoader@2a8c2a8c]
>
> Any help is appriciated
>
> Thanks
> Akhilesh
>
> Mark Lui wrote:
> Use the Generic JVM arguments entry to add the java_options.
>
> Mark
>
> akhilesh laddha wrote:
> > 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
> >
> > > 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">
> >
> > 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
> >
> >
> C:\IBM\WebSphere\AppServer\lib\aspectwerkz-core-2.0.jar;C:\IBM\WebSphere\AppServer\java\lib\tools.jar
> > >
> value="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.jar"
> > required="true"/>
> >
> >
> >
> > Any help is appriciated
> >
> > Thanks
> > Akhilesh
> >
> > */Mark Lui /* 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/
> >
>
> --
>
> Mark Lui
> [email protected]
> 310-737-7835
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
> ________________________________
> Never miss an email again!
> Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



 
---------------------------------
Don't get soaked.  Take a quick peek at the forecast 
 with theYahoo! Search weather shortcut.
--0-1530967346-1175657611=:30202
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi Alex,<?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">I used Websphere admin console to setup server classpath and boot classpath. Could you let me know where I should set class information to fix classloader problem? Snippet of the server.xml is as&nbsp;given below. <o:p></o:p></SPAN></div>  <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Even, I am not getting AspectWerkZ log message, while starting server. <o:p></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></div>  <div>  <div>&nbsp;</div>  <div>&nbsp;&lt;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="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.jar -Daspectwerkz.definition.file=D:\EProfilerFolder\eprofilerIBM\src\refrence\j2ee\aop.xml" disableJIT="false"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;classpath&gt;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&amp;#xA;&amp;#x9;&nbsp; C:\IBM\WebSphere\AppServer\lib\trove-1.0.2.jar C:\IBM\WebSphere\AppServer\lib\jrexx-1.1.1.jar&amp;#xA;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\IBM\WebSphere\AppServer\lib\eProfiler.jar&lt;/classpath&gt;<BR>&nbsp;&nbsp;&n
 bsp;&nbsp;&nbsp; &lt;bootClasspath&gt;C:\IBM\WebSphere\AppServer\lib\enhanced.jar;
 C:\IBM\WebSphere\AppServer\lib\aspectwerkz-core-2.0.jar;C:\IBM\WebSphere\AppServer\java\lib\tools.jar&lt;/bootClasspath&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/jvmEntries&gt;</div>  <div>&nbsp;</div></div>  <div>Any help is appriciated<BR></div>  <div>  <div>Thanks</div>  <div>Akhilesh<BR><B><I>Alexandre Vasseur &lt;[email protected]&gt;</I></B> wrote:</div></div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">sounds like the aop.xml is found by the ext classloader and that the<BR>aspect is looked in the standard (main) classloader<BR>looks like classpath issue between aspect class and aop.xml to me<BR>Alex<BR><BR>On 4/3/07, akhilesh laddha <[email protected]>wrote:<BR>&gt; Hi Mark,<BR>&gt; I added JAVA_OPTIONS in "genericJvmArguments". However, I did not get<BR>&gt; AspectwerkZ log message on Console.<BR>&gt; AspectWerkz - INFO - P
 re-processor<BR>&gt; org.codehaus.aspectwerkz.transform.AspectWerk<BR>&gt; zPreProcessor
 loaded and initialized<BR>&gt;<BR>&gt; When, I checked SystemOut.log, got these messages. It seems there is<BR>&gt; classloader related problem. Please help me out to fix the problem<BR>&gt;<BR>&gt; [4/3/07 23:09:36:398 IST] 0000001d SystemOut O Deployer::INFO -<BR>&gt; deploying aspect<BR>&gt; [com.wipro.eprofile.Aspects.Matrics.Aspect.WebTierAspect]<BR>&gt; in class loader<BR>&gt; [com.ibm.ws.bootstrap.ExtClassLoader@7ba47ba4]<BR>&gt; [4/3/07 23:09:36:578 IST] 0000001d SystemOut O AW::WARNING - could not<BR>&gt; load class<BR>&gt; [com/wipro/eprofile/Aspects/Matrics/Aspect/WebTierAspect]<BR>&gt; as a resource in loader<BR>&gt; [sun.misc.Launcher$AppClassLoader@2a8c2a8c]<BR>&gt;<BR>&gt; Any help is appriciated<BR>&gt;<BR>&gt; Thanks<BR>&gt; Akhilesh<BR>&gt;<BR>&gt; Mark Lui <[email protected]>wrote:<BR>&gt; Use the Generic JVM arguments entry to add the java_options.<BR>&gt;<BR>&gt; Mark
 <BR>&gt;<BR>&gt; akhilesh laddha wrote:<BR>&gt; &gt; Hi Mark,<BR>&gt; &gt; I add the
 BootClasspath and classpaths to the JVM running the server<BR>&gt; &gt; not the JVM starting the server using admin console. But, not sure how<BR>&gt; &gt; to add JAVA_OPTIONS and<BR>&gt; &gt; ="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.jar<BR>&gt; using admin<BR>&gt; &gt; console.<BR>&gt; &gt;<BR>&gt; &gt; Entries in server.xml looks as below. After doing these changes, not<BR>&gt; &gt; getting the message<BR>&gt; &gt; AspectWerkz - INFO - Pre-processor<BR>&gt; &gt; org.codehaus.aspectwerkz.transform.AspectWerk<BR>&gt; &gt; zPreProcessor loaded and initialized<BR>&gt; &gt;<BR>&gt; &gt; &gt; verboseModeClass="false"<BR>&gt; verboseModeGarbageCollection="false"<BR>&gt; &gt; verboseModeJNI="false" initialHeapSize="256" maximumHeapSize="512"<BR>&gt; &gt; runHProf="false" debugMode="false" debugArgs="-Djava.compiler=NONE<BR>&gt; &gt; -Xdebug -Xnoagent<BR>&gt; &gt;<BR>&gt; Xrunjdwp:
 transport=dt_socket,server=y,suspend=n,address=7777"<BR>&gt; &gt;<BR>&gt;
 genericJvmArguments="-Xbootclasspath/p:C:\IBM\WebSphere\AppServer\lib\enhanced.jar<BR>&gt; &gt;<BR>&gt; -Daspectwerkz.definition.file=D:\EProfilerFolder\eprofilerIBM\src\refrence\j2ee\aop.xml"<BR>&gt; &gt; disableJIT="false"&gt;<BR>&gt; &gt;<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\aspectwerkz-2.0.jar<BR>&gt; &gt;<BR>&gt; C:\IBM\WebSphere\AppServer\lib\aspectwerkz-extensions-2.0.jar<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\aspectwerkz-jdk5-2.0.jar<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\dom4j-1.4.jar<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\qdox-1.4.jar<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\concurrent-1.3.1.jar<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\trove-1.0.2.jar<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\jrexx-1.1.1.jar<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\eProfiler.jar<BR>&gt; &gt; C:\IBM\WebSphere\AppServer\lib\demo.jar<BR>&gt; &gt;<BR>&gt; &gt;<BR>&
 gt;
 C:\IBM\WebSphere\AppServer\lib\aspectwerkz-core-2.0.jar;C:\IBM\WebSphere\AppServer\java\lib\tools.jar<BR>&gt; &gt; &gt;<BR>&gt; value="-javaagent:D:\aspectwerkz\lib\aspectwerkz-jdk5-2.0.jar"<BR>&gt; &gt; required="true"/&gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Any help is appriciated<BR>&gt; &gt;<BR>&gt; &gt; Thanks<BR>&gt; &gt; Akhilesh<BR>&gt; &gt;<BR>&gt; &gt; */Mark Lui /* wrote:<BR>&gt; &gt;<BR>&gt; &gt; Akhilesh,<BR>&gt; &gt;<BR>&gt; &gt; I believe you need to add the java_options and addition classpaths to<BR>&gt; &gt; the JVM running the server not the JVM starting the server. This may<BR>&gt; &gt; be done through the console.<BR>&gt; &gt;<BR>&gt; &gt; Navigate to Servers/Application Servers/<BR>&gt; &gt;<BR>&gt;<BR>&gt; --<BR>&gt;<BR>&gt; Mark Lui<BR>&gt; [email protected]<BR>&gt; 310-737-7835<BR>&gt;<BR>&gt; -------------------------------------------------------
 --------------<BR>&gt; To unsubscribe from this list please visit:<BR>&gt;<BR>&gt;
 http://xircles.codehaus.org/manage_email<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; ________________________________<BR>&gt; Never miss an email again!<BR>&gt; Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.<BR>&gt;<BR>&gt;<BR><BR>---------------------------------------------------------------------<BR>To unsubscribe from this list please visit:<BR><BR>http://xircles.codehaus.org/manage_email<BR><BR></BLOCKQUOTE><BR><p>&#32;

<hr size=1>
Don't get soaked.  Take a<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news"> quick peek at the forecast </a><br> with the<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news">Yahoo! Search weather shortcut.</a>
--0-1530967346-1175657611=:30202--