ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Seeger <>
Subject Re: Starting Jboss server
Date Tue, 21 Mar 2006 15:00:22 GMT
Hi Harshal,

you can start jboss in a <java... task. IMO this is really better as it works 
on more platforms, doesn't depend on a script and you can change vmparams 
very easy or use project wide configurations.

Use something like this, all you need in the jboss.classpath is 
${as_server_root}/bin/run.jar and log4j.jar, where as_server_root is 
e.g. /opt/jboss.

        <java classname="org.jboss.Main"

            <!-- You configuration e.g. jboss_root/server/myconf/ -->
            <arg value="--configuration=YOUR_CONFIGURATION"/>

            <!-- Extra Java args -->
            <jvmarg value="-XX:MaxPermSize=128m"/>

            <!-- remote debugging -->
            <jvmarg value="-Xdebug"/>
            <jvmarg value="-Xnoagent"/>
            <jvmarg value="-Djava.compiler=NONE"/>

            <!-- JBoss args -->

            <!-- Your args, usefull could be: -->
	    <!-- You need to add a category name="org.jboss" in your log4j config to
	 	  change loglevel to console:
		    <category name="org.jboss" additivity="false">
		        <priority value="info"/>
		        <appender-ref ref="CONSOLE"/>
	    <!-- System outs should not get catched -->


Am Monday, 20. March 2006 18:34 schrieb Harshal Chavda:
> Hello to all users
> My configuration is
> --pentium 4,CPU  3GHz,512 MB RAM,windows XP professional
> --JDK 1.5,Ant 1.6.3,Tomcat 4.1,Cruisecontrol 2.2.1
> I have downloaded Jboss server(versiuon-3.2.5) and have not made any
> changes in any file of the downloaded zipped folder.
>   When I start the JBoss server(using command prompt) using the
> following code:
> -------------------------------------------------------------------
>      <exec    dir="G:\BE_Project\jboss-3.2.5\bin" executable="run.bat"/>
> -------------------------------------------------------------------
> the run.bat opens throwing some exceptions(I have attached the
> result(JBoss.rar) I get on using the above code) and as result the
> server does not start, also when I use the shutdown.bat the server does
> not close(which is yet to start).
>   Am I suppose to make any changes in the run.bat file or set some
> environment variables, If yes please specify what to change(with some
> example).
> Thanks in advance
> Harshal

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message