0 Replies Latest reply on Feb 18, 2002 9:35 AM by brady

    JBoss 3.0: Error deploying application

    brady Newbie

      Take a look on the following exception I got when trying to deploy an app with JBoss 3.0.
      thank any help.




      java.lang.NullPointerException
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLFinderCommand.(JDBCEJBQ
      LFinderCommand.java:60)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLFinderCo
      mmand(JDBCCommandFactory.java:99)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntitiesCommand.start(JDBCFind
      EntitiesCommand.java:123)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
      r.java:139)
      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 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.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(Thread.java:484)
      [22:23:38,285,J2eeDeployer#Default] Starting test1.jar failed!
      javax.management.MBeanException: Exception thrown in operation deploy
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      44)
      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(Thread.java:484)
      [22:23:38,285,J2eeDeployer#Default] Module test1.jar is not running
      [22:23:38,575,J2eeDeployer#Default] Destroying application test1.jar
      [22:23:38,575,J2eeDeployer#Default] Destroyed
      [22:23:38,575,AutoDeployer] Deployment failed:file:/D:/jboss-3.0.0/deploy/lib/te
      st1.jar
      org.jboss.deployment.J2eeDeploymentException: Error while starting test1.jar: Co
      uld not deploy file:/D:/jboss-3.0.0/deploy/Default/test1.jar, Cause: org.jboss.e
      jb.DeploymentException: Could not deploy file:/D:/jboss-3.0.0/deploy/Default/tes
      t1.jar, Cause: java.lang.NullPointerException
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:521)

      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(Thread.java:484)


      ejb-jar.xml


      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
      <ejb-jar>
      <enterprise-beans>

      <display-name>testcmp</display-name>
      <ejb-name>testcmp</ejb-name>
      <local-home>test1.testcmpHome</local-home>
      test1.testcmp
      <ejb-class>test1.testcmpBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>testcmp</abstract-schema-name>
      <cmp-field>
      <field-name>customerID</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>name</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>address</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>password</field-name>
      </cmp-field>
      <primkey-field>customerID</primkey-field>

      <query-method>
      <method-name>findByname</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      </method-params>
      </query-method>
      <result-type-mapping>Local</result-type-mapping>
      <ejb-ql>SELECT OBJECT(c) FROM customers c WHERE c.name= ?1</ejb-ql>


      </enterprise-beans>
      </ejb-jar>