Toplink Error java.sql.SQLException: No suitable driver Ms Sql Server 2005

Hi All,
My requirement is to insert document to Ms SQL 2005 DB, the field type for document is IMAGE. I have configured Oracle TopLink - 10g Release 3 (10.1.3.3.0) for performing the operation.
While inserting it is giving me error saying "Internal Exception: java.sql.SQLException: No suitable driverError Code: 0".
The content of sessions.xml is as below
<toplink-configuration>
<session>
<name>default</name>
<project-xml>META-INF/sqlMap.xml</project-xml>
<session-type>
<server-session/>
</session-type>
<login>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<connection-url>jdbc:sqlserver://10.183.106.145:1433</connection-url>
<platform-class>oracle.toplink.platform.database.SQLServerPlatform</platform-class>
<user-name>venkat</user-name>
<encryption-class-name>oracle.toplink.internal.security.JCEEncryptor</encryption-class-name>
<encrypted-password>64CC4E712821442C6A30649B23033675</encrypted-password>
</login>
</session>
</toplink-configuration>
Similar error getting while running from OC4J container. Also tried providing different values to <connection-url></connection-url> example jdbc:sqlserver://10.183.106.145:1433;databasename=master. Also tried by replacing <connection-url> with <datasource>. Let not able to pass through. Not able to figure-out what is the values for <connection-url> ..
Can anybody help me in resolving this error
Regards
Venkata Madhu

Try connecting directly through JDBC, it seems that your JDBC driver is not accepmting your URL.
In TopLink you may also need to use direct connecting (DatabaseLogin.useDirectDriverConnect()).
James : http://www.eclipselink.org

