when the server starts it logs the ejb available names. Just reuse it.
Share catalina.log is you don't get what I mean I'll give you an
example from your own log
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-04-03 14:59 GMT+02:00 ttran <[email protected]>:
> really sorry to bother you but i don't understand what you mean by "use the
> name in the logs" ?
>
> Here is my logs when i run it:
>
> javax.naming.NamingException: Cannot lookup
> 'global/env/PersonneFacadeRemote'. [Root exception is
> java.rmi.RemoteException: Cannot open input stream to server: ; nested
> exception is:
>         java.io.FileNotFoundException: http://localhost:8082/tomee/ejb]
>         at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:240)
>         at javax.naming.InitialContext.lookup(InitialContext.java:411)
>         at com.training.domain.ejb.testclient.Main.main(Main.java:32)
> Caused by: java.rmi.RemoteException: Cannot open input stream to server: ;
> nested exception is:
>         java.io.FileNotFoundException: http://localhost:8082/tomee/ejb
>         at org.apache.openejb.client.Client.processRequest(Client.java:141)
>         at org.apache.openejb.client.Client.request(Client.java:42)
>         at org.apache.openejb.client.JNDIContext.request(JNDIContext.java:87)
>         at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:234)
>         ... 2 more
> Caused by: java.io.FileNotFoundException: http://localhost:8082/tomee/ejb
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624)
>         at
> org.apache.openejb.client.HttpConnectionFactory$HttpConnection.getInputStream(HttpConnectionFactory.java:59)
>         at org.apache.openejb.client.Client.processRequest(Client.java:138)
>         ... 5 more
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/Problem-to-create-initialContext-tp4668512p4668552.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Reply via email to