Cannot load driver class: com.mysql.jdbc.Driver
Hi,
I'm new in the Oracle solutions and I'm trying to deploy a simple ADF Application that retrieves data from a mysql database, I already set up the mysql connector in the libraries but when I try to deploy the application the following message appears to me:
*** Using port 7101 ***
C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
.
WLS Start Mode=Development
.
CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
.
PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\Program Files (x86)\SenchaSDKTools-2.0.0-beta3;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
.
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
***************************************************
starting weblogic with Java version:
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\FBELLUCO\AppData\Roaming\JDEVEL~1\SYSTEM~1.13\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\FBELLUCO\AppData\Roaming\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\FBELLUCO\AppData\Roaming\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\Users\FBELLUCO\AppData\Roaming\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Users\FBELLUCO\AppData\Roaming\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\FBELLUCO\AppData\Roaming\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\FBELLUCO\AppData\Roaming\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\FBELLUCO\AppData\Roaming\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\oracle\store\gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
<19/08/2012 16h40min52s BRT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<19/08/2012 16h40min52s BRT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<19/08/2012 16h40min53s BRT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.>
<19/08/2012 16h40min53s BRT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
<19/08/2012 16h40min54s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<19/08/2012 16h40min54s BRT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<19/08/2012 16h40min54s BRT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<19/08/2012 16h40min54s BRT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00005. Log messages will continue to be logged in C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
<19/08/2012 16h40min54s BRT> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
<19/08/2012 16h40min57s BRT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<19/08/2012 16h41min00s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<19/08/2012 16h41min01s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<MessageLocalizationHelper> <getLocalizedMessage> O recurso do pacote "oracle.jrf.i18n.MBeanMessageBundle_pt_BR" com a chave "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" não foi encontrado.
<19/08/2012 16h41min06s BRT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<19/08/2012 16h41min06s BRT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00005. Log messages will continue to be logged in C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
<19/08/2012 16h41min06s BRT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<19/08/2012 16h41min06s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<19/08/2012 16h41min06s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[11]" is now listening on 0:0:0:0:0:0:0:1:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Warning> <Server> <BEA-002611> <Hostname "FBELLUCO-PC", maps to multiple IP addresses: 192.168.2.165, fe80:0:0:0:5d2e:304b:c1ee:fef9%12, fe80:0:0:0:140f:246e:4e4b:5580%18, 2001:0:4137:9e76:140f:246e:4e4b:5580>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[10]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on fe80:0:0:0:140f:246e:4e4b:5580:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on fe80:0:0:0:0:5efe:c0a8:2a5:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.0.135:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 2001:0:4137:9e76:140f:246e:4e4b:5580:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[6]" is now listening on fe80:0:0:0:5cee:582d:c1d2:274d:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[9]" is now listening on fe80:0:0:0:5ca1:539a:e6ac:87d:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[7]" is now listening on fe80:0:0:0:9808:46d3:f632:c499:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[8]" is now listening on fe80:0:0:0:5d2e:304b:c1ee:fef9:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[5]" is now listening on fe80:0:0:0:5d5a:6be2:c66e:a30e:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 192.168.2.165:7101 for protocols iiop, t3, ldap, snmp, http.>
<19/08/2012 16h41min07s BRT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
<19/08/2012 16h41min07s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<19/08/2012 16h41min07s BRT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
IntegratedWebLogicServer startup time: 16364 ms.
IntegratedWebLogicServer started.
[Running application IBTI on Server Instance IntegratedWebLogicServer...]
[04:41:08 PM] ---- Deployment started. ----
[04:41:08 PM] Target platform is (Weblogic 10.3).
[04:41:09 PM] Retrieving existing application information
[04:41:09 PM] Running dependency analysis...
[04:41:09 PM] Deploying 2 profiles...
[04:41:10 PM] Wrote Web Application Module to C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\IBTI\ViewControllerWebApp.war
[04:41:10 PM] Wrote Enterprise Application Module to C:\Users\FBELLUCO\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\IBTI
[04:41:10 PM] Deploying Application...
<19/08/2012 16h41min11s BRT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application IBTI is not versioned.>
<19/08/2012 16h41min11s BRT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1345405270810' for task '0'. Error is: 'weblogic.application.ModuleException: '
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:302)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
Truncated. see log file for complete stacktrace
Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.mysql.jdbc.Driver
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:301)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:712)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:235)
Truncated. see log file for complete stacktrace
>
<19/08/2012 16h41min11s BRT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'IBTI'.>
<19/08/2012 16h41min11s BRT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:302)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
Truncated. see log file for complete stacktrace
Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.mysql.jdbc.Driver
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:301)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:712)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:235)
Truncated. see log file for complete stacktrace
>
[04:41:11 PM] #### Deployment incomplete. ####
[04:41:11 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application IBTI due to error deploying to IntegratedWebLogicServer.
[Application IBTI stopped and undeployed from Server Instance IntegratedWebLogicServer]
Thanks!