This content has been marked as final.
Show 2 replies
-
1. Re: ex19_1 problem context lookup
wallylee03 Jan 6, 2007 7:16 PM (in response to gmundner)Quick fix:
Add the following code into your "Client.java" class "getInitialContext()" method
public static Context getInitialContext()
throws javax.naming.NamingException
{
Properties p = System.getProperties();
p.put("com.sun.xml.namespace.QName.useCompatibleSerialVersionUID", "1.0");
System.setProperties(system);
return new javax.naming.InitialContext();
}
DO not forget to import:
import java.util.Properties;
Then, it should work. -
2. Re: ex19_1 problem context lookup
wallylee03 Jan 8, 2007 6:58 PM (in response to gmundner)Sorry for the typo. Here is the right one:
public static Context getInitialContext()
throws javax.naming.NamingException
{
Properties p = System.getProperties();
p.put("com.sun.xml.namespace.QName.useCompatibleSerialVersionUID", "1.0");
System.setProperties(p);
return new javax.naming.InitialContext();
}