error while deploying example of CMP2.0 help need
deepaksumani Apr 30, 2003 5:36 AMhi all ,
I using a simple sample for CMP2.0 and when i try to deploy it on jboss-3.2.0_tomcat-4.1.24 It gave me the following error.
14:22:54,723 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.
2.0_tomcat-4.1.24/server/all/tmp/deploy/server/all/deploy/Countries.ear/59.Count
ries.ear-contents/countries.jar
org.jboss.deployment.DeploymentException: Error in ejb-jar.xml for Entity Bean S
ms/CountriesBean: The ejb-name for a CMP2.x Entity must be a valid Java Identifi
er
at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMet
aData.java:247)
my ejb-jar.xml is as follow
<?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'>
<ejb-jar>
<display-name>countries.jar</display-name>
<enterprise-beans>
<display-name>CountriesBean</display-name>
<ejb-name>Sms/CountriesBean</ejb-name>
<local-home>com.dsq.sms.dataLayer.countries.CountriesHome</local-home>
com.dsq.sms.dataLayer.countries.Countries
<ejb-class>com.dsq.sms.dataLayer.countries.CountriesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>com.dsq.sms.dataLayer.countries.CountriesPK</prim-key-class>
False
<cmp-version>2.x</cmp-version>
<abstract-schema-name>Countries</abstract-schema-name>
<cmp-field><field-name>countriesID</field-name></cmp-field>
<cmp-field><field-name>countryName</field-name></cmp-field>
<cmp-field><field-name>taxStatus</field-name></cmp-field>
<primkey-field>countriesID</primkey-field>
</enterprise-beans>
<assembly-descriptor>
<method-permission>
<ejb-name>Sms/CountriesBean</ejb-name>
<method-intf>Local</method-intf>
<method-name>*</method-name>
<ejb-name>Sms/CountriesBean</ejb-name>
<method-intf>LocalHome</method-intf>
<method-name>*</method-name>
<method-params />
</method-permission>
<container-transaction>
<ejb-name>Sms/CountriesBean</ejb-name>
<method-intf>Local</method-intf>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<ejb-name>Sms/CountriesBean</ejb-name>
<method-intf>LocalHome</method-intf>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
any help in this regard will be highly helpful.
Thanxs
Dee