hello

        i have a project with war components only.  it works well. i wrote two
simple ejbs, compiled them and created ejb-jar-ic.jar file with ejbs' class
files, META-INF\ejb-jar.xml, META-INF\jboss.xml and META-INF\manifest.mf,
and chaged application.xml file.

        now i can't deploy my application. could someone help me, please?

APPLICATION.XML FILE
<?xml version="1.0" encoding="Cp1251"?>
<application>
  <description>Application description</description>
  <module>
    <web>
      <web-uri>war-ic.war</web-uri>
      <context-root>eDaysRoot</context-root>
    </web>
  </module>
  <module>
    <ejb>ejb-jar-ic.jar</ejb>
  </module>
</application>

EJB-JAR.XML FILE
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
  <description>JBoss test application</description>
  <enterprise-beans>
    <entity>
        <description>models a friend</description>
        <ejb-name>FriendBean</ejb-name>
        <home>edays.ejbs.FriendHome</home>
        <remote>edays.ejbs.Friend</remote>
        <ejb-class>edays.ejbs.FriendBean</ejb-class>
        <persistence-type>Container</persistence-type>
        <prim-key-class>java.lang.String</prim-key-class>
        <reentrant>False</reentrant>
        <cmp-field><field-name>id</field-name></cmp-field>
        <cmp-field><field-name>nickname</field-name></cmp-field>
        <cmp-field><field-name>email</field-name></cmp-field>
        <cmp-field><field-name>notes</field-name></cmp-field>
        <primkey-field>id</primkey-field>
    </entity>

    <session>
        <description>models friend collection</description>
        <ejb-name>FriendCollectionBean</ejb-name>
        <home>edays.ejbs.FriendCollectionHome</home>
        <remote>edays.ejbs.FriendCollection</remote>
        <ejb-class>edays.ejbs.FriendCollectionBean</ejb-class>
        <session-type>Stateless</session-type>
        <transaction-type>Container</transaction-type>
        <ejb-ref>
          <ejb-ref-name>friend/Friend</ejb-ref-name>
          <ejb-ref-type>Entity</ejb-ref-type>
          <home>edays.ejbs.FriendHome</home>
          <remote>edays.ejbs.Friend</remote>
          <ejb-link>edays.ejbs.FriendBean</ejb-link>
        </ejb-ref>
    </session>
  </enterprise-beans>
</ejb-jar>

JBOSS.XML FILE
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
  <enterprise-beans>
    <entity>
        <ejb-name>FriendBean</ejb-name>
        <jndi-name>friend/Friend</jndi-name>
    </entity>
    <session>
        <ejb-name>FriendCollectionBean</ejb-name>
        <jndi-name>friend/FriendCollection</jndi-name>
    </session>
  </enterprise-beans>
</jboss>

ALex


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

Reply via email to