Re: [aspectwerkz-user] AspectwerkZ Websphere 6.1 problem

akhilesh laddha <[email protected]> Mon, 2 Apr 2007 09:16:15 -0700 (PDT)
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
--0-1754430095-1175530575=:89210
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

  Details are as below mentioned
   
   
  AOP.xml
   
  <!DOCTYPE aspectwerkz PUBLIC
    "-//AspectWerkz//DTD//EN"
    "http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd">
<aspectwerkz>
   <system id="samples">
        <package name="com.wipro.eprofile.Aspects.Matrics.Aspect">
            <aspect class="WebTierAspect">
          <pointcut name="profile" expression="execution(public * com.sample.*.*(..))"/>
                 <advice name="startWebTier(StaticJoinPoint jp)" type="before" bind-to="profile"/>
                 <advice name="endWebTier(StaticJoinPoint jp)" type="after" bind-to="profile"/>
             </aspect>
      </package>
  </system>
</aspectwerkz>
  
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


"Philippe de M. Sevestre" <[email protected]> wrote:  
From may (small) experience with AspectWerkz, the hardest part is to 
figure out how to propely write the cut-points.

Try posting your /META-INF/aop.xml and an intended target sample.

Philippe.




akhilesh laddha escreveu:
> 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.
> 
>
>
> ------------------------------------------------------------------------
> Don't be flakey. Get Yahoo! Mail for Mobile 
> and
> always stay connected 
> to 
> friends. 


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

