0 Replies Latest reply on Dec 5, 2003 10:04 AM by bnogent

    ejb-ql compilation problem

    bnogent Newbie

      What's the problem

      exception :
      org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(a) FROM Aerodrome a'; - nested throwable: (java.lang
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:45)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:53)


      with :


      <display-name>Aerodrome Entity Bean</display-name>
      <ejb-name>AerodromeEJB</ejb-name>
      <local-home>portailaero.domain.aerodrome.AerodromeHome</local-home>
      portailaero.domain.aerodrome.Aerodrome
      <ejb-class>portailaero.domain.aerodrome.AerodromeBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      False
      <abstract-schema-name>Aerodrome</abstract-schema-name>
      <cmp-version>2.x</cmp-version>
      <cmp-field>
      <field-name>code</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>nom</field-name>
      </cmp-field>
      <primkey-field>code</primkey-field>

      <query-method>
      <method-name>findAll</method-name>
      <method-params>
      </method-params>
      </query-method>
      <ejb-ql>
      <![CDATA[
      SELECT OBJECT(a) FROM Aerodrome a
      ]]>
      </ejb-ql>