Tomcat7 + JDBC driver jar

Context:
According to the installation guide for bonitasoft (http://documentation.bonitasoft.com/dat … add_driver)
Tomcat 7
For Tomcat, simply add the JDBC driver jar file in the appropriate folder:
    Bonita BPM Tomcat bundle: in the bundle folder add the driver to the lib/bonita folder.
    Bonita BPM deploy bundle: in the Tomcat folder add the driver to the lib folder.
    Ubuntu/Debian package: add the driver to /usr/share/tomcat7/lib.
    Windows as a service: add the driver to C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib
Problem:
Which JDBC driver is meant ? I searched the web for an tomcat JDBC jar file for tomcat7 ?
This confused me further, I tought archlinux is analog to ubuntu and read the section platform installation example for (Ubuntu + OpenJDK + Tomcat + MySQL):
Add JDBC driver
You need to include JDBC driver in Tomcat classpath:
    Change to Tomcat libraries directory: cd /usr/share/tomcat7/lib.
    Download the library mysql-connector-java from the MySQL site to this directory.
But the mysql site (recommended by the installation guide) provides a download link for an tar.gz file and on google.code (https://code.google.com/p/find-ur-pal/d … 8-bin.jar&) I found .jar file. The installation guide clearly speaks about an .jar file. There are different version of the JDBC jar file on the web. Which one is right ?

Do you intend on continuing to spam the boards with this issue? Read the Etiquette and the wiki: https://wiki.archlinux.org/index.php/Tomcat_and_Apache
Moving to NC...

Similar Messages

  • Is changing the name of Oracle JDBC Driver JAR legally valid?

    Hi,
    I understand that it is legally fine to bundle Oracle JDBC driver JAR along with the applications. However, is it also legally OK to change that JAR name and then bundle it with the applications? Information on any legal implications which may need to be addressed is highly appreciated. I read through the licensing information and following is some excerpt:
    You may not:
    +<...>+
    - remove or modify any program markings or any notice of our proprietary rights;*
    I'm thinking if changing the JAR name either removes or modifies any program markings...
    Thanks in advance...
    ============================================================================
    Original post said "is it also legally OK to change that JAR"; now it is edited as "is it also legally OK to change that JAR *name*"
    ============================================================================
    Edited by: arm123 on Dec 1, 2010 7:51 PM

    arm123 wrote:
    I understand that it is legally fine to bundle Oracle JDBC driver JAR along with the applications. However, is it also legally OK to change that JAR and then bundle it with the applications? Information on any legal implications which may need to be addressed is highly appreciated. 1. A real answer can only come from a lawyer.
    2. I suspect the agreement allows you to rejar the classes. Which allow you to put it in any jar that you want.
    As with the other poster I don't see the point either.

  • Separating native JDBC driver JAR from applet JAR - best way?

    Since I want to allow the customers/users of my applet to choose their own native JDBC driver to purchase at their site, I don't bundle the JDBC driver into my applet's JAR file. During my testing, here's what I've done:
    1. Deployed my applet HTML and JAR files to a web server folder.
    2. Extracted my JDBC driver JAR file's contents to that same web server folder.
    (My applet HTML contains 2 parameters that allow the applet to use the JDBC driver -- class name and connection string template.)
    This works fine, but I'm wondering if I'm using the best techniques.
    Questions:
    1. Do the contents of the JDBC driver need to be extracted from its JAR file? If not, what do I do, if anything, to allow my applet to "see/find" the driver class within the JAR?
    2. If the JDBC JAR file DOES need to have its contents extracted, is there a way to extract them to a central folder somewhere on the web server and have a variety of applets use them? If so, what do I need to do to make my applet "see/find" the file(s) in the central folder?
    Possibly looking for this stucture on the web server:
    /WebApps/JDBCfiles
    /WebApps/MyDbApplet1
    /WebApps/MyDbApplet2
    /WebApps/MyDbApplet3
    Any advice/recommendations? Thanks.

    Is it possible for a client application to access a jarred JDBC driver? I'd like to deliver a JDBC driver packed in a jar file, however, it won't work, here is what I am tring to do
    try {
         Class.forName("mfg.jdbc.myDriver").newInstance(); //--> throw an exception
    m_Connection = DriverManager.getConnection(szURL, props);
    catch(Exception e) {/...}
    Before class myDriver and other classes from package mfg.jdbc were jarred, a client application used to get the connection just fine, now I get an exception "java.lang.ClassNotFoundException: mfg.jdbc.myDriver"
    I am using Java 2 Platform, no problem in running a jarred command like java -jar jarredclass.jar
    Any tips and hints would be gratfully received!
    Simon

  • Location of SQL Server JDBC Driver jar files

    Hi All,
    I have a java applet connecting to SQL Server 2000 through MS SQL Server 2000 jdbc driver. It works fine on all client machines only if I copy the three jar files of the driver (msbase.jar....) into ext folder of java. If not, I get an error message saying error establishing socket. Why is it necessary to copy these 3 files on to client machines when all the other jar files can be easily accessed from the server?
    Any ideas?
    Thanks,
    Manish

    Hi All,
    I have a java applet connecting to SQL Server 2000
    through MS SQL Server 2000 jdbc driver. It works fine
    on all client machines only if I copy the three jar
    files of the driver (msbase.jar....) into ext folder
    of java. If not, I get an error message saying error
    establishing socket. Why is it necessary to copy these
    3 files on to client machines when all the other jar
    files can be easily accessed from the server?
    Any ideas?
    Thanks,
    ManishIt is necessary because the applet is running ON THE CLIENT MACHINE. So the drive must be ON THE MACHINE.

  • How to add a JDBC driver jar to ESB project?

    I am developing an EJB project in JDeveloper 10.1.3.1. I am trying to connect MS SQL Server DB to the ESB. I set up the JDeveloper so it can connect to the MS SQL Server, list the tables&data. I put a DB Adapter using the existing connection to the diagram. When I deploy it to the Oracle AS I am getting oracle.toplink.exceptions.DatabaseException saying that the driver com.microsoft.sqlserver.jdbc.SQLServerDriver was not found. How do I package the JAR to the project so it gets uploaded to the server with the project files? If it is not possible, where should I put the jar so the server can use it?

    To get this working copy the jdbc jar file to the following directory
    %SOA_HOME%\j2ee\home\applib (basic)
    %SOA_HOME%\j2ee\oc4j_soa\applib (advanced)
    If you don't configure your datasources and JNDI names then it will use the connect string from your project. It is always best practice to use the application server connections
    cheers
    James

  • How to use a jdbc driver in caf

    Hi, all.
         I tried to make a ws to access DB with CAF, but I had no idea how to use a jdbc driver(.jar).
        Can anyone do me a favor? Thx 
        PS: my server is ce7.1
    Edited by: Louis HUANG on Jul 27, 2009 1:09 PM

    hi
    If you want to interact with db tables in caf,try like this.
    it may work..
    Using EJB call database tables using jdbc driver.
    Expose EJB as webservice.
    and using External service option of caf utilise this webservice in caf,do the necessary mappings..
    you can search in sdn,how to call DB tables in EJB..
    Regards
    sowmya.

  • Package oracle.jdbc.driver does not exist!!

    hi there..
    am writing a JBDC application and i got the following error:
    "package oracle.jdbc.driver does not exist"
    what am i supposed to do??
    well, am not sure, but i guess the above means that i dont have a JDBC driver for oracle; f i am right, where to get that from and how to install it (in terms of code and maybe enviroment variable)???
    one more question: if i want connect to another DB engine than oracle, for example sql server or DB2, do i have to get a different driver??
    Appreaciating ur cooperation
    MOurad

    Actually, if you're using JDK 1.4 or higher you should be using ojdbc14.jar from Oracle. classes12.zip is JDK 1.2 technology.
    If you connect to another relational database you should always get the JDBC driver JAR from that vendor. They don't work across different databases. - MOD

  • Jdbc Driver for MS SQL Server

    i want the JDBC Driver for MS SQL Server.
    is it available free?
    thanks in advance

    Install the SQL Server 2000 Driver for JDBC Service Pack 3.
    http://www.microsoft.com/downloads/details.aspx?FamilyID=07287b11-0502-461a-b138-2aa54bfdc03a&displaylang=en
    The SQL Server JDBC driver JAR files msbase.jar, mssqlserver.jar and msutil.jar get installed in the C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib directory.

  • Tomcat 4.0 Catilina & JDBC driver

    Greetings,
    I have cobbled together an app that accesses a DB2 UDB on an AIX box. I am using the IBM driver COM.ibm.db2.jdbc.app.DB2Driver. My app throws a class not found exception and errors out when I try to access the database at exactly the point where the driver loads "Class.forName(driverName);". I need assistance in telling Catilina (the servlet and jsp container) about this driver and have not found much doco on this to date. Any assistance appreciated!
    GPB

    BTW...I have the jdbc driver jar'd up in the lib directory.

  • JDBC Driver Type

    Hi -
    Does the XI JDBC adapter require a type 4 driver or can other types be used as well?
    Thanks,
    Jesse

    It looks like Note 850116 talks about this...
    1. JDBC Driver Deployment
    Q: How do I deploy the JDBC Driver JARs required to connect the JDBC Adapter to my DBMS?
    A: The JDBC driver deployment is performed using a special SDA file named aii_af_jmsproviderlib.sda which is shipped as an empty stub with your XI installation. For Type 4 drivers, information how to add your JDBC drivers to this SDA is available in section 11.1 of the SAP XI 3.0 Configuration Guide, which is available on the SAP Service Marketplace under the URL: http://service.sap.com/instguidesNW04.
          For Type 2 drivers, additional configuration steps are required, which are documented in note 850116.

  • JDBC Driver for Progress Database

    Hi experts,
    We need to connect our SAP PI 7.0 which is running on Windows 2003 Server x64 bit Standard/Enterprise Edition SP1 to a progress database 9.1D version on Unix. The problems are
    1. What JDBC driver should I use?
    2. We tried to copy progress JDBC driver jar files from the progress database installation directory into my windows machine and tried to run it, it fails to run. It gives the following error
    Error during database connection to the database URL 'jdbc:JdbcProgress:T:156.5.31.65:inodbc2' using the JDBC driver 'com.progress.sql.jdbc.JdbcProgressDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL 'jdbc:JdbcProgress:T:156.5.31.65:inodbc2''
    3. Does anyone know what connection architecture should I use to run under such environment?
    Thanks
    Charu

    Hi,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Please check the driver path as mentioned below.
    JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
    No JDBC driver required.
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    follow this thread
    Re: Problem when connecting to MS Access through JDBC Adapter.
    SAP Note 850116 has details
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • JDBC driver is not working in JAR file

    Hello
    Java is new for me.
    In my project JDBC is working fine for MSSQL Server 2000. It is developed in Netbeans.
    Now When I am going to rin JAR file of project, Driver for MSSQL is not found.
    Can anyone tell me that What I have to do to work with MSSQL driver in JAR file of project?
    I am using "Microsoft SQL Server 2000 Driver for JDBC" for JDBC.

    In my project JDBC is working fine for MSSQL Server
    2000. It is developed in Netbeans.
    Now When I am going to rin JAR file of project,
    Driver for MSSQL is not found.
    Can anyone tell me that What I have to do to work
    with MSSQL driver in JAR file of project?
    I am using "Microsoft SQL Server 2000 Driver for
    JDBC" for JDBC.Adding the JAR to the Netbeans project means adding it to the classpath for the IDE only, the JAR which you developed still needs the driver jar in the classpath.

  • Orai18n-mapping.jar in Instant Client, but not in JDBC Driver

    Hello,
    i searched about my question, but no answer. :(
    I downloaded the complete JDBC Driver packages (*ojdbc5.jar* + ojdbc6.jar + orai18n.jar) for Oracle 11g at:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html
    I downloaded the Basic + JDBC supplement packages of Instant Client of Oracle 11g at:
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
    There is a mismatch of files between 2 ways of getting the jdbc drivers. In the Instant Client version via JDBC-Supplement, the orai18n-mapping.jar is present, but not in the JDBC way.
    Why is the orai18n-mapping.jar present in one way, and not the other? Is it an error? It's all about 11g version of oracle....
    Thanks
    Bruno Lavoie
    Edited by: brlav35 on Mar 4, 2009 3:57 PM

    Well, in my understanding, Instant client and JDBC drivers are completely different products: JDBC driver is a full-featured set of packages required to run JDBC-compatible program, i.e. it's enough to run a program in any supported Oracle environment. On the other hand, Instant client is a lightweight version, which does not include several JARs and some of them are present in different form, but it's enough for most JDBC-programs. See: orai18n.jar is a required package for correct Oracle object's VARCHARs attributes handling. It contains locale files for different languages. In orai18n-mapping.jar, there's no many of them, but I suppose it would be enough for the same task (probably they do not store locales in that JAR version, but rather build them on the fly if needed with help of DB - but I don't know for sure).

  • .jar includes jdbc driver but doesn't work

    Hi
    I'm quite new with Java. I've just created my first app in java, it's some kind of CMS. I have to give to my friend who can only install JVM and I can't set up his computer, because he lives in other city. What's the problem then:
    I tried to compile (build) complete file with jdbc driver. And actually I've done it (when I open jar with winrar I see that mysql-connector.jar is there) but it's not working. I still have error:
    SQLException: com.mysql.jdbc.Driver
    No suitable driver
    08001
    It works fine when I'm running it with NetBeans, but built jar doesn't work at all.
    Please help me with this problem. I was searching in many forums for the same problem, but no one had it (I mean EXACTLY the same). I have had many problems already with adding connector to NetBeans project at the beginning, but finally I've done it after 2 days - reinstallation of NB solved the problem. Is it possible that's NB fault again?
    Thx for any clues
    Michael

    Hello,
    Try to include a Class-Path option in the Manifest of your jar and see if that works.
    Hope this helps

  • Xdb6.jar in JDBC Driver 11.2.0.3

    I noticed the following in the JDBC driver download section for 11.2.0.3
         xdb6.jar (262,740 bytes) - To use the standard JDBC4.0 java.sql.SQLXML interface with JDBC 11.2.0.3, you need to use xdb6.jar (instead of xdb.jar) from the 11.2.0.3 distribution..
    Can someone elaborate what this is ?
    From the brief description I gather, we may not need to use the propriatary oracle.xdb.XMLType , bet we can used java.sql.SQLXML type.
    Is this correct ? Any further documents for this ?
    Also can we then use only the jdbc thin driver, or do we still need to use the "thick" (oci) driver ? Coz from what I know, XMLTYpe could only be accessed with thick driver, because
    the thin dirver did not have all the code necessary for working with XMLType.
    Secondly, we also dequeue XMLType messages from a Oracle AQ. Can we use xdb6.jar there too, and dequeue java.sql.SQLXML , instead of oracle.xdb.XMLType ? And there too, can we
    use the thin driver ?

    The class that provides the Oracle Implementation of JDBC 4.0 Interface java.sql.SQLXML also implements the XMLType interface. So the object returned when an XMLType is part of the result set of a SQL statement can be cast either way. java.sql.SQLXML is still a somewhat inferior implementation in terms of the functionality it provides, but if it meets your needs you can now use it in conjunction with XMLType stored in the database. If you find that you need the richer capabilities of XMLType, you should be able to CAST your java.sql.SQLXML object to XMLType.

Maybe you are looking for