I am getting following exception when I try to use jndi over https, if you know how to 
fix this then please do write in.
Thanks
Exception in thread "main" javax.naming.NamingException: Failed to retrieve Nami
ng interface [Root exception is java.io.IOException]
        at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamin
gContextFactory.java:69)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
        at javax.naming.InitialContext.init(InitialContext.java:219)
        at javax.naming.InitialContext.(InitialContext.java:195)
        at TopicSendClient.setupPubSub(Unknown Source)
        at TopicSendClient.sendAsync(Unknown Source)
        at TopicSendClient.main(Unknown Source)
Caused by: java.io.IOException
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:593)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Dash
oA6275)
        at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingC
ontextFactory.java:118)
        at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamin
gContextFactory.java:65)
        ... 7 more
Caused by: java.io.IOException: HTTPS hostname wrong:  should be <SJAINXXXGX1>
        at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(DashoA6275)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:617)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLCon
nection.java:1451)
        at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
        at java.net.URLConnection.getContentLength(URLConnection.java:371)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Da
shoA6275)
        at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingC
ontextFactory.java:113)
        ... 8 more

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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to