CMP 2.0 Entity Beans in Sybase
cepage Jan 25, 2002 2:20 PMI have had great success with JBoss 3.0 alpha in the development of session beans and message-driven beans, and the use of transactions and type mappings for my Sybase database. I have been able to deploy a large application onto the server that uses all of these elements.
But all of my attempts to develop Entity Beans using CMP2.0 end in the same way. I can deploy them just fine onto Hypersonic, but when I tell it to use my Sybase connection pool the MBeanServer throws an AbstractMethod Error when the J2EEDeployer attempts to invoke "deploy" on the JarDeployer.
The problem I am experiencing is extremely similar to the problem reported here on deploying Entity Beans onto MS Sql Server:
http://main.jboss.org/thread.jsp?forum=46&thread=5566&message=363518&q=java.lang.AbstractMethodError#363518
My Sybase datasources work great, my data mappings work great, JBoss will issue the proper table creation command if I ask it to, the deployment descriptors are verified, other types of beans, work great, yet I always get this message when attempting to deploy my CMP2.0 Entity Beans:
[ContainerFactory,INFO] Deploying PdaEJB
[EnterpriseContextCachePolicy,INFO] Cache policy scheduler started
[J2eeDeployer#Default,ERROR] Starting Allocation.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 java.lang.reflect.Method.invoke(Native Method)
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(Unknown Source)
[J2eeDeployer#Default,INFO] Module junitee.war is not running
[J2eeDeployer#Default,INFO] Module Allocation.ear is not running
[J2eeDeployer#Default,INFO] Destroying application Allocation.ear
[J2eeDeployer#Default,INFO] Destroyed
[AutoDeployer,ERROR] Deployment failed:file:/C:/alpha/jboss/deploy/Allocation.ea
r
org.jboss.deployment.J2eeDeploymentException: Error while starting Allocation.ea
r: 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 java.lang.reflect.Method.invoke(Native Method)
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(Unknown Source)
I would really appreciate help in getting Entity Beans to run against Sybase!
Thanks,
Corby