1 Reply Latest reply on Apr 9, 2002 2:02 AM by M Nadzaruddin Kahar

    CMP deployment

    Greg Rokita Newbie

      When deploying the CMP2.0 example from documentation I get the following error. What is the problem?


      17:59:12,260 INFO [OrderEJB] Created table 'ORDER_DATA' successfully.
      17:59:12,681 ERROR [EntityContainer] Exception in service lifecyle operation: start
      org.jboss.deployment.DeploymentException: Unable to parse EJB-QL:
      SELECT OBJECT(o)
      FROM Order o
      WHERE o.status = ?1

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java:51)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.jav
      a:44)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:177)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:335)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:175)
      at org.jboss.ejb.EntityContainer.start(EntityContainer.java:368)
      at org.jboss.ejb.Container.invoke(Container.java:749)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:995)
      at org.jboss.mx.interceptor.MBeanTarget.invoke(Unknown Source)
      at org.jboss.mx.interceptor.MBeanInvoker.invoke(Unknown Source)

        • 1. Re: CMP deployment
          M Nadzaruddin Kahar Newbie

          I also got the same problem (see server log snippet below). I think there might be some problem with the EJB-QL parser. Anyone knows where to get the patch etc. for the parser?

          13:39:03,825 INFO [Product] Table 'products' already exists
          13:39:04,125 ERROR [EntityContainer] Exception in service lifecyle operation: start
          org.jboss.deployment.DeploymentException: Unable to parse EJB-QL: WHERE description = ?1
          at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:51)
          at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandF
          actory.java:44)
          at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:177
          )
          at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:335
          )
          at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:17
          5)
          at org.jboss.ejb.EntityContainer.start(EntityContainer.java:368)
          at org.jboss.ejb.Container.invoke(Container.java:749)
          at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:995)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
          at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:7
          77)