[aspectwerkz-user] How to start aspectwerkz in Jdk1.3.1
<[email protected]> Thu, 26 Jul 2007 19:35:23 +0530
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
------_=_NextPart_001_01C7CF8E.02162FFD
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
=20
I am using PreparedBootClassPath to start aspectwerkz in JDk 1.3.1.
=20
I prepared enhanced.jar using=20
=20
set CLASSPATH=3Daspectwerkz-core.jar:JAVA_HOME/lib/tools.jar
java -cp $CLASSPATH org.codehaus.aspectwerkz.hook.Plug -target=
/path/to/enhanced.jar
In the startup I used the following ... as said in the document
# set AspectWerkz version and libs dependencies
set VERSION=3D2.0
set DEPS=3D... // AspectWerkz dependencies - see bin/setEnv for the=
complete list
set BOOT_PATH=3Daspectwerkz-core-$VERSION.jar
# standard usage with -Xbootclasspath/p: pointing to step 1 generated jar
java -Xbootclasspath/p:/path/to/enhanced.jar -Xbootclasspath/a:$BOOT_PATH=
..
.. -cp aspectwwerkz-$VERSION.jar:$DEPS:...
1. Should I use org.codehaus.aspectwerkz.hook.ProcessStarter for starting=
aspectwerkz ?
2. If I use org.codehaus.aspectwerkz.hook.ProcessStarter in the startup=
script, I got the following error :
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
HotSwap not supported by this java version, using bootclasspath: .\_boot
d:\java\jdk131_03\jre\bin\java -Xbootclasspath/p:".\_boot"=
-Daspectwerkz.home=3DD:\aspectwerkz -cp "" FirstExample
java.lang.NoClassDefFoundError:=
org/codehaus/aspectwerkz/hook/impl/ClassPreProcessorHelper
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at=
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
Exception in thread "main"
Any help is appreciated.
Thanks and Regards,
Lalithamba.
The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and=
may contain proprietary, confidential or privileged information. If you=
are not the intended recipient, you should not disseminate, distribute or=
copy this e-mail. Please notify the sender immediately and destroy all=
copies of this message and any attachments.=20
WARNING: Computer viruses can be transmitted via email. The recipient=
should check this email and any attachments for the presence of viruses.=
The company accepts no liability for any damage caused by any virus=
transmitted by this email.
=20
www.wipro.com
------_=_NextPart_001_01C7CF8E.02162FFD
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<HTML dir=3Dltr><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">
<META content=3D"MSHTML 6.00.2900.3132" name=3DGENERATOR></HEAD>
<BODY>
<DIV id=3DidOWAReplyText52425 dir=3Dltr>
<DIV dir=3Dltr><FONT face=3D"Courier New" color=3D#000000 size=
=3D2>Hi,</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2>I am using=
PreparedBootClassPath to start aspectwerkz in JDk 1.3.1.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV dir=3Dltr><FONT face=3D"Courier New" size=3D2><STRONG>I prepared=
enhanced.jar using </STRONG></FONT></DIV>
<DIV dir=3Dltr><STRONG><FONT face=3D"Courier New" size=
=3D2></FONT></STRONG> </DIV>
<DIV dir=3Dltr><FONT size=3D2><FONT size=3D3><FONT face=3D"Courier New"=
size=3D2>set CLASSPATH=
=3Daspectwerkz-core.jar:JAVA_HOME/lib/tools.jar<BR>java -cp $CLASSPATH=
org.codehaus.aspectwerkz.hook.Plug -target=
/path/to/enhanced.jar</FONT></FONT></FONT></DIV><FONT size=3D2><FONT size=
=3D3><FONT size=3D2></FONT></FONT></FONT></DIV>
<P><FONT size=3D2><FONT size=3D3><FONT face=3D"Courier New" size=
=3D2><STRONG>In the startup I used the following ... as said in the=
document</STRONG></FONT></FONT></FONT></P>
<P><FONT size=3D2><FONT size=3D3><FONT><FONT face=3D"Courier New" size=
=3D2># set AspectWerkz version and libs dependencies<BR>set VERSION=
=3D2.0<BR>set DEPS=3D... // AspectWerkz dependencies - see bin/setEnv for=
the complete list<BR>set BOOT_PATH=
=3Daspectwerkz-core-$VERSION.jar<BR><BR># standard usage with=
-Xbootclasspath/p: pointing to step 1 generated jar<BR>java=
-Xbootclasspath/p:/path/to/enhanced.jar -Xbootclasspath/a:$BOOT_PATH=
..<BR> .. -cp=
aspectwwerkz-$VERSION.jar:$DEPS:...</FONT></FONT></FONT></FONT></P>
<P><FONT face=3DArial size=3D2><FONT size=3D3><FONT face=3D"Courier=
New"><FONT size=3D2>1. Should I use<STRONG>=
org.codehaus.aspectwerkz.hook.ProcessStarter</STRONG> for starting=
aspectwerkz ?</FONT></FONT></FONT></FONT></P>
<P><FONT face=3D"Courier New" size=3D2>2. If I use=
org.codehaus.aspectwerkz.hook.ProcessStarter in the startup script, I got=
the following error :</FONT></P>
<P><FONT face=3D"Courier New" size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D</FONT></P>
<P><FONT color=3D#0000ff>HotSwap not supported by this java version, using=
bootclasspath: .\_boot<BR>d:\java\jdk131_03\jre\bin\java=
-Xbootclasspath/p:".\_boot" -Daspectwerkz.home=3DD:\aspectwerkz -cp=
"" FirstExample<BR>java.lang.NoClassDefFoundError:=
org/codehaus/aspectwerkz/hook/impl/ClassPreProcessorHelper<BR> =
at=
java.lang.ClassLoader.defineClass(ClassLoader.java:488)<BR> &nb=
sp; at=
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)<BR=
> at=
java.net.URLClassLoader.defineClass(URLClassLoader.java:243)<BR> &nbs=
p; at=
java.net.URLClassLoader.access$100(URLClassLoader.java:51)<BR> =
at=
java.net.URLClassLoader$1.run(URLClassLoader.java:190)<BR> &nbs=
p; at=
java.security.AccessController.doPrivileged(Native=
Method)<BR> at=
java.net.URLClassLoader.findClass(URLClassLoader.java:183)<BR> =
at=
java.lang.ClassLoader.loadClass(ClassLoader.java:294)<BR>  =
; at=
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)<BR> &nb=
sp; at=
java.lang.ClassLoader.loadClass(ClassLoader.java:250)<BR>  =
; at=
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)<BR>Exception=
in thread "main"</FONT></P>
<P><FONT color=3D#0000ff>Any help is appreciated.</FONT><FONT face=3DArial=
size=3D2><FONT size=3D3></P></FONT></FONT><FONT face=3DArial color=
=3D#000000 size=3D2></FONT>
<DIV id=3DidSignature94467 dir=3Dltr><PRE>
Thanks and Regards,
Lalithamba.
</PRE></DIV></BODY></HTML>
<table><tr><td bgcolor=3D#ffffff><font color=3D#000000><br>
The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and=
may contain proprietary, confidential or privileged information. If you=
are not the intended recipient, you should not disseminate, distribute or=
copy this e-mail. Please notify the sender immediately and destroy all=
copies of this message and any attachments. <br>
<br>
WARNING: Computer viruses can be transmitted via email. The recipient=
should check this email and any attachments for the presence of viruses.=
The company accepts no liability for any damage caused by any virus=
transmitted by this email.<br>
<br>
www.wipro.com<br>
</font></td></tr></table>
------_=_NextPart_001_01C7CF8E.02162FFD--