I do appreciate your reply, but it simply does not work.  I tried as you specified and 
also tried with --server=localhost:1199 and it does not work either.  Now, my bad was 
thinking the --server was expecting the JBoss server name, not the machine name.  
Still did not work with local host (get same error when trying to shutdown with 
--server=defaultE2RD:1199).  But when using --server=127.0.0.1:1199 it works!  Remote 
shutdown does not work, same error.

Why doesn't it look at the same binding xml that run.bat uses?  Why not allow me to 
specify this just as I do for starting up?  That way if my config changes, but 
run/shutdown does not need to change.

Here is how I start my server:
C:\jboss-3.2.3\bin\run.bat -c defaultE2RD

Here is the beginning snippet of my bindings.xml:

<service-config name="jboss:service=Naming" 
delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
<delegate-config portName="Port" hostName="BindAddress">
1198
</delegate-config>

</service-config>
...


Here are parts of my startup console log:
10:12:17,106 INFO  [Server] Starting JBoss (MX MicroKernel)...
10:12:17,106 INFO  [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: 
CVSTag=JBoss_3_2_3 date=200
311301445)
10:12:17,106 INFO  [Server] Home Dir: C:\jboss-3.2.3
10:12:17,106 INFO  [Server] Home URL: file:/C:/jboss-3.2.3/
10:12:17,106 INFO  [Server] Library URL: file:/C:/jboss-3.2.3/lib/
10:12:17,106 INFO  [Server] Patch URL: null
10:12:17,106 INFO  [Server] Server Name: defaultE2RD
10:12:17,106 INFO  [Server] Server Home Dir: C:\jboss-3.2.3\server\defaultE2RD
10:12:17,106 INFO  [Server] Server Home URL: file:/C:/jboss-3.2.3/server/defaultE2RD/
...
10:12:22,559 INFO  [NamingService] Started jnpPort=1199, rmiPort=1198, backlog=50, 
bindAddress=/0.0.
0.0, Client SocketFactory=null, Server [EMAIL PROTECTED]
3076
10:12:22,591 INFO  [NamingService] Listening on port 1199
10:12:22,606 INFO  [NamingService] Started jboss:service=Naming
10:12:22,606 INFO  [JNDIView] Started jboss:service=JNDIView
10:12:22,606 INFO  [SecurityConfig] Started jboss.security:service=SecurityConfig

Here is what I get with shutting down with --server=defaultE2RD:1199
C:\jboss-3.2.3\bin>shutdown.bat --server=defaultE2RD:1199
10:22:06,707 WARN  [NamingContext] Failed to connect to defaultE2RD:1199
javax.naming.CommunicationException: Failed to connect to server defaultE2RD:1199 
[Root exception is
 javax.naming.ServiceUnavailableException: Failed to connect to server 
defaultE2RD:1199 [Root except
ion is java.net.UnknownHostException: defaultE2RD: defaultE2RD]]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:215)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1181)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at org.jboss.Shutdown.main(Shutdown.java:182)
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server 
defaultE2RD:1199 [R
oot exception is java.net.UnknownHostException: defaultE2RD: defaultE2RD]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:190)
        ... 5 more
Caused by: java.net.UnknownHostException: defaultE2RD: defaultE2RD
        at java.net.InetAddress.getAllByName0(InetAddress.java:1011)
        at java.net.InetAddress.getAllByName0(InetAddress.java:981)
        at java.net.InetAddress.getAllByName(InetAddress.java:975)
        at java.net.InetAddress.getByName(InetAddress.java:889)
        at 
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:61)
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:186)
        ... 5 more
Exception in thread "main" java.lang.ClassCastException
        at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:986)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at org.jboss.Shutdown.main(Shutdown.java:182)

Dale

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826883#3826883";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826883>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to