Posted By:
Steven_Webster
Posted On:
Friday, May 11, 2001 02:08 AM
I've experienced this problem now on several jobs, in several different situations - Using BEA Weblogic 6.0, using JBoss, trying to do JMS using iBus, and most recently, trying to do EJB lookup using Borland Application Server. In short, I don't think this is an issue at the application level. I, and other developers, cannot get JNDI programs to work under Windows 2000, yet the same code will compile and run on Windows 98, Windows NT 4.0 and Windows 95. The code I'm using is: package initialcontext; public class TestClient { public static void main(String[] args) { try { javax.naming.Context context = new javax.naming.InitialContext(); if(
More>>
I've experienced this problem now on several jobs, in several different situations - Using BEA Weblogic 6.0, using JBoss, trying to do JMS using iBus, and most recently, trying to do EJB lookup using Borland Application Server. In short, I don't think this is an issue at the application level.
I, and other developers, cannot get JNDI programs to work under Windows 2000, yet the same code will compile and run on Windows 98, Windows NT 4.0 and Windows 95.
The code I'm using is:
package initialcontext;
public class TestClient
{
public static void main(String[] args)
{
try
{
javax.naming.Context context = new javax.naming.InitialContext();
if(context == null)System.out.println("context is null");
}
catch(Exception e)
{
e.printStackTrace(System.err);
}
}
}
On Windows 2000, this fails (consistently) with the following error:
javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:60)
at com.sun.enterprise.naming.SerialContext.
(SerialContext.java:79)
at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:54)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.
(InitialContext.java:178)
at initialcontext.TestClient.main(TestClient.java:20)
Can anyone hazard a guess as to what the problem might be ? Hope someone can help here, this is surely a problem that others must be running into.
<<Less