Wrox Home  
Search P2P Archive for: Go

  Return to Index  

security_java thread: Ch. 10/11 - JDBC Driver: SAXParseException


Message #1 by "Nicolas Dinh" <dubstar27@h...> on Wed, 14 Aug 2002 16:00:27
I'm reposting since the format of my last message was screwed up:

I've managed to get the XML parse to work for the source code in Ch. 
10/11. It was a problem with the version of Xerces I was using. I 
downloaded Xerces 1.4.4 and used that jar file and that caused the 
SAXParseException. Instead, I tried using the xerces.jar file that came 
with the source code download and it worked fine.

I have another problem now. When running the following part in Chapter 
10/11:

Adding logins to DatasourceManager.
Adding login: projava/sasquatch
Registering SecureDriver as SecureDriver.
java.rmi.ServerError: Error occurred in server thread; nested exception is:
        java.lang.NoClassDefFoundError: javax/net/SocketFactory
java.lang.NoClassDefFoundError: javax/net/SocketFactory
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Unknown Source)
        at 
com.isnetworks.crypto.database.server.SecureConnectionServerMain.main
(SecureConnectionServerMain.java:70)

For some reason, the javax/net/SocketFactory class cannot be found. I put 
the jcert.jar, jnet.jar, and jsse.jar in the JAVA_HOME/lib/ext and 
JRE_HOME/lib/ext directories (for Windows) and changed the java.security 
files as instructed in the book. Why can't it find my SocketFactory class?

Regards,
Nicolas DinhChat with friends online, try MSN Messenger: Click Here

  Return to Index