Bugs item #1035252, was opened at 2004-09-26 20:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1035252&group_id=22866

Category: Build System
Group: v4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Craig Johannsen (cjohan)
Assigned to: Nobody/Anonymous (nobody)
Summary: javassist missing

Initial Comment:
For the AOP annotation example, the build.xml file is
incorrect in several ways:
1.) It does not pick up the jboss version of ant.
2.) It does not find the proper jar files.

The effect is that one runs ant and gets messages about
some ant tasks not found.  Then, when that is fixed,
one gets messages about classes not found, due to the
improperly defined classpaths.

What is the intention of this build file?  Where was it
supposed to find the jars?

Here is an example fix that works only after the user
has built the source by running build.sh:

[EMAIL PROTECTED] annotation]$ diff build_orig.xml
build.xml
3a4,8
>    <property name="rel" value="jboss-4.0.0" />
>    <property name="jboss.lib"
value="../../../../build/output/${rel}/lib" />
>    <property name="jboss.all.lib"
value="../../../../build/output/${rel}/server/all/lib" />
>    <property name="aop.jdk1.5.lib"
value="../../../output/lib" />
>    <property name="thirdparty"
value="../../../../thirdparty" />
6c11
<          <pathelement path="../../../javassist.jar"/>
---
>          <pathelement
path="${jboss.all.lib}/javassist.jar"/>
10c15
<          <pathelement path="../../../trove.jar"/>
---
>          <pathelement
path="${thirdparty}/trove/lib/trove.jar"/>
14c19
<          <pathelement path="../../../concurrent.jar"/>
---
>          <pathelement
path="${jboss.lib}/concurrent.jar"/>
18c23
<          <pathelement path="../../../jboss-common.jar"/>
---
>          <pathelement
path="${jboss.lib}/jboss-common.jar"/>
22c27,28
<          <pathelement
path="../../../jboss-aop-jdk15.jar"/>
---
>          <pathelement
path="${aop.jdk1.5.lib}/jboss-aop-jdk15.jar"/>
>        <pathelement
path="${aop.jdk1.5.lib}/jboss-aop.jar"/>
26c32
<          <pathelement path="../../../qdox.jar"/>
---
>          <pathelement path="${thirdparty}/qdox.jar"/>

Except javassist.jar was missing, so I'm not positive
the above fix is completely correct.  Copying the
javassist.jar from RC1 resulted in a NoClassDefFoundError:
compile:
     [aopc] [debug] jboss.aop.class.path is NULL
     [aopc] [debug] jboss.aop.search.classpath: 'null' true
     [aopc] [debug] jboss.aop.path:
/home/craigj/jboss-4.0.0-src/aop/docs/examples/annotation/jboss-aop.xml
     [aopc] jboss.aop.path[0]:
/home/craigj/jboss-4.0.0-src/aop/docs/examples/annotation/jboss-aop.xml
     [aopc] [deploying]
file:/home/craigj/jboss-4.0.0-src/aop/docs/examples/annotation/jboss-aop.xml
     [aopc] [deploy] <bind>
file:/home/craigj/jboss-4.0.0-src/aop/docs/examples/annotation/jboss-aop.xml
     [aopc] [deploy] <bind>
file:/home/craigj/jboss-4.0.0-src/aop/docs/examples/annotation/jboss-aop.xml
     [aopc] [deploy] <bind>
file:/home/craigj/jboss-4.0.0-src/aop/docs/examples/annotation/jboss-aop.xml
     [aopc] Exception in thread "main"
java.lang.NoClassDefFoundError:
javassist/bytecode/AnnotationsAttribute
     [aopc]     at
org.jboss.aop.AspectManager.translate(AspectManager.java:470)
     [aopc]     at
org.jboss.aop.AspectManager.transform(AspectManager.java:404)
     [aopc]     at
org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:201)
     [aopc]     at
org.jboss.aop.standalone.Compiler.compile(Compiler.java:162)
     [aopc]     at
org.jboss.aop.standalone.Compiler.main(Compiler.java:61)




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1035252&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to