No Suitable Driver: getConnection

Hi,
I was using NetBeans for development and i had no problems, but i just recently started using Homesite for my editor and now when i run my program i get the following error:
java.sql.SQLException: No suitable driver
     at java.sql.DriverManager.getConnection(DriverManager.java:532)
     at java.sql.DriverManager.getConnection(DriverManager.java:193)
Here is my code - any suggestions would be great.
<%@page import= "java.lang.*, java.io.*, java.util.*, java.sql.*, com.beans.Login"%>
<jsp:useBean id="login" class="com.beans.Login" scope = "session" />
<jsp:setProperty name="login" property="*" />
<%=login.getUserName()%><%=login.getPassword()%>
<br>
<%
Driver drv = (Driver)
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Test2");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("Select * from Employee");
while ( rs.next() )
int eeType = rs.getInt("EmployeeType_ID");
int employeeID = rs.getInt("Employee_ID");
-- do what i need to do
Thanks in advance..
-Bell

This error may mean that there's a mistake in your URL...so make sure it is correct (i.e. no spelling mistakes, ...)

Similar Messages

  • ** 911 ** Cannot connect to oracle 9i database No suitable Driver

    All:
    Any help rendered would be appreciated. (jdk 1.4.2_06, Tomcat 4.0,
    Oracle DB 9i Windows XP)
    I have a web app (Jasper report tool) and I cannot connect to a Oracle 9i database.
    1)error received: "Apr 2, 2007 2:05:15 PM com.entDB.Enterprise_db connectToDatabase SEVERE: Function connectToDatabase() - Cannot load the driver, reason:java.sql.SQLException: No suitable driverCheck classpath for driver java.sql.SQLException: No suitable driver
    2)CLASSPATH SETTING = C:\tomcat\common\lib\ojdbc14.jar
    3)Source code:
    protected boolean connectToDatabase() {
    try {
    // I tried this !!! Class.forName("oracle.jdbc.driver.OracleDriver");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection("URL,USER,PASSWORD ");
    return true;
    }catch (SQLException e) {
    logger.error("Function connectToDatabase() - Cannot load the driver, reason:" + e.toString() + "Check classpath for driver ", e);
    return false;
    4.I placed a copy of the jar file in TOMCAT common lib, and server lib.
    I have tried various solutions listed at different web sites without success. Has anyone had similiar problems? Can anyone assist?
    thanks ......
    ******* Confused *********

    I used 911 because It is an emergency for me (I am
    under a deadline) . You might want to read this: Urgent Questions
    URL, PASSWORD, USER are strings
    declared in another section of code.Yes, but in the code you posted the variable names are all inside double quotes?

  • No suitable driver found error while connecting to remote IBM DB2 database.

    While trying to connect to IBM DB2 database on a remote location, though the connection was successful from 'Application Resources', following trace could be recovered while performing 'Run' from 'AppModule':
    ERROR:
    (oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.
    ----- Level 1: Detail 0 -----
    (java.sql.SQLException) No suitable driver found for jdbc:as400://XX.XXX.XX.XXX;naming=system;libraries=TEST;translate binary=true;prompt=false
    [891] (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode = Immediate
    [892] Creating a new pool resource
    [893] BC4JDeployPlatform: LOCAL
    [894] Propertymanager: skipping reload of file and system based properties
    [895] {{ begin Loading BC4J properties
    [896] -----------------------------------------------------------
    [897] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
    [898] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
    [899] Skipping empty Property jbo.default.locale.variant from System Default
    [900] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
    [901] Skipping empty Property ConnectionMode from System Default
    [902] Skipping empty Property HostName from System Default
    [903] Skipping empty Property ConnectionPort from System Default
    [904] BC4J Property jbo.locking.mode='optimistic' -->(MetaObjectManager) from Client Environment
    [905] BC4J Property jbo.txn.disconnect_level='0' -->(SessionImpl) from System Default
    [906] Skipping empty Property ApplicationPath from System Default
    [907] BC4J Property AppModuleJndiName='model.AppModule' -->(SessionImpl) from Client Environment
    [908] Skipping empty Property java.naming.security.principal from System Default
    [909] Skipping empty Property java.naming.security.credentials from System Default
    [910] Skipping empty Property jbo.user.principal from System Default
    [911] BC4J Property jbo.simulate.remote='false' -->(SessionImpl) from System Default
    [912] BC4J Property jbo.security.context='oracle.security.jazn' -->(MetaObjectManager) from System Default
    [913] Skipping empty Property jbo.object.marshaller from System Default
    [914] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Default
    [915] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
    [916] BC4J Property jbo.pers.max.active.nodes='30' -->(SessionImpl) from System Default
    [917] BC4J Property jbo.validation.threshold='10' -->(SessionImpl) from System Default
    [918] BC4J Property jbo.sparse.array.threshold='20' -->(SessionImpl) from System Default
    [919] Skipping empty Property jbo.pcoll.mgr from System Default
    [920] BC4J Property jbo.txn_table_name='PS_TXN' -->(SessionImpl) from System Default
    [921] BC4J Property jbo.txn_seq_name='PS_TXN_seq' -->(SessionImpl) from System Default
    [922] BC4J Property jbo.txn_seq_inc='50' -->(SessionImpl) from System Default
    [923] BC4J Property jbo.control_table_name='PCOLL_CONTROL' -->(MetaObjectManager) from System Default
    [924] BC4J Property jbo.stringmanager.factory.class='use_default' -->(SessionImpl) from System Default
    [925] BC4J Property jbo.domain.date.suppress_zero_time='true' -->(MetaObjectManager) from System Default
    [926] BC4J Property jbo.domain.bind_sql_date='true' -->(MetaObjectManager) from System Default
    [927] BC4J Property jbo.domain.string.as.bytes.for.raw='false' -->(MetaObjectManager) from System Default
    [928] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
    [929] BC4J Property jbo.323.compatible='false' -->(MetaObjectManager) from System Default
    [930] BC4J Property jbo.903.compatible='false' -->(MetaObjectManager) from System Default
    [931] Skipping empty Property JBODynamicObjectsPackage from System Default
    [932] BC4J Property MetaObjectContextFactory='oracle.jbo.mom.xml.DefaultMomContextFactory' -->(MetaObjectManager) from System Default
    [933] BC4J Property jbo.load.components.lazily='false' -->(MetaObjectManager) from System Default
    [934] BC4J Property MetaObjectContext='oracle.jbo.mom.xml.XMLContextImpl' -->(MetaObjectManager) from System Default
    [935] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
    [936] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from Client Environment
    [937] BC4J Property oracle.jbo.usemds='true' -->(MetaObjectManager) from System Default
    [938] BC4J Property oracle.adfm.usemds='true' -->(MetaObjectManager) from System Default
    [939] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
    [940] Skipping empty Property HandleName from System Default
    [941] Skipping empty Property Factory-Substitution-List from System Default
    [942] BC4J Property jbo.project='model.Model' -->(Configuration) from Client Environment
    [943] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
    [944] WARNING: Property jbo.dofailoverset to null
    [945] Skipping empty Property jbo.dofailover from null
    [946] WARNING: Property jbo.envinfoproviderset to null
    [947] Skipping empty Property jbo.envinfoprovider from null
    [948] Skipping empty Property jbo.rowid_am_conn_name from System Default
    [949] Skipping empty Property jbo.rowid_am_datasource_name from System Default
    [950] WARNING: Property jbo.ampool.writecookietoclientset to null
    [951] Skipping empty Property jbo.ampool.writecookietoclient from null
    [952] WARNING: Property jbo.doconnectionpoolingset to null
    [953] Skipping empty Property jbo.doconnectionpooling from null
    [954] WARNING: Property jbo.recyclethresholdset to null
    [955] Skipping empty Property jbo.recyclethreshold from null
    [956] WARNING: Property jbo.ampool.dynamicjdbccredentialsset to null
    [957] Skipping empty Property jbo.ampool.dynamicjdbccredentials from null
    [958] BC4J Property jbo.ampool.resetnontransactionalstate='true' -->(SessionImpl) from System Default
    [959] BC4J Property jbo.ampool.sessioncookiefactoryclass='oracle.jbo.common.ampool.DefaultSessionCookieFactory' -->(Configuration) from Client Environment
    [960] WARNING: Property jbo.ampool.connectionstrategyclassset to null
    [961] Skipping empty Property jbo.ampool.connectionstrategyclass from null
    [962] WARNING: Property jbo.ampool.maxpoolsizeset to null
    [963] Skipping empty Property jbo.ampool.maxpoolsize from null
    [964] BC4J Property jbo.ampool.initpoolsize='0' -->(Configuration) from Client Environment
    [965] WARNING: Property jbo.ampool.monitorsleepintervalset to null
    [966] Skipping empty Property jbo.ampool.monitorsleepinterval from null
    [967] WARNING: Property jbo.ampool.minavailablesizeset to null
    [968] Skipping empty Property jbo.ampool.minavailablesize from null
    [969] WARNING: Property jbo.ampool.maxavailablesizeset to null
    [970] Skipping empty Property jbo.ampool.maxavailablesize from null
    [971] WARNING: Property jbo.ampool.maxinactiveageset to null
    [972] Skipping empty Property jbo.ampool.maxinactiveage from null
    [973] WARNING: Property jbo.ampool.timetoliveset to null
    [974] Skipping empty Property jbo.ampool.timetolive from null
    [975] WARNING: Property jbo.ampool.doampoolingset to null
    [976] Skipping empty Property jbo.ampool.doampooling from null
    [977] WARNING: Property jbo.ampool.issupportspassivationset to null
    [978] Skipping empty Property jbo.ampool.issupportspassivation from null
    [979] BC4J Property jbo.ampool.isuseexclusive='true' -->(SessionImpl) from System Default
    [980] BC4J Property jbo.passivationstore='null' -->(SessionImpl) from System Default
    [981] BC4J Property jbo.saveforlater='false' -->(SessionImpl) from System Default
    [982] BC4J Property jbo.snapshotstore.undo='persistent' -->(SessionImpl) from System Default
    [983] BC4J Property jbo.maxpassivationstacksize='10' -->(SessionImpl) from System Default
    [984] BC4J Property jbo.txn.handleafterpostexc='false' -->(SessionImpl) from System Default
    [985] BC4J Property jbo.connectfailover='true' -->(SessionImpl) from System Default
    [986] BC4J Property jbo.datasource_naming_factory='oracle.jbo.server.DataSourceContextFactory' -->(MetaObjectManager) from System Default
    [987] WARNING: Property jbo.maxpoolcookieageset to null
    [988] Skipping empty Property jbo.maxpoolcookieage from null
    [989] WARNING: Property PoolClassNameset to null
    [990] Skipping empty Property PoolClassName from null
    [991] BC4J Property jbo.maxpoolsize='4096' -->(MetaObjectManager) from System Default
    [992] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
    [993] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
    [994] BC4J Property jbo.poolmonitorsleepinterval='600000' -->(MetaObjectManager) from System Default
    [995] BC4J Property jbo.poolminavailablesize='5' -->(MetaObjectManager) from System Default
    [996] BC4J Property jbo.poolmaxavailablesize='25' -->(MetaObjectManager) from System Default
    [997] BC4J Property jbo.poolmaxinactiveage='600000' -->(MetaObjectManager) from System Default
    [998] BC4J Property jbo.pooltimetolive='-1' -->(MetaObjectManager) from System Default
    [999] BC4J Property jbo.qcpool.monitorsleepinterval='1800000' -->(SessionImpl) from System Default
    [1000] BC4J Property jbo.qcpool.maxinactiveage='900000' -->(SessionImpl) from System Default
    [1001] BC4J Property jbo.qcpool.maxweight='-1' -->(SessionImpl) from System Default
    [1002] BC4J Property RELEASE_MODE='Stateful' -->(MetaObjectManager) from System Default
    [1003] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
    [1004] BC4J Property jbo.viewlink.consistent='DEFAULT' -->(MetaObjectManager) from System Default
    [1005] BC4J Property jbo.finder.range.size='DEFAULT' -->(MetaObjectManager) from System Default
    [1006] BC4J Property jbo.passivation.TrackInsert='true' -->(MetaObjectManager) from System Default
    [1007] Skipping empty Property jbo.ViewCriteriaAdapter from System Default
    [1008] BC4J Property jbo.SQLBuilder='DB2' -->(MetaObjectManager) from Client Environment
    [1009] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
    [1010] BC4J Property jbo.TypeMapEntries='OracleApps' -->(MetaObjectManager) from Client Environment
    [1011] Skipping empty Property jbo.sql92.JdbcDriverClass from System Default
    [1012] BC4J Property jbo.sql92.LockTrailer='FOR UPDATE' -->(MetaObjectManager) from System Default
    [1013] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
    [1014] BC4J Property jbo.abstract.base.check='true' -->(MetaObjectManager) from System Default
    [1015] BC4J Property jbo.assoc.where.early.set='false' -->(MetaObjectManager) from System Default
    [1016] BC4J Property jbo.use.findbykey.for.assoc='true' -->(MetaObjectManager) from System Default
    [1017] BC4J Property jbo.sql92.DbTimeQuery='select sysdate from dual' -->(MetaObjectManager) from System Default
    [1018] BC4J Property oracle.jbo.defineColumnLength='skipDefines' -->(MetaObjectManager) from System Default
    [1019] BC4J Property jbo.jdbc_bytes_conversion='jdbc' -->(MetaObjectManager) from System Default
    [1020] Skipping empty Property jbo.tmpdir from System Default
    [1021] Skipping empty Property jbo.server.internal_connection from System Default
    [1022] BC4J Property SessionClass='oracle.jbo.server.SessionImpl' -->(SessionImpl) from System Default
    [1023] Skipping empty Property TransactionFactory from System Default
    [1024] Skipping empty Property jbo.def.mgr.listener from System Default
    [1025] Skipping empty Property jbo.use.global.sub.map from System Default
    [1026] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
    [1027] BC4J Property jbo.debug.prefix='DBG: ' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1028] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1029] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1030] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1031] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1032] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [1033] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
    [1034] Skipping empty Property oracle.home from System Default
    [1035] Skipping empty Property oc4j.name from System Default
    [1036] Skipping empty Property jbo.shared.txn from System Default
    [1037] BC4J Property oracle.adfm.useSharedTransactionForFrame='true' -->(MetaObjectManager) from System Default
    [1038] BC4J Property oracle.adfm.joinNewFrameTransaction='false' -->(MetaObjectManager) from System Default
    [1039] BC4J Property jbo.ejb.txntimeout='1830' -->(SessionImpl) from System Default
    [1040] BC4J Property jbo.ejb.txntype='global' -->(SessionImpl) from System Default
    [1041] BC4J Property jbo.ejb.txn.disconnect_on_completion='false' -->(SessionImpl) from System Default
    [1042] BC4J Property jbo.ejb.useampool='false' -->(SessionImpl) from Client Environment
    [1043] Skipping empty Property oracle.jbo.schema from System Default
    [1044] BC4J Property jbo.xml.validation='false' -->(MetaObjectManager) from System Default
    [1045] BC4J Property ord.RetrievePath='ordDeliverMedia' -->(MetaObjectManager) from System Default
    [1046] BC4J Property ord.HttpMaxMemory='102400' -->(MetaObjectManager) from System Default
    [1047] Skipping empty Property ord.HttpTempDir from System Default
    [1048] BC4J Property ord.wmp.classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' -->(MetaObjectManager) from System Default
    [1049] BC4J Property ord.qp.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' -->(MetaObjectManager) from System Default
    [1050] BC4J Property ord.rp.classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' -->(MetaObjectManager) from System Default
    [1051] BC4J Property ord.wmp.codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' -->(MetaObjectManager) from System Default
    [1052] BC4J Property ord.qp.codebase='http://www.apple.com/qtactivex/qtplugin.cab' -->(MetaObjectManager) from System Default
    [1053] Skipping empty Property ord.rp.codebase from System Default
    [1054] BC4J Property ord.wmp.plugins.page='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&' -->(MetaObjectManager) from System Default
    [1055] BC4J Property ord.qp.plugins.page='http://www.apple.com/quicktime/download/' -->(MetaObjectManager) from System Default
    [1056] BC4J Property ord.rp.plugins.page='http://www.real.com/player/' -->(MetaObjectManager) from System Default
    [1057] BC4J Property jbo.security.enforce='None' -->(SessionImpl) from System Default
    [1058] BC4J Property jbo.security.loginmodule='oracle.security.jazn.oc4j.JAZNUserManager' -->(SessionImpl) from System Default
    [1059] Skipping empty Property jbo.security.config from System Default
    [1060] BC4J Property jbo.server.useNullDbTransaction='false' -->(SessionImpl) from System Default
    [1061] BC4J Property jbo.domain.reopenblobstream='false' -->(MetaObjectManager) from System Default
    [1062] BC4J Property jbo.server.retainAssocAccessor='false' -->(SessionImpl) from System Default
    [1063] BC4J Property jbo.groovy.debug='false' -->(MetaObjectManager) from System Default
    [1064] BC4J Property jbo.busevent.suspendpublication='false' -->(SessionImpl) from System Default
    [1065] BC4J Property oracle.adfm.DefaultEventPolicy='NONE' -->(MetaObjectManager) from System Default
    [1066] BC4J Property oracle.adfm.useRootFrameOnly='false' -->(MetaObjectManager) from System Default
    [1067] Copying unknown Client property (user='TESTER') to session
    [1068] Copying unknown Client property (FullProxyInterfaceName='model.common.AppModule') to session
    [1069] Copying unknown Client property (jbo.applicationmoduleclassname='model.AppModule') to session
    [1070] Copying unknown Client property (jbo.jdbc.username='TESTER') to session
    [1071] Copying unknown Client property (BC4JConfigName='AppModuleLocal') to session
    [1072] Copying unknown Client property (DsPasswd='workout') to session
    [1073] Copying unknown Client property (JDBCName='ConnectTo146') to session
    [1074] Copying unknown Client property (DsUserName='TESTER') to session
    [1075] Copying unknown Client property (name='137E06086E5') to session
    [1076] Copying unknown Client property (ApplicationName='model.AppModule') to session
    [1077] Copying unknown Client property (LastUsedConfiguration='AppModuleLocal') to session
    [1078] Copying unknown Client property (password='*****') to session
    [1079] Copying unknown Client property (JDBCDataSource='java:comp/env/jdbc/ConnectTo146DS') to session
    [1080] Copying unknown Client property (jbo.jdbc.connectstring='jdbc:as400:/;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false') to session
    [1081] Copying unknown Client property (DBconnection='jdbc:as400://;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false') to session
    [1082] Copying unknown Client property (jbo.jdbc.password='*****') to session
    [1083] }} finished loading BC4J properties
    [1084] -----------------------------------------------------------
    [1085] Connected to Oracle JBO Server - Version: 11.1.2.61.83
    [1086] mPCollUsePMgr is false
    [1087] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
    [1088] ViewObjectImpl.mDefaultMaxActiveNodes is 30
    [1089] Default locking mode changed to: optimistic
    [1090] Created root application module: 'model.AppModule'
    [1091] Locale is: 'en_US'
    [1092] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
    [1093] Trying connection: DataSource='oracle.jbo.server.ConnectionPoolDataSource@191d9ad'...
    [1094] Using the oracle.jbo.server.ConnectionPoolDataSource to acquire a connection...
    [1095] Creating a new pool resource
    [1096] Trying connection/3: url='jdbc:as400:/*****' user='TESTER' password='*****' ...
    [1097] DBTransactionImpl.initTransaction: Login failed
    [1098] java.sql.SQLException: No suitable driver found for jdbc:as400:;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false
         at java.sql.DriverManager.getConnection(DriverManager.java:602)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
         at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
         at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9021)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
    [1099] A dead application module instance was detected
    [1100] The application module instance was removed from the pool
    [1101] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
    [1102] Resetting AM=AppModule
    [1103] An exception occured during checkout.
    [1104] oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
         at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9021)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
    Caused by: java.sql.SQLException: No suitable driver found for jdbc:as400://naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false
         at java.sql.DriverManager.getConnection(DriverManager.java:602)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
         at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
         ... 32 more
    [1105] JUErrorHandlerDlg.reportException(oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper)
    [1106] UIMessageBundle (language base) being initialized
    Jun 12, 2012 4:38:26 PM oracle.jbo.jbotester.MainFrame exit
    INFO: BC4J Tester exit code(-3)
    Process exited with exit code -3.

    When you use DB2 SQL flavor, the ADF BC use the oracle.jbo.server.DB2SQLBuilderImpl class as an SQLBuilder. This class determines the JDBC driver class name as follows:
    1) If the JBO configuration parameter jbo.sql92.JdbcDriverClass in not empty, then the JDBC driver class name is taken from there;
    2) If the jbo.sql92JdbcDriverClass parameter is empty, then:
    <ul><li>If the JDBC URL starts with "jdbc:db2://", then com.ibm.db2.jcc.DB2Driver
    <li>If the JDBC URL starts with "jdbc:oracle:db2", then com.oracle.ias.jdbc.db2.DB2Driver
    <li>If the JDBC URL starts with "jdbc:datadirect:db2", then com.ddtek.jdbc.db2.DB2Driver
    <li>Otherwise, COM.ibm.db2.jdbc.app.DB2Driver</ul>
    (Have a look at the source of the method DB2SQLBuilderImpl.getJDBCDriverClassName(String url) for more details).
    It is seen from the log in your first post that the parameter jbo.sql92.JdbcDriverClass is empty. As far as your JDBC URL starts with neither of the prefixes specified above (e.g. your URL starts with "jdbc:as400://"), then you should specify the necessary JDBC driver class in the JBO configuration parameter jbo.sql92.JdbcDriverClass. (You can specify it in the AM configuration parameters or in adf-config.xml).
    Dimitar

  • No suitable driver error

    Hi when i compile the folowing piece of code i get and error say
    "no suitable driver"
    can anybody explain this for me
    import java.sql.*;
    public class JDBC {
    public static void main(String args[]) {
    String url = "jdbc:mySubprotocol:Grace.mdb";
    Connection con;
    String createString;
    createString = "create table Student " +
    "(Student VARCHAR(32), " +
    "username INTEGER, " +
    "password FLOAT)";
    Statement stmt;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url, "", "");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    }

    If you are going to use the JDBC-ODBC bridge you will need to change your URL to be:
    String url = "jdbc:odbc:Grace";where Grace is an ODBC data source name that points to your Access file Grace.mdb
    Take a look here for more info
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html
    Col

  • No suitable driver found?

    Hey,
    I've been searching this forum for a problem like mine (and I've found a few that are "like" mine, but none that are exactly the same or that will solve my problem).
    First, any information that might be relevant (I really have no idea how much of this is relevant, I am brand new to this):
    I'm using Eclipse and Apache Tomcat 6.0.14.
    I'm trying to set up a JSP page that shows a query from an Access database. I'm working from an example, and I've followed the example to the letter, but it doesn't seem to work for me.
    I have set up a "System DSN" ODBC and linked it to the proper .mdb file (I don't know that I'm using the proper terminology, but what I'm talking about is going to Control Panel > Administrative Tools > Data Sources (ODBC) > System DSN tab under Windows XP).
    This is what my context.xml (in my WebContent\META-INF directory) looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <Resource name="jdbc-odbc/ExampleDB" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="sun.jdbc.odbc.JdbcOdbcDriver"
    url="jdbc:odbc:exampleDSN"
    removeAbandoned="true"
    removeAbandonedTimeout = "20"
    maxActive="8"    />
    </Context> "exampleDSN" is the name of the DSN I set up, and as I understand it, the value of the "name" attribute can be whatever I want, as long as it's referenced correctly in my JSP file.
    Here is the content of my JSP file:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <sql:setDataSource dataSource="jdbc-odbc/ExampleDB"/>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Insert title here</title>
    </head>
    <body>
    <sql:query var="qry_LoanID">
    SELECT LoanID FROM Loan
    </sql:query>
    </body>
    </html>I understand that this won't actually display anything as I have it now, but I'm just trying to get this tiny JSP file to work correctly. That said, here is the error information I am given:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: An exception occurred processing JSP page /cust_login.jsp at line 17
    14: <title>Insert title here</title>
    15: </head>
    16: <body>
    17:      <sql:query var="qry_LoanID">
    18:          SELECT LoanID FROM Loan
    19:     </sql:query>
    20:    
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found for jdbc-odbc/ExampleDB"
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
    org.apache.jsp.cust_005flogin_jsp._jspService(cust_005flogin_jsp.java:91)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found for jdbc-odbc/ExampleDB"
    org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
    org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
    org.apache.jsp.cust_005flogin_jsp._jspx_meth_sql_005fquery_005f0(cust_005flogin_jsp.java:129)
    org.apache.jsp.cust_005flogin_jsp._jspService(cust_005flogin_jsp.java:78)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
    Apache Tomcat/6.0.14I hope this is enough information to get some help with my problem. I can't think of any other information I need to include, and I may have included too much already.
    Any help with this problem would be greatly appreciated.

    You probably don't have the Resource defined in your web.xml. Try adding that.
    %

  • Help with connection to mysql database, Getting error : No suitable Driver

    Below is my code :
    1) i have added the mysql driver (mm.mysql-2.0.14-bin.jar)in my classpath
    2) the code is getting compiling properly
    3) while running it using tomcat, it says "NO SUITABLE DRIVER"
    PLEASE HELP !!
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class logincheck extends HttpServlet {
    public void doGet(HttpServletRequest request,HttpServletResponse response)
    throws IOException, ServletException
    Connection con = null;
    PrintWriter out = response.getWriter();
    response.setContentType("text/html");
    PreparedStatement stmt = null;
    ResultSet rs = null;
    String userid = request.getParameter("userid");
    String password = request.getParameter("password");
    try {
    /** LOADING THE DRIVER FOR MYSQL DATABASE ***/
    Class.forName ("org.gjt.mm.mysql.Driver";
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    } //End of try-catch 1
    try{
         /*** CONNECTING TO THE DATABASE USING DATABASE NAME, USERNAME AND PASSWORD */
    con = DriverManager.getConnection("jdbc:mysql://localhost:8080/own");
    /****** this checks whether the entry for the user is in the database *****/
    stmt = con.prepareStatement("SELECT *FROM userinfo WHERE userid = ? AND passwd = ?");
    stmt.setString(1,userid);
    stmt.setString(2,password);
    rs = stmt.executeQuery();
    if(!rs.next())
    else
         /****************** IF THE USER AND PASSWORD ARE VALID *****************/
    //} // END OF RS.....
    // NEED HTML FOR INVALID USERID SHOWING MESSAGE ...
    con.close();
    }catch(SQLException esql){
    System.out.println(esql.getMessage());
    } // End of try-catch 2
    } // goGet
    public void doPost(HttpServletRequest request,HttpServletResponse response)
    throws IOException, ServletException {
    doGet(request, response);
    } // goPost
    } // end logincheck function ...

    And i see another thing that confuses me. Your URL connection string is
    con = DriverManager.getConnection("jdbc:mysql://localhost:8080/own"); meaning that your database is in your machine and listens in port 8080 for incoming connections. But that is the default port that Tomcat listens! Maybe you should change this line to
    con = DriverManager.getConnection("jdbc:mysql://localhost:3306/own");where 3306 is MySQL's default port.
    Hope these help.

  • Error in simple SOA Composite - "java.sql.SQLException: No suitable driver"

    I have created a sample project that reads XML files using a file adapter and inserts into the database using a database adapter.
    When I run the composite, I get the following error:
    Dec 11, 2008 10:44:06 AM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log
    WARNING: JCABinding=&gt; JCABinding=&gt; ReadEmpLoaction:InsertData [InsertData_ptt::insert(EmployeeTrackingCollection)|http://forums.oracle.com/forums/]JNDI lookup of 'eis/DB/Connection1' failed due to: eis/DB/Connection1 not found
    Dec 11, 2008 10:44:09 AM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log
    WARNING: Database Adapter ReadEmpLoaction:InsertData [InsertData_ptt::insert(EmployeeTrackingCollection)|http://forums.oracle.com/forums/]
    java.sql.SQLException: No suitable driver
    bq.      at java.sql.DriverManager.getConnection(DriverManager.java:545) \\     at java.sql.DriverManager.getConnection(DriverManager.java:140) \\     at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:76) \\     at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:153) \\     at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:273) \\     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:230) \\     at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:350) \\     at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117) \\     at oracle.toplink.threetier.ConnectionPool.startUp(ConnectionPool.java:354) \\     at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:425) \\     at oracle.toplink.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:607) \\     at oracle.tip.adapter.db.DBManagedConnectionFactory.createServerSession(DBManagedConnectionFactory.java:1185) \\     at oracle.tip.adapter.db.DBManagedConnectionFactory.acquireSession(DBManagedConnectionFactory.java:505) \\     at oracle.tip.adapter.db.transaction.DBTransaction.getSession(DBTransaction.java:458) \\     at oracle.tip.adapter.db.DBConnection.getSession(DBConnection.java:235) \\     at oracle.tip.adapter.db.DBInteraction.executeOutboundWrite(DBInteraction.java:726) \\     at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:226) \\     at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:298) \\     at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeJcaReference(JCAInteractionInvoker.java:509) \\     at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeAsyncJcaReference(JCAInteractionInvoker.java:493) \\     at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAEndpointInteraction.performAsynchronousInteraction(JCAEndpointInteraction.java:429) \\     at oracle.integration.platform.blocks.adapter.AdapterReference.post(AdapterReference.java:193) \\     at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:153) \\     at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:152) \\     at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:159) \\     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \\     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) \\     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) \\     at java.lang.reflect.Method.invoke(Method.java:585) \\     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) \\     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) \\     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) \\     at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71) \\     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) \\     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) \\     at $Proxy70.post(Unknown Source) \\     at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post2Mesh(MediatorServiceEngine.java:705) \\     at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:164) \\     at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:79) \\     at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseActionHandler.java:53) \\     at oracle.tip.mediator.service.OneWayActionHandler.oneWayRequestProcess(OneWayActionHandler.java:67) \\     at oracle.tip.mediator.service.OneWayActionHandler.process(OneWayActionHandler.java:34) \\     at oracle.tip.mediator.service.ActionProcessor.onMessage(ActionProcessor.java:61) \\     at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase(MessageDispatcher.java:103) \\     at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase(InitialMessageDispatcher.java:465) \\     at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:361) \\     at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases(InitialMessageDispatcher.java:254) \\     at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch(InitialMessageDispatcher.java:149) \\     at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process(MediatorServiceEngine.java:533) \\     at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post(MediatorServiceEngine.java:634) \\     at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:138) \\     at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:152) \\     at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:159) \\     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \\     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) \\     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) \\     at java.lang.reflect.Method.invoke(Method.java:585) \\     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) \\     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) \\     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) \\     at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59) \\     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) \\     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) \\     at $Proxy70.post(Unknown Source) \\     at oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB.onMessage(AdapterServiceMDB.java:574) \\     at oracle.integration.platform.blocks.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:295) \\     at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:2127) \\     at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:1719) \\     at oracle.tip.adapter.file.inbound.ProcessWork.translateAndPublish(ProcessWork.java:677) \\     at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:320) \\     at oracle.integration.platform.blocks.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51) \\     at oracle.integration.platform.blocks.adapter.fw.common.ThreadPool.run(ThreadPool.java:283) \\     at java.lang.Thread.run(Thread.java:595)
    I have created ADF projects using the same database (Oracle XE) and they work fine. Its only this composite, which is complaining of "No suitable driver" exception.
    I found a post very similar to mine -&gt; Composite is failing
    So I went and checked my parameters. Here's what I found:-
    SQL&gt; show parameter sessions
    NAME TYPE VALUE
    java_max_sessionspace_size integer 0
    java_soft_sessionspace_limit integer 0
    license_max_sessions integer 0
    license_sessions_warning integer 0
    logmnr_max_persistent_sessions integer 1
    sessions integer 170
    shared_server_sessions integer
    SQL&gt; show parameter processes
    NAME TYPE VALUE
    aq_tm_processes integer 0
    db_writer_processes integer 1
    gcs_server_processes integer 0
    job_queue_processes integer 4
    log_archive_max_processes integer 2
    processes integer 150
    So parameters is not the issue here.
    Edited by: user8028667 on Dec 11, 2008 10:52 AM
    Edited by: user8028667 on Dec 11, 2008 11:40 AM

    I ran the sample that you pointed out and unfortunately got the same error in the log: "java.sql.SQLException: No suitable driver" along with a bunch of others as well. You will have to scroll down to see the No suitable driver exception.
    But here's the weird part - the output is as expected: VALID and INVALID depending on the Credit card number I supply. Which means the database is reachable.
    The only difference is that the example performs a SELECT operation, whereas I am trying to perform an INSERT operation. Also I have a for-each node in the XSL and I am inserting multiple records from an XML to the Database.
    Here's the log for your inspection:
    bq. SEVERE: Exception creating custom component loader \\ java.lang.IllegalStateException: ClassLoader "default.composite.ReadEmpLoaction.2008-12-07_16-00-12_609" (from Application component in user-defined-origin): A loader with this name and version already exists, from Application component in user-defined-origin. \\ at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:167) \\ at oracle.classloader.PolicyClassLoaderSet$LoaderList.insert(PolicyClassLoaderSet.java:164) \\ at oracle.classloader.PolicyClassLoaderSet.add(PolicyClassLoaderSet.java:294) \\ at oracle.classloader.ConfigurationPolicy.configure(ConfigurationPolicy.java:447) \\ at oracle.classloader.PolicyClassLoader.&lt;init&gt;(PolicyClassLoader.java:466) \\ at oracle.classloader.PolicyClassLoader.&lt;init&gt;(PolicyClassLoader.java:417) \\ at oracle.classloader.util.ClassLoaderUtilities.createClassLoader(ClassLoaderUtilities.java:155) \\ at oracle.fabric.composite.CompositePolicyClassLoaderImpl.&lt;init&gt;(CompositePolicyClassLoaderImpl.java:28) \\ at oracle.fabric.composite.model.CompositeModel.getCompositeClassloader(CompositeModel.java:241) \\ at oracle.integration.platform.blocks.deploy.DeploymentConnection.deploy(DeploymentConnection.java:58) \\ at oracle.integration.platform.blocks.deploy.CompositeDeployerImpl.deploy(CompositeDeployerImpl.java:90) \\ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \\ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) \\ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) \\ at java.lang.reflect.Method.invoke(Method.java:585) \\ at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) \\ at oracle.integration.platform.blocks.deploy.DeploymentEventPublisher.invoke(DeploymentEventPublisher.java:30) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) \\ at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) \\ at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) \\ at $Proxy71.deploy(Unknown Source) \\ at oracle.integration.platform.blocks.deploy.DeployedCompositesManagerImpl.makeDeploymentChanges(DeployedCompositesManagerImpl.java:376) \\ at oracle.integration.platform.blocks.deploy.DeployedCompositesManagerImpl.processDeployedCompositesModel(DeployedCompositesManagerImpl.java:232) \\ at oracle.integration.platform.blocks.deploy.DeployedCompositesManagerImpl.processDeployedCompositesModel(DeployedCompositesManagerImpl.java:238) \\ at oracle.integration.platform.blocks.deploy.OC4JApplicationListener.documentChanged(OC4JApplicationListener.java:135) \\ at oracle.integration.platform.blocks.deploy.OC4JApplicationListener.documentAdded(OC4JApplicationListener.java:85) \\ at oracle.as.config.notification.oc4j.OC4JWatchingDocumentChangeNotifier$OC4JChangeListener.documentAdded(OC4JWatchingDocumentChangeNotifier.java:154) \\ at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.checkUsingListeners(WatchingDocumentChangeNotifier.java:197) \\ at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.checkFiles(WatchingDocumentChangeNotifier.java:125) \\ at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.run(WatchingDocumentChangeNotifier.java:114) \\ at java.lang.Thread.run(Thread.java:595) \\ 08/12/12 13:55:27 SEVERE: HttpRequestHandler.run Exception: java.lang.IllegalStateException: This DMSMetricController is not started.Phase event info: WEBs:processRequest soa-console:processRequest \\ at com.evermind.server.http.DMSMetricController.abort(DMSMetricController.java:115) \\ at com.evermind.server.http.EvermindHttpServletRequest.dmsAbort(EvermindHttpServletRequest.java:268) \\ at com.evermind.server.http.HttpRequestHandler.dmsProcRequestDone(HttpRequestHandler.java:358) \\ at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:425) \\ at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189) \\ at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163) \\ at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275) \\ at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) \\ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) \\ at java.lang.Thread.run(Thread.java:595) \\ Dec 12, 2008 1:55:29 PM oracle.classloader.util.ClassLoaderUtilities createClassLoader \\ SEVERE: Exception creating custom component loader \\ java.lang.IllegalStateException: ClassLoader "default.composite.ReadEmpLoaction.2008-12-07_16-00-12_609" (from Application component in user-defined-origin): A loader with this name and version already exists, from Application component in user-defined-origin. \\ at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:167) \\ at oracle.classloader.PolicyClassLoaderSet$LoaderList.insert(PolicyClassLoaderSet.java:164) \\ at oracle.classloader.PolicyClassLoaderSet.add(PolicyClassLoaderSet.java:294) \\ at oracle.classloader.ConfigurationPolicy.configure(ConfigurationPolicy.java:447) \\ at oracle.classloader.PolicyClassLoader.&lt;init&gt;(PolicyClassLoader.java:466) \\ at oracle.classloader.PolicyClassLoader.&lt;init&gt;(PolicyClassLoader.java:417) \\ at oracle.classloader.util.ClassLoaderUtilities.createClassLoader(ClassLoaderUtilities.java:155) \\ at oracle.fabric.composite.CompositePolicyClassLoaderImpl.&lt;init&gt;(CompositePolicyClassLoaderImpl.java:28) \\ at oracle.fabric.composite.model.CompositeModel.getCompositeClassloader(CompositeModel.java:241) \\ at oracle.integration.platform.blocks.deploy.DeploymentConnection.deploy(DeploymentConnection.java:58) \\ at oracle.integration.platform.blocks.deploy.CompositeDeployerImpl.deploy(CompositeDeployerImpl.java:90) \\ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \\ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) \\ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) \\ at java.lang.reflect.Method.invoke(Method.java:585) \\ at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) \\ at oracle.integration.platform.blocks.deploy.DeploymentEventPublisher.invoke(DeploymentEventPublisher.java:30) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) \\ at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) \\ at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) \\ at $Proxy71.deploy(Unknown Source) \\ at oracle.integration.platform.blocks.deploy.DeployedCompositesManagerImpl.makeDeploymentChanges(DeployedCompositesManagerImpl.java:376) \\ at oracle.integration.platform.blocks.deploy.DeployedCompositesManagerImpl.processDeployedCompositesModel(DeployedCompositesManagerImpl.java:232) \\ at oracle.integration.platform.blocks.deploy.DeployedCompositesManagerImpl.processDeployedCompositesModel(DeployedCompositesManagerImpl.java:238) \\ at oracle.integration.platform.blocks.deploy.OC4JDeploymentListener.documentChanged(OC4JDeploymentListener.java:124) \\ at oracle.as.config.notification.oc4j.OC4JWatchingDocumentChangeNotifier$OC4JChangeListener.documentChanged(OC4JWatchingDocumentChangeNotifier.java:172) \\ at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.checkUsingListeners(WatchingDocumentChangeNotifier.java:182) \\ at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.checkFiles(WatchingDocumentChangeNotifier.java:125) \\ at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.run(WatchingDocumentChangeNotifier.java:114) \\ at java.lang.Thread.run(Thread.java:595) \\ Dec 12, 2008 1:55:29 PM oracle.classloader.util.ClassLoaderUtilities createClassLoader \\ 08/12/12 13:55:45 SEVERE: HttpRequestHandler.run Exception: java.lang.IllegalStateException: This DMSMetricController is not started.Phase event info: WEBs:processRequest soa-console:processRequest \\ at com.evermind.server.http.DMSMetricController.abort(DMSMetricController.java:115) \\ at com.evermind.server.http.EvermindHttpServletRequest.dmsAbort(EvermindHttpServletRequest.java:268) \\ at com.evermind.server.http.HttpRequestHandler.dmsProcRequestDone(HttpRequestHandler.java:358) \\ at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:425) \\ at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189) \\ at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163) \\ at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275) \\ at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) \\ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) \\ at java.lang.Thread.run(Thread.java:595) \\ Dec 12, 2008 1:56:05 PM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log \\ WARNING: JCABinding=&gt; JCABinding=&gt; validationForCC:getCreditValidation getCreditValidation_ptt::getCreditValidationSelect(getCreditValidationSelect_inputParameters,CreditcardinfoCollection) JNDI lookup of 'eis/DB/soademoDatabase' failed due to: eis/DB/soademoDatabase not found \\ Dec 12, 2008 1:56:05 PM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log \\ WARNING: Database Adapter validationForCC:getCreditValidation getCreditValidation_ptt::getCreditValidationSelect(getCreditValidationSelect_inputParameters,CreditcardinfoCollection) \\ java.sql.SQLException: No suitable driver \\ at java.sql.DriverManager.getConnection(DriverManager.java:545) \\ at java.sql.DriverManager.getConnection(DriverManager.java:140) \\ at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:76) \\ at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:153) \\ at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:273) \\ at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:230) \\ at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:350) \\ at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117) \\ at oracle.toplink.threetier.ConnectionPool.startUp(ConnectionPool.java:354) \\ at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:425) \\ at oracle.toplink.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:607) \\ at oracle.tip.adapter.db.DBManagedConnectionFactory.createServerSession(DBManagedConnectionFactory.java:1185) \\ at oracle.tip.adapter.db.DBManagedConnectionFactory.acquireSession(DBManagedConnectionFactory.java:505) \\ at oracle.tip.adapter.db.transaction.DBTransaction.getSession(DBTransaction.java:458) \\ at oracle.tip.adapter.db.DBConnection.getSession(DBConnection.java:235) \\ at oracle.tip.adapter.db.DBInteraction.executeOutboundRead(DBInteraction.java:317) \\ at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:219) \\ at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:298) \\ at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeJcaReference(JCAInteractionInvoker.java:509) \\ at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeSyncJcaReference(JCAInteractionInvoker.java:484) \\ at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAEndpointInteraction.performSynchronousInteraction(JCAEndpointInteraction.java:411) \\ at oracle.integration.platform.blocks.adapter.AdapterReference.request(AdapterReference.java:123) \\ at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:155) \\ at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:137) \\ at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:101) \\ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \\ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) \\ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) \\ at java.lang.reflect.Method.invoke(Method.java:585) \\ at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) \\ at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) \\ at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) \\ Dec 12, 2008 1:56:05 PM oracle.integration.platform.blocks.adapter.fw.log.LogManagerImpl log \\ WARNING: Database Adapter validationForCC:getCreditValidation getCreditValidation_ptt::getCreditValidationSelect(getCreditValidationSelect_inputParameters,CreditcardinfoCollection) \\ java.sql.SQLException: No suitable driver \\ at java.sql.DriverManager.getConnection(DriverManager.java:545) \\ at java.sql.DriverManager.getConnection(DriverManager.java:140) \\ at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:76) \\ at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:153) \\ at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:273) \\ at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:230) \\ at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:350) \\ at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117) \\ at oracle.toplink.threetier.ConnectionPool.startUp(ConnectionPool.java:354) \\ at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:430) \\ at oracle.toplink.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:607) \\ at oracle.tip.adapter.db.DBManagedConnectionFactory.createServerSession(DBManagedConnectionFactory.java:1185) \\ at oracle.tip.adapter.db.DBManagedConnectionFactory.acquireSession(DBManagedConnectionFactory.java:505) \\ at oracle.tip.adapter.db.transaction.DBTransaction.getSession(DBTransaction.java:458) \\ at oracle.tip.adapter.db.DBConnection.getSession(DBConnection.java:235) \\ at oracle.tip.adapter.db.DBInteraction.executeOutboundRead(DBInteraction.java:317) \\ at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:219) \\ at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:298) \\ at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeJcaReference(JCAInteractionInvoker.java:509) \\ at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeSyncJcaReference(JCAInteractionInvoker.java:484) \\ at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAEndpointInteraction.performSynchronousInteraction(JCAEndpointInteraction.java:411) \\ at oracle.integration.platform.blocks.adapter.AdapterReference.request(AdapterReference.java:123) \\ at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:155) \\ at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:137) \\ at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:101) \\ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \\ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) \\ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) \\ at java.lang.reflect.Method.invoke(Method.java:585) \\ at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) \\ at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71) \\ at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) \\ at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

  • Weblogic 6.1 sp2 "No suitable driver" error

    We have weblogic6.1 sp2 installed on a Windows NT box .
    The config.xml has the following entry :
    <JDBCConnectionPool CapacityIncrement="1"
    DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="4"
    MaxCapacity="8" Name="TrainingPool"
    Password="XXXX"
    Properties="user=XXXXX;server=yyyyy" Targets="myserver" URL="jdbc:weblogic:oracle:mons817"/>
    When weblogic is started, the connection pool TrainingPool is created fine with initial
    4 connections .
    However, when we try to connect to the connection pool using this piece of code in
    an entity bean :
    DriverManager.getConnection("jdbc:weblogic:jts:TrainingPool")
    we get this error : "No suitable Driver"
    CLIENT DEBUG - Finder Error in CClassTracking javax.ejb.FinderException: java.sql.
    SQLException: No suitable driver
    Start server side stack trace:
    javax.ejb.FinderException: java.sql.SQLException: No suitable driver
    at teamscape.server.entities.EClassTrackingBean.EClassTrackingBean._select
    Anyone has any ideas on what could be wrong ?
    Thx,
    ~sanil

    Sanil Pillai wrote:
    We have weblogic6.1 sp2 installed on a Windows NT box .
    The config.xml has the following entry :
    <JDBCConnectionPool CapacityIncrement="1"
    DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="4"
    MaxCapacity="8" Name="TrainingPool"
    Password="XXXX"
    Properties="user=XXXXX;server=yyyyy" Targets="myserver" URL="jdbc:weblogic:oracle:mons817"/>
    When weblogic is started, the connection pool TrainingPool is created fine with initial
    4 connections .
    However, when we try to connect to the connection pool using this piece of code in
    an entity bean :
    DriverManager.getConnection("jdbc:weblogic:jts:TrainingPool")Hi. Don't use DriverManager. It isn't causing the problem, but it does cause other ones. Do this:
    Driver d = (Driver)Class.forName("weblogic.jdbc.jts.Driver").newInstance();
    conn = d.connect("jdbc:weblogic:jts:TrainingPool", null);
    Joe
    >
    we get this error : "No suitable Driver"
    CLIENT DEBUG - Finder Error in CClassTracking javax.ejb.FinderException: java.sql.
    SQLException: No suitable driver
    Start server side stack trace:
    javax.ejb.FinderException: java.sql.SQLException: No suitable driver
    at teamscape.server.entities.EClassTrackingBean.EClassTrackingBean._select
    Anyone has any ideas on what could be wrong ?
    Thx,
    ~sanil

  • 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();
    }

  • Urgent : SQLException: No suitable driver - using Oracle 10.1.0.2.0

    Hi
    I am getting the following error when I trying to connect to Oracle 10.1.0.2.0 from my Java programme using JDBC. I have added the C:\oracle\product\10.1.0\Db_1\jdbc\lib\ojdbc14.jar to classpath and ensured ojdbc14.jar file at the above location. I am using Java 1.4.2_05.
    Error :
    ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    SQLException: No suitable driver
    Programme:
    import java.sql.*;
    import java.math.*;
    public class CreateCoffees_new {
         public static void main(String args[]) {
              String url = "jdbc:oracle:thin:@localhost:1521:ratna";
              Connection con;
              String createString;
              createString = "create table COFFEES " +
                                       "(COF_NAME varchar(32), " +
                                       "SUP_ID int, " +
                                       "PRICE float, " +
                                       "SALES int, " +
                                       "TOTAL int)";
              Statement stmt;
              try {
                   //Class.forName("myDriver.ClassName");
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   //DriverManager.RegisterDriver(new oracle.jdbc.OracleDriver());
              } catch(java.lang.ClassNotFoundException e) {
                   System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
              try {
                   con = DriverManager.getConnection(url,
                                                 "scott", "tiger");
                   stmt = con.createStatement();                                   
                   stmt.executeUpdate(createString);
                   stmt.close();
                   con.close();
              } catch(SQLException ex) {
                   System.err.println("SQLException: " + ex.getMessage());
    }

    Add the Oracle JDBC library to project libraries with Tools>Project Properties>Libraries.

  • Error: java.sql.SQLException: No suitable driver

    Hi,
    Here is the source file in Java :
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class FruitTest3 extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    String url = "jdbc:oracle:thin(or kprb ):sys/jameson@(DESCRIPTION=(ADDRESS_LIST =(ADDRESS =(COMMUNITY =
    tcp.insee.fr)(PROTOCOL = TCP)(Host = 10.20.108.3)(Port = 1521)))(CONNECT_DATA = (SID = ORA817)))";
    String table;
    try {
    String query =
    "SELECT * " +
    " FROM sys.sales";
    Connection connection = DriverManager.getConnection(url);
    DBResults results =
    DatabaseUtilities.getQueryResults(connection,
    query, false);
    table = results.toHTMLTable("#FFAD00");
    } catch(Exception e) {
    table = "Error: " + e;
    response.setContentType("text/html");
    // Prevent the browser from caching the response. See
    // Section 7.2 of Core Servlets and JSP for details.
    response.setHeader("Pragma", "no-cache"); // HTTP 1.0
    response.setHeader("Cache-Control", "no-cache"); // HTTP 1.1
    PrintWriter out = response.getWriter();
    String title = "Connection Pool Test";
    out.println("<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<CENTER>\n" +
    table + "\n" +
    "</CENTER>\n</BODY></HTML>");
    Irceive the error message : Error: java.sql.SQLException: No suitable driver
    Thanks in advance.

    hi nick..
    im having thiis particular problem too. part of my codes look like this
    try
                   Class.forName("org.gjt.mm.mysql.Driver");
                   connection = DriverManager.getConnection("jdbc:mysql//localhost/mmovies:/");
                   statement = connection.createStatement();
                   rs = statement.executeQuery("select * from timetable");
                   String result = "";
                   while(rs.next())
                        //String result = rs.getString(2);
                        String moviename = rs.getString(1);
                        result += moviename + ";";
                        System.out.println(result);
    i have specified the 'driver'.
    i have also places a 'gjt' folder in the same place as all my server codes. Please advice.
    Thanks
    -faridz

  • Kodo 3.1.2 + IBM  DB2 7.2 = No Suitable Driver?

    Hello there,
    we are trying to use Kodo 3.1.2 with DB 7.2 Fixpak 5 and higher.
    I've build an ant-script with the following snippet:
    <target name="defineSchemaKodo" if="jdo.implementierung.kodo">
    <taskdef name="mappingtool"
    classname="kodo.jdbc.ant.MappingToolTask">
    <classpath refid="build.classpath"/>
    </taskdef>
    <taskdef name="schematool"
    classname="kodo.jdbc.ant.SchemaToolTask">
    <classpath refid="build.classpath"/>
    </taskdef>
              <mappingtool action="buildSchema" schemaFile="${basedir}/package.schema">
    <classpath refid="build.classpath"/>
              <fileset dir="${model.build.dir}">
                   <include name="*.jdo" />
              </fileset>
              </mappingtool>
              <schematool action="createDB" file="${basedir}/schema.ddl">
    <classpath refid="build.classpath"/>
         <fileset dir=".">
         <include name="${basedir}/package.schema" />
         </fileset>
         </schematool>
         </target>
    The property "compile.classpath" contains db2java.jar, so the driver
    should be availiable at runtime.
    When running the script I get this stacktrace:
    defineSchemaKodo:
    [mappingtool] kodo.util.FatalDataStoreException: No suitable driver
    [mappingtool] NestedThrowables:
    [mappingtool] java.sql.SQLException: No suitable driver
    [mappingtool]      at
    kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
    [mappingtool]      at
    kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
    [mappingtool]      at
    kodo.jdbc.sql.DBDictionaryFactory.getDBDictionary(DBDictionaryFactory.java:61)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:630)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:880)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource(JDBCConfigurationImpl.java:970)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource2(JDBCConfigurationImpl.java:979)
    [mappingtool]      at kodo.jdbc.schema.SchemaTool.<init>(SchemaTool.java:78)
    [mappingtool]      at
    kodo.jdbc.meta.MappingTool.newSchemaTool(MappingTool.java:269)
    [mappingtool]      at
    kodo.jdbc.meta.MappingTool.getSchemaTool(MappingTool.java:259)
    [mappingtool]      at kodo.jdbc.meta.MappingTool.run(MappingTool.java:898)
    [mappingtool]      at
    kodo.jdbc.ant.MappingToolTask.executeOn(MappingToolTask.java:175)
    [mappingtool]      at com.solarmetric.ant.TaskBase.execute(TaskBase.java:105)
    [mappingtool]      at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [mappingtool]      at org.apache.tools.ant.Task.perform(Task.java:364)
    [mappingtool]      at org.apache.tools.ant.Target.execute(Target.java:301)
    [mappingtool]      at
    org.apache.tools.ant.Target.performTasks(Target.java:328)
    [mappingtool]      at
    org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [mappingtool]      at
    org.apache.tools.ant.Project.executeTargets(Project.java:1063)
    [mappingtool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [mappingtool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [mappingtool]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [mappingtool]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    [mappingtool]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
    [mappingtool]      at java.lang.reflect.Method.invoke(Unknown Source)
    [mappingtool]      at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [mappingtool]      at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [mappingtool]      at java.lang.Thread.run(Unknown Source)
    [mappingtool] NestedThrowablesStackTrace:
    [mappingtool] java.sql.SQLException: No suitable driver
    [mappingtool]      at java.sql.DriverManager.getDriver(Unknown Source)
    [mappingtool]      at
    com.solarmetric.jdbc.PoolingDataSource.getDriver(PoolingDataSource.java:271)
    [mappingtool]      at
    com.solarmetric.jdbc.PoolingDataSource.newConnection(PoolingDataSource.java:313)
    [mappingtool]      at
    com.solarmetric.jdbc.ConnectionPoolImpl.makeConnection(ConnectionPoolImpl.java:270)
    [mappingtool]      at
    com.solarmetric.jdbc.ConnectionPoolImpl.getConnection(ConnectionPoolImpl.java:178)
    [mappingtool]      at
    com.solarmetric.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:237)
    [mappingtool]      at
    com.solarmetric.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:130)
    [mappingtool]      at
    com.solarmetric.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:81)
    [mappingtool]      at
    com.solarmetric.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:130)
    [mappingtool]      at
    kodo.jdbc.schema.DataSourceFactory$DefaultsDataSource.getConnection(DataSourceFactory.java:295)
    [mappingtool]      at
    kodo.jdbc.sql.DBDictionaryFactory.getDBDictionary(DBDictionaryFactory.java:56)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:630)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:880)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource(JDBCConfigurationImpl.java:970)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource2(JDBCConfigurationImpl.java:979)
    [mappingtool]      at kodo.jdbc.schema.SchemaTool.<init>(SchemaTool.java:78)
    [mappingtool]      at
    kodo.jdbc.meta.MappingTool.newSchemaTool(MappingTool.java:269)
    [mappingtool]      at
    kodo.jdbc.meta.MappingTool.getSchemaTool(MappingTool.java:259)
    [mappingtool]      at kodo.jdbc.meta.MappingTool.run(MappingTool.java:898)
    [mappingtool]      at
    kodo.jdbc.ant.MappingToolTask.executeOn(MappingToolTask.java:175)
    [mappingtool]      at com.solarmetric.ant.TaskBase.execute(TaskBase.java:105)
    [mappingtool]      at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [mappingtool]      at org.apache.tools.ant.Task.perform(Task.java:364)
    [mappingtool]      at org.apache.tools.ant.Target.execute(Target.java:301)
    [mappingtool]      at
    org.apache.tools.ant.Target.performTasks(Target.java:328)
    [mappingtool]      at
    org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [mappingtool]      at
    org.apache.tools.ant.Project.executeTargets(Project.java:1063)
    [mappingtool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [mappingtool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [mappingtool]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [mappingtool]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    [mappingtool]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
    [mappingtool]      at java.lang.reflect.Method.invoke(Unknown Source)
    [mappingtool]      at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [mappingtool]      at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [mappingtool]      at java.lang.Thread.run(Unknown Source)
    [mappingtool] BUILD FAILED:
    E:\bl04285\workspace\CRM\jdoTemporal\build.xml:170:
    kodo.util.FatalDataStoreException: No suitable driver
    NestedThrowables:
    java.sql.SQLException: No suitable driver
    Any ideas?

    You should also try using the jcc (preferred) or the net driver which is
    more flexible in classpath and system configurations.
    The DB2 driver is very sensitive to changes due to reliance on system
    shared libraries.
    Serge Arpin wrote:
    Just a guess:
    - do you use db2 type 2 driver (jdbc:db2:dbname) or type 3
    (jdbc:db2:/server:port/dbname) ?
    If you use type 2, JUST try Type 3. I had the same symptom under WSAD with
    the DB2 v7.2.11 type 2 driver... and it worked with type 3 driver.
    (And dont forget to start the db2-type-3-driver-listener on your DB2
    server.
    Knobloch wrote:
    Hello there,
    we are trying to use Kodo 3.1.2 with DB 7.2 Fixpak 5 and higher.
    I've build an ant-script with the following snippet:
    <target name="defineSchemaKodo" if="jdo.implementierung.kodo">
    <taskdef name="mappingtool"
    classname="kodo.jdbc.ant.MappingToolTask">
    <classpath refid="build.classpath"/>
    </taskdef>
    <taskdef name="schematool"
    classname="kodo.jdbc.ant.SchemaToolTask">
    <classpath refid="build.classpath"/>
    </taskdef>
              <mappingtool action="buildSchema" schemaFile="$/package.schema">
    <classpath refid="build.classpath"/>
              <fileset dir="$">
                   <include name="*.jdo" />
              </fileset>
              </mappingtool>
              <schematool action="createDB" file="$/schema.ddl">
    <classpath refid="build.classpath"/>
         <fileset dir=".">
         <include name="$/package.schema" />
         </fileset>
         </schematool>
         </target>
    The property "compile.classpath" contains db2java.jar, so the driver
    should be availiable at runtime.
    When running the script I get this stacktrace:
    defineSchemaKodo:
    [mappingtool] kodo.util.FatalDataStoreException: No suitable driver
    [mappingtool] NestedThrowables:
    [mappingtool] java.sql.SQLException: No suitable driver
    [mappingtool]      at
    kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
    [mappingtool]      at
    kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
    [mappingtool]      at
    kodo.jdbc.sql.DBDictionaryFactory.getDBDictionary(DBDictionaryFactory.java:61)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:630)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:880)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource(JDBCConfigurationImpl.java:970)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource2(JDBCConfigurationImpl.java:979)
    [mappingtool]      at kodo.jdbc.schema.SchemaTool.<init>(SchemaTool.java:78)
    [mappingtool]      at
    kodo.jdbc.meta.MappingTool.newSchemaTool(MappingTool.java:269)
    [mappingtool]      at
    kodo.jdbc.meta.MappingTool.getSchemaTool(MappingTool.java:259)
    [mappingtool]      at kodo.jdbc.meta.MappingTool.run(MappingTool.java:898)
    [mappingtool]      at
    kodo.jdbc.ant.MappingToolTask.executeOn(MappingToolTask.java:175)
    [mappingtool]      at com.solarmetric.ant.TaskBase.execute(TaskBase.java:105)
    [mappingtool]      at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [mappingtool]      at org.apache.tools.ant.Task.perform(Task.java:364)
    [mappingtool]      at org.apache.tools.ant.Target.execute(Target.java:301)
    [mappingtool]      at
    org.apache.tools.ant.Target.performTasks(Target.java:328)
    [mappingtool]      at
    org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [mappingtool]      at
    org.apache.tools.ant.Project.executeTargets(Project.java:1063)
    [mappingtool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [mappingtool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [mappingtool]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [mappingtool]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    [mappingtool]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
    [mappingtool]      at java.lang.reflect.Method.invoke(Unknown Source)
    [mappingtool]      at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [mappingtool]      at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [mappingtool]      at java.lang.Thread.run(Unknown Source)
    [mappingtool] NestedThrowablesStackTrace:
    [mappingtool] java.sql.SQLException: No suitable driver
    [mappingtool]      at java.sql.DriverManager.getDriver(Unknown Source)
    [mappingtool]      at
    com.solarmetric.jdbc.PoolingDataSource.getDriver(PoolingDataSource.java:271)
    [mappingtool]      at
    com.solarmetric.jdbc.PoolingDataSource.newConnection(PoolingDataSource.java:313)
    [mappingtool]      at
    com.solarmetric.jdbc.ConnectionPoolImpl.makeConnection(ConnectionPoolImpl.java:270)
    [mappingtool]      at
    com.solarmetric.jdbc.ConnectionPoolImpl.getConnection(ConnectionPoolImpl.java:178)
    [mappingtool]      at
    com.solarmetric.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:237)
    [mappingtool]      at
    com.solarmetric.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:130)
    [mappingtool]      at
    com.solarmetric.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:81)
    [mappingtool]      at
    com.solarmetric.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:130)
    [mappingtool]      at
    kodo.jdbc.schema.DataSourceFactory$DefaultsDataSource.getConnection(DataSourceFactory.java:295)
    [mappingtool]      at
    kodo.jdbc.sql.DBDictionaryFactory.getDBDictionary(DBDictionaryFactory.java:56)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:630)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:880)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource(JDBCConfigurationImpl.java:970)
    [mappingtool]      at
    kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource2(JDBCConfigurationImpl.java:979)
    [mappingtool]      at kodo.jdbc.schema.SchemaTool.<init>(SchemaTool.java:78)
    [mappingtool]      at
    kodo.jdbc.meta.MappingTool.newSchemaTool(MappingTool.java:269)
    [mappingtool]      at
    kodo.jdbc.meta.MappingTool.getSchemaTool(MappingTool.java:259)
    [mappingtool]      at kodo.jdbc.meta.MappingTool.run(MappingTool.java:898)
    [mappingtool]      at
    kodo.jdbc.ant.MappingToolTask.executeOn(MappingToolTask.java:175)
    [mappingtool]      at com.solarmetric.ant.TaskBase.execute(TaskBase.java:105)
    [mappingtool]      at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [mappingtool]      at org.apache.tools.ant.Task.perform(Task.java:364)
    [mappingtool]      at org.apache.tools.ant.Target.execute(Target.java:301)
    [mappingtool]      at
    org.apache.tools.ant.Target.performTasks(Target.java:328)
    [mappingtool]      at
    org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [mappingtool]      at
    org.apache.tools.ant.Project.executeTargets(Project.java:1063)
    [mappingtool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [mappingtool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [mappingtool]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [mappingtool]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    [mappingtool]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
    [mappingtool]      at java.lang.reflect.Method.invoke(Unknown Source)
    [mappingtool]      at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [mappingtool]      at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [mappingtool]      at java.lang.Thread.run(Unknown Source)
    [mappingtool] BUILD FAILED:
    E:bl04285workspaceCRMjdoTemporalbuild.xml:170:
    kodo.util.FatalDataStoreException: No suitable driver
    NestedThrowables:
    java.sql.SQLException: No suitable driver
    Any ideas?
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Java.sql.SQLException: No suitable driver problem

    Hello all.
    Firstly, i am new to programming java apps that connect to SQL databases.
    I have set up a MySQL server on my computer, which i can successfully access through my command prompt on my pc (so i know its up and running). Now im trying to create a simple java program which connects to the sql database, and simply lists the contents of the table in question. However, when running this program i recieve this exception:
    java.sql.SQLException: No suitable driver
    I have thoroughly researched this problem on the internet, with many people saying that i have not installed the j/connector driver correctly. My j/connecter driver file is in C:\Program Files\JAVASQL\mysql-connector-java-3.0.17-ga-bin.jar . My Environmental Variable CLASSPATH in windows reads: ".;C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip; C:\Program Files\JAVASQL\mysql-connector-java-3.0.17-ga-bin.jar", so i am pretty sure i have done everything correctly with reguards to installing the connector.
    My program code is as follows:
       import java.sql.*;
        class TestSqlConnect
           public static void main (String[] args)
             try
                Connection sqlConnection = DriverManager.getConnection("jdbc:mysql://127.0.0.1/myDatabaseName","root","mypassword");
                Statement sqlStatement = sqlConnection.createStatement();
                ResultSet sqlResult = sqlStatement.executeQuery("SELECT * FROM Rooms");
                while (sqlResult.next())
                   System.out.println(sqlResult.getString("name"));
                sqlStatement.close();
                 catch (Exception e)
                   System.out.println(e.toString());
       }Note i have also tried the url "jdbc:mysql://localhost/myDatabaseName" and still get the same problem.
    Any help would be greatly appreciated. cheers.

    jazza_guy wrote:
    Ok problem solved! Im gonna post the answer as whilst trying to find the answer myself i found so many people had this problem... yet noone could seem to find an asnwer.Nonsense. Lots of people find an answer to this problem. You're the one having the problem.
    Altho i did have my connector class in the CLASSPATH, this was not enough..Wrong. You think you had the driver class in your CLASSPATH, but you did not. You don't understand CLASSPATH.
    The file needs to be copied into the main_java_folder/jdk/jre/lib/ext folder... and that seemed to do the trick..That might "work", but it's absolutely the wrong thing to do.
    %

  • Weblogic 6.1 + linux + oracle: no suitable driver

    Hi folks
    I've seen a few postings on this, but am still stuck...would
    appreciate any ideas!
    here's the situation:
    -redhat 7.1, sun jdk 1.3.1_02, oracle 8.1.7
    -classes12.zip is in the classpath
    -config.xml contains:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    Name="oraclePool" Password="xxxxxxxxxxxx"
    Properties="UserName=test" Targets="myserver"
    TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="false" TestTableName="KEYVALUE"
    URL="jdbc:oracle:thin@harrylocal:1521:cseatdev"/>
    -errormsg on weblogic start (from log)
    <Error> <JDBC> <harry.menta.es> <myserver> <ExecuteThread: '9' for
    queue: 'default'> <system> <> <001060> <Cannot startup connection pool
    "oraclePool" No suitable driver>
    -snippet from standalone java pgm that connects to oracle
    successfully:
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@harrylocal:1521:cseatdev","test","xxxxxxxxxx");
    thanks for any thoughts
    josh

    This should have been posted in weblogic.developer.interest.jdbc. Next
    time ;-)
    But, your URL in the connection pool declaration is:
    URL="jdbc:oracle:thin@harrylocal:1521:cseatdev"/>
    and, your URL in the standalone java code is:
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@harrylocal:1521:cseatdev","test","xxxxxxxxxx");
    Your are missing a ':' between the 'thin' and the '@' sign in the
    offending URL. Add the ':' and you will be fine.
    Bill
    jjmerrow wrote:
    Hi folks
    I've seen a few postings on this, but am still stuck...would
    appreciate any ideas!
    here's the situation:
    -redhat 7.1, sun jdk 1.3.1_02, oracle 8.1.7
    -classes12.zip is in the classpath
    -config.xml contains:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    Name="oraclePool" Password="xxxxxxxxxxxx"
    Properties="UserName=test" Targets="myserver"
    TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="false" TestTableName="KEYVALUE"
    URL="jdbc:oracle:thin@harrylocal:1521:cseatdev"/>
    -errormsg on weblogic start (from log)
    <Error> <JDBC> <harry.menta.es> <myserver> <ExecuteThread: '9' for
    queue: 'default'> <system> <> <001060> <Cannot startup connection pool
    "oraclePool" No suitable driver>
    -snippet from standalone java pgm that connects to oracle
    successfully:
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@harrylocal:1521:cseatdev","test","xxxxxxxxxx");
    thanks for any thoughts
    josh[att1.html]

  • JDBC-ODBC BRIDGE  "No Suitable Driver"

    I am trying to link the JAVA (VJ++) to MS ACCESS 2000. I am always getting the error: "No Suitable Driver"
    I am sure I that I have set up the SYSTEM DSN and installed jdk1.2.2 correctly. I just can't understand why it insists on not working!!??
    I have tryed everything I know, but I still cant get this problem sorted and I'm about to give up. Does the driver even work when trying to establish this kind of link???!!!
    CODE:
    public class AuditConnect
         private Connection Aconn;
         private String strUrl = "jdbc:odbc:CSDMATlink";
         private String user = "tiger";
         private String password = "tiger";
         private String Err;
         public AuditConnect()
              try
                   try
                        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");                                        
                   catch(ClassNotFoundException ex)
                        Err = ex.getMessage();                    
                   Aconn = DriverManager.getConnection(strUrl, user, password);
              catch(SQLException SQLErr)
                   Err = SQLErr.getMessage();               
    Help me please, I'm desperate!!!

    A new version of the JDK was not necessary to fix the problem. In any event let's start with configuring your box correctly. The CLASSPATH environment variable is not necessary when using the core JDK classes (of which the JDBC-ODBC bridge classes are a part of). The CLASSPATH environment variable should only be used if you have third party class libraries you wish to add. I'm assuming that's not the case so I would recommend not coding the CLASSPATH variable. However if you have it already coded make sure to add the current directory (as denoted by a dot). For example:
    SET CLASSPATH=.;c:\JDK1.4.1_03\jre\lib\rt.jar
    Although the CLASSPATH is not necessary the PATH environment variable is crucial. You need to add the JDK's BIN directory to your current PATH statement. For example:
    SET PATH=%PATH%;c:\JDK1.4.1_03\bin
    The above should resolve the No suitable driver problem you've been encountering. Since JDK 1.2.x the JDK's CLASSPATH is resolved via the PATH setting.
    Now as per my previous post you need to make sure that you really do have a well formed JDBC URL as that can also cause the No suitable driver problem.
    I'm not familiar with Win98 so I don't know if you update the environment variables via the AUTOEXEC.BAT file or if you use the Control Panel ala WinNT. Check your documentation to ensure you're updating correctly. Good luck.

Maybe you are looking for