[jboss-user] [EJB 3.0] - Re: EJB3 over HTTP and Reverse Proxy

Didi1976 do-not-reply at jboss.com
Thu Dec 13 06:34:25 EST 2007


One last problem remains. Everything is working perfekt as long as I use http. As soon as I use https, only fetching the InitialContext works and the lookup ends up with:


  | 12:15:47,484 DEBUG [SSLSocketBuilder] Could not find keystore url.  Can not find store file for url because store url is null.
  | javax.naming.NamingException: Could not dereference object [Root exception is java.lang.reflect.UndeclaredThrowableException]
  |         at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150)
  |         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
  |         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  |         at javax.naming.InitialContext.lookup(InitialContext.java:351)
  |         at at.softsolution.esa.client.gui.LoginPanel$LoginAction$1.run(LoginPanel.java:1022)
  | Caused by: java.lang.reflect.UndeclaredThrowableException
  |         at $Proxy1.createProxy(Unknown Source)
  |         at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:53)
  |         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
  |         at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
  |         at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
  |         ... 4 more
  | Caused by: java.lang.reflect.InvocationTargetException
  |         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:585)
  |         at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:419)
  |         at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:320)
  |         at org.jboss.remoting.Client.connect(Client.java:441)
  |         at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:61)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:70)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)
  |         ... 9 more
  | Caused by: java.lang.NullPointerException
  |         at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.createSocketFactory(HTTPSClientInvoker.java:144)
  |         at org.jboss.remoting.RemoteClientInvoker.<init>(RemoteClientInvoker.java:46)
  |         at org.jboss.remoting.transport.http.HTTPClientInvoker.<init>(HTTPClientInvoker.java:105)
  |         at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.<init>(HTTPSClientInvoker.java:63)
  |         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:585)
  |         at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:419)
  |         at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:320)
  |         at org.jboss.remoting.Client.connect(Client.java:441)
  |         at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:61)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:70)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)
  |         at $Proxy1.createProxy(Unknown Source)
  |         at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:53)
  |         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
  |         at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
  |         at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
  |         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
  |         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  |         at javax.naming.InitialContext.lookup(InitialContext.java:351)
  |         at at.softsolution.esa.client.gui.LoginPanel$LoginAction$1.run(LoginPanel.java:1022)
  |         at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
  |         ... 13 more
  | 

What keystore url is needed and where can I set it?

My client can connect to the reverse proxy and gets some response (so I think there isn't any problem):

  | 192.168.16.242 - - [13/Dec/2007:12:57:33 +0100] "GET /invoker/HAJNDIFactory HTTP/1.1" 200 1445 "-" "Java/1.5.0_13"
  | 192.168.16.242 - - [13/Dec/2007:12:57:33 +0100] "POST /invoker/JMXInvokerHAServlet HTTP/1.1" 200 679 "-" "Java/1.5.0_13"
  | 192.168.16.242 - - [13/Dec/2007:12:57:34 +0100] "POST /invoker/JMXInvokerHAServlet HTTP/1.1" 200 1387 "-" "Java/1.5.0_13"
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112525#4112525

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112525



More information about the jboss-user mailing list