how to sotp jboss application server on linux

WAS
WAS used Ask the Experts™
on
how to sotp jboss application server on linux

i am using jboss AS 5.1 on linux 5.7

[webadmin@centos5 ~]$ /app/govi/jboss-5.1.0.GA/bin/shutdown.sh -S
Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused]]]
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1763)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at org.jboss.Shutdown.main(Shutdown.java:219)
Caused by: javax.naming.CommunicationException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused]]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:335)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
        ... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
        ... 5 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
        at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:301)
        ... 5 more
[webadmin@centos5 ~]$
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
first of all check that your server is running by executing following command on unix shell:
ps -ef | grep jboss

or try to access jmx-console of your server.

If it is running probably you did bind it to specific IP address by providing -b parameter to run.sh
if you did it like that then you can use -s option with URL to your server:

./shutdown.sh -s your_binded_ip_address:1099 -S
WASIT Analyst

Author

Commented:
what is 1099 ? is it a port ? if not what it is?
also my jboss runs on port 8080 ,
1099 is an rmi port. 8080 is http port which is used for webapplications deployed on jboss
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

WASIT Analyst

Author

Commented:
got it
where can i change rmi port in jboss ?
you don't have to change it. You should just point to it in your shutdown.sh call.
by the way what happens then you call:
./shutdown.sh -s jnp://your_binded_ip_address:1099 -S
WASIT Analyst

Author

Commented:
it's working , but i want to know where i find the rmi port in jboss filesystem
in jboss there is a following configuration file jboss-5.1.0.GA\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml defines major set of ports in jboss.

If you search for jboss:service=Naming there you will see that one of parameters defines port 1099
WASIT Analyst

Author

Commented:
Hi Rama,
Thanks for helping, sorry i forgot to close this ticket.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial