if you set properties using remote initial context to the initial
context you use you shouldn't go through SelectorContext
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014/1/10 mauro2java2011 <[email protected]>:
> i have tried putting just put api in tomcat/lib
>
>  escuse me  but  now when i run i get
>
>  the following exception (from log of tomcat)
>
> INFO: Undeploying context [/tomcat7_a_tomee-call-ejb]
> gen 10, 2014 7:03:46 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor
> /home/utente_javaee7/.netbeans/7.4/apache-tomcat-7.0.41.0_base/conf/Catalina/localhost/tomcat7_a_tomee-call-ejb.xml
> gen 10, 2014 7:07:05 PM srv.ProvatestejbRemoto callremote
> *INFO: -----try to connect to remote JNDI at http://localhost:8080/tomee/ejb
> ------------
> gen 10, 2014 7:07:05 PM org.apache.openejb.client.EventLogger log
> INFO:
> RemoteInitialContextCreated{providerUri=http://localhost:8080/tomee/ejb}
> gen 10, 2014 7:07:05 PM srv.ProvatestejbRemoto callremote
> INFO: the name of NAmingCOntext is:
> gen 10, 2014 7:07:05 PM srv.ProvatestejbRemoto callremote
> INFO: --------try to retrive the BEan Remote
> :java:global/ejbsutomee/TestBean!test.TestBeanRemote ----------
> gen 10, 2014 7:07:05 PM srv.ProvatestejbRemoto processRequest*
>
> *SEVERE: e+ avvenuto un errorejavax.naming.NameNotFoundException: Name
> [global/ejbsutomee/TestBean!test.TestBeanRemote] is not bound in this
> Context. Unable to find [global].
> javax.ejb.EJBException: javax.naming.NameNotFoundException: Name
> [global/ejbsutomee/TestBean!test.TestBeanRemote] is not bound in this
> Context. Unable to find [global].*
>
>         at srv.ProvatestejbRemoto.callremote(ProvatestejbRemoto.java:62)
>         at srv.ProvatestejbRemoto.processRequest(ProvatestejbRemoto.java:84)
>         at srv.ProvatestejbRemoto.doGet(ProvatestejbRemoto.java:111)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:724)
> Caused by: javax.naming.NameNotFoundException: Name
> [global/ejbsutomee/TestBean!test.TestBeanRemote] is not bound in this
> Context. Unable to find [global].
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
>         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:158)
>         at javax.naming.InitialContext.lookup(InitialContext.java:411)
>         at srv.ProvatestejbRemoto.callremote(ProvatestejbRemoto.java:50)
>         ... 23 more
>
> ..............................................................................................
> *but from the standalone client i get the response correct:
>
> run:
> gen 10, 2014 7:04:47 PM org.apache.openejb.client.EventLogger log
> INFO:
> RemoteInitialContextCreated{providerUri=http://127.0.0.1:8080/ejbsutomee/ejb}
> result from EJB:From test.TestBean@11c5197
> BUILD SUCCESSFUL (total time: 13 seconds)*
>
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/call-ejb-remote-not-work-help-me-tp4666948p4667103.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to