<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Database driver problem
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/malli002">Mallikharjuna Areti</a> in <i>Datasource Configuration</i> - <a href="https://community.jboss.org/message/754138#754138">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I am trying to configure few datasources in my environment and getting below driver problem.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>i have tried with <strong>ojdbc6.jar file and ojdbc14.jar</strong> file in the classpath. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Few extra details :- </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>java version - 1.6.0.20</p><p>Jboss version - 5.1</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at oracle.jdbc.pool.OracleDataSource.<init>(OracleDataSource.java:85)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at java.lang.Class.newInstance0(Class.java:355)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at java.lang.Class.newInstance(Class.java:308)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:481)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:206)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        ... 98 more</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><strong><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: oracle.jdbc.driver.OracleDriver, msg=Sealing violation for package oracle.jdbc.driver</em></strong></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:181)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:276)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1138)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:862)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:502)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:447)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)</em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">       ... 107 more</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><span style="font-size: 11pt; font-family: Times New Roman,serif;">Here is my one of DS.xml file</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;"><datasources></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">      <local-tx-datasource></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <jndi-name>jdbc/<JNDI NAME></jndi-name></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <connection-url>jdbc:orcale:thin:@<servername>:<port>:<schema_name></connection-url></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <driver-class>oracle.jdbc.pool.OracleDataSource</driver-class></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <security-domain>DataSourceDBLogin</security-domain></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <metadata></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">          <type-mapping>Oracle11g</type-mapping></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        </metadata></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <min-pool-size>5</min-pool-size></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <max-pool-size>20</max-pool-size></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">        <idle-timeout-minutes>15</idle-timeout-minutes></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">      </local-tx-datasource></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;">    </datasources></em></p><p style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"><em style=": ; font-size: 11pt; font-family: Times New Roman,serif;"> </em></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/754138#754138">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>