Re: [aspectwerkz-user] AspectwerkZ Websphere 6.1 problem
akhilesh laddha <[email protected]> Mon, 2 Apr 2007 09:15:10 -0700 (PDT)
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
--0-1824723042-1175530510=:10565
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
I ran it in precompiled (offline mode) too. Even, it is not working. 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
Jonas Bon¨¦r <[email protected]> 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.com
---------------------------------
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
--0-1824723042-1175530510=:10565
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I ran it in precompiled (offline mode) too. Even, it is not working. Details are as below mentioned</SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN> </div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN> </div></DIV> <DIV>AOP.xml</DIV> <DIV> </DIV> <DIV><!DOCTYPE aspectwerkz PUBLIC<BR> "-//AspectWerkz//DTD//EN"<BR> "<A href="http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd">http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd</A>"><BR><aspectwerkz><BR> <system id="samples"><BR> <package name="com.wipro.eprofile.Aspects.Matr
ics.Aspect"><BR>
<aspect class="WebTierAspect"><BR> <pointcut name="profile" expression="execution(public * com.sample.*.*(..))"/><BR> <advice name="startWebTier(StaticJoinPoint jp)" type="before" bind-to="profile"/><BR> <advice name="endWebTier(StaticJoinPoint jp)" type="after" bind-to="profile"/><BR> </aspect><BR> </package><BR> </system><BR></aspectwerkz></DIV> <DIV><BR>Method signature</DIV> <DIV> </DIV> <DIV> /**<BR> * This aspect advice will be added just before any WebTier met
hod call<BR> */<BR> public void startWebTier(StaticJoinPoint jp)
throws EProfileException<BR> {<BR> super.start(jp);<BR> }</DIV> <DIV> /**<BR> * This aspect advice will be added just after the last WebTier method call<BR> */<BR> public void endWebTier(StaticJoinPoint jp) throws EProfileException<BR> {<BR> super.end(jp);<BR> }</DIV> <DIV> </DIV> <DIV>Target Application package structure</DIV> <DIV> </DIV> <DIV>Any help is appriciated<BR></DIV> <DIV> </DIV> <DIV>.<BR>©¤©¤com<BR> ©¸©¤©¤©¤sample<BR> ©¦ EProfileSampleServlet.java<BR> ©¦<BR> ©À©¤©¤©¤beans<BR> ©¦ Children.java<BR> ©¦ Family.java<BR> &
nbsp; ©¦
FamilyInfo.java<BR> ©¦<BR> ©À©¤©¤©¤database<BR> ©¦ DataTransfer.java<BR> ©¦<BR> ©¸©¤©¤©¤Utils<BR> Util.java<BR></DIV> <DIV> </DIV> <DIV>Thanks</DIV> <DIV>Akhilesh</DIV> <DIV><BR><B><I>Jonas Bon¨¦r <[email protected]></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">try to precompile/preweave it (offline mode)<BR><BR>On 4/1/07, akhilesh laddha <[email protected]>wrote:<BR>> It would be great if somebody helpe me out.<BR>><BR>> Thanks<BR>> Akl<BR>><BR>><BR>><BR>> akhilesh laddha <[email protected]>wrot
e:<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 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>> SE
T 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\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>> -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%<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>> 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 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.com<BR></BLOCKQUOTE><BR><p> 
<hr size=1>Looking for earth-friendly autos? <br> <a href="http://autos.yahoo.com/green_center/;_ylc=X3oDMTE4MGw4Z2hlBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW5jZW50ZXI-">Browse Top Cars by "Green Rating"</a> at Yahoo! Autos' Green Center.
--0-1824723042-1175530510=:10565--