0 Replies Latest reply on Dec 19, 2001 4:14 AM by Mark Hesketh

    Problem deploying CMP2.0 EJB

    Mark Hesketh Newbie

      Hi all,

      Running: jboss-3.0a (JDK1.3.1).

      Without posting a stream of xml I was wondering if anyone could immediately shed light on this stack trace produced after deploying a couple of CMP2.0 EJBs with a 1-N relationship:

      file:/C:/tools/jboss-3.0.0alpha/deploy/RomanEJB.jar
      [2001-12-19 15:51:01,968,J2eeDeployer#Default,INFO] Deploy J2EE application: file:/C:/tools/jboss-3.0.0alpha/deploy/RomanEJB.jar
      [2001-12-19 15:51:01,978,J2eeDeployer#Default,INFO] Create application RomanEJB.jar
      [2001-12-19 15:51:01,978,J2eeDeployer#Default,INFO] install EJB module RomanEJB.jar
      [2001-12-19 15:51:02,448,J2eeDeployer#Default,INFO] about to invoke deploy on jardeployer:JBOSS-SYSTEM:service=ContainerFactory
      [2001-12-19 15:51:02,448,ContainerFactory,INFO] got to deploy in ContainerFactory
      [2001-12-19 15:51:02,448,ContainerFactory,INFO] Deploying:file:/C:/tools/jboss-3.0.0alpha/deploy/Default/RomanEJB.jar
      [2001-12-19 15:51:02,528,ContainerFactory,INFO] Verifying file:/C:/tools/jboss-3.0.0alpha/deploy/Default/RomanEJB.jar/ejb1003.jar
      [2001-12-19 15:51:02,538,ContainerFactory,INFO] Deploying Role
      [2001-12-19 15:51:02,649,JRMPContainerInvoker,DEBUG] Container Invoker RMI Port='4444'
      [2001-12-19 15:51:02,649,JRMPContainerInvoker,DEBUG] Container Invoker Client SocketFactory='Default'
      [2001-12-19 15:51:02,649,JRMPContainerInvoker,DEBUG] Container Invoker Server SocketFactory='Default'
      [2001-12-19 15:51:02,649,JRMPContainerInvoker,DEBUG] Container Invoker Server SocketAddr='Default'
      [2001-12-19 15:51:02,649,JRMPContainerInvoker,DEBUG] Container Invoker Optimize='true'
      [2001-12-19 15:51:02,779,ContainerFactory,INFO] Deploying WorkArea
      [2001-12-19 15:51:02,779,JRMPContainerInvoker,DEBUG] Container Invoker RMI Port='4444'
      [2001-12-19 15:51:02,779,JRMPContainerInvoker,DEBUG] Container Invoker Client SocketFactory='Default'
      [2001-12-19 15:51:02,779,JRMPContainerInvoker,DEBUG] Container Invoker Server SocketFactory='Default'
      [2001-12-19 15:51:02,779,JRMPContainerInvoker,DEBUG] Container Invoker Server SocketAddr='Default'
      [2001-12-19 15:51:02,779,JRMPContainerInvoker,DEBUG] Container Invoker Optimize='true'
      [2001-12-19 15:51:02,899,EntityContainer,DEBUG] Begin java:comp/env for EJB: WorkArea
      [2001-12-19 15:51:02,899,EntityContainer,DEBUG] TCL: java.net.URLClassLoader@15fb38
      [2001-12-19 15:51:02,899,EntityContainer,DEBUG] End java:comp/env for EJB: WorkArea
      [2001-12-19 15:51:02,949,JRMPContainerInvoker,DEBUG] JRMP 1.3 CI initialized
      [2001-12-19 15:51:03,109,CMP,DEBUG] Loading standardjbosscmp-jdbc.xml : file:/C:/tools/jboss-3.0.0alpha//conf/default/standardjbosscmp-jdbc.xml
      [2001-12-19 15:51:03,159,CMP,DEBUG]
      jar:file:/C:/tools/jboss-3.0.0alpha/deploy/Default/RomanEJB.jar/ejb1003.jar!/META-INF/jbosscmp-jdbc.xml found. Overriding defaults
      [2001-12-19 15:51:03,169,ConnectionFactoryLoader,DEBUG] ConnectionFactoryLoader.getObjectInstance, name = 'DefaultDS'
      [2001-12-19 15:51:03,209,ContainerFactory,ERROR] Could not deploy file:/C:/tools/jboss-3.0.0alpha/deploy/Default/RomanEJB.jar
      java.lang.NullPointerException
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeFactory.createTypeSimple(JDBCTypeFactory.java:110)
      at
      org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeFactory.getJDBCType(JDBCTypeFactory.java:76)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.(JDBCAbstractCMPFieldBridge.java:56)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.(JDBCCMP2xFieldBridge.java:42)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.createCMPField(JDBCEntityBridge.java:171)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.loadCMPFields(JDBCEntityBridge.java:108)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:85)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.init(JDBCStoreManager.java:117)
      at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:141)
      at org.jboss.ejb.EntityContainer.init(EntityContainer.java:313)
      at org.jboss.ejb.Application.start(Application.java:201)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:382)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308)
      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.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:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      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:484)


      FTR I've configured my DD with the relationships, bastardised a jbosscmp-jdbc.xml and placed that in my META-INF packaged in RomanEJB.jar. I haven't bought the doco... yet.


      cheers
      Mark