I was wondering if someone can help me with setting up Jboss with SQL Server 7.0.
I get the the following error starting JBoss with Tomcat:
[Service Control] Registered with server
java.lang.NoClassDefFoundError: org/opentools/minerva/jdbc/xa/XAPoolDataSource
at org.jboss.jdbc.XADataSourceLoader.getSource(XADataSourceLoader.java:352)
I have installed the JBoss-2.2.1_Tomcat-3.2.1 binary on a Windows 2000 server, and am using the Sun jdbc-odbc bridge. I have followed the instructions exactly from the JBoss web page "Using MS SQL Server with JBoss".
Everything goes fine until I "Declare a DB Connection pool", that is add the following to jboss.conf:
<MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar,rt.jar" CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="SQLServerPool">
<ARG TYPE="java.lang.String" VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>
and "Configure the DB Connection pool", that is add the following to jboss.jcml:
<mbean name=";DefaultDomain:service=XADataSource,name=SQLServerPool">
<attribute name="URL">jdbc:odbc:jboss_odbc</attribute>
<attribute name="JDBCUser">dbusername</attribute>
<attribute name="Password">dbpassword</attribute>
etc...
</mbean>
I get the error above after these steps
I have located the XAPoolDataSource class in the lib/ext/minerva-1_0b3.jar file and added the file to the CLASSPATH, but I still get the error. Any help would be appreciated. Thanks!
Simon
-
Error using JBoss with SQL Server (7 messages)
- Posted by: Simon Hernaez
- Posted on: August 22 2001 12:07 EDT
Threaded Messages (7)
- Error using JBoss with SQL Server by Toby Hede on August 23 2001 01:26 EDT
- Error using JBoss with SQL Server by Toby Hede on August 23 2001 01:29 EDT
- Error using JBoss with SQL Server by Praveen Balakrishnan on August 23 2001 09:19 EDT
- Error using JBoss with SQL Server by Selvaraj K on August 24 2001 10:51 EDT
- Error using JBoss with SQL Server by Simon Hernaez on August 24 2001 14:34 EDT
- Error using JBoss with SQL Server by James Hicks on August 24 2001 17:26 EDT
- Error using JBoss with SQL Server by Simon Hernaez on September 05 2001 15:29 EDT
-
Error using JBoss with SQL Server[ Go to top ]
- Posted by: Toby Hede
- Posted on: August 23 2001 01:26 EDT
- in response to Simon Hernaez
Have you defined the following in your MBean?
<attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute> -
Error using JBoss with SQL Server[ Go to top ]
- Posted by: Toby Hede
- Posted on: August 23 2001 01:29 EDT
- in response to Simon Hernaez
Actually, I have never had to configure a connection pool in jboss.conf, only ever add the MBean declration to jboss.jcml -
Error using JBoss with SQL Server[ Go to top ]
- Posted by: Praveen Balakrishnan
- Posted on: August 23 2001 09:19 EDT
- in response to Toby Hede
Did you register your JDBC Provider in the jboss.jcml for the jdbc-odbc driver..
<mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
<attribute name="Drivers">sun.jdbc.odbc.JdbcOdbcDriver</attribute>
</mbean>
And btw, it is recommended not to use Type 2 drivers. -
Error using JBoss with SQL Server[ Go to top ]
- Posted by: Selvaraj K
- Posted on: August 24 2001 10:51 EDT
- in response to Simon Hernaez
testing mail -
Error using JBoss with SQL Server[ Go to top ]
- Posted by: Simon Hernaez
- Posted on: August 24 2001 14:34 EDT
- in response to Simon Hernaez
Thanks for responding. Yes, I have the code in both of your replies in the jcml file:
<!-- JDBC -->
<attribute name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,sun.jdbc.odbc.JdbcOdbcDriver</attribute>
</mbean> <!-- JDBC -->
and
<mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=SQLServerPool">
<attribute name="DataSourceClass"> org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
<attribute name="PoolName">SQLServerPool</attribute>
<attribute name="URL">jdbc:odbc:jboss_odbc</attribute>
<attribute name="JDBCUser">(user)</attribute>
<attribute name="Password">(psswd)</attribute>
</mbean>
I had added this code before and JBoss started fine. The instructions then say to go ahead and declare and configure the DB connection pool. When I add the code for these steps, that's when it errors. Are these steps needed? I know that this is not the best driver - do you know of better free ones? Thanks - Simon -
Error using JBoss with SQL Server[ Go to top ]
- Posted by: James Hicks
- Posted on: August 24 2001 17:26 EDT
- in response to Simon Hernaez
Try upgrading to the final release 2.4. All the pooling classes have been moved into JBOSS_HOME/lib/ext/jbosspool.jar. THe XAPoolDataSource.class was also moved into org.jboss.pool.jdbc.xa
-
Error using JBoss with SQL Server[ Go to top ]
- Posted by: Simon Hernaez
- Posted on: September 05 2001 15:29 EDT
- in response to Simon Hernaez
Thanks - I'll try the upgrade
Simon