jboss AS 5.0.0.EAP ejb3 via https (servlet-invoker)
crussell42 Jan 15, 2010 9:06 AMNot sure if the community normaly answers questions about the jboss.com AS's but here goes
As per http://community.jboss.org/message/518953#518953
And http://community.jboss.org/wiki/EJB3overHTTPHTTPSinJBossAS-5
I am able to access my ejb3's via the very execelent servlet-invoker from my swing client.
Works great in AS 5.1.0.GA.
Does not work in AS 5.0.0.EAP.
Configured eap exactly the same way as ga.
I do note that the remoting version of EAP is 2.5.2 and the version of remoting in the GA is 2.5.1
which seems odd.
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
The exception thrown is
[java] Looking up bean as user [ernie] pass[ernie]
[java] SEEM TO BE LOGGED IN via SecurityClient
[java] log4j:WARN No appenders could be found for logger (org.jboss.security.SecurityAssociation).
[java] log4j:WARN Please initialize the log4j system properly.
[java] javax.naming.NamingException: Failed to retrieve Naming interface for provider https://10.0.0.75:8443/invoker/JNDIFactory [Root exception is java.net.ProtocolException: Server redirected too many times (20)]
[java] at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:96)
[java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
[java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
[java] at javax.naming.InitialContext.init(InitialContext.java:223)
[java] at javax.naming.InitialContext.<init>(InitialContext.java:197)
[java] at client.TestService.main(TestService.java:93)
[java] Caused by: java.net.ProtocolException: Server redirected too many times (20)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[java] at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1368)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1362)
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1016)
[java] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
[java] at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:209)
[java] at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:92)
[java] ... 5 more
[java] Caused by: java.net.ProtocolException: Server redirected too many times (20)
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323)
[java] at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2173)
[java] at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579)
[java] at java.net.URLConnection.getContentLength(URLConnection.java:474)
[java] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:378)
[java] at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:204)
[java] ... 6 more