Bugs item #1028012, was opened at 2004-09-14 17:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1028012&group_id=22866

Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Fernando Bellas (fbellas)
Assigned to: Nobody/Anonymous (nobody)
Summary: EJB-QL parsing error in JBoss 3.2.5

Initial Comment:
Hi,

I get the following error when I deploy an EJB jar file
in JBoss 3.2.5:

-----------------------------
 Depends On Me: MBeanException:
org.jboss.deployment.DeploymentException: Error
compiling EJB-QL statement 'SELECT OBJECT(e) FROM
Department d, IN(d.employees) e
                                                WHERE d.departmentIdentifier = ?1 AND
                                                          e.positionIdentifier = ?2'; 
- nested
throwable:
(org.jboss.ejb.plugins.cmp.ejbql.ParseException:
Encountered "WHERE" at line 2, column 49.
Was expecting one of:
    <EOF> 
    "," ...
    )

-----------------------------

JBoss seems to detect a parsing error in the following
query (which I specify in the EJB jar file I am trying
to deploy):

            <query>
                <query-method>
                   
<method-name>findByDepartmentAndPosition</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(e) FROM Department d,
IN(d.employees) e
                        WHERE d.departmentIdentifier =
?1 AND
                              e.positionIdentifier = ?2
                    ]]>
                </ejb-ql>
            </query>

However, such a query seems to be correct. Even more, I
can deploy the same EJB jar file in JBoss 3.2.1 (and
works fine).

I send you the ejb-jar.xml where I specify this query.

Thank you very much in advance,
Fernando Bellas.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1028012&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to