problem weblogic 6.1 with Jbuilder6 entr


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: problem weblogic 6.1 with Jbuilder6 entr

  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
    >



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center