[aspectwerkz-dev] [jira] Deleted: (AW-138) Unable to instrument JSP pages

"[email protected] (JIRA)" <jira-yCVjj/[email protected]> Fri, 3 Aug 2007 07:11:36 +1000 (EST)
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
     [ http://jira.codehaus.org/browse/AW-138?page=3Dcom.atlassian.jira.plu=
gin.system.issuetabpanels:all-tabpanel ]

[email protected] deleted AW-138:
---------------------------------


> Unable to instrument JSP pages
> ------------------------------
>
>                 Key: AW-138
>                 URL: http://jira.codehaus.org/browse/AW-138
>             Project: AspectWerkz
>          Issue Type: Test
>         Environment: Windows 2000, BEA WebLogic Server 8.1sp1, JVM 1.4.1_=
b03
>            Reporter: Sa=FAl Labajo Izquierdo
>            Assignee: Alexandre Vasseur
>            Priority: Minor
>
> I tried to test the sample advice on the examples server provided with BE=
A WebLogic 8.1sp1, and it works fine for servlets, but I have problems with=
 JSP pages. It allways faults with the following exception:
> java.lang.LinkageError: duplicate class definition: jsp_servlet/__index
> =09at java.lang.ClassLoader.defineClass0(Native Method)
> =09at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> =09at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:=
123)
> =09at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Gener=
icClassLoader.java:476)
> =09at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericCla=
ssLoader.java:181)
> =09at weblogic.servlet.jsp.JspClassLoader.findClass(JspClassLoader.java:4=
0)
> =09at weblogic.servlet.jsp.JspClassLoader.loadClass(JspClassLoader.java:3=
1)
> =09at org.codehaus.aspectwerkz.joinpoint.MemberMethodJoinPoint.(MemberMet=
hodJoinPoint.java:63)
> =09at jsp_servlet.__index._jspService(__index.java)
> =09at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
> =09at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.r=
un(ServletStubImpl.java:1053)
> =09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStub=
Impl.java:387)
> =09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStub=
Impl.java:305)
> =09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAct=
ion.run(WebAppServletContext.java:6310)
> =09at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authentica=
tedSubject.java:317)
> =09at weblogic.security.service.SecurityManager.runAs(SecurityManager.jav=
a:118)
> =09at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebApp=
ServletContext.java:3622)
> =09at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequest=
Impl.java:2569)
> =09at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> =09at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> My xml definition file looks like the following:
> <aspectwerkz>
> =09<system id=3D"J2EEWeb">
>         <!-- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 -->
>         <!--  Define the advices                           -->
>         <!-- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 -->
>         <advice-def name=3D"log"
>                     class=3D"examples.xmldef.logging.LoggingAdvice"
>                     deployment-model=3D"perInstance"/>
>         <!-- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 -->
>         <!--  Define the aspects                           -->
>         <!-- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 -->
>      =09<aspect name=3D"ServletAspect">
> =09    <bind-advice pointcut=3D"servlet">
> =09=09<advice-ref name=3D"log"/>
> =09    </bind-advice>=20
> =09    <bind-advice pointcut=3D"jsp">
> =09=09<advice-ref name=3D"log"/>
> =09    </bind-advice>=09   =20
> =09    <pointcut-def name=3D"servlet" type=3D"method" pattern=3D"void jav=
ax.servlet.http.HttpServlet+.service(javax.servlet.http.HttpServletRequest,=
javax.servlet.http.HttpServletResponse)"/>
> =09    <pointcut-def name=3D"jsp" type=3D"method" pattern=3D"void weblogi=
c.servlet.jsp.JspBase+._jspService(javax.servlet.http.HttpServletRequest,ja=
vax.servlet.http.HttpServletResponse)"/>
>         </aspect>
> =09</system>
> </aspectwerkz>
> The logging advice is the one from your samples.
> And I launch aspectwerkz with the Hotswap method (I tried also with nativ=
e Hotswap).
> I tried with the 0.8.1 version with the same result.

--=20
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: htt=
p://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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

    http://xircles.codehaus.org/manage_email