[jboss-user] [EJB 3.0] - Re: Could not obtain connection to any of these urls: Remote
a0001428
do-not-reply at jboss.com
Thu Aug 20 23:22:49 EDT 2009
"a0001428" wrote : "a0001428" wrote : "jaikiran" wrote : How did you start the remote server? Use -b option as explained here http://www.jboss.org/community/wiki/JBoss42FAQ
| |
| | Hi jaikiran, thanks for you replay.
| |
| | I have a installservice.bat( it create a windows service) :
| |
| | Rem Start Here
| | set javadll=%JAVA_HOME%\jre\bin\client\jvm.dll
| | set javatool=%JAVA_HOME%\lib\tools.jar
| | set javarun=%JBOSS_HOME%\bin\run.jar
| | set outlog=%JBOSS_HOME%\bin\stdout.log
| | set errlog=%JBOSS_HOME%\bin\stderr.log
| |
| | JBossService.exe -install JBossTomcat "%javadll%" -Djava.class.path="%javatool%";"%javarun%" -start org.jboss.Main
| | -stop org.jboss.Main -method systemExit -out "%outlog%" -err "%errlog%" -current "%JBOSS_HOME%\bin" -manual
| |
| | net start JBossTomcat
| |
| | I go to try with -b option. You notice how I was.
| |
| |
|
| Hi,
| here is the new configuratuion app server Jboss a moment the restart.
|
| Before:
|
| 14:28:32,446 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
| 14:28:41,384 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080
| 14:28:41,399 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
|
| Now:
|
| 14:25:13,137 INFO [WebService] Using RMI server codebase: http://Name-PC remote:8083/
| 14:25:22,528 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-0.0.0.0-8080
| 14:25:22,528 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
|
| I'm traying...You notice how I was.
|
|
Hi all,
I restarted JBOSS with run.bat -b 0.0.0.0 (server remote windows 2003 server) :
JBoss Bootstrap Environment
===============================================
04:43:19,977 INFO [Server] Starting JBoss (MX MicroKernel)...
04:43:19,993 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=
200710221139)
04:43:25,212 INFO [WebService] Using RMI server codebase: http://Remote-Server-Name:8083/
04:43:43,915 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-0.0.0.0-8080
----------------------------------------------
jmx-console: (jboss.j2ee)
jar=ejb-jar-0.0.1-SNAPSHOT.jar,name=BixBox,service=EJB3
module=ejb-jar-0.0.1-SNAPSHOT.jar,service=EJB3
----------------------
Host file:
127.0.0.1 localhost
----------------------
IP Public> Remote-Server-Name/Ip server remote( windows 2003 server ).
-----------------------------------------
jndi.properties(in main client):
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://IP Public:1099
--------------------
main client localhost( my pc ): show error:
javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostException: Unknown host: Remote-Server-Name; nested exception is:
java.net.UnknownHostException: Remote-Server-Name]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:724)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
at javax.naming.InitialContext.lookup(Unknown Source)
at demoEJB.Testing.main(Testing.java:27)
Caused by: java.rmi.UnknownHostException: Unknown host: Remote-Server-Name; nested exception is:
java.net.UnknownHostException: Remote-Server-Name
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
... 3 more
Caused by: java.net.UnknownHostException: Remote-Server-Name
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
... 9 more
Help me please!!
Thanks you!!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250779#4250779
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250779
More information about the jboss-user
mailing list