[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - thin driver ojdbc14.jar, Java 6 (1.6) and -Xss
mclu
do-not-reply at jboss.com
Tue Jan 16 03:22:28 EST 2007
Hi out there!
We are using Jboss 4.x with Oracle 9 and 10.
Because in the Java 5 there are some Bugs/Issues with Threads we are forced to upgrade to Java 6. We are using plain J2EE with EJB 2.0 and mostly 1.1
With Java 6 and MSSQL all works but not with Oracle. We we found the Error...
It has to Do with the VM Parameter -Xss (Setting Stack Size)
At JBoss we are using the Thin Driver and the newest ojdbc14.jar
Configutation DS:
<local-tx-datasource>
<jndi-name>AeosDS</jndi-name>
<connection-url>jdbc:oracle:thin:@NVC0534:1521:test</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<min-pool-size>0</min-pool-size>
<max-pool-size>50</max-pool-size>
<security-domain>MyDatabaseRealm</security-domain>
<type-mapping>Oracle9i</type-mapping>
</local-tx-datasource>
When we now start the Server without the -Xss setting all is OK.
When I start up the Server with -Xss64k I get a NoClassDefFoundError ???
Stacktrace:
09:14:16,765 INFO [DbManager] Trying to get connection from datasource with name= java:/AeosDS
09:14:16,906 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleCallableStatement
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:568)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFacto
ry.java:151)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnect
ionPool.java:508)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207
)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:
534)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:396)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:299)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:448)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionMan
ager2.java:838)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
at com.nedap.aeos.ejbutil.DbManager.getConnectionOnce(DbManager.java:174)
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:597)
...
Why the Driver change his behaviour dependend on the Xss setting?
Is there a Bug on Jboss side?
I Also posted this in the Oracle Tech Channel.
With an older Version like the classes12.jar it works!!
Greets
Markus Lutum
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002151#4002151
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002151
More information about the jboss-user
mailing list