ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Blanc <Sebastien.Bl...@alcatel.com>
Subject Re: JBoss Start
Date Tue, 03 Feb 2004 20:12:35 GMT
Hi !
first try to locate in which jar this class is defined, then it is part of the jboss runtime,
then u may need some sysproperties such as:

     <sysproperty key="jboss.server.name" value="${jbossServerName}"/>
      <sysproperty key="jboss.server.base.dir" value="${runtime.dir}/jboss/server"/>
      <sysproperty key="jboss.server.base.url" value="file:${runtime.dir}/jboss/server"/>

seb.

Green Bean wrote:

> 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!


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message