This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
There could be following issues which you need to check :
1. Is your server running at the URL : t3://myserver:30362 ?
2. You need to provide weblogic.jndi.WLInitialContextFactory in the classpath, have you placed the appropriate Weblogic jars in the classpath ?
Another thing that i observed was that in the error message, there is one additional property that gets printed.
This is being picked from your jndi.properties. The Application Server loads all the properties from this file when not explicitly mentioned.
SCJP 5 , SCBCD [Prep Started ] , WLS 8.1 Server Admin
mr saurabh gupta
Joined: Oct 15, 2010
The answer to both of your questions is "yes".
Joined: Dec 16, 2008
Then first give it a try with the correct java.naming.factory.url.pkgs for Weblogic. I think this would be the value:
Do not update/change the jndi.properties, Add this property to the Properties object you are passing to the InitialContext.