Re: [aspectwerkz-user] AspectWerkz and Online loading problems....

Aaron Rustad <[email protected]> Thu, 9 Feb 2006 07:11:34 -0700
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
Thanks for your reply. I finally got around to fully qualifying the
the AW jar and it worked.

The tutorial may be a little missleading with how it presents the
invocation of the JVM with -javaagent (though, I guess it may be
perfectly clear as I couldn't find any other people encountering the
same problem!!).

My thought was since I put the ASPECTWERKZ_HOME in the classpath, and
-javaagent used lib/aspectwerkz-JDK...jar, I assumed that it would
correctly find the jar...it turns out that I had to put the fully
qualified name as the argument for -javaagent.

Thanks for your help.
AR.

On 2/8/06, Jonas Bonér <[email protected]> wrote:
> have you tried the fully qualified name of the path to the AW jar?
>
> On 2/8/06, Aaron Rustad <[email protected]> wrote:
> > I am having difficulty starting up Tomcat 5.0.30 with AspectWerkz 2.0.
> >
> > I have followed the tutorials on the wiki, but I am not sure if they
> > are out of date or not.
> >
> > Anyway, this is how I have things configured.
> >
> > Using JAVA_HOME:       c:\Program Files\Java\jdk1.5.0_05
> > JAVA_OPTS=-javaagent:lib/aspectwerkz-jdk5-2.0.jar
> > RUNJAVA=/cygdrive/c/Program Files/Java/jdk1.5.0_05//bin/java
> > CATALINA_OPTS=-Dbuild.compiler.emacs=true
> > CLASSPATH=c:\Program
> > Files\Java\jdk1.5.0_05\lib\tools.jar;c:\p4workspace\NNGSadmin\main\admin\devlib\aspectwerkz-2.0;c:\p4workspace\NNGSadmin\main\admin\devlib\jakarta-tomcat-5.0.30\bin\bootstrap.jar;c:\p4workspace\NNGSadmin\main\admin\devlib\jakarta-tomcat-5.0.30\bin\commons-logging-api.jar
> >
> > the path to aspectwerkz home directory is correctly set.
> >
> > When I run the start up script, I am presented with the following errors:
> >
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
> > Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode)
> > Error occurred during initialization of VM
> > agent library failed to init: instrument
> > Error opening zip file: lib/aspectwerkz-jdk5-2.0.jar
> >
> > Is there error suggesting that it can't find the jar? Do I have the
> > correct jar for the VM(I assume that I do).
> >
> > Any help is greatly appreciated.
> > Thanks!
> > Aaron.
> >
>
>
> --
> Jonas Bonér
> Terracotta, Inc.
>
> http://jonasboner.com
> http://www.terracottatech.com
>