I am trying to use JMS over SSL on WebLogic 6.1 sp2 server.
But it doesn't seem to work.
Anybody tried it and got it to work?
Here is the piece my code to obtain a secure context:
ht.put(Context.SECURITY_PRINCIPAL, "system");
ht.put(Context.SECURITY_CREDENTIALS, "abc");
ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3s://localhost:7002");
Context ctx = new InitialContext(ht);
And my exception is:
javax.naming.CommunicationException. Root exception is java.net.ConnectException:
t3s://anders:7002: Destination unreachable; nested exception is:
java.io.IOException: Server Certificate SubjectDN CommonName received
does not match Server hostname; No available router to destination
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:207)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:311)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:211)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at BibleQueueSender.main(BibleQueueSender.java:54)java.lang.NullPointerException
at BibleQueueSender.main(BibleQueueSender.java:97)
Any idea ?
Anders
"anderst" <ander...@hotmail.com> wrote in message
news:3db7...@newsgroups.bea.com...
anderst wrote:
> I did.
>
> That is the code that I cut and pasted from the BEA doc.
> But I cannot get a secure context.
> Have you tried to run that on WLS 6.1 sp2 ?
>
> I saw another message in the newsgroup. He tried on WLS 7 and he got the same
> problem.
>
> Anders
That is the code that I cut and pasted from the BEA doc.
But I cannot get a secure context.
Have you tried to run that on WLS 6.1 sp2 ?
I saw another message in the newsgroup. He tried on WLS 7 and he got the same
problem.
Anders
I just posted a message in security newsgroup.
Anders