http://xircles.codehaus.org/manage_email



 
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
--0-1754430095-1175530575=:89210
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">  <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Details are as below mentioned</SPAN></div>  <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN>&nbsp;</div></SPAN>  <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN>&nbsp;</div>  <DIV>AOP.xml</DIV>  <DIV>&nbsp;</DIV>  <DIV>&lt;!DOCTYPE aspectwerkz PUBLIC<BR>&nbsp;&nbsp;&nbsp; "-//AspectWerkz//DTD//EN"<BR>&nbsp;&nbsp;&nbsp; "<A href="http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd">http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd</A>"&gt;<BR>&lt;aspectwerkz&gt;<BR>&nbsp;&nbsp; &lt;system id="samples"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;package name="com.wipro.eprofile.Aspects.Matrics.Aspect"&gt;<BR>&nbs
 p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;aspect
 class="WebTierAspect"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pointcut name="profile" expression="execution(public * com.sample.*.*(..))"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;advice name="startWebTier(StaticJoinPoint jp)" type="before" bind-to="profile"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;advice name="endWebTier(StaticJoinPoint jp)" type="after" bind-to="profile"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/aspect&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/package&gt;<BR>&nbsp; &lt;/system&gt;<BR>&lt;/aspectwerkz&gt;</DIV>  <DIV><BR>Method signature</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp; /**<BR>&nbsp;&nbsp; * This aspect advice will be added just before any WebTier method call<BR
 >&nbsp;&nbsp; */<BR>&nbsp; public void startWebTier(StaticJoinPoint jp) throws
 EProfileException<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; super.start(jp);<BR>&nbsp; }</DIV>  <DIV>&nbsp; /**<BR>&nbsp;&nbsp; * This aspect advice will be added just after the last WebTier method call<BR>&nbsp;&nbsp; */<BR>&nbsp; public void endWebTier(StaticJoinPoint jp) throws EProfileException<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; super.end(jp);<BR>&nbsp; }</DIV>  <DIV>&nbsp;</DIV>  <DIV>Target Application package structure</DIV>  <DIV>&nbsp;</DIV>  <DIV>Any help is appriciated<BR></DIV>  <DIV>&nbsp;</DIV>  <DIV>.<BR>„Ÿ„Ÿcom<BR>&nbsp; „¤„Ÿ„Ÿ„Ÿsample<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „ &nbsp;&nbsp; EProfileSampleServlet.java<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „ <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „¥„Ÿ„Ÿ„Ÿbeans<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Children.java<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Family.java<BR>&nbsp;&nbsp;&n
 bsp;&nbsp;&nbsp; „ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 FamilyInfo.java<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „ <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „¥„Ÿ„Ÿ„Ÿdatabase<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTransfer.java<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „ <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; „¤„Ÿ„Ÿ„ŸUtils<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Util.java<BR></DIV>  <DIV>&nbsp;</DIV>  <DIV>Thanks</DIV>  <DIV>Akhilesh</DIV><BR><BR><B><I>"Philippe de M. Sevestre" &lt;[email protected]&gt;</I></B> wrote:  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>From may (small) experience with AspectWerkz, the hardest part is to <BR>figure out how to propely write the cut-points.<BR><BR>Try posting your /META-INF/aop.xml and an intended target sample.<BR><BR>Philippe.<BR><BR><BR><BR><BR>akhilesh laddha escreveu:<BR>&gt; It 
 would be great if somebody helpe me out.<BR>&gt; <BR>&gt; Thanks<BR>&gt;
 Akl<BR>&gt;<BR>&gt;<BR>&gt; */akhilesh laddha <[email protected]>/* wrote:<BR>&gt;<BR>&gt; I configured aspectwerkZ2.0 with Websphere 6.1. Application<BR>&gt; server started with the log message<BR>&gt; *AspectWerkz - INFO - Pre-processor<BR>&gt; org.codehaus.aspectwerkz.transform.AspectWerk*<BR>&gt; *zPreProcessor loaded and initialized*<BR>&gt; <BR>&gt; The log message indicates that AspectWerkz loaded and initialized<BR>&gt; properly. To capture profiling metrics of the application,<BR>&gt; defines point cuts (Runtime/Load time) for the application. And<BR>&gt; run the target application.<BR>&gt; *However, there were no data captured.*<BR>&gt; *It seems AspectWerkz Pre-processor does not work.*<BR>&gt; <BR>&gt; In Websphere log this message found after deploying aspect rule.<BR>&gt; <BR>&gt; *Deployer::INFO - deploying aspect<BR>&gt; [com.wipro.eprofile.Aspects.Matrics.Aspect
 .WebTierAspect] in class<BR>&gt; loader
 [com.ibm.ws.bootstrap.ExtClassLoader@4560456]*<BR>&gt; <BR>&gt; I made these changes in startServer.bat file of Websphere<BR>&gt; <BR>&gt; *SET ASPECTWERKZ_VERSION=2.0*<BR>&gt; *SET ASPECTWERKZ_HOME=D:\aspectwerkz*<BR>&gt; * *<BR>&gt; *SET<BR>&gt; 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>&gt; * *<BR>&gt; *set JAVA_OPTIONS=%JAVA_OPTIONS%<BR>&gt; -javaagent:%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk5-2.0.jar*<BR>&gt; *set JAVA_OPTIONS=%JAVA_OPTIONS%<BR>&gt; -Daspectwerkz.
 transform.details=false*<BR>&gt; * *<BR>&gt; * *<BR>&gt; * *<BR>&gt;
 *"%JAVA_HOME%\bin\java" %JAVA_OPTIONS% -cp %ASPECTWERKZ_LIBS%<BR>&gt; -Djavax.management.builder.initial=com.ibm.ws.management.PlatformMBeanServerBuilder<BR>&gt; -Dcom.sun.management.config.file=C:\IBM\WebSphere\AppServer\java\jre\lib\management/management.properties<BR>&gt; -Dcmd.properties.file=%TMPJAVAPROPFILE% %WAS_TRACE% %WAS_DEBUG%<BR>&gt; %CONSOLE_ENCODING% "%CLIENTSAS%" "%CLIENTSSL%" %USER_INSTALL_PROP%<BR>&gt; "-Dwas.install.root=%WAS_HOME%" com.ibm.ws.bootstrap.WSLauncher<BR>&gt; com.ibm.ws.management.tools.WsServerLauncher "%CONFIG_ROOT%"<BR>&gt; "%WAS_CELL%" "%WAS_NODE%" %* %WORKSPACE_ROOT_PROP%*<BR>&gt; *set RC=%ERRORLEVEL%*<BR>&gt; ** <BR>&gt; ** <BR>&gt; Any help is appriciated<BR>&gt; <BR>&gt; <BR>&gt; Thanks<BR>&gt; Akhilesh<BR>&gt; ------------------------------------------------------------------------<BR>&gt; The fish are biting.<BR>&gt; Get more visitors<BR>&gt; <HT
 TP:
 evt="49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50" us.rd.yahoo.com><BR>&gt; on your site using Yahoo! Search Marketing.<BR>&gt; <HTTP: evt="49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50" us.rd.yahoo.com><BR>&gt;<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; Don't be flakey. Get Yahoo! Mail for Mobile <BR>&gt; <HTTP: evt="43909/*http://mobile.yahoo.com/mail" us.rd.yahoo.com>and<BR>&gt; always stay connected <BR>&gt; <HTTP: evt="43909/*http://mobile.yahoo.com/mail" us.rd.yahoo.com>to <BR>&gt; friends. <BR><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>Finding fabulous fares is fun.<br><a href="http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--
">Let Yahoo! FareChase search your favorite travel sites</a> to find flight and hotel bargains.
--0-1754430095-1175530575=:89210--