Similar Messages

  • 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)

  • TOPLINK-4002: java.sql.SQLException: No suitable driver

    Good Day,
    I'm building a simple test where a BPEL is using a Database Service; it's set up to talk to an XE database (Oracle JDBC) option. The IDE works great but when I try to run the BPEL the following error occurs:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns:fpre="http://schemas.oracle.com/bpel/extension"><faultcode xmlns="">fpre:remoteFault</faultcode><faultstring xmlns=""/><faultactor xmlns=""/><detail xmlns=""><summary>null: Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DatabaseServiceSelect' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by Exception [TOPLINK-4002] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: No suitable driver
    Error Code: 0.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary></detail></env:Fault></env:Body></env:Envelope>
    After reading a few threads I'm still confused as to what to do here; it seems that I must copy some jar files in some lib folder - it's not clear to me what jars, from where and to where; the jars must be somewhere as the IDE works; I'd greatly appreciate if someone can answer this.
    Then why does everything work fine in the IDE but when I deploy there's problems - shouldn't everything be bundled with the IDE and server; I'm not using some strange 3rd party data store?
    Further I'd like to know when using some of the other services is this behavior to be expected - must you manually configure them somewhere and copy jars?
    Regards
    J

    Hi Everyone,
    I managed to sort this one by doing the following:
    1. Copy the jar files from $JOH\jdbc\lib to $JDEV_USR_DIR\workspace\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\applib.
    2. Edit the connection from the DatabaseAdapater tab and ticked both Save and Deploy Password buttons.
    After this I restarted the whole lot; it's now talking to the database which is most useful.
    Hope this helps others.

  • 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

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

  • Java.sql.SQLException: No suitable driver

    problem with JSP:
    in my web.xml i have:
    <context-param>
    <param-name>javax.servlet.jsp.jstl.sql.dataSource</param-name>
    <param-value>jdbc:mysql://localhost/java?user=test&password=test</param-value>
    </context-param>
    <context-param>
    <param-name>driverClass</param-name>
    <param-value>com.mysql.jdbc.Driver</param-value>
    </context-param>
    yesterday it was working fine, and today after syster reboot i am geting this message:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    mysql-connector-java-5.0.4-bin.jar is in C:\Program Files\Java\jdk1.5.0_04\jre\lib\ext\ and Classpath and Path are OK.
    any idea how to resolve this?
    ps: i also have a small class that was used to test driver installation and it works just fine

    You have to put the driver in the right place for your Servlet engine. You haven't done that yet. And your outside program does not show you otherwise.

  • Sql:setDataSource - "java.sql.SQLException: No suitable driver" Again :(

    Hi everyone,
    I have the following jsp page:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <sql:setDataSource driver="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks;user=sa;password=sa" var="dSource"/>
    <sql:query var="contacts" dataSource="${dSource}">
    SELECT TOP 10 FROM Person.Contact
    </sql:query>
    <table border="1">
    <c:forEach var="row" items="${contacts.rows}">
    <tr>
    <th>
    Contact ID
    </th>
    <th>
    First Name
    </th>
    <th>
    Middle Name
    </th>
    <th>
    Last Name
    </th>
    </tr>
    <tr>
    <td>
    <c:out value="${row.ContactID}" />
    </td>
    <td>
    <c:out value="${row.FirstName}" />
    </td>
    <td>
    <c:out value="${row.MiddleName}" />
    </td>
    <td>
    <c:out value="${row.LastName}" />
    </td>
    </tr>
    </c:forEach>
    </table>
    </body>
    </html>
    When I run it, got the following exception:
    exception
    org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 20
    17: </head>
    18: <body>
    19: <sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" dataSource="jdbc:microsoft:sqlserver://localhost:1433;databaseName=AdventureWorks;" user="sa" password="sa" var="dSource"/>
    20: <sql:query var="contacts" dataSource="${dSource}">
    21:           SELECT TOP 10 FROM Person.Contact
    22: </sql:query>
    23:
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:102)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    But when I write a servlet with doGet as below:
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet MyServlet</title>");
    out.println("</head>");
    out.println("<body>");
    String connectionUrl = "jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks;user=sa;password=sa";
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    con = DriverManager.getConnection(connectionUrl);
    String SQL = "SELECT TOP 10 * FROM Person.Contact";
    stmt = con.createStatement();
    rs = stmt.executeQuery(SQL);
    while (rs.next()) {
    out.println(rs.getString(4) +" "+ rs.getString(6) + "<br/>");
    catch (Exception e) {
    e.printStackTrace();
    } finally {
    if (rs != null) {
    try {
    rs.close();
    } catch (Exception e) {
    if (stmt != null) {
    try {
    stmt.close();
    } catch (Exception e) {
    if (con != null) {
    try {
    con.close();
    } catch (Exception e) {
    out.println("</body>");
    out.println("</html>");
    } finally {
    out.close();
    Everything is ok.
    I'm using Netbean 6.7.1, Tomcat 6.0.18, JDK 5.0. And I already tried to put the sqljdbc.jar to the lib folder of Tomcat or the JAVA_HOME\jre\lib\ext but no luck.
    Please give advice.

    The issue is with your usage of the sql:setDataSource tag. You should either specify a driver and url attributes, or* a datasource attribute.
    The datasource attribute follows the syntax: url[,[driver][,[user][,password]]] (ref Section 10.1.1 of the JSTL1.1 spec)
    You were using the datasource attribute, but not including the driver within it.
    So one of the following should work:
    <sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:microsoft:sqlserver://localhost:1433;databaseName=AdventureWorks;" user="sa" password="sa" var="dSource"/>or
    <sql:setDataSource dataSource="jdbc:microsoft:sqlserver://localhost:1433;databaseName=AdventureWorks;,com.microsoft.sqlserver.jdbc.SQLServerDriver,sa,sa" var="dSource"/>----------
    As an aside your code example doesn't seem to match with the error message:
    In your code:
    <sql:setDataSource driver="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks;user=sa;password=sa" var="dSource"/>From the error message:
    <sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" dataSource="jdbc:microsoft:sqlserver://localhost:1433;databaseName=AdventureWorks;" user="sa" password="sa" var="dSource"/>These two are not the same. Not sure if that is caused by a forum bug, or you trying various things. But the fact they don't match doesn't help :-).
    cheers,
    evnafets

  • Java.sql.SQLException: No suitable driver while using a tomcat DataSource

    Im looking for some directing as I keep getting same error no matter what i've tried
    App Server: localhost (Win 2000 Tomcat 4.0.6)
    MySQL server: 192.168.x.x (Linux version 3.23.49)
    IDE: NetBeans 3.5
    error:
    2003-07-07 11:37:42 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    javax.servlet.ServletException: class stuff.dao.ContextTester : java.sql.SQLException: No suitable driver
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
    at org.apache.jsp.index$jsp._jspService(index$jsp.java:95)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:173)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:246)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:226)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:148)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:534)
    ----- Root Cause -----
    java.lang.InstantiationException: class stuff.dao.ContextTester : java.sql.SQLException: No suitable driver
    at org.apache.jsp.index$jsp._jspService(index$jsp.java:66)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:173)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:246)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:226)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:148)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:534)
    web.xml:
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
         <welcome-file>
    index.jsp
    </welcome-file>
    </welcome-file-list>
    <resource-ref>
    <res-ref-name>jdbc/dao</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    server.xml:
    <Context path="" docBase="C:\Documents and Settings\devel\Desktop\stuff Proj">
    <Valve className="org.netbeans.modules.web.monitor.catalina.MonitorValve"/>
    <InstanceListener>org.netbeans.modules.web.monitor.catalina.DispatchListener</InstanceListener>
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost__log." suffix=".txt" timestamp="true"/>
    <Resource name="jdbc/dao" auth="Container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/dao">
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://192.168.x.x/develop</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>webapp</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>password</value>
    </parameter
    </ResourceParams>
    </Context>
    instantiated class:
    package stuff.dao;
    import java.beans.*;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    import java.util.*;
    import java.io.*;
    public class ContextTester extends Object implements java.io.Serializable {
    public Connection con = null;
    /** Creates new ContextTester */
    public ContextTester() throws NamingException, SQLException {
    Context init = new InitialContext();
    Context ctx = (Context) init.lookup("java:comp/env");
    DataSource ds = (DataSource) ctx.lookup("jdbc/dao");
    con = ds.getConnection();
    /** get new class ID from database **/
    /* public String getNewID () throws SQLException {
    PreparedStatement qry;
    ResultSet results = null;
    try {
    qry = con.prepareStatement("SELECT MAX(id)FROM role");
    results = qry.executeQuery();
    if (!results.next()) throw new SQLException ("Can not retrieve maximum id");
    return results.getString(1);
    } finally {
    try { results.close(); } catch (Exception ex) {}
    index.jsp:
    <jsp:useBean id="cntxt" class="stuff.dao.ContextTester" scope="page" />
    <html>
    <head><title>JSP Page</title></head>
    <body>
    Hello World!<br>
    This page has worked!!<br>
    </body>
    </html>
    A jar file containing stuff.dao.ContextTester
    and mysql-connector-java-3.0.8-stable-bin.jar
    are in the WEB-INF/lib directory of webapps
    if anybody has any suggestions it would be appreciated!!

    I've never seen an IP address like the one you have in your database URL:
    <value>jdbc:mysql://192.168.x.x/develop</value>
    Are placeholders like that legal? Or did you put them into the note to disguise what machine you were using?
    I've got a Context like this for a JSP-to-Oracle app that I'm using:
    <Resource name="jdbc/Conference"
    auth="Container"
    type="javax.sql.DataSource"/>
    <!-- Oracle 9.2.0.1 data source -->
    <ResourceParams name="jdbc/Conference">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:oracle:thin:@elvis:1521:CAPP</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>api</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mod</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>20</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>0</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>60000</value>
    </parameter>
    <parameter>
    <name>removeAbandoned</name>
    <value>true</value>
    </parameter>
    <parameter>
    <name>removeAbandonedTimeout</name>
    <value>300</value>
    </parameter>
    </ResourceParams>
    The JNDI lookup string is "java:comp/env/jdbc/Conference". MOD

  • Java.sql.SQLException:No suitable driver.....trying to connect to DB2 db

    I have just compiled a program that tries to connect to a DB2 database in order to create a table with fields and values and to update these. It compiled fine but when I try to run it I get the following error:
    General exception occured
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at Loader.main(Loader.java, Compiled Code)
    The name of the db is CHDTEST. The server where this database connects also has other systems and other databases. I don't know if I need to list the system as well. can the db be found without listing the system??
    Here is what is in my code:
    String dbName = "CHDTEST";
    String url = "jdbc:db2" + dbName;
    Connection con = DriverManager.getConnection(url, "db2ad", "tsd4");
    db2ad being the userid
    tsd4 being the pw
    Can anyone help please??thanks, AL

    Hi,
    You must put ":" between db2 and you database name, for example:
    jdbc:db2:CHDTEST and not
    jdbc:db2CHDTEST
    gook luck

  • DataSource invalid: "java.sql.SQLException: No suitable driver"

    Hi,
    I created a JDBC resource called "jdbc/gms" under SUN JSAS admin. I am trying SQL query using JSTL tag in a JSP page as follows.
    <sql:query var="learning" dataSource="jdbc/gms">
    Query
    </sql:query>
    I am getting the error as DataSource invalid: "java.sql.SQLException: No suitable driver".
    Instead, If I use the following code it is working properly.
    <%
    Connection connection = null;
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/gms");
    connection=ds.getConnection();
    Statement stmt = connection.createStatement();
    String sqlquery="My Query";
    ResultSet rs = stmt.executeQuery(sqlquery);
    %>
    I am not sure why JSTL SQL Query is not working. Please help.

    I haven't actually used JSAS. I am extrapolating the error from symptoms seen on other web containers (Tomcat, Weblogic, JBoss...)
    Unfortunately when it comes to setting up JNDI resources, each is quite different.
    What version of JSAS are you using? but here is the link to the documentation for setup that google found:
    http://docs.sun.com/source/819-0076/jdbc.html#wp1016617
    The documentation seems to indicate that resources should automatically be put in the java:comp/env subcontext. Obviously this is not happening as your code is retrieving it from the initial context.
    Check the section where you have defined the JDBC Resources that you have typed the right name - maybe you added a "/" onto the front of the name?
    Maybe you can find the file that it is editing when you edit through the interface, and see what is in there?
    Good luck,
    evnafets

  • What a pity...."java.sql.SQLException: No suitable driver"

    I am using win XP, mysql connector J 3.0.15 -ga bin, tomcat 5.0.28 for JSP.
    I am developping a webpage and tries to connect to mysql from JSP.
    I HAVE PUT THE mysql connector J under the ${TOMCAT_DIR}\common\bin and ${TOMCAT_DIR}\webapps\ROOT\WEB-INF\lib.......
    and here is my errors....
    exception
    javax.servlet.ServletException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:84)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
         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.test_jsp._jspx_meth_sql_query_0(test_jsp.java:103)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    here is my setting of server.sml
    <Resource name="jdbc/mysql"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/mysql">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>100</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>30</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>user</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>pwpw</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/info?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    and a test page:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <sql:query var="rs" dataSource="jdbc/mysql">
    select * from testdat;
    </sql:query>
    i follow exactly the same as http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html told me how to do ...but i just get that cant find JDBC error...
    I have read many similar cases....but they just type something wrong....
    help!!!thanx

    Hi Sherbir,
    Qs...
    1)where to find those commons-dbcp-1.1.jar, commons-pool-1.1.jar, commons-collections.jar?!
    Where should I put them under the tomcat again?! ${TOMCAT_DIR}\common\bin ?!
    2) I'm not doing conneciton poolings....I jsut wonder why I cant even CONNECT....>_<!
    (it should be just a small problem....and I used to use tomcat 4...i really dont know why)
    3) Why do I still have to import those java.io.*?! um.....
    ps. OK, everyone calls me xonxon...heh.
    THANKS X 1000
    Hi Xonxon,
    U have a funny username !! I'm sure it's not ur real
    name !!
    Anyway, jokes apart, I went thru ur problem. I think u
    r trying to implement Database Connection Pooling. And
    here's the solution to it.
    First make sure u have the Following JARs :
    1) commons-dbcp-1.1.jar
    2) commons-pool-1.1.jar
    3) commons-collections.jar
    Next, U have to add these JARs NOT UNDER
    ${TOMCAT_DIR}\common\bin ... rather under
    $(TOMCAT_HOME)\common\lib. U don't need to put it in
    ${TOMCAT_DIR}\webapps\ROOT\WEB-INF\lib.
    Ur server.xml is configured correctly, but in ur JSP,
    u have to import the following classes...
    <%@ page import="java.io.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.sql.DataSource" %>
    And u're done.
    Hope this detail is enough to have u jumping
    around...!!
    Do keep me posted.
    Regards
    Sherbir

  • 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.
    %

  • Java.sql.SQLException: No suitable driver : Please Help

    Hi I m getting the following error while running my java program.
    I have keppt the oracle driver classes in the class path and
    Class.forName("jbcd... oracledriver") ;
    is not giving any problem ...
    error occurs when it tries to get Connection from
    Connection conn = source.getConnection() ; // where source is DataSource
    Please tell me how to solve this error.
    Thanx in Advance
    Regards
    Abhi

    THax alot guys...
    Actually it was typing mistake... and I struggled for that for 4-5 hours ...
    I went bk in xml property file (created earlier) for drivers
    its connecting after that...
    Regards
    Abhishek

  • App failed due to java.sql.SQLException: [Microsoft][ODBC driver for Oracl

    Hello I developed a small applicaion for insert data into database.but i am getting exception in the server like this.
    app failed due to java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-01401: inserted value too large for column
    And the code is given below..
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Jdbc1 extends HttpServlet
    public void service(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
    PrintWriter out=response.getWriter();
    String no=request.getParameter("no");
    String name=request.getParameter("name");
    String age=request.getParameter("age");
    try
    System.out.println("1");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("2");
    Connection con=DriverManager.getConnection("jdbc:odbc:rakesh","scott","tiger");
    System.out.println("3");
    Statement st=con.createStatement();
    System.out.println("4");
    st.executeUpdate("INSERT INTO ind VALUES('+no+','+name+','+age+')" );
    con.commit();
    con.close();
    catch(Exception e)
    System.out.println(" app failed due to "+e);
    }Please give solution for this....

    Hello sir..
    thanks for ur reply...
    for oracle 10g -----> we use XE as datasourse
    name..What?
    now i am using oracle 8i...Not so from the code you posted. Didn't I see "jdbc:odbc:..." in your first post?
    so what should i
    write...in the datasourse name...that means.......
    Connection
    con=DriverManager.getConnection("jdbc:oracle:thin:@loc
    alhost:1521:????????","scott","tiger");Do you really use the default username and password?
    What should i write in place of ?????????..The name of the database you wish to connect to, of course.
    Do you have your tnsnames.ora set up properly? Did you install this database?
    None of this has ANYTHING to do with the error you posted, of course. Fix that first and then worry about the thin driver. At least it appears that the code you posted managed to connect to the database.
    %

  • SQLException:java.sql.SQLException:[Microsoft][Odbc driver for Oracle]

    hi all..im tryin to connect to Oracle db from java application.. i can complile the code but when it comes to executing d cod im gettin d followin error.. pls help me out.. here is d error
    SQLException:java.sql.SQLException:[Microsoft][Odbc driver for Oracle][Oracle]

    henrymania wrote:
    This is d driver im loadin..
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    and this is URL im assiging....
    "jdbc:oracle:thin:@192.168.32.68:1521:test";
    Here test is my sid name....highly unlikely, as that's not an ODBC driver nor is it an ODBC DSN.

Maybe you are looking for

  • App store language ignores what is selected in System Preferences

    The app store doesn't appear to honor the language I have set in System Preferences (english). I live in France (but am a native English speaker) and because I only have a French credit card, I must use a French itunes account, which automatically di

  • Upload excel file and display content in sapui5 table

    hi:all    how to upload  excel files and display its contents in the view of sapui5  table ,then  'create ' these data into the abap database using odataservice.      Do you have any solutions ? I appreciate for your help.

  • Air 3.4 iOS Push Notification is not fired when app is not running and is not in background

    Hello, I'm making an Air iOS application which uses the iOS Push Notification from Air 3.4. All is working perfectly except when I receive notifications when the app is not running and is not in background (The app is killed). I suppose the RemoteNot

  • Trap update error for insert!

    Hi, I have a table approx 2 million records which is updated daily from a staging table that is loaded from file. It's taking approx 7 hours as it searches for a record and if it exists, otherwise it inserts. I was thinking that a faster method would

  • Help:A website problem

    My problem is to visit the website http://www.billiger-telefonieren.de/tarife/tarifmodelle.php3?name=010012&verbindungsnbz=Call+by+Call&gueltigab=2006-01-27%2015:00:00&gueltigbis=0000-00-00%2000:00:00 and then there is a dropdown menu called Auslandp