I'm new to JEE. I use Eclipse IDE, OpenEJB as persistence provider, TomEE app
server. TomEE runs fine with Eclipse (http://localhost:8080/).

I have simple example (that is valid), but can't make it run.  The log
message I'm getting is:

<Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml
runClient1:
     [java] Sep 26, 2013 9:51:50 PM org.apache.openejb.client.EventLogger
log
     [java] INFO:
RemoteInitialContextCreated{providerUri=http://127.0.0.1:8080/tomee/ejb}
     [java] Sep 26, 2013 9:51:50 PM org.apache.openejb.client.EventLogger
log
     [java] WARNING: RequestFailed{server=http://127.0.0.1:8080/tomee/ejb}
JNDI_LOOKUPnull:/HelloBeanRemote {error=Cannot open input stream to server:
}
     [java] Exception in thread "main"
org.apache.openejb.client.ClientRuntimeException: Invalid response from
server: -1
     [java]     at
org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:297)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:411)
     [java]     at
rs.ac.uns.ftn.informatika.mbs2.vezbe03.primer01.client.HelloClient1.main(Unknown
Source)
     [java] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second

jndi.properties file content:
  
java.naming.factory.initial=org.apache.openejb.client.RemoteInitialContextFactory
   java.naming.provider.url=http://127.0.0.1:8080/tomee/ejb

What could be cause of this error?
Appreciate any help



--
View this message in context: 
http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to