What is the problem?

I want to deploy a CMP Entity Bean in weblogic6.1SP2,but I meet an error,what should I do to solve the problem?
the error code:
<2003-4-7 ~{OBNg~}02~{J1~}27~{7V~}24~{Ck~}> <Error> <J2EE> <Error deploying application SVC:
Unable to deploy EJB: CMPSvc from SVC.jar:
The Container-Managed Persistence Entity EJB failed while creating its SQL Type
Map. The error was:
Io ~{Rl3#~}: Connection reset by peer: socket write error
and my original code:
SVC.java(remote interface)
package CMPEntityBean;
import javax.ejb.*;
import java.rmi.RemoteException;
public interface SVC extends EJBObject
     public java.lang.String getSvcID() throws RemoteException;
     public java.lang.String getSvcName() throws RemoteException;
     public void setSvcID(java.lang.String svcID) throws RemoteException;
     public void setSvcName(java.lang.String svcName) throws RemoteException;
SVCHome.java (home interface file)
package CMPEntityBean;
import javax.ejb.*;
import java.rmi.RemoteException;
import java.util.Collection;
public interface SVCHome extends EJBHome
public SVC create(java.lang.String svcID,java.lang.String svcName) throws CreateException,RemoteException;
public SVC findByPrimaryKey(CMPEntityBean.SVCPK key) throws FinderException,RemoteException;
public Collection findBySvcName(java.lang.String svcName) throws FinderException,RemoteException;
SVCBean.java (Enterprise Bean file)
package CMPEntityBean;
import javax.ejb.*;
public abstract class SVCBean implements EntityBean
     protected EntityContext ctx;
     public abstract java.lang.String getSvcID();
     public abstract java.lang.String getSvcName();
     public abstract void setSvcID(java.lang.String svcID);
     public abstract void setSvcName(java.lang.String svcName);
     public void ejbActivate(){}
     public void ejbRemove(){}
     public void ejbPassivate(){}
     public void ejbLoad(){}
     public void ejbStore(){}
     public void setEntityContext(EntityContext ctx)
     this.ctx = ctx;
     public void unsetEntityContext()
     this.ctx = null;
     public void ejbPostCreate(String svcID,String svcName){}
     public SVCPK ejbCreate(String svcID,String svcName)
     setSvcID(svcID);
     setSvcName(svcName);
     return new SVCPK(svcID);
ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>CMPSvc</ejb-name>
<home>CMPEntityBean.SVCHome</home>
<remote>CMPEntityBean.SVC</remote>
<ejb-class>CMPEntityBean.SVCBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>CMPEntityBean.SVCPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>SVCBean</abstract-schema-name>
<cmp-field>
<field-name>svcID</field-name>
</cmp-field>
<cmp-field>
<field-name>svcName</field-name>
</cmp-field>
<!--prim-key-class>svcID</prim-key-class-->
<query>
<query-method>
<method-name>findBySvcName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
     <!--result-type-mapping>Local</result-type-mapping-->
<ejb-ql>
SELECT OBJECT(a) FROM SVCBean a WHERE svcName = ?1
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>CMPSvc</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
weblogic-ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd" >
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>CMPSvc</ejb-name>
<entity-descriptor>
<entity-cache>
     <max-beans-in-cache>1000</max-beans-in-cache>
</entity-cache>
<persistence>
     <persistence-type>
     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
     <type-version>6.0</type-version>
     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
     </persistence-type>
     <persistence-use>
     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
     <type-version>6.0</type-version>
     </persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>cmpsvc</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
weblogic-cmp-rdbms-jar.xml
<!DOCTYPE weblogic-rdbms-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms-persistence.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>CMPSvc</ejb-name>
<data-source-name>ucisOra</data-source-name>
<table-name>TAB_SVC</table-name>
<field-map>
<cmp-field>svcName</cmp-field>
<dbms-column>svcname</dbms-column>
</field-map>
<field-map>
<cmp-field>svcID</cmp-field>
<dbms-column>svcid</dbms-column>
</field-map>
</weblogic-rdbms-bean>
</weblogic-rdbms-jar>
thanks a lot!

Try this
SELECT OBJECT(a) FROM SVCBean a WHERE a.svcName = ?1

Similar Messages

Maybe you are looking for

  • Palm desktop-can't remember passsword

    hi-I have a pam tx which i frequently hot sinc. i rarely look at the dektop, but decided to look.  it asked me for my password and i had no idea.  how do i reset my password so i can get on the desktop (to make sure my hot sinc really is working)?  m

  • ALV Edit Checkbox is giving entire grid color changes

    Dear Members, I am Using ALV grid controller, I need a checkbox on the grid, When I used following code       WHEN 'CHK'.         MOVE 'Status'(027) TO:         FS_FIELDCAT-REPTEXT_DDIC,         FS_FIELDCAT-SELTEXT_L,         FS_FIELDCAT-SELTEXT_M,  

  • CSV export problem with multiple pages

    I have a simple report with pagination and export to excel enabled. If I paginate from page 1, without exporting to excel, to any other page, then export to Excel, I get "No data found." in the CSV output file. If I export from Page 1 first, then the

  • Nokia 2330 contacts.

    Hey there, I wondering if anyone can help. I have a Nokia 2330 but the screen recently broke. All I can see now is roughly the top third of the screen. Obviously I need a new phone but unfortunately my contacts are saved to the phone, not the sim. Co

  • Abap project into another server

    Hi guys, I have got a small projects which contains a screens, Pf-status, tcode, table, etc.I have it in a different Package, I have to club them into a single SAR file. The purpose is to install the same in a different server of another client,  For