Please take this question to the weblogic.developer.interest.ejb.ejb20
  newsgroup, I'll be happy to answer you there.

thanks

-thorick


At 06:08 PM 2/23/01 +0200, you wrote:
>Hi everybody,
>How to solve the following problem ?
>
>In my EJB-JAR.xml , I have the following entity :
>***************************************************************************
********
>
><entity>
>   <description>ConfSrp</description>
>   <ejb-name>ConfSrpBean</ejb-name>
>   <home>confsrp.ConfSrpHome</home>
>   <remote>confsrp.ConfSrp</remote>
>   <ejb-class>confsrp.ConfSrpBean</ejb-class>
>   <persistence-type>Container</persistence-type>
>   <prim-key-class>java.lang.Integer</prim-key-class>
>   <reentrant>False</reentrant>
>   <cmp-version>2.x</cmp-version>
>   <abstract-schema-name>ConfSrpBean</abstract-schema-name>
>   <cmp-field>
>    <field-name>cddist</field-name>
>   </cmp-field>
>   <cmp-field>
>    <field-name>niveau</field-name>
>   </cmp-field>
>   <cmp-field>
>    <field-name>secteur</field-name>
>   </cmp-field>
>   <cmp-field>
>    <field-name>lbniveau</field-name>
>   </cmp-field>
>   <primkey-field>niveau</primkey-field>
>   <query>
>            <description>Configuration</description>
>            <query-method>
>                 <method-name>findConfsrp</method-name>
>                 <method-params>
>                      <method-param>int</method-param>
>                 </method-params>
>            </query-method>
>              <ejb-ql><![CDATA[WHERE SUBSTRING(secteur,1,1) = ?1
>]]></ejb-ql>
>   </query>
></entity>
>**********************************************************************
>**********************************************************************
>After the deployement of this bean I receive the following error :
>**********************************************************************
>While trying to process Finder
>        Method Name: findConfsrp
>        Parameter Types: (int)
>        EJB Query: WHERE SUBSTRING(secteur,1,1) = ?1
>        )
>Could not parse EJB QL expression: WHERE SUBSTRING(secteur,1,1) = ?1
>
>        at
>weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:213)
>        at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:220)
>        at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:677)
>        at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
>        at weblogic.j2ee.Application.addComponent(Application.java:116)
>        at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
>
>        at
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
Target.java:283)
>
>        at
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deploymen
tTarget.java:233)
>
>        at
>weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(
DeploymentTarget.java:194)
>
>        at
>weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploy
mentTarget.java:158)
>
>        at java.lang.reflect.Method.invoke(Native Method)
>        at
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
l.java:559)
>
>        at
>weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
545)
>
>        at
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
anImpl.java:285)
>
>        at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
>
>        at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>
>        at
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
>        at
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
>        at $Proxy28.updateDeployments(Unknown Source)
>        at
>weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments
(ServerMBean_CachingStub.java:2299)
>
>        at
>weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(App
licationManager.java:239)
>
>        at
>weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManag
er.java:121)
>
>        at java.lang.reflect.Method.invoke(Native Method)
>        at
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
l.java:559)
>
>        at
>weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
545)
>
>        at
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
anImpl.java:285)
>
>        at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
>
>        at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>
>        at
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
>        at
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
>        at $Proxy27.start(Unknown Source)
>        at
>weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start
(ApplicationManagerMBean_CachingStub.ja
>
>va:435)
>        at
>weblogic.management.Admin.startApplicationManager(Admin.java:959)
>        at weblogic.management.Admin.finish(Admin.java:459)
>        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
>        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
>        at weblogic.Server.main(Server.java:35)
>***************************************************************************
*****
>
>***************************************************************************
*****
>
>***************************************************************************
*****
>
>N.B:
>I use the following DTD:
><!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
>JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">
>***************************************************************************
****
>
>Thanks
>Pierre Eid
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff EJB-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to