The deployer is correct.  The deployment discriptor is invalid.

What ever happened to desk-checking?

See my comments below.

-----Original Message-----
From: ravi kumar rongali [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:28 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] BMP bean deployement - Need Help


Hi,

I am getting an error while deploying a CMP bean in JBOSS. It is saying that

'No valid deployment descriptor was found within this URL: 
file:/D:/jboss2.0/jBoss-2.0_FINAL/deploy/ship.jar'. The same error is coming

when i am deploying Richard Hafel book's chapter 4 ship bean. For BMP bean, 
do i need to specify any other XML file other than ejb-jar.xml.
This my ejb-jar.xml file...

<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">

<ejb-jar>
<enterprise-beans>
   <entity>
      <description>
            This bean represents a cruise ship.
      </description>
      <ejb-name>ShipBean</ejb-name>
      <home>com.titan.ship.ShipHome</home>
      <remote>com.titan.ship.Ship</remote>
      <ejb-class>com.titan.ship.ShipBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>com.titan.ship.ShipPK</prim-key-class>
      <reentrant>False</reentrant>

      <resource-ref>
           <description>DataSource for the Titan database</description>
           <res-ref-name>JetEngineDB</res-ref-name>
           <res-type>javax.sql.DataSource</res-type>
           <res-auth>Container</res-auth>
      <resource-ref>

**** Put a closing tag here!  like this  ====> </resource-ref>


  </entity>
</enterprise-beans>

<assembly-descriptor>
   <security-role>
      <description>
         This role represents everyone who is allowed full access
         to the Ship bean.
      </description>
     <role-name>everyone</role-name>
   </security-role>

   <method-permission>
     <role-name>everyone</role-name>
     <method>
         <ejb-name>ShipBean</ejb-name>
         <method-name>*</method-name>
     </method>
   </method-permission>

   <container-transaction>
     <method>
        <ejb-name>ShipBean</ejb-name>
        <method-name>*</method-name>
     </method>
     <trans-attribute>Required</trans-attribute>
   </container-transaction>
</assembly-descriptor>
</ejb-jar>



Please provide a solution for me....

thank you...
ravi kumar.

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to