0 Replies Latest reply on May 25, 2003 11:35 PM by linubert

    problem about ejb-ql compile in cmp 2.x

    linubert Newbie

      i desperately need your help, i can't deploy my cmp, it always says

      org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement ''; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: FROM not found)


      my ejb-jar.xml:

      <query-method>
      <method-name>findByName</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      <method-param>java.lang.String</method-param>
      </method-params>
      </query-method>
      <ejb-ql>
      <![CDATA[ SELECT OBJECT(o) FROM TestEntity o WHERE o.firstName = ?1 AND o.lastName = ?2 ]]>
      </ejb-ql>


      and my jbosscmp-jdbc.xml:

      java:/jbossDS
      <datasource-mapping>MS SQLSERVER2000</datasource-mapping>



      what is the problem? i have check it thousands times.
      thanks in advance.