DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    bzoler Guest

    problem weblogic 6.1 with Jbuilder6 entr


    I have problems with my entity beans cmp.
    In the local home interface I have a finder definition:
    public Collection findByClientID(java.lang.Integer idCli) throws FinderException;



    and in the ejb-jar(xml):
    <query>
    <query-method>
    <method-name>findByClientID</method-name>
    <method-params>
    <method-param>java.land.Integer</method-param>
    </method-params>
    </query-method>
    <result-type-mapping>local</result-type-mapping>
    <ejb-ql><![CDATA[ SELECT OBJECT(a) FROM UpdateFacture AS a WHERE a.idClient=?1]]>

    </ejb-ql>
    </query>

    but when I deploy the jar in weblogic,
    I have this exception:

    couldn't parse ejb-ql expression "select etc..."

    could someone help me please


  2. #2
    Carlos Saltos Guest

    Re: problem weblogic 6.1 with Jbuilder6 entr


    In the select the AS is not needed, try this statement:

    SELECT OBJECT(a) FROM UpdateFacture a WHERE a.idClient=?1

    Let me know if this one did not work either.

    Best regards,

    Carlos Saltos
    Infoobar
    IT Manager
    http://www.infoobar.com

    "bzoler" <bzoler@skynet.be> wrote:
    >
    >I have problems with my entity beans cmp.
    >In the local home interface I have a finder definition:
    >public Collection findByClientID(java.lang.Integer idCli) throws FinderException;
    >
    >
    >
    >and in the ejb-jar(xml):
    ><query>
    ><query-method>
    ><method-name>findByClientID</method-name>
    ><method-params>
    ><method-param>java.land.Integer</method-param>
    ></method-params>
    ></query-method>
    ><result-type-mapping>local</result-type-mapping>
    ><ejb-ql>[CDATA[ SELECT OBJECT(a) FROM UpdateFacture AS a WHERE a.idClient=?1]]
    >
    ></ejb-ql>
    ></query>
    >
    >but when I deploy the jar in weblogic,
    >I have this exception:
    >
    >couldn't parse ejb-ql expression "select etc..."
    >
    >could someone help me please
    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links