thank you for responding my query

i was changed my bean class with wich was given by but now it is throwing 
exception while starting itself it cant deployed

the error i am getting was 





10:24:12,977 ERROR [EntityContainer] Starting failed 
jboss.j2ee:jndiName=EmployeeCMP,service=EJB
  | org.jboss.deployment.DeploymentException: No field named 'empID' found in 
entity class.com.ness.training.ejb.EmployeeEntityBean
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCCMPFieldMetaData.loadFieldType(JDBCCMPFieldMetaData.java:803)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCCMPFieldMetaData.<init>(JDBCCMPFieldMetaData.java:161)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDBCEntityMetaData.java:375)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:140)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:52)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:705)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:417)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:365)
  |     at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:147)
  |     at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  |     at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
  |     at $Proxy17.start(Unknown Source)
  |     at org.jboss.system.ServiceController.start(ServiceController.java:367)
  |     at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |     at $Proxy38.start(Unknown Source)
  |     at org.jboss.ejb.EjbModule.startService(EjbModule.java:367)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  |     at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at org.jboss.mx.server.ReflectedD



my Deployment descriptor------ejb-jar.xml



  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise 
JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
  | 
  | <!-- Generated XML! -->
  | 
  | <ejb-jar>
  |   <enterprise-beans>
  |     <session>
  |       <ejb-name>FirstSessionBean</ejb-name>
  |       <home>com.ness.training.ejb.FirstSessionHome</home>
  |       <remote>com.ness.training.ejb.FirstSession</remote>
  |       <ejb-class>com.ness.training.ejb.FirstSessionBean</ejb-class>
  |       <session-type>Stateless</session-type>
  |       <transaction-type>Container</transaction-type>
  |     <!--  <resource-ref>
  |       <res-ref-name>OracleDS</res-ref-name>
  |       <res-type>java.sql.DataSource</res-type>
  |       <res-auth>Container</res-auth>
  |       <description>Data source for oracle</description>
  |       </resource-ref>-->
  |     </session>
  |     <entity>
  |             <ejb-name>EmployeeCMP</ejb-name>
  |             <home>com.ness.training.ejb.EmployeeEntityHome</home>
  |             <remote>com.ness.training.ejb.EmployeeEntity</remote>
  |             <ejb-class>com.ness.training.ejb.EmployeeEntityBean</ejb-class>
  |             <persistence-type>Container</persistence-type>
  |             <prim-key-class>java.lang.Integer</prim-key-class>
  |             <reentrant>False</reentrant>    
  |             <cmp-version>1.x</cmp-version>
  |             <abstract-schema-name>Employee</abstract-schema-name>   
  |             <cmp-field><field-name>empID</field-name></cmp-field>
  |             <cmp-field><field-name>eName</field-name></cmp-field>
  |             <cmp-field><field-name>designation</field-name></cmp-field>
  |             <primkey-field>empID</primkey-field>    
  |     </entity>
  |   </enterprise-beans>
  | </ejb-jar>
  | 



 jbosscmp-jdbc-oracle.xml 






  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <jbosscmp-jdbc>
  | <defaults>
  | <datasource>java:/OracleDS</datasource>
  | <type-mapping>Oracle8</type-mapping>
  | <create-table>true</create-table>
  | <remove-table>false</remove-table>
  | <read-only>false</read-only>
  | <read-time-out>300000</read-time-out>
  | <row-locking>false</row-locking>
  | <pk-constraint>true</pk-constraint>
  | <fk-constraint>false</fk-constraint>
  | <prefered-relation-mapping>foreign-key</prefered-relation-mapping>
  | <read-ahead>
  | <strategy>on-load</strategy>
  | <page-size>1000</page-size>
  | <eager-load-group>*</eager-load-group>
  | </read-ahead>
  | <list-cache-max>1000</list-cache-max>
  | </defaults>
  | <enterprise-beans>
  | <entity>
  |     <ejb-name>EmployeeCMP</ejb-name>
  |     <table-name>employee</table-name>
  |     <cmp-field>
  |             <field-name>empID</field-name>
  |             <column-name>empid</column-name>
  |     </cmp-field>
  |     <cmp-field>
  |             <field-name>eName</field-name>
  |             <column-name>ename</column-name>
  |     </cmp-field>
  |     <cmp-field>
  |             <field-name>designation</field-name>
  |             <column-name>designation</column-name>
  |     </cmp-field>
  | </entity>
  | </enterprise-beans>
  | </jbosscmp-jdbc>

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857963#3857963

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857963


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to