RE: [aspectwerkz-user] AspectwerkZ Websphere 6.1 problem
"Tahir Akhtar" <[email protected]> Mon, 2 Apr 2007 21:24:05 +0500
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <20070402162548.FSID1942.imta06a2.registeredsite.com@SIBITAHIR> |
Try=20 =A0=A0=A0=A0 <pointcut name=3D"profile" expression=3D"execution(public * com.sample.*...*(..))"/>=20 instead of =A0=A0=A0=A0 <pointcut name=3D"profile" expression=3D"execution(public * com.sample.*.*(..))"/> This might be needed as you want to include classes in subpackages of com.sample like com.sample.beans and com.sample.database Regards, Tahir Akhtar ________________________________________ From: akhilesh laddha [mailto:[email protected]]=20 Sent: Monday, April 02, 2007 9:16 PM To: [email protected] Subject: Re: [aspectwerkz-user] AspectwerkZ Websphere 6.1 problem Details are as below mentioned =A0 =A0 AOP.xml =A0 <!DOCTYPE aspectwerkz PUBLIC =A0=A0=A0 "-//AspectWerkz//DTD//EN" =A0=A0=A0 "http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd"> <aspectwerkz> =A0=A0 <system id=3D"samples"> =A0=A0=A0=A0=A0=A0=A0 <package = name=3D"com.wipro.eprofile.Aspects.Matrics.Aspect"> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <aspect class=3D"WebTierAspect"> =A0=A0=A0=A0=A0=A0=A0=A0=A0 <pointcut name=3D"profile" = expression=3D"execution(public * com.sample.*.*(..))"/> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <advice = name=3D"startWebTier(StaticJoinPoint jp)" type=3D"before" bind-to=3D"profile"/> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <advice = name=3D"endWebTier(StaticJoinPoint jp)" type=3D"after" bind-to=3D"profile"/> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </aspect> =A0=A0=A0=A0=A0 </package> =A0 </system> </aspectwerkz> Method signature =A0 =A0 /** =A0=A0 * This aspect advice will be added just before any WebTier method = call =A0=A0 */ =A0 public void startWebTier(StaticJoinPoint jp) throws = EProfileException =A0 { =A0=A0=A0 super.start(jp); =A0 } =A0 /** =A0=A0 * This aspect advice will be added just after the last WebTier = method call =A0=A0 */ =A0 public void endWebTier(StaticJoinPoint jp) throws EProfileException =A0 { =A0=A0=A0 super.end(jp); =A0 } =A0 Target Application package structure =A0 Any help is appriciated =A0 . =84=9F=84=9Fcom =A0 =84=A4=84=9F=84=9F=84=9Fsample =A0=A0=A0=A0=A0 =84=A0=A0=A0 EProfileSampleServlet.java =A0=A0=A0=A0=A0 =84=A0 =A0=A0=A0=A0=A0 =84=A5=84=9F=84=9F=84=9Fbeans =A0=A0=A0=A0=A0 =84=A0=A0=A0=A0=A0=A0=A0 Children.java =A0=A0=A0=A0=A0 =84=A0=A0=A0=A0=A0=A0=A0 Family.java =A0=A0=A0=A0=A0 =84=A0=A0=A0=A0=A0=A0=A0 FamilyInfo.java =A0=A0=A0=A0=A0 =84=A0 =A0=A0=A0=A0=A0 =84=A5=84=9F=84=9F=84=9Fdatabase =A0=A0=A0=A0=A0 =84=A0=A0=A0=A0=A0=A0=A0 DataTransfer.java =A0=A0=A0=A0=A0 =84=A0 =A0=A0=A0=A0=A0 =84=A4=84=9F=84=9F=84=9FUtils =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Util.java =A0 Thanks Akhilesh "Philippe de M. Sevestre" <[email protected]> wrote:=20 From may (small) experience with AspectWerkz, the hardest part is to=20 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. >=20 > 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* >=20 > 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.* >=20 > In Websphere log this message found after deploying aspect rule. >=20 > *Deployer::INFO - deploying aspect > [com.wipro.eprofile.Aspects.Matrics.Aspect.WebTierAspect] in class > loader [com.ibm.ws.bootstrap.ExtClassLoader@4560456]* >=20 > I made these changes in startServer.bat file of Websphere >=20 > *SET ASPECTWERKZ_VERSION=3D2.0* > *SET ASPECTWERKZ_HOME=3DD:\aspectwerkz* > * * > *SET > ASPECTWERKZ_LIBS=3D%WAS_CLASSPATH%;%ASPECTWERKZ_HOME%\lib\dom4j-1.4.jar;%= ASPEC TWERKZ_HOME%\lib\qdox-1.4.jar;%ASPECTWERKZ_HOME%\lib\concurrent-1.3.1.jar= ;%A SPECTWERKZ_HOME%\lib\trove-1.0.2.jar;%ASPECTWERKZ_HOME%\lib\jrexx-1.1.1.j= ar; %ASPECTWERKZ_HOME%\lib\aspectwerkz-core-2.0.jar;%ASPECTWERKZ_HOME%\lib\as= pec twerkz-extensions-2.0.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-2.0.jar;%ASP= ECT WERKZ_HOME%\lib\aspectwerkz-jdk5-2.0.jar;C:\IBM\WebSphere\AppServer\lib\e= Pro filer.jar* > * * > *set JAVA_OPTIONS=3D%JAVA_OPTIONS% > -javaagent:%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk5-2.0.jar* > *set JAVA_OPTIONS=3D%JAVA_OPTIONS% > -Daspectwerkz.transform.details=3Dfalse* > * * > * * > * * > *"%JAVA_HOME%\bin\java" %JAVA_OPTIONS% -cp %ASPECTWERKZ_LIBS% > -Djavax.management.builder.initial=3Dcom.ibm.ws.management.PlatformMBeanS= erver Builder > -Dcom.sun.management.config.file=3DC:\IBM\WebSphere\AppServer\java\jre\li= b\man agement/management.properties > -Dcmd.properties.file=3D%TMPJAVAPROPFILE% %WAS_TRACE% %WAS_DEBUG% > %CONSOLE_ENCODING% "%CLIENTSAS%" "%CLIENTSSL%" %USER_INSTALL_PROP% > "-Dwas.install.root=3D%WAS_HOME%" com.ibm.ws.bootstrap.WSLauncher > com.ibm.ws.management.tools.WsServerLauncher "%CONFIG_ROOT%" > "%WAS_CELL%" "%WAS_NODE%" %* %WORKSPACE_ROOT_PROP%* > *set RC=3D%ERRORLEVEL%* > **=20 > **=20 > Any help is appriciated >=20 >=20 > Thanks > Akhilesh > = ------------------------------------------------------------------------ > The fish are biting. > Get more visitors >=20 > on your site using Yahoo! Search Marketing. >=20 > > > = ------------------------------------------------------------------------ > Don't be flakey. Get Yahoo! Mail for Mobile=20 > and > always stay connected=20 > to=20 > friends.=20 --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email =20 ________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight = and hotel bargains. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email