cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Baldwin <jfbald...@earthlink.net>
Subject Re: Error in using cayenne modeler
Date Thu, 22 Mar 2012 12:40:56 GMT
load failed - Can not load JDBC driver named 'oracle.jdbc.driver.OracleDriver': oracle.jdbc.driver.OracleDriver

eliminate the simple solutions first:
Verify that the Oracle JDBC jar file is the proper version and included in your classpath





On Mar 22, 2012, at 6:33 AM, yunus wrote:

> Hi can anyone tell me why this error is coming????
> 
> 
> 
> Mar 22, 2012 3:43:17 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: started configuration loading.
> Mar 22, 2012 3:43:17 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: loaded domain: UntitledDomain
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: loaded <map name='UntitledDomainMap'
> location='UntitledDomainMap.map.xml'>.
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: loading <node name='UntitledDomainNode'
> datasource='UntitledDomainNode.driver.xml'
> factory='org.apache.cayenne.conf.DriverDataSourceFactory'
> schema-update-strategy='org.apache.cayenne.access.dbsync.CreateIfNoSchemaStrategy'>.
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: using factory: org.apache.cayenne.conf.DriverDataSourceFactory
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: loading driver information from 'UntitledDomainNode.driver.xml'.
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: loading driver oracle.jdbc.driver.OracleDriver
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: loading user name and password.
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: Created connection pool: jdbc:oracle:thin:@10.122.130.39:1521:Georli03
> 	Driver class: oracle.jdbc.driver.OracleDriver
> 	Min. connections in the pool: 1
> 	Max. connections in the pool: 1
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: *** Connecting: FAILURE.
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: Error: DataSource load failed
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: no adapter set, using automatic adapter.
> Mar 22, 2012 3:43:18 PM org.apache.cayenne.modeler.util.ModelerLogger info
> INFO: loaded map-ref: UntitledDomainMap.
> Exception in thread "main" org.apache.cayenne.ConfigurationException:
> [v.3.0.2 Jun 11 2011 09:52:20] Error during Configuration initialization.
> [v.3.0.2 Jun 11 2011 09:52:20] Load failures. Main configuration class:
> org.apache.cayenne.conf.DefaultConfiguration, details: 
> 	domain.node.name=UntitledDomainNode,
> domain.node.datasource=UntitledDomainNode.driver.xml, reason: DataSource
> load failed - Can not load JDBC driver named
> 'oracle.jdbc.driver.OracleDriver': oracle.jdbc.driver.OracleDriver
> 	at
> org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:168)
> 	at
> org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:141)
> 	at
> org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:121)
> 	at
> org.apache.cayenne.conf.Configuration.getSharedConfiguration(Configuration.java:91)
> 	at
> org.apache.cayenne.access.DataContext.createDataContext(DataContext.java:143)
> 	at org.example.cayenne.Main.main(Main.java:15)
> Caused by: org.apache.cayenne.ConfigurationException: [v.3.0.2 Jun 11 2011
> 09:52:20] Load failures. Main configuration class:
> org.apache.cayenne.conf.DefaultConfiguration, details: 
> 	domain.node.name=UntitledDomainNode,
> domain.node.datasource=UntitledDomainNode.driver.xml, reason: DataSource
> load failed - Can not load JDBC driver named
> 'oracle.jdbc.driver.OracleDriver': oracle.jdbc.driver.OracleDriver
> 	at
> org.apache.cayenne.conf.RuntimeLoadDelegate.finishedLoading(RuntimeLoadDelegate.java:489)
> 	at org.apache.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:79)
> 	at
> org.apache.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:152)
> 	at
> org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:159)
> 	... 5 more
> 
> 
> --
> View this message in context: http://cayenne.195.n3.nabble.com/Error-in-using-cayenne-modeler-tp3848066p3848066.html
> Sent from the Cayenne - User mailing list archive at Nabble.com.


Mime
View raw message