Re: [aspectwerkz-user] How to start aspectwerkz in Jdk1.3.1

"Alexandre Vasseur" <[email protected]> Fri, 27 Jul 2007 10:10:23 +0200
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
------=_Part_1514_16602391.1185523823439
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

http://aspectwerkz.codehaus.org/weaving.html#How_to_choose_the_right_option
does this helps ?


On 7/26/07, [email protected] <
[email protected]> wrote:
>
>  Hi,
>
> I am using PreparedBootClassPath to start aspectwerkz in JDk 1.3.1.
>
> *I prepared enhanced.jar using *
> **
> set CLASSPATH=aspectwerkz-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=2.0
> set DEPS=... // AspectWerkz dependencies - see bin/setEnv for the complete
> list
> set BOOT_PATH=aspectwerkz-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 :
>
> ===================
>
> HotSwap not supported by this java version, using bootclasspath: .\_boot
> d:\java\jdk131_03\jre\bin\java -Xbootclasspath/p:".\_boot" -
> Daspectwerkz.home=D:\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.
>
> 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.
>
> www.wipro.com
>

------=_Part_1514_16602391.1185523823439
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<a href="http://aspectwerkz.codehaus.org/weaving.html#How_to_choose_the_right_option">http://aspectwerkz.codehaus.org/weaving.html#How_to_choose_the_right_option</a><br>does this helps ?<br><br><br><div><span class="gmail_quote">
On 7/26/07, <b class="gmail_sendername"><a href="mailto:[email protected]">[email protected]</a></b> &lt;<a href="mailto:[email protected]">[email protected]
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div>
<div dir="ltr">
<div dir="ltr"><font color="#000000" face="Courier New" size="2">Hi,</font></div>
<div dir="ltr"><font face="Courier New" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Courier New" size="2">I am using PreparedBootClassPath to start aspectwerkz in JDk 1.3.1.</font></div>
<div dir="ltr"><font face="Courier New" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Courier New" size="2"><strong>I prepared enhanced.jar using </strong></font></div>
<div dir="ltr"><strong><font face="Courier New" size="2"></font></strong>&nbsp;</div>
<div dir="ltr"><font size="2"><font size="3"><font face="Courier New" size="2">set CLASSPATH=aspectwerkz-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="2"><font size="3"><font size="2"></font></font></font></div>
<p><font size="2"><font size="3"><font face="Courier New" size="2"><strong>In the startup I used the following ... as said in the document</strong></font></font></font></p>
<p><font size="2"><font size="3"><font><font face="Courier New" size="2"># set AspectWerkz version and libs dependencies<br>set VERSION=2.0<br>set DEPS=... // AspectWerkz dependencies - see bin/setEnv for the complete list
<br>set BOOT_PATH=aspectwerkz-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>&nbsp;&nbsp;&nbsp; .. -cp aspectwwerkz-$VERSION.jar:$DEPS:...
</font></font></font></font></p>
<p><font face="Arial" size="2"><font size="3"><font face="Courier New"><font size="2">1.&nbsp; Should I use<strong> org.codehaus.aspectwerkz.hook.ProcessStarter</strong> for starting aspectwerkz ?</font></font></font></font></p>

<p><font face="Courier New" size="2">2.&nbsp; If I use org.codehaus.aspectwerkz.hook.ProcessStarter in the startup script, I got the following error :</font></p>
<p><font face="Courier New" size="2">===================</font></p>
<p><font color="#0000ff">HotSwap not supported by this java version, using bootclasspath: .\_boot<br>d:\java\jdk131_03\jre\bin\java -Xbootclasspath/p:&quot;.\_boot&quot; -Daspectwerkz.home=D:\aspectwerkz&nbsp; -cp &quot;&quot; FirstExample
<br>java.lang.NoClassDefFoundError: org/codehaus/aspectwerkz/hook/impl/ClassPreProcessorHelper<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.defineClass(ClassLoader.java:488)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:106)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader.access$100(URLClassLoader.java:51)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader$1.run(
URLClassLoader.java:190)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.security.AccessController.doPrivileged(Native Method)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader.findClass(URLClassLoader.java:183)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java
:294)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:250)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
<br>Exception in thread &quot;main&quot;</font></p>
<p><font color="#0000ff">Any help is appreciated.</font><font face="Arial" size="2"><font size="3"></font></font></p><font color="#000000" face="Arial" size="2"></font>
<div dir="ltr"><pre>Thanks and Regards,<br>Lalithamba.<br></pre></div></div>
<table><tbody><tr><td bgcolor="#ffffff"><font color="#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>
<a href="http://www.wipro.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.wipro.com</a><br>
</font></td></tr></tbody></table></blockquote></div><br>

------=_Part_1514_16602391.1185523823439--