Estou tendo a seguinte exception com o ejb3 e já ñ sei mais o q pode ser alguem pode me ajudar???
Caused by: java.lang.RuntimeException: javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
at br.com.greenlinesaude.boleto.businesdelegate.BoletoDelegate.<init>(BoletoDelegate.java:25)
at br.com.greenlinesaude.boleto.managedbean.BoletoMB.getListarBoletos(BoletoMB.java:17)
... 59 more
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at br.com.greenlinesaude.boleto.businesdelegate.BoletoDelegate.<init>(BoletoDelegate.java:21)
... 60 more
Caused by: java.rmi.RemoteException: Service unavailable.
at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:213)
at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:267)
at $Proxy96.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
... 63 more
este é meu jndi
[code]#java.naming.factory.initial= org.jnp.interfaces.NamingContextFactory
java.naming.factory.initial= org.jboss.security.jndi.LoginInitialContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
##DESENVOLVIMENTO
java.naming.provider.url=jnp://132.0.1.12:1100
[/code]
e o erro ocorre exatamente no lookup
Object ref;
try {
InitialContext ctx = new InitialContext(ICParams.getParams());
ref = ctx.lookup("BoletoBean/remote"); //erro aqui
ejb = (BoletoRemote) ref;
} catch (NamingException e) {
throw new RuntimeException(e);
}
ficarei muito grato se alguem puder me ajudar pois já ñ sei mais o q pode ser