SOE Could not support extra jar ?

2668
2
11-07-2010 11:15 PM
ShubinLiu
New Contributor
Hi,
     I deployed a SOE which used jdbc jar in the code , I export the jdbc jar in the SOE jar,and register sucessfull in ArcGIS Server manger, but when debug it ran into the following error "Can not load JDBC driver class oracle.jdbc.driver.OracleDriver".
    
     I Guess it can not find the extra jar like jdbc jar, where should I take the JDBC Jar to? Or SOE can not support extro Jar?

    Thank you for any informations!
0 Kudos
2 Replies
TomSchuller
Occasional Contributor III
Hy,
what is your content in the MANIFEST.MF file of the SOE.jar.

It should be look like:
Class-Path: jdbc.jar

Your "jdbc.jar" file should be located in the same directory as your SOE.jar file:
<AGSHome>\java\lib\ext

Depending on the jdbc-driver, you have to invoke a Class.forName(..) or DriverManager.registerDriver(..)

Tom
0 Kudos
ShubinLiu
New Contributor
Solved! Thanks much to Tom!

Add the manifest when I export the SOE Jar, it can run.

In manifest:
Manifest-Version: 1.0
Class-Path: ojdbc6.jar

Put the ojbc6.jar in \lib\ext folder .

Thanks, Tom!
0 Kudos