ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Seeger <see...@sitewaerts.de>
Subject Re: Starting Jboss server
Date Tue, 21 Mar 2006 17:36:40 GMT
Hi Eric, I am not sure if I understand what you mean. I haven't deployed a 
single war in jboss yet, it looks like you can just put them into the deploy 
folder, as archive or extracted.

So far, I only used a ear which includes the ejbs and wars, redeploy works 
fine...


Felix



Am Tuesday, 21. March 2006 18:06 schrieb Ferrer, Eric:
> This email came at a good time as I am porting from Websphere to JBoss.
> Do you have an example of deploying a war?  I currently delete the
> explode files prior to a new war deploy on Websphere 5.1 and then push
> out my new war.  I would like to do the same on JBoss
>
> Thanks.
>
> -----Original Message-----
> From: Felix Seeger [mailto:seeger@sitewaerts.de]
> Sent: Tuesday, March 21, 2006 8:00 AM
> To: Ant Users List
> Subject: Re: Starting Jboss server
>
> 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"
>               classpathref="jboss.classpath"
>               fork="true"
>               maxmemory="300m"
>               dir="${as_server_root}">
>
>             <!-- 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="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5001"/>
>             <jvmarg value="-Djava.compiler=NONE"/>
>
>             <!-- JBoss args -->
>             <jvmarg
> value="-Djava.endorsed.dirs=${as_server_root}/lib/endorsed"/>
>
>             <!-- 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"/>
> 		   </category>
> 	    -->
>             <jvmarg
> value="-Dlog4j.configuration=file:///path_to_log_config.xml"/>
> 	    <!-- System outs should not get catched -->
>             <jvmarg
> value="-Dorg.jboss.logging.Log4jService.catchSystemOut=false"/>
>             <jvmarg
> value="-Dorg.jboss.logging.Log4jService.catchSystemErr=false"/>
>         </java>
>
>
>
>
> Felix
>
> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message