Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] LTW on tomcat 5.5.12, the server stuck

Hi Guofeng,

I can tell you that I've been able to deploy multiple different apps with
load-time weaving using Tomcat 5.5.9 on both the Sun and BEA JRockIt JVM's.
Do you have anything in your logs? Can you turn on weaving information in
your aop.xml file? Do you need to weave into the system? You might try just
putting your aspects in shared/lib or even WEB-INF/lib to see how it behaves
then.

Also, have you tried deploying a very simple test case like a basic tracing
aspect:

public aspect TestLtw {
    before() : staticinitialization(com.foo.myco..*) && !within(TestLtw) {
        System.err.println("Initializing at "+thisJoinPointStaticPart);
    }
}


-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Guofeng Zhang
Sent: Sunday, October 30, 2005 8:29 PM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] LTW on tomcat 5.5.12, the server stuck

I download aspectj-DEVELOPMENT-20051029200407.jar.

Now the tomcat server starts up completely. But my web application is
not initialized. When access it, I got a 404 error that says that my
servlet is not available.

Thanks


-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Alexandre
Vasseur
Sent: Friday, October 28, 2005 10:51 PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] LTW on tomcat 5.5.12, the server stuck

LTW with AJ 1.5.0 M4 has a know bug that leads to a deadlock with
Tomcat.
Can you try a development build ?
Alex

On 10/28/05, Guofeng Zhang <guofeng@xxxxxxxxxxxxx> wrote:
>
>
>
> I use LTW on Tomcat. The Tomcat server can not startup successfully. I
want
> to know if anyone have used LTW on Tomcat or any special configuration
is
> required?
>
>
>
> The following is the details.
>
>
>
> A simple aspect used to trace the entry and exit of the method
invocation
> (use System.out to output). I use a simple Java class to test it by
LTW, it
> works.
>
>
>
> I configure it on Tomcat 5.5.12, run on JDK 5.0. But the tomcat can
not
> start up completely.
>
>
>
> The following is the output when no LTW used:
>
> Oct 28, 2005 7:10:13 PM
> org.apache.coyote.http11.Http11BaseProtocol start
>
> INFO: Starting Coyote HTTP/1.1 on http-8080
>
> Oct 28, 2005 7:10:14 PM org.apache.jk.common.ChannelSocket
> init
>
> INFO: JK: ajp13 listening on /0.0.0.0:8009
>
> Oct 28, 2005 7:10:14 PM org.apache.jk.server.JkMain start
>
> INFO: Jk running ID=0 time=0/60  config=null
>
> Oct 28, 2005 7:10:14 PM
> org.apache.catalina.storeconfig.StoreLoader load
>
> INFO: Find registry server-registry.xml at classpath resource
>
> Oct 28, 2005 7:10:14 PM
> org.apache.catalina.startup.Catalina start
>
> INFO: Server startup in 8192 ms
>
>
>
> When use LTW, the output stopped at the second line, that is
>
> INFO: Starting Coyote HTTP/1.1 on http-8080
>
>
>
> I remove my web application completely from the tomcat, and restart
tomcat
> using the same script as the above (keep using LTW), I got the same
result,
> i.e., tomcat stopped at the second line.
>
>
>
> I use apsectj M4.
>
>
>
> Thanks
>
>
>
> Guofeng
>
>
>
> AOP.xml:
>
> <aspectj>
>
>
>
>             <aspects>
>
>               <aspect name="com.gf.tracing.TracingAspect"/>
>
>             </aspects>
>
>
>
>             <weaver options="-1.5 -warn:none">
>
>               <include within="com.mycompany..*"/>
>
>             </weaver>
>
> </aspectj>
>
>
>
> ASPECT
>
> package com.gf.tracing;
>
>
>
> public aspect TracingAspect {
>
>
>
>          pointcut points():
>
>                !within(TracingAspect) && !within(TraceSupport) && call
( *
> com. mycompany..*(..) ) ;
>
>
>
>            before(): points() {
>
>                      System.out.println(
thisJoinPoint.getSourceLocation() +
> " " + thisJoinPoint.toShortString() ) ;
>
>            }
>
>            after(): points() {
>
>              System.out.println( thisJoinPoint.getSourceLocation() + "
" +
> thisJoinPoint.toShortString() ) ;
>
>            }
>
> }
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top