Problema com JBOSS

1 resposta
jupysilva

Pessoal estou fazendo os exemplos do Livro Enterprise JavaBeans 3.0 e quando tento executar o cliente mostra a seguinte menssagem de erro:

javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub (no security manager: RMI class loader disabled)]]

at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1601)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:636)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)

at javax.naming.InitialContext.lookup(Unknown Source)

at dev.com.titan.clients.Client.main(Client.java:20)

Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub (no security manager: RMI class loader disabled)]

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:276)

at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1572)

 4 more

Caused by: java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub (no security manager: RMI class loader disabled)

at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)

at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)

at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)

at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)

at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)

at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)

at java.io.ObjectInputStream.readClassDesc(Unknown Source)

at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

at java.io.ObjectInputStream.readObject0(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at java.rmi.MarshalledObject.get(Unknown Source)

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:259)

 5 more

1 Resposta

JMan

Verifique se você possue o jboss-client.jar no classpath do seu cliente.

Criado 13 de maio de 2008
Ultima resposta 14 de mai. de 2008
Respostas 1
Participantes 2