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
Similar Messages
-
How to add new JDBC driver ?
OS - Linux
SunAppServ 9.1
Hi, I want to create in AdminPanel on 4848 port new ConnectionPool in Resources/JDBC.
To do this I can chose Postgres Vendor but I want to use my new Postgres driver because default is not work.
I hava postgresql-8.2-505.jdbc4.jar file
in this file there is a directories org/postgresql/ds/PGPoolingDataSource.class which I want to use.
Where I should copy this postgresql-8.2...jar file
I tried copy to JEE5_HOME/lib/. and in secend step i write class postgresql-8.2-505.jdbc4.org.postgresql.ds.PGPoolingDataSource
but this doesn't work.
BTW this driver work in NetBeans (I have jdbc connection in Runtime and linked this driver)Please Refer :
1) http://blogs.sun.com/JagadishPrasath/entry/creating_jdbc_connection_pool_resource
2) http://blogs.sun.com/JagadishPrasath/entry/jdbc_connection_pool_templates_glassfish -
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 PMhi
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. -
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... -
Hi
i install websphere 5 and try to connect to my sql server but cannot find jdbc driver class path and can not find any jdbc driver
pls tell me how can i install jdbc driver in my websphere
with regardsYou may get a better response posting this question in a WebSphere specific forum. Maybe this will help, the following link shows the command you need to execute to install a JDBC driver in websphere 5.0.
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?tab=search&searchWord=mysql+driver&maxHits=50 -
How to add a excel driver in the Adminstrator tools
how to add a excel driver in the adminstrator tools > odbc Datasource,
I have to add the name and excel sheet location in the SystemDsn but whiling finishing the stups i will get the error like
error found could not found the registery.
,So is there any other setting is required while i am adding in the excel driver
please help me out for this ,this is 1st time am using the excel source in the report data source..I'd ask them over here.
Windows forums on Microsoft Answers
Office Excel forums on Micrsoft Answers
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
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 PMarm123 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 -
How to add the library of linphone into existing project ?
How to add the library of linphone into existing project ?
How to add the library of linphone into existing project ?
-
How to update oracle jdbc driver to 11.1.0.7.0 JDBC Drivers
HI,
I got a jdbc exception *" java.lang.ArrayIndexOutOfBoundsException "*.
I have known that it is a Oracle JDBC bug and Oracle BUG number is BUG-6396242.
The problem is too many rows per database transaction and it is fixed at version 11.1.0.7 Oracle JDBC Drivers.
Here is the 11.1.0.7 Oracle JDBC Driver Readme.
http://www.oracle.com/technetwork/database/enterprise-edition/111070-readme-083278.html
and the download
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-111060-084321.html
My question is :
*1.How to update oracle jdbc drivers with those downloads ?*
(ps. I have replaced ojdbc5_g.jar, ojdbc5.jar, ojdbc6_g.jar, ojdbc6_g.jar in $ORACLE/jdbc, but it did'nt work. )
*2.My Oracle version is 11.1.0.6.0, will it be OK if only update the JDBC driver?*
*3.Do I need to update the jdbc driver where my program runs on the client side ?*
Thanks for answers~ :)Upgrade your database version to 11.1.0.7.
Installation docs are included with all patches and upgrades. -
How to Include Oracle JDBC Driver
Hi Experts,
We have a requirement to access the database through Java Code. We are using NWDS. But we are n't able to find a clue, how to add the driver to the project. This option was there in Eclipse, if I remember correctly.
We are using NWDS for the first time. Could any one please give a clue, if we need to do the same in a different way.
Regards,
SSHi Vijay,
Thanks for the reply. But we need a stand alone program to run at the command prompt(of SAP server), and the sample code is as follows.
package abc;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
* @author SahuS
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
public class InsertData {
public static void main(String[] args) throws SQLException {
Statement mystat = null;
Connection conn = null;
try
// Step 1: Load the JDBC driver.
Class.forName("oracle.jdbc.driver.OracleDriver");
// Step 2: Establish the connection to the database.
conn = DriverManager.getConnection(
"jdbc:oracle:thin:@SERVERNAME:1527:SXI", // URL
"SAPSXIDB", // username
"PASSWORD" // password
mystat = conn.createStatement();
ResultSet rs = mystat.executeQuery("select * from sapsxidb.zemp_1;");
while (rs.next()) {
System.out.println(
rs.getInt(1) + // first column
"\t" + // the horizontal tab
rs.getString(2) // second column
mystat.close();
conn.close();
catch (Exception e)
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
finally{
As, we could not get the option to import the Oracle JDBC Driver, we are getting exception
Got an exception!
oracle.jdbc.driver.OracleDriver
So, any clue, how we can import the driver in NWDS and use it?
Regards,
SS -
How to install jTDS jdbc driver
I've heard so much about this jTDS driver, and had it with the current jdbc driver i'm using. I'm using slserver 7. i would like to install the jtds driver. I just downloaded the .jar file. how do i install the driver. which directory do i put it in? pls help asap. thanks a million.
"Install" it?
The directory you put it in depends greatly on the application that's using it.
If it's a desktop app, put in in the CLASSPATH for the app.
If it's a Web app, put it in the WEB-INF/lib directory for your app.
It's not a cut & dried answer. I don't think one JAR file will necessarily serve all apps. Expect to have duplicates as needed. I do.
% -
UCCX 8 access db_cra from script add informix jdbc driver
Hi,
I want to use the db_cra database for the last agent routing from the call flow script.
I will run a query which serach wihtin the last 24 hours which agent talked to the customer the last time.
The problem is, that I'm not able to add the informix db into the uccx database subsystems.
I can only select these driver classes:
net.sourceforge.jtds.idbc.driver
com.ibm.db2.jcc.DB2Driver
oracle.jdbc.driver.OrcaleDriver
com.sybase.jdbc2.jdbc.SybDriver
But for the Informix Db I think I would need the driver class:
com.informix.jdbc.IfxDriver.
Has anyone a idea how to add a driver class or how to access the db_cra from the script?
I know that it is possible to use a differnt database (like MSSQL) and write each time a agent gets a call the data to this db and access this one for last agent routing functions. But I want to use the db_cra for this.
thanks
MarkusHi,
there is no way to do it that way.
You can't access the Informix DB directly from UCCX script.
But you can use a SQL server as a middleware. So you have to setup a SQL server and add the Informix db as a linked server.
Now you should be able to access the SQL server from the UCCX script.
Kind regards
Markus
CONET Solutions GmbH
Markus Schweitzer,
Theodor-Heuss-Allee 19, 53773 Hennef
Tel.: +49 2242 939-676, Fax: +49 2242 939-393
Mobil: +49 173 5486337
Internet: http://www.conet.de, mailto: [email protected] -
How to register MySQL JDBC Driver in OC4J
Does anyone know how to register the MySQL JDBC driver in OC4J ?
When your application must connect to heterogeneous databases, use DataDirect JDBC drivers. DataDirect JDBC drivers are not meant to be used with an Oracle database but for connecting to non-Oracle databases, such as Microsoft, SQLServer, Sybase and DB2. If you want to use DataDirect drivers with OC4J, add corresponding entries for each database in the data-sources.xml file.
Please see the DataDirect documentation for information on installing the DataDirect JDBC drivers.
The following is an example of a data source entry for SQLServer. For more detailed information, see the DataDirect Connect JDBC User's Guide and Reference.
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="MerantDS"
location="jdbc/MerantCoreSSDS"
xa-location="jdbc/xa/MerantSSXADS"
ejb-location="jdbc/MerantSSDS"
connection-driver="com.merant.datadirect.jdbc.sqlserver.SQLServerDriver"
username="test"
password="secret"
url="jdbc:sqlserver//hostname:port;User=test;Password=secret"
inactivity-timeout="30"
/>
For a DB2 database, here is a data source configuration sample:
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="MerantDS"
location="jdbc/MerantDB2DS"
xa-location="jdbc/xa/MerantDB2XADS"
ejb-location="jdbc/MerantDB2DS"
connection-driver="com.merant.datadirect.jdbc.db2.DB2Driver"
username="test"
password="secret"
url="jdbc:sqlserver//hostname:port;LocationName=jdbc;CollectionId=default;
inactivity-timeout="30"
/>
For a Sybase database, here is a data source configuration sample:
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="MerantDS"
location="jdbc/MerantCoreSybaseDS"
xa-location="jdbc/xa/MerantSybaseXADS"
ejb-location="jdbc/MerantSybaseDS"
connection-driver="com.merant.datadirect.jdbc.sybase.SybaseDriver"
username="test"
password="secret"
url="jdbc:sqlserver//hostname:port;User=test;Password=secret"
inactivity-timeout="30"
/>
please link: http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97690/ds3.htm#100612 -
How to install a JDBC driver?
Hello, everybody!
I'm new to Java and I'm trying to install a JDBC driver. So, I downloaded the JayBird,
a JDBC driver for Firebird, and now I don't know how to install the driver. I keep
getting this message from the compiler when I try to compile the example that comes
with the driver:
DriverExample.java:182: package org.firebirdsql.jdbc does not exist
d = new org.firebirdsql.jdbc.FBDriver ();
^
1 error
So, in the directory that has the example file (DriverExample.java) I created the
following directory structure:
C:\Example\org\firebirdsql\jdbc
and inside the jdbc directory I copied the driver files:
firebirdsql.jar
mini-concurrent.jar
jaas.jar
mini-j2ee.jar
log4j-core.jar
and I still keep getting the error from the compiler. I just would like to
know what I have to do to install this driver correctly for the compiler to
find its packages.
Below are the instructions the comes with the help to install JayBird, but I
think that I did everything and it still didn't work:
======================================================================
The classes from firebirdsql.jar must be in the classpath of the Java
application being compiled, or otherwise made available to your application.
The classes from the following packages must also be available:
mini-concurrent.jar
jaas.jar (included in jdk 1.4)
mini-j2ee.jar (now including JDBC classes)
log4j-core.jar (if you want logging available)
The firebirdsql-full.jar file has all of the needed files in one
archive for ease of use.
These archives are included in the binary package.
======================================================================
Please can someone help me?
Thank you...
MarcosMy file (DriverExample.java) is in the directory 'Example' and the driver files are in the directory 'Example\org\firebirdsql\jdbc'
That's what I did inside the directory 'Example'
javac -classpath org/firebirdsql/jdbc/firebirdsql.jar DriverExample.java
And that compiled ok.
Now how can I specify where the driver files are for the java.exe? Of course I tried:
java DriverExample
and it didn't work.
Maybe you are looking for
-
How to fill a Key figure at Query run time
Hi All, I have a requirement where I have to fill a key figure while the query is running. This value is obtained by multiplying 2 attributes of a Material Master Data object.I could have used Formula Variable but there are two problems - 1. I have
-
Error 3259 Connection Timed Out???
New arrival here, but a bit slow on tech talk. Anyway, I've never had problem with itunes until today. I purchased an album, and it shows up in the downloads list, but I keep getting a connection time out error, despite the fact that I can use the re
-
Workflow Single Email Notifications
Hello all! We have a custom workflow that sends an email notification based on list data in two fields MATCHING up SEID (employee ID) and SEID of Shipping POC. The employee that correlates to the SEID of Shipping POC field will receive an email notif
-
Hello! I'm using Vista and have some problems synchronizing the contacts. All contact is copied to C:\ root from phone. Isn't it possible to get them synched to ...Users\Contacts\ -folder and added as a Vista-contact? The settings for PC Suite is to
-
Luamail: a mail client built into luakit
see http://dieter.plaetinck.be/luamail_a_ma - uakit.html