How to set classpath for third party jdbc-driver

my application contains bc4j jsp. when i try to run this jsp application which connect to postgresql, i get a error message
"Application Error
Return
Error Message: JBO-30003: The application pool (App_ModLocal) failed to checkout an application module due to the following
exception:
Error Message: JBO-26061: Error while opening JDBC connection."
how to solve this.

The JDBC for your database should be added to your client project.
In JDeveloper created a new 'named' library item and specify the JDBC jar files for your database.
See also related article
http://otn.oracle.com/products/jdev/howtos/bc4j/bc_pdb2walkthrough.html#edit
- Sathish

Similar Messages

  • Setting path for third party class files

    I am using some third party classfiles in my JSPs for JDBC. When I use these files, in normal Java Programs everything is working fine ( I am setting the path by using the CLASSPATH environment variable).
    I did not understandt how to set classpath for these files (com.informix.jdbc.*) for use in iplanet 6.0.
    I have tried to keep this "com" folder in /usr/java/j2sdk1.4.3_01/lib folder, but, it is not still working. I tried to change the start-jvm file, but, I am still having problems.
    Can someone help me !!!
    --Murthy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    I changed the jvm12.conf file, but, it did not work. I changed the JDK Runtime Classpath in the Global Settings tab of the Administration Server and restarted both the webserver and the administration server and it worked.
    Thanks for your response.
    --Murthy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to set Classpath for MySQL

    Hi
    I want to connect to my mySQL db with a java program , but I don't know how to install the mySQL connector driver. Can anyone help me? or indicate somewhere where I might find the answer?
    And how to set Classpath for MySQL.
    my program gives an exception ClassNotFound.
    Exception :com.mysql.jdbc.Driver
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at Files.main(Files.java:352)
    Plz help me
    Thanx
    Lalit

    to make your life easy i tried to connect..
    what you have to do is.. you mysql database server should be running
    next you have to download one of the version of mysql driver.. i downloaded mysql-connector-java-5.0.5
    go to my computer right click - >advance tab -> click on environment variable -> put you path e.g. C:\Program Files\Java\jarFiles\mysql-connector-java-5.0.5\mysql-connector-java-5.0.5-bin.jar
    into your classpath in a user variable section..
    Try this code
    import java.sql.*;
    public class MySqlConnect{
         public static void main(String [] args){
              try{
                   Class.forName("com.mysql.jdbc.Driver");
                   String url ="jdbc:mysql://localhost:3306/test";
                   Connection con =DriverManager.getConnection(url,"root", "password");
                   System.out.println("Connection: " + con);
              }catch(ClassNotFoundException cnfe){
                   cnfe.printStackTrace();
              }catch(SQLException se){
                   se.printStackTrace();
    }have fun
    Gurnah

  • Where to add Third Party JDBC Driver in SQL Developer 4.1 EA2

    In SQL Developer 4.0.3 under Tools - Preferences - Database there was an option to add a  Third Party JDBC Driver so we could use the same tool for a PostgresSQL database.  I cannot find in in SQL Developer 4.1.0.18

    I think it happened because I imported settings and connections from a previous installation. 
    I removed the C:\Users\username\appdata\SQL Developer\system4.1.0.18.37\ folder.
    I've run it now without that and the option is back.
    Thanks! 

  • Third party JDBC Driver and Domain Extension

    Hi everyone, I'm using a third party driver to acess some of the legacy databases in my company. I'm adding them to Weblogic's (v. 10.3.3.0) Classpath by setting the EXT_PRE_CLASSPATH in the setWLEnv.sh file. Everything worked fine so far, until I had to extend my domain to acomodate new settings. The Configuration Wizard crashes in the middle by saying "A fatal error Has Occurred. This Application will terminate". By inspecting the logs I saw that the Wizard tried to search my Data Source which used the third party driver and couldn't find the Driver Class. I would like to know if there is a better way to add the library to the Weblogic's Classpath or someway to workaround this issue during the extension. In my current situation I'm having to erase the data source, extend the domain and reconfigure the data source, which is big trouble !
    Any help will be appretiated ! Thanks
    PS: I've also tried to add the third party driver's JAR in the CLASSPATH inside config.sh file but unfortunately the error was the same !

    You can place your jar files in the domain lib directory.
    WebLogic uses a separate classloader to load classes from the domain lib directory. This classloader
    is a child of the system classloader, and a parent of the application classloaders. The classes and
    resources in any .jar file placed in the directory is automatically available to all applications.
    Note, however, that the domain lib classloader does not support redeployment, dynamic reloading, or FastSwap, and cannot
    refer directly to code in the application classloaders. But i think that this is not a problem, you just want your
    thrid party JDBC driver to be availlable for your applications.

  • How to generate csr for third party code signing cert?

    I've been reading about code signing, but can't see how to generate a csr to use with a third party CA. Does someone have a tutorial, link, suggestion?

    Hi,
    Here is an document which discussed on how to implement code signing with using third party certificate for you reference:
    http://download.microsoft.com/download/a/f/7/af7777e5-7dcd-4800-8a0a-b18336565f5b/best_practices.doc
    For further suggestions, it is recommend you to get further support in the MSDN Forum so that you can get the most qualified pool of respondents.
    http://social.msdn.microsoft.com/forums/en-US/categories/
    Thanks
    Tiger Li 
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to parse Segment for third party portal to find user specific segment ?

    I am looking for CQ service which provides parsing of segment and provide me list of qulified segment to user whenever third party requests for login?
    Please let me know if anyone is aware of suc service from CQ or CRX propective.
    Thanks,
    Yogesh

    Thanks for the condescending advice. I did contact the vendor first. That's obvious, a no-brainer. Their (Recosoft's) reply was: "... contact the Adobe Exchange store to download it and install it again." Later they explained that because the plugin was acquired through Adobe Exchange and because they only sell that PDF2ID Lite version through Adobe Exchange, I had to ask you for assistance.
    In short, although they indeed build and provide the plugin, it is Adobe Exchange the engine that does the work to download, enable and/or disable a plugin. Exchange does nothing, however, to replace a bad plugin; there is no setting or button or whatever to re-download from source, replace a bad file and reinstall. The only options are enable and disable plugins OR purchase a plugin again. The latter is not a solution, really.
    What's interesting to me (other than this thing is still an exercise on pointing fingers) is that when a third party plugin to be used with an Adobe tool is added to your workflow it immediately acquires an Adobe-designed icon, a reflection of Adobe's brand. In general, one does not want to stamp a product with one's own brand unless one is ready to take some sort or responsibility for that product. Adobe appears not follow that logic though. You add one of your branded icons to a product that (it is obvious to me) you take zero responsibility for, one that I can't expect Adobe to support ...

  • How to set classpath for J2ME

    how to set class path for j2me. I downloaded J2ME Wireless tool kit. And set the classpath "set classpath=c:\J2mewtk\lib\midpapi.zip;.;". but i could compile java file. .how to set.
    With regards
    Santhosh

    When you are downloading j2MEWTK, everything is included within it. You dont require MIDP seperately. When you are runnung the ktoolbar , which is provided with J2mewtk, the preverifier runs and creates the required jad file for you. You dont need a forte to run these.
    If you want to download MIDP seperately, that also is possible. Then you have to go for command line arguments. Please refer to Sun's MIDP page for details.
    Let me know, if you face any further problem

  • Using a Third Party JDBC Driver that has dependencies [Version 2.1.1.64]

    I am trying to connect to a TRIP database (a product from Tietoenator). They offer a JDBC driver which I have already used in java applications. So I can confirm that it works. What makes that driver perhaps a bit special is that it needs 3 other jars to operate.
    So I need these jar files
    <li> tripjdbc.jar (this is the actual jdbc driver)
    <li> tripjtk.jar
    <li> triputil.jar
    <li> xercesImpl.jar
    I have tried to place all of those jars into the Tools > Preferences > Database > Third Party Drivers dialogue [as suggested here|http://www.oracle.com/technology/products/database/sql_developer/files/thirdparty.htm]. But that does not help.
    Following the docs of Tietoenator I need those 3 libraries in the path of the java app the JDBC driver shall be used from. This is where I currently fail. How can I add those to the classpath of the SQL Developer? I assume it is a *.conf file somewhere in the SQL Developer home directory ... ?
    Thank you for any suggestion.
    EDIT: I am using SQL Developer on a windows box. May be of interest.
    Edited by: user7368833 on 17.05.2010 05:05

    I'm using java web to create website,the database use trip , have some problem, could you give me some answer, thankyou very much.
    the question: how to use java connect trip to add some record by webpage,and other mothod,such as modify\search\delete record,could you give some sample code about these,such as book entity.thankyou very much.
    email:[email protected] or [email protected]

  • Using third party JDBC driver gives error

    In our project , we have to make a call to ingres database. For that we are using JDBC driver from Caribou lake Software. The application works fine when we execute in a stand alone JVM. But we get the following error if we load and try to run within JServer
    Unable to instantiate packet driver java.sql.SQLException: socket connection: io error - Unsupported VC socket option
    Is it possible to use other JDBC drivers inside JServer ?
    Thanks

    Thanks Jim, yes a custom url - that's what i want to do - like in jdev. Did you mean the "Custom URL" on the "Oracle" tab in sqldev - this is for the oracle database jdbc driver only - to let you do stuff other than just host and port and sid/service - so I can not use that. But i do want to set up a generic jdbc url - i want to say "use this driver class" with "this url" - I can do it in jdev - since a lot of the code base is shared/similar i expect to be able to set it up in sqldev also - also i think oracle products should at least support other oracle products. I guess this is an enhancement request for the sqldev development team then. Ta Nathan.

  • Viewlink with third party jdbc driver

    Hello, I try to create a viewlink with a Firebird SQL JDBC driver, but the SQL statment JDeveloper generate to test the view is not generic SQL compliant with Interbase, it's rather ORACLE specific :
    SELECT * from (select * from V_INDIVIDU_CODE_ADH) QRSLT where 1=2
    So it's impossbile to access the attributes or anything in the viewlink without having an error message from the jdc driver.
    Is it sure that JDeveloper wants to support other DB than ORACLE ?

    Hello, I try to create a viewlink with a Firebird SQL JDBC driver, but the SQL statment JDeveloper generate to test the view is not generic SQL compliant with Interbase, it's rather ORACLE specific :
    SELECT * from (select * from V_INDIVIDU_CODE_ADH) QRSLT where 1=2
    So it's impossbile to access the attributes or anything in the viewlink without having an error message from the jdc driver.
    Is it sure that JDeveloper wants to support other DB than ORACLE ?

  • How to set classpath for classes in war files

    Hi All,
    After deploying the WAR file I could access the JSP files but gives classnotfound exception when the information is expected from the java servlet.DO I need to set the classpath if yes how to do for the war file.
    thanks

    The web.xml,file structure and error is below let me know if more information is required.
    As you said weblogic is looking for the classes in lib directory inspite of having the classes in web-inf/classes directory.
    web-app>
    <servlet>
    <servlet-name>ControllerServlet</servlet-name>
    <servlet-class>com.test.site.pds.Controller</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ControllerServlet</servlet-name>
    <url-pattern>/controller</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    File Structure:
    C:\test\PDSWebApp\WEB-INF\classes\com\test\site\pds\*.class
    PDSWebApp
         css
         html
         images
         javascript
         jsp
         WEB-INF
         classes
         com/test/site/pds/*.java
         lib
         servlets
    The error:
    javax.servlet.ServletException: [HTTP:101249][ServletContext(id=18129862,name=PdsApp,context-path=/PdsApp)]: Servlet class com.test.site.pds.Controller for servlet ControllerServlet could not be loaded because the requested class was not found in the classpath C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\PdsApp.war;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\classes12.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\commons-beanutils.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\commons-collections-2.1.1.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\commons-lang-2.0.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\displaytag-1.0.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\jstl.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\standard.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\_wl_cls_gen.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp.
    java.lang.ClassNotFoundException: com.test.site.pds.Controller.

  • SCCM 2012 R2 how to configure SCUP for third party patches

    we have CAS and primary site servers need to configure SCUP
    what need to be configure in CAS and what in primary.

    Here's a good guide to get you started :
    http://blog.coretech.dk/wp-content/uploads/The-complete-guide-to-System-Center-Updates-Publisher-2011-V1.01.pdf
    Benoit Lecours | Blog: System Center Dudes

  • ADF Bc third party JDBC Driver java.sql.SQLException: No suitable driver

    Hello all
    I am using JT400.jar file to connect to AS/400 data base in my JSF/ADF Application.
    We are using shared library for all non oracle jar files . and my application fails with error message
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver
    During runtime. even though i am importing the required jar files from shared library settings in server.xml / application.xml
    When i don't have the entry in shared library for this jar file it will fail during deployment time it self, but with shared library link it works during deployment but fails during runtime
    it will work during runtime if i add my jar file to BC4J/lib folder. but team responsible for mintaining application server don't accept adding non oracle jar files to oracle installation folders
    i have also posted this in jdev forum
    Please Advise
    Thanks

    Thanks for reply
    i am using Sqlserver 2000 as back end
    import java.sql.*;
    import java.net.*;
    public class MysqlConnect{
         public static void main(String[] args) {
              System.out.println("MySQL Connect Example.");
              Connection conn = null;
    // String url = "jdbc:mysql:/localhost:3306/";
    String url = "jdbc:microsoft:sqlserver/GTEXC/";
    String dbName = "java";
    // String driver = "Sun.Jdbc.Odbc.JdbcOdbcdriver";
    String userName = "root";
              String password = "root";
              try {
    Driver d=(Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
                   conn = DriverManager.getConnection(url+dbName,userName,password);
                   System.out.println("Connected to the database");
                   conn.close();
                   System.out.println("Disconnected from database");
              } catch (Exception e) {
                   e.printStackTrace();
    }

  • 3rd Party JDBC Driver in IAS6

    Hi,
    I set up a third-party JDBC driver on iPlanet App Server 6.0 SP3 Test Drive
    on WinNT 4.0. I then ran HelloDB against a data source pointing to this JDBC
    driver. I got the following exception while trying to make a connection. Any
    hint as to what's wrong would be greatly appreciated.
    Yongtao You
    [email protected]
    PS. The "Driver Classpath" is set to "k:\iPlanet\ias6\neon\scjd12ts.jar"
    which contains the class "com.neon.jdbc.Driver".
    java.sql.SQLException: A. Couldn't load or create 3rd party class:
    com.neon.jdbc.Driver
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.createNewConnection(Unknown
    Source)
    at com.netscape.server.jdbc.ProxyEvaluation.createObject(Unknown Source)
    at com.kivasoft.rlop.ObjectPool.reserveObjectnative(Native Method)
    at com.kivasoft.rlop.ObjectPool.reserveObject(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at
    samples.hellodb.servlet.GreeterDBServlet.doGet(GreeterDBServlet.java:91)
    at
    samples.hellodb.servlet.GreeterDBServlet.doPost(GreeterDBServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

    Hi,
    I fixed the problem by manually editing the Windows Registry.
    Thanks.
    Yongtao
    Yongtao You <[email protected]> wrote in message
    news:9q52qh$[email protected]..
    Hi,
    I set up a third-party JDBC driver on iPlanet App Server 6.0 SP3 TestDrive
    on WinNT 4.0. I then ran HelloDB against a data source pointing to thisJDBC
    driver. I got the following exception while trying to make a connection.Any
    hint as to what's wrong would be greatly appreciated.
    Yongtao You
    [email protected]
    PS. The "Driver Classpath" is set to "k:\iPlanet\ias6\neon\scjd12ts.jar"
    which contains the class "com.neon.jdbc.Driver".
    java.sql.SQLException: A. Couldn't load or create 3rd party class:
    com.neon.jdbc.Driver
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.createNewConnection(Unknown
    Source)
    at com.netscape.server.jdbc.ProxyEvaluation.createObject(UnknownSource)
    at com.kivasoft.rlop.ObjectPool.reserveObjectnative(Native Method)
    at com.kivasoft.rlop.ObjectPool.reserveObject(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getConnection(UnknownSource)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(UnknownSource)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(UnknownSource)
    at
    samples.hellodb.servlet.GreeterDBServlet.doGet(GreeterDBServlet.java:91)
    at
    samples.hellodb.servlet.GreeterDBServlet.doPost(GreeterDBServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    atcom.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

Maybe you are looking for

  • Need working days for a particular month and year

    Hi, I need the number of working days for a particular month and year.Saturdays and Sundays are holidays. Regards, Vignesh

  • How do I download LION and do a clean install on a new disk?

    I have a brand new HD which has not yet been formatted.  I would like to download Lion and instead of updating my Snow Leopard OS disk I would like to do a clean install on this new drive. Do I first do a journaled format on the new drive...?  And if

  • HT5622 What steps  do you have to take to change your apple id for  your iCloud  account

    I have change my apple Id account from a aol email account to a gmail account . I am unable to change my apple I'd for iCloud to my new apple id  When the apple id window opens asking you for your password I enter the password for the old apple I'd u

  • Sending a long document

    I have no idea where to ask this question, so I'm doing so here. And, this is probably a stupid question with an obvious answer. I have to email a 4+ MB document to some non-Mac people. The document is currently in .rtf in Word 2004. If I simply make

  • Power Button not working on my Zen Mi

    Hi, recently bought a Zen Micro 6GB off Ebay, was brand new, not second hand, unit was fine for month or two until now, the power button isnt working at all. So the only way i can turn the unit on is to plug it into my USB port or to use my charger.