Re: [aspectwerkz-user] Exception in offline weaving - xerces.jar

"Alexandre Vasseur" <[email protected]> Sun, 12 Aug 2007 18:09:55 +0200
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
------=_Part_29144_4989301.1186934995170
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi
AspectWerkz requires a SAX parser. You should check why the app is having an
error when Xerces is used, or try other parser maybe
Alex


On 8/9/07, [email protected] <
[email protected]> wrote:
>
>  Hi,
>
> We are using Aspectwerkz offline weaving to weave the classes in
> broadvision environment with jdk 1.3.1.
>
> Now in their broadvision application, it refers to xerces.jar in the
> classpath.
>
> Now to start aspectwerkz in broadvision we have added the following lines
> having xerces.jar in the xbootclasspath, in -cp option and
> also                          -
> Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser as below.
>
> jvm.init.option.7=
> "-Xbootclasspath/p:/home/patnipb/bv1to1_var/backend_services/enhanced.jar"
>
>  jvm.init.option.8=
> "-Xbootclasspath/a:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/aspectwerkz-
> 2.0.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/trove-1.0.2.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/dom4j-1.4.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/jrexx-1.1.1.jar:/home/patnipb/eprofiler/eLib/xerces.jar:/home/patnipb/eprofiler/eLib/eProfiler.jar-cp /home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/aspectwerkz-
> 2.0.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/aspectwerkz-core-2.0.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/trove-1.0.2.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/dom4j-1.4.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/jrexx-1.1.1.jar:/home/patnipb/eprofiler/eLib/xerces.jar:/home/patnipb/eprofiler/eLib/eProfiler.jar
> "
>
>  jvm.init.option.9="-
> Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -
> Daspectwerkz.home=/home/patnipb/bv1to1_var/backend_services/aspectwerkz -
> Daspectwerkz.transform.verbose=true -Daspectwerkz.transform.details=true -
> Djavax.xml.parsers.SAXParserFactory=com.bluecast.xml.JAXPSAXParserFactory"
>
>
>    1. Now since *xerces.jar* is referred by their application and also
>    aspectwerkz in the startup script, we get an error in the application.
>    2. If I don't add xerces.jar in the options above, then I get an
>    error as below : java.lang.ExceptionInInitializerError:
>    org.codehaus.aspectwerkz.aspect.management.NoAspectBoundException:
>    NoAspectBound: Could not find AspectDefinition -
>
>
> 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_29144_4989301.1186934995170
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi</div>
<div>AspectWerkz requires a SAX parser. You should check why the app is having an error when Xerces is used, or try other parser maybe</div>
<div>Alex<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 8/9/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="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr">
<div dir="ltr"><font face="Courier New" color="#000000" 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">We are using Aspectwerkz offline weaving to weave the classes in broadvision environment with 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">Now in their broadvision application, it refers to xerces.jar in the classpath.</font></div>
<div dir="ltr"><font face="Courier New" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Courier New" size="2">Now to start aspectwerkz in broadvision we have added the following lines having xerces.jar in the xbootclasspath, in -cp option and also&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
 as below.</font></div>
<div dir="ltr"><font face="Courier New" size="2"></font>&nbsp;</div>
<div dir="ltr"><font size="2">jvm.init.option.7=&quot;-Xbootclasspath/p:/home/patnipb/bv1to1_var/backend_services/enhanced.jar&quot;</font></div>
<div dir="ltr"><font size="2"><br>&nbsp;jvm.init.option.8=&quot;-Xbootclasspath/a:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/aspectwerkz-2.0.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/trove-1.0.2.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/dom4j-1.4.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/jrexx-1.1.1.jar:/home/patnipb/eprofiler/eLib/xerces.jar:/home/patnipb/eprofiler/eLib/eProfiler.jar
 -cp /home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/aspectwerkz-2.0.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/aspectwerkz-core-2.0.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/trove-1.0.2.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/dom4j-1.4.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/jrexx-1.1.1.jar:/home/patnipb/eprofiler/eLib/xerces.jar:/home/patnipb/eprofiler/eLib/eProfiler.jar
&quot;</font></div>
<div dir="ltr"><font size="2"></font>&nbsp;</div>
<div dir="ltr"><font size="2">&nbsp;jvm.init.option.9=&quot;-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Daspectwerkz.home=/home/patnipb/bv1to1_var/backend_services/aspectwerkz -Daspectwerkz.transform.verbose=true
 -Daspectwerkz.transform.details=true -Djavax.xml.parsers.SAXParserFactory=com.bluecast.xml.JAXPSAXParserFactory&quot;</font></div>
<div dir="ltr"><font size="2"></font>&nbsp;</div>
<ol dir="ltr">
<li>
<div><font face="Courier New" size="2">Now since <strong>xerces.jar</strong> is referred by their application and also aspectwerkz in the startup script, we get an error in the application.</font></div>
<li>
<div><font face="Courier New"><font size="2">If I don&#39;t add xerces.jar in the options above, then I get an error as below : </font><font color="#000000" size="2"><font color="#0000ff">java.lang.ExceptionInInitializerError
: org.codehaus.aspectwerkz.aspect.management.NoAspectBoundException: NoAspectBound: Could not find AspectDefinition</font> - </font></font></div></li></li></ol>
<div dir="ltr"><font face="Courier New" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Courier New" size="2">Any help is appreciated.</font></div></div>
<div dir="ltr"><pre><font size="2">Thanks and Regards,
Lalithamba.
</font></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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.wipro.com/" target="_blank">www.wipro.com</a><br></font></td></tr></tbody></table></blockquote></div><br>

------=_Part_29144_4989301.1186934995170--