I am trying to start jboss with a java target. I am getting the following error:
java.lang.NoClassDefFoundError: javax/servlet/ServletContext
I have attempted to duplicate the classpath found in the start script. I thought the jboss
created its own classloaders to do the rest. What am I doing incorrectly here?
<target name="startjboss">
<java classname="org.jboss.Main" classpath="all" fork="yes">
<classpath>
<pathelement location="${jboss.home}/bin/run.jar"/>
<pathelement location="${java.home}/lib/tools.jar"/>
<pathelement location="${jboss.home}/bin"/>
</classpath>
<jvmarg value="-server"/>
<jvmarg value="-Xms1024m"/>
<jvmarg value="-Xmx1024m"/>
<jvmarg value="-Djava.library.path=${Root}/bin/lib/windows"/>
<arg value="-c"/>
<arg value="gat"/>
</java>
</target>
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
|