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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to