Application server interaction
Am doua application servere, primul OC4J, si Tomcat, business logica care ruleaza sub Tomcat este partea de client ce se conecteaza la OC4J, pe care sta business-ul de server, dar la momentul conectarii clientului la server zice eroare de lookup...se mai face asta:System.setProperty(Context.INITIAL_CONTEXT_FACTORY, itialContextFactory);System.setProperty(Context.PROVIDER_URL, urlProvider);initialContextFactory="com.evermind.server.rmi.RMIInitialContextFactory"urlProvider="ormi://localhost/"iar Context.SECURITY_PRINCIPAL si Context.SECURITY_CREDENTIALS,sunt intr-un fisier jndi.properties in calsspath-ul partii de clientfolosind acelasi setari dintr-un client mic java standalone conexiunea se face poate aveti vre-o idee de ce nu merge si pe clientul de sub TomcatOC4J ServerApp part: Context context = null; context.rebind("AppServer", this); Tomcat part:InitialContext ctx = new InitialContext(null); Object remobj = ctx.lookup("AppServer"); Error message: Cannot find AppServer Additional error message: Lookup error: javax.naming.AuthenticationException: No such domain/application: ; nested exception is: javax.naming.AuthenticationException: No such domain/application: Stack trace: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: ; nested exception is: javax.naming.AuthenticationException: No such domain/application: [Root exception is javax.naming.AuthenticationException: No such domain/application: ] at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:168) at javax.naming.InitialContext.lookup(InitialContext.java:347) at absgroup.proxy.ProxyAppServer.connectToAppServer(ProxyAppServer.java:741) at absgroup.proxy.ProxyAppServer.(ProxyAppServer.java:118) at absgroup.webservice.AppLinenServlet.loginAbssolute(Unknown Source) at absgroup.webservice.AppLinenServlet.login(Unknown Source) at absgroup.webservice.DeliveryWebMgr.getRemoteABSServerConnect(Unknown Source) at absgroup.webservice.DeliveryWebMgr.ABSServerConnect(Unknown Source) at absgroup.webservice.IDeliveryWebMgr_Tie.invoke_ABSServerConnect(IDeliveryWebMgr_Tie.java:54) at absgroup.webservice.IDeliveryWebMgr_Tie.processingHook(IDeliveryWebMgr_Tie.java:580) at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321) at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:443) at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534)