sorry for my first post here.. i forgot to explain the problem..
I developed a simple "Hello World" program where the main calls a
function which prints out "World" and a interceptor prints out "Hello".
ok. in eclipse this works fine. Then i downloaded JBoss AOP from here (is this
the right one?) and ANT 1.6.
Then i tried to write a build.xml file with which i want to Compile the
programm, precompile with AOPC, build a jar file and run it.
I get no errors at compiling and precompiling and creating the jar file.
But when i try to run the jar file i get this errors:
EDV/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap
i realy don't know what this means... I use no package in this project.
Here is the .xml file
| <?xml version="1.0"?>
| <project name="HelloAOP" default="compile">
|
| <target name="prepare" >
|
| <property environment="env"/>
| <property name="src.dir" value="${basedir}/src"/>
| <property name="src.resources" value="${basedir}/src/resources"/>
| <property name="jboss.home" value="${env.JBOSS_HOME}"/>
| <property name="build.dir" value="${basedir}/build"/>
| <property name="build.classes.dir" value="${build.dir}/classes"/>
|
| <path id="javassist.classpath">
| <pathelement path="${jboss.home}/lib/javassist.jar"/>
| </path>
|
| <path id="trove.classpath">
| <pathelement path="${jboss.home}/lib/trove.jar"/>
| </path>
|
| <path id="concurrent.classpath">
| <pathelement path="${jboss.home}/lib/concurrent.jar"/>
| </path>
|
| <path id="jboss.common.classpath">
| <pathelement path="${jboss.home}/lib/jboss-common.jar"/>
| </path>
|
| <path id="jboss.aop.classpath">
| <pathelement path="${jboss.home}/lib/jboss-aop.jar"/>
| </path>
|
| <path id="lib.classpath">
| <path refid="javassist.classpath"/>
| <path refid="trove.classpath"/>
| <path refid="jboss.aop.classpath"/>
| <path refid="jboss.common.classpath"/>
| <path refid="concurrent.classpath"/>
| </path>
|
| <path id="classpath">
| <path refid="lib.classpath"/>
| <path refid="jboss.aop.classpath"/>
| </path>
|
| <property name="build.classpath" refid="jboss.aop.classpath"/>
|
| <taskdef name="aopc" classname="org.jboss.aop.ant.AopC"
classpathref="jboss.aop.classpath"/>
|
| <mkdir dir="${build.dir}"/>
| <mkdir dir="${build.classes.dir}"/>
|
| </target>
|
| <target name="compile" depends="prepare" >
| <javac srcdir="${src.dir}"
| destdir="${build.classes.dir}"
| debug="on"
| deprecation="on"
| classpathref="classpath"
| optimize="off"
| includes="**">
| </javac>
| <available property="jboss.aop.classpath" value="classpath"
file="${jboss.home}/lib/jboss-aop.jar" />
| </target>
|
|
|
| <target name="aopc" depends="compile">
| <aopc compilerclasspathref="classpath" verbose="true">
| <classpath path="./build/classes/"/>
| <src path="./build/classes/"/>
| <aoppath path="jboss-aop.xml"/>
| <aopclasspath path="${jboss.home}/lib/jboss-aspect-library.jar"/>
| </aopc>
| </target>
|
| <target name="jar" depends="aopc">
| <jar jarfile="build/HelloAOP.jar" basedir="${build.dir}/classes">
| <fileset dir=".">
| <include name="jboss-aop.xml"/>
| </fileset>
| <manifest>
| <attribute name="Built-By" value="${user.name}"/>
| <section name="HelloAOP">
| </section>
| </manifest>
| </jar>
| </target>
|
| <target name="run">
| <java classname="HelloAOP"
| >
| <arg value="-h"/>
| <classpath>
| <pathelement location="build/HelloAOP.jar"/>
| <pathelement path="${java.class.path}"/>
| </classpath>
|
| </java>
|
| </target>
|
| </project>
|
|
|
PS: I am a real beginner with JBoss and Ant.
plz help :-)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869877#3869877
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869877
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user