Using run.jar and shutdown.jar in minimal configuration
bellmann29 Dec 16, 2004 2:06 PMHello,
i posted a topic few days ago and i thought my problem was solved. But it is not. I want to use and configure the jboss-server in minimal configuration as windows-service. Maybe with JavaService from Objectweb. But I got some problems with shutting down the server. So here is my output:
First starting the jboss-server in a console:
bello@boss:~/jbosstest/jboss-4.0.0/bin> java -jar run.jar -c minimal
07:42:32,487 INFO [Server] Starting JBoss (MX MicroKernel)...
07:42:32,489 INFO [Server] Release ID: JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)
07:42:32,490 INFO [Server] Home Dir: /home/bello/jbosstest/jboss-4.0.0
07:42:32,491 INFO [Server] Home URL: file:/home/bello/jbosstest/jboss-4.0.0/
07:42:32,491 INFO [Server] Library URL: file:/home/bello/jbosstest/jboss-4.0.0/lib/
07:42:32,493 INFO [Server] Patch URL: null
07:42:32,494 INFO [Server] Server Name: minimal
07:42:32,494 INFO [Server] Server Home Dir: /home/bello/jbosstest/jboss-4.0.0/server/minimal
07:42:32,495 INFO [Server] Server Home URL: file:/home/bello/jbosstest/jboss-4.0.0/server/minimal/
07:42:32,495 INFO [Server] Server Data Dir: /home/bello/jbosstest/jboss-4.0.0/server/minimal/data
07:42:32,496 INFO [Server] Server Temp Dir: /home/bello/jbosstest/jboss-4.0.0/server/minimal/tmp
07:42:32,496 INFO [Server] Server Config URL: file:/home/bello/jbosstest/jboss-4.0.0/server/minimal/conf/
07:42:32,497 INFO [Server] Server Library URL: file:/home/bello/jbosstest/jboss-4.0.0/server/minimal/lib/
07:42:32,497 INFO [Server] Root Deployment Filename: jboss-service.xml
07:42:32,503 INFO [Server] Starting General Purpose Architecture (GPA)...
07:42:33,580 INFO [ServerInfo] Java version: 1.4.2_03,Sun Microsystems Inc.
07:42:33,581 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_03-b02,Sun Microsystems Inc.
07:42:33,581 INFO [ServerInfo] OS-System: Linux 2.6.5-7.111-default,i386
07:42:34,016 INFO [Server] Core system initialized
07:42:34,961 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
07:42:35,483 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
07:42:35,547 INFO [Server] JBoss (MX MicroKernel) [4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)] Started in 3s:44ms
Ok, everything goes fine. Server is up very fast.
But now the problem, shutdown:
bello@boss:~/jbosstest/jboss-4.0.0/bin> java -jar shutdown.jar -s localhost
Exception in thread "main" javax.naming.NameNotFoundException: jmx not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.Shutdown.main(Shutdown.java:182)
bello@boss:~/jbosstest/jboss-4.0.0/bin>
I tried some other combination with optional parameters like -S , -n jboss.system:type=Server (JMX-ObjectName of ServerImpl), and other
I have to say that the command: java -jar shutdown.jar -s localhost works in default configuration but that is not what I want
So, if anybody can help me, please answer me. Maybe other developer have the same problems