0 Replies Latest reply on May 5, 2014 1:52 AM by viswa nath

    Jboss 5.2 Clustered JNP lookup issue

    viswa nath Newbie

      I am having issue while clustered JNP look up from the web application which is hosted on the same jboss. My application structure as followed.

      clustered Application.ear hosted on 2 nodes. web application hosted on 1 node.

      So now the issue is when i trying to lookup the JNP from the web application i am getting the following exception. Which is going to the http invoker insted of HA JNDI invoker.

      And also the application is working fine with the thick client over http unified invoker.

      Please find the web application server log while clustered JNP lookup

      2014-05-04 18:07:22,933 DEBUG [org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory] (http-0.0.0.0-8230-3) org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory servicing request for jfoundation/security/JBossLoginService#com.emirates.jfoundation.security.jboss.ejb.interfaces.JBossLoginEJB3Service 2014-05-04 18:07:22,983 DEBUG [org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor] (http-0.0.0.0-8230-3) NOT a local invocation for ProxyFactory with id ProxyFactory/ns-server-ear-ta-3.2.0.0/JBossLoginEJB3ServiceBean/jfoundation/security/JBossLoginService#com.emirates.jfoundation.security.jboss.ejb.interfaces.JBossLoginEJB3Service/ngcs_core_partition - passing the control to next interceptor 2014-05-04 18:07:22,983 DEBUG [com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager] (http-0.0.0.0-8230-3) PropagationContextManager.getTransactionPropagationContext - called 2014-05-04 18:07:22,983 DEBUG [com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager] (http-0.0.0.0-8230-3) PropagationContextManager.getTransactionPropagationContext() - returned tpc = null 2014-05-04 18:07:22,985 DEBUG [org.jboss.remoting.Client] (http-0.0.0.0-8230-3) Client[1773499148:a184la-rwwquw-husexqrv-1-huseymp5-ba].connect(null) 2014-05-04 18:07:23,019 DEBUG [org.jboss.remoting.security.SSLSocketBuilder] (http-0.0.0.0-8230-3) Could not find keystore url. Can not find store file for url because store url is null. 2014-05-04 18:07:23,020 ERROR [org.jboss.remoting.transport.http.HTTPClientInvoker] (http-0.0.0.0-8230-3) Error creating SSL Socket Factory for client invoker: Error initializing socket factory SSL context: Can not find truststore url. 2014-05-04 18:07:23,021 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] (http-0.0.0.0-8230-3) Error creating SSL Socket Factory for client invoker.


      java.io.IOException: Error initializing socket factory SSL context: Can not find truststore url. at org.jboss.remoting.security.SSLSocketBuilder.initializeSocketFactorySSLContext(SSLSocketBuilder.java:1369) at org.jboss.remoting.security.SSLSocketBuilder.createCustomSocketFactory(SSLSocketBuilder.java:473) at org.jboss.remoting.security.SSLSocketBuilder.createSSLSocketFactory(SSLSocketBuilder.java:453) at org.jboss.remoting.security.SSLSocketBuilder.createSSLSocketFactory(SSLSocketBuilder.java:401) at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.createSocketFactory(HTTPSClientInvoker.java:159) at org.jboss.remoting.RemoteClientInvoker.(RemoteClientInvoker.java:66) at org.jboss.remoting.transport.http.HTTPClientInvoker.(HTTPClientInvoker.java:144) at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.(HTTPSClientInvoker.java:67) at org.jboss.remoting.transport.https.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:466) at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:365) at org.jboss.remoting.Client$6.run(Client.java:726) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.remoting.Client.connect(Client.java:722) at org.jboss.remoting.Client.connect(Client.java:670) at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:59) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.aspects.remoting.ClusterChooserInterceptor.invoke(ClusterChooserInterceptor.java:122) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:104) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) at org.jboss.aspects.remoting.ClusteredPojiProxy.invoke(ClusteredPojiProxy.java:79) at com.sun.proxy.$Proxy114.createProxyBusiness(Unknown Source) at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129) at org.jboss.ejb3.proxy.clustered.objectfactory.session.SessionClusteredProxyObjectFactory.getProxy(SessionClusteredProxyObjectFactory.java:89) at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:161) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1526) at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1543) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:869) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713) at javax.naming.InitialContext.lookup(InitialContext.java:392) at com.emirates.jfoundation.security.jboss.JBossLoginModule.serverLogin(JBossLoginModule.java:61) at com.emirates.jfoundation.security.login.client.JFoundationClientLoginModule.login(JFoundationClientLoginModule.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) at javax.security.auth.login.LoginContext.login(LoginContext.java:579) at com.emirates.jfoundation.jweb.admin.connection.LoginManager.login(LoginManager.java:46) at com.emirates.jfoundation.jweb.admin.connection.LoginHelper.handleAuthentication(LoginHelper.java:43) at com.emirates.jfoundation.jweb.admin.connection.LoginHelper.loginGuest(LoginHelper.java:105) at com.emirates.jfoundation.jweb.core.JBaseEngine.service(JBaseEngine.java:346) at org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:198) at org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.emirates.jfoundation.jweb.core.filter.URLSessionFilter.doFilter(URLSessionFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.emirates.jfoundation.jweb.core.filter.GZIPFilter.doFilter(GZIPFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.emirates.jfoundation.jweb.core.filter.TimerFilter.doFilter(TimerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74) at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451) at java.lang.Thread.run(Thread.java:662) 2014-05-04 18:07:23,022 DEBUG [org.jboss.remoting.MicroRemoteClientInvoker] (http-0.0.0.0-8230-3) org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker@75acd47 connecting 2014-05-04 18:07:23,022 DEBUG [org.jboss.remoting