My gratitude to all who responded to my first question.
Thank you.
As you may be able to tell, I am very new to server side stuff.

I re-did the entire ear file from the ground up
using jar and was able to deploy the app.
Unfortunate, the next roadblock was an error message
complaining about the following:
======================================
500 Internal Server Error
com.evermind[Orion/1.5.2 (build 10460)].server.rmi.OrionRemoteException: guest
is not allowed to call this EJB method, check your security settings
(method-permission in ejb-jar.xml and security-role-mapping in
orion-application.xml).
        at
EntityEJB2Home_EntityHomeWrapper1.findByPrimaryKey(EntityEJB2Home_EntityHomeWrapper1.java:147)
        at Servlet2.performTask(Servlet2.java:64)
        at Servlet2.doGet(Servlet2.java:29)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
        at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
        at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
        at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source)
        at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)
        at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)
======================================
What puzzles me about this is that I removed the <security-identity> section
from the ejb-jar.xml file. For this particular app, any user is ok.
==================
My ejb-jar.xml is:
<?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>
  <display-name>secondejbJAR</display-name>
  <enterprise-beans>
    <entity>
      <display-name>EntityEJB2</display-name>
      <ejb-name>EntityEJB2</ejb-name>
      <home>EntityEJB2Home</home>
      <remote>EntityEJB2</remote>
      <ejb-class>EntityEJB2Bean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      <reentrant>False</reentrant>
    </entity>
  </enterprise-beans>
  <assembly-descriptor>
    <method-permission>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>remove</method-name>
        <method-params>
          <method-param>java.lang.Object</method-param>
        </method-params>
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>isCurrentStarted</method-name>
        <method-params />
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getAllTerms</method-name>
        <method-params />
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getEndDate</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
        </method-params>
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getCurrentTerm</method-name>
        <method-params />
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>findByPrimaryKey</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
        </method-params>
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getHandle</method-name>
        <method-params />
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>remove</method-name>
        <method-params>
          <method-param>javax.ejb.Handle</method-param>
        </method-params>
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>getHomeHandle</method-name>
        <method-params />
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getStartDate</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
        </method-params>
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getPrimaryKey</method-name>
        <method-params />
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>remove</method-name>
        <method-params />
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>getEJBMetaData</method-name>
        <method-params />
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>isIdentical</method-name>
        <method-params>
          <method-param>javax.ejb.EJBObject</method-param>
        </method-params>
      </method>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getEJBHome</method-name>
        <method-params />
      </method>
    </method-permission>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>remove</method-name>
        <method-params>
          <method-param>java.lang.Object</method-param>
        </method-params>
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>isCurrentStarted</method-name>
        <method-params />
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getAllTerms</method-name>
        <method-params />
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getEndDate</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
        </method-params>
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getCurrentTerm</method-name>
        <method-params />
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>findByPrimaryKey</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
        </method-params>
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getHandle</method-name>
        <method-params />
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>remove</method-name>
        <method-params>
          <method-param>javax.ejb.Handle</method-param>
        </method-params>
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>getStartDate</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
        </method-params>
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>EntityEJB2</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>remove</method-name>
        <method-params />
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>
=========================
The orion-application.xml is:
<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime
1.2//EN" "http://www.orionserver.com/dtds/orion-application.dtd";>

<orion-application deployment-version="1.5.2" autocreate-tables="false">
        <ejb-module remote="false" path="ejb-jar-ic.jar" />
        <web-module id="war-ic" path="war-ic.war" />
        <persistence path="persistence" />
        <principals path="principals.xml" />
        <log>
                <file path="application.log" />
        </log>
        <namespace-access>
                <read-access>
                        <namespace-resource root="">
                                <security-role-mapping name="&lt;jndi-user-role&gt;">
                                        <group name="guests" />
                                </security-role-mapping>
                        </namespace-resource>
                </read-access>
                <write-access>
                        <namespace-resource root="">
                                <security-role-mapping name="&lt;jndi-user-role&gt;">
                                        <group name="guests" />
                                </security-role-mapping>
                        </namespace-resource>
                </write-access>
        </namespace-access>
</orion-application>
================================
And principals.xml:
<?xml version="1.0"?>
<!DOCTYPE principals PUBLIC "//Evermind - Orion Principals//"
"http://www.orionserver.com/dtds/principals.dtd";>

<principals>
        <groups>
                guests
        </groups>
        <users>
                anonymous
        </users>
</principals>
================================
Can someone tell me what is wrong/incorrect?

Thank you!
Jeanne

Reply via email to