Unable to Run JBoss as Service using Wrapper on Fedora 8

View: New views
2 Messages — Rating Filter:   Alert me  

Unable to Run JBoss as Service using Wrapper on Fedora 8

by James Dekker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello there,

I am having trouble running JBoss as a service on a remote Fedora 8  
(32 bit) server through which I access by doing SSH...

Have installed JBoss 5.1.0 GA under the root user and didn't create a  
jboss user.

Installed the wrapper from Tanuki Software and followed the  
instructions...

http://wrapper.tanukisoftware.org/doc/english/integrate-simple-nix.html

My wrapper.conf looks like this:

wrapper.java.command=/usr/java/jdk/bin/java
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.java.classpath.1=/usr/jboss-5.1.0.GA/lib/wrapper.jar
wrapper.java.classpath.2=/usr/jboss-5.1.0.GA/bin/run.jar
wrapper.java.classpath.3=/usr/java/jdk/lib/tools.jar
wrapper.java.library.path.1=/usr/jboss-5.1.0.GA/lib/
wrapper.java.additional.auto_bits=TRUE

# Java Additional Parameters
wrapper.java.additional.1=-Dprogram.name=run.sh
wrapper.java.additional.2=-Dorg.jboss.resolver.warning=true
wrapper.java.additional.3=-Dsun.rmi.dgc.client.gcInterval=3600000
wrapper.java.additional.4=-Dsun.rmi.dgc.server.gcInterval=3600000
wrapper.java.additional.5=-Djboss.bind.address=0.0.0.0
wrapper.java.additional.6=-Xdebug-Xrunjdwp:transport=dt_socket
wrapper.java.additional.7=-Djava.net.preferIPv4Stack=true

# Initial Java Heap Size (in MB )
wrapper.java.initmemory=128
#-Xms128m -Xmx512m -XX:MaxPermSize=256m
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=256

# Application parameters.  Add parameters as needed starting from 1
wrapper.app.parameter.1=org.jboss.Main

Now, when I go to $JBOSS_HOME/bin and type in jboss console

It runs and I am able to launch a browser and see the JBoss Management  
Console by doing this:

http://serveripaddress:8080

But since I am logging into this server using SSH, whenever I close  
the SSH terminal bash shell's window,

It shutdowns and I am unable to view the jBoss Management Console:

http://serveripaddress:8080

"Page cannot be displayed"....

Is there a way to keep JBoss running by being able to close the remote  
SSH session?

Would appreciate if someone could help me with this or point me in the  
right direction...

-James

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user

Re: Unable to Run JBoss as Service using Wrapper on Fedora 8

by Leif Mortenson-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

James,
UNIX OSs normally kill all processes launched by a terminal session
when that terminal is closed to prevent zombie processes from being
left around.

When you run "jboss console", you are telling the Wrapper to run the
Wrapper directly within that terminal so the console output can be
viewed directly.

If you want the Wrapper to remain after the terminal is closed, the
Wrapper must detach itself and run as a daemon process.  This is done
by running "jboss start".   You can then stop the Wrapper by running
"jboss stop".

Hope this helps,
Cheers,
Leif

On Sat, Aug 1, 2009 at 8:03 AM, James Dekker<james.dekker@...> wrote:

> Hello there,
>
> I am having trouble running JBoss as a service on a remote Fedora 8
> (32 bit) server through which I access by doing SSH...
>
> Have installed JBoss 5.1.0 GA under the root user and didn't create a
> jboss user.
>
> Installed the wrapper from Tanuki Software and followed the
> instructions...
>
> http://wrapper.tanukisoftware.org/doc/english/integrate-simple-nix.html
>
> My wrapper.conf looks like this:
>
> wrapper.java.command=/usr/java/jdk/bin/java
> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
> wrapper.java.classpath.1=/usr/jboss-5.1.0.GA/lib/wrapper.jar
> wrapper.java.classpath.2=/usr/jboss-5.1.0.GA/bin/run.jar
> wrapper.java.classpath.3=/usr/java/jdk/lib/tools.jar
> wrapper.java.library.path.1=/usr/jboss-5.1.0.GA/lib/
> wrapper.java.additional.auto_bits=TRUE
>
> # Java Additional Parameters
> wrapper.java.additional.1=-Dprogram.name=run.sh
> wrapper.java.additional.2=-Dorg.jboss.resolver.warning=true
> wrapper.java.additional.3=-Dsun.rmi.dgc.client.gcInterval=3600000
> wrapper.java.additional.4=-Dsun.rmi.dgc.server.gcInterval=3600000
> wrapper.java.additional.5=-Djboss.bind.address=0.0.0.0
> wrapper.java.additional.6=-Xdebug-Xrunjdwp:transport=dt_socket
> wrapper.java.additional.7=-Djava.net.preferIPv4Stack=true
>
> # Initial Java Heap Size (in MB )
> wrapper.java.initmemory=128
> #-Xms128m -Xmx512m -XX:MaxPermSize=256m
> # Maximum Java Heap Size (in MB)
> wrapper.java.maxmemory=256
>
> # Application parameters.  Add parameters as needed starting from 1
> wrapper.app.parameter.1=org.jboss.Main
>
> Now, when I go to $JBOSS_HOME/bin and type in jboss console
>
> It runs and I am able to launch a browser and see the JBoss Management
> Console by doing this:
>
> http://serveripaddress:8080
>
> But since I am logging into this server using SSH, whenever I close
> the SSH terminal bash shell's window,
>
> It shutdowns and I am unable to view the jBoss Management Console:
>
> http://serveripaddress:8080
>
> "Page cannot be displayed"....
>
> Is there a way to keep JBoss running by being able to close the remote
> SSH session?
>
> Would appreciate if someone could help me with this or point me in the
> right direction...
>
> -James

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user