Exception with CMP 2.0 and SQL Server
matthicksj Dec 12, 2001 4:11 PMWhen I deploy the CMP 2.0 examples that I purchased from the jboss site onto JBoss-3.0.0Alpha, they work with Hypersonic SQL and test okay (although there is an exception that occurs at the end). However, when I change the datasource to my SQL Server pool I get an exception thrown on deployment. This happened whether or not I attempted to create tables automatically. Could anyone provide any insight, or has anyone gotten CMP 2.0 working with SQL Server 2000? One last bit - when jboss3.0 starts, it is able to connect to sql server and appears to create the pool properly. Thanks
[16:08:51,718,J2eeDeployer#Default] Starting cmp2-example.ear failed!
javax.management.RuntimeErrorException: Error thrown in operation deploy
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
42)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:467)
at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
444)
at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
at java.lang.Thread.run(Thread.java:539)
[16:08:51,718,J2eeDeployer#Default] Module cmp2-example.ear is not running
[16:08:51,718,J2eeDeployer#Default] Destroying application cmp2-example.ear
[16:08:51,718,J2eeDeployer#Default] Destroyed
[16:08:51,718,AutoDeployer] Deployment failed:file:/C:/jboss-3.0/deploy/cmp2-example.ear
org.jboss.deployment.J2eeDeploymentException: Error while starting cmp2-example.
ear: null, Cause: java.lang.AbstractMethodError
at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:525)
at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
444)
at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
at java.lang.Thread.run(Thread.java:539)
Caused by: java.lang.AbstractMethodError
at org.jboss.resource.adapter.jdbc.local.ConnectionInPool.prepareStateme
nt(ConnectionInPool.java:652)
at org.jboss.resource.adapter.jdbc.local.ConnectionInPool.prepareStateme
nt(ConnectionInPool.java:627)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.ja
va:96)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStart
Command.java:80)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.execute(JDBCStartComm
and.java:41)
at org.jboss.ejb.plugins.cmp.CMPStoreManager.start(CMPStoreManager.java:
142)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
r.java:137)
at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
er.java:186)
at org.jboss.ejb.EntityContainer.start(EntityContainer.java:354)
at org.jboss.ejb.Application.start(Application.java:206)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:382)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:467)