[jboss-user] [Datasource Configuration] - Database driver problem

Mallikharjuna Areti do-not-reply at jboss.com
Fri Aug 17 00:20:59 EDT 2012


Mallikharjuna Areti [https://community.jboss.org/people/malli002] created the discussion

"Database driver problem"

To view the discussion, visit: https://community.jboss.org/message/754138#754138

--------------------------------------------------------------
I am trying to configure few datasources in my environment and getting below driver problem.

i have tried with *ojdbc6.jar file and ojdbc14.jar* file in the classpath. 

If i use ojdbc6.jar file i will get class not found exception like below with sealing violation ..etc where as if i use ojdbc14.jar file i will get class cast exception. Basically what i understood is it's driver mismatch or something but not able to identify where could be the problem. I have tried all the ways, from my side if anyone have any idea about this or any clue please suggest me. I can give you more clarity on the problem if required.

Few extra details :- 

java version - 1.6.0.20
Jboss version - 5.1


+Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver+
+        at oracle.jdbc.pool.OracleDataSource.<init>(OracleDataSource.java:85)+
+        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)+
+        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)+
+        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)+
+        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)+
+        at java.lang.Class.newInstance0(Class.java:355)+
+        at java.lang.Class.newInstance(Class.java:308)+
+        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:481)+
+        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:206)+
+        ... 98 more+
*+Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: oracle.jdbc.driver.OracleDriver, msg=Sealing violation for package oracle.jdbc.driver+*
+        at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:181)+
+        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:276)+
+        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1138)+
+        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:862)+
+        at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:502)+
+        at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:447)+
+        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)+
+       ... 107 more+


Here is my one of DS.xml file


+<datasources>+
+      <local-tx-datasource>+
+        <jndi-name>jdbc/<JNDI NAME></jndi-name>+
+        <connection-url>jdbc:orcale:thin:@<servername>:<port>:<schema_name></connection-url>+
+        <driver-class>oracle.jdbc.pool.OracleDataSource</driver-class>+
+        <security-domain>DataSourceDBLogin</security-domain>+
+        <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>+
+        <metadata>+
+          <type-mapping>Oracle11g</type-mapping>+
+        </metadata>+
+        <min-pool-size>5</min-pool-size>+
+        <max-pool-size>20</max-pool-size>+
+        <idle-timeout-minutes>15</idle-timeout-minutes>+
+      </local-tx-datasource>+
+    </datasources>+
++
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/754138#754138]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120817/f8871f7b/attachment-0001.html 


More information about the jboss-user mailing list