Re: JINI service for oracle db
Gregg Wonderly <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Luis Arce wrote: > i tried to connect to oracle DB with jini service, but don't load the > driver! when running the class without jini this work fine. Anybody know > where let the jar file (ojdbc14.jar) for the service working? Can you tell us more about how you are starting your jini service? It would be nice if you could post scripts and configuration files related to what you are doing so that we could look for classpath issues. From a general perspective, if your service is using JDBC, your odbc14.jar driver jar needs to be in the classpath of the service just like the services jar file. Check you paths and make sure you just didn't mistype something. If your service has a serviceUI, and your serviceUI client code is doing the JDBC access, then you either need to make the driver appear in the classpath of the client software that is downloading and using the serviceUI, or you need to put odbc14.jar into the codebase of the service so that it will be downloaded. You also need to consider that in Swing/AWT programming, the AWT event thread does not have an appropriate context classloader set by default. So, if you are using JDBC in an action from a buttonclick, you'll need to set the context classloader of the thread that is eventually using JDBC to the classloader of the services codebase. Please tell us some more, if this doesn't make any sense, and let's go through the issues one at a time. Gregg Wonderly -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]