[JBoss 2.4.4] Castor and MSSQL - error loading CastorJDOImpl
bytor2002 Feb 7, 2002 5:23 PMI [finally] found the castorjdoplugin.jar that was recently rebuilt for JBoss 2.4.4 and Castor 0.9.3.9. I've got the MBean configured and I'm attempting to use an MSSQL database. Note: I have already been successful at defining a standard JBoss connection pool to this datasource. When I define the Castor MBean, I use the same class name as I use for the connection pool, but I get an error when JBoss attempts to load the MBean. I've attached the stack trace from the JBoss log file, the MBean for the standard database connection to this database, and the MBean for the CastorJDO connection to this database. Anyone have any ideas why this error is being thrown? It looks to me like the CastorJDOImpl code is complaining about the SQL Server class not extending the DataSource class. Could this be true? Is this a bad assumption made by the CastorJDOImpl code? Thanks for any insight you can provide.
Inline attachments:
FROM JBOSS.CONF:
com.microsoft.jdbc.sqlserver.SQLServerDriver
FROM JBOSS.CONF:
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
CalumetOnlineDevPool
jdbc:microsoft:sqlserver://localhost:1863
DatabaseName=CalumetOnlineDev
FROM JBOSS.CONF:
file:../conf/default/castordb.xml
jdo/Test
0
true
true
false
true
FROM CASTORDB.XML:
<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version 1.0//EN" "http://castor.exolab.org/jdo-conf.dtd">
<data-source class-name="com.microsoft.jdbc.sqlserver.SQLServerDriver">
<params port-number="1863" server-name="localhost" />
</data-source>
FROM JBOSS ERROR LOG:
[INFO,CastorJDOImpl] Starting
[ERROR,CastorJDOImpl] Stopped
java.lang.IllegalStateException: Data source class name does not extend javax.sql.DataSource
at org.exolab.castor.jdo.conf.DataSource.createParams(DataSource.java:131)
at org.exolab.castor.jdo.conf.DataSourceDescriptor$2.newInstance(DataSourceDescriptor.java:130)
at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1023)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:338)
at org.jboss.jdo.castor.CastorJDOImpl.startService(CastorJDOImpl.java:115)
at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
at $Proxy0.start(Unknown Source)
at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.Main.(Main.java:208)
at org.jboss.Main$1.run(Main.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:106)
[ERROR,ConfigurationService] Unexpected error