Hi! Friends,
Am new to 9iAS. Trying to deploy a Stateless
EJB. After creating the class files, I create
the jar file myfirstejb.jar which has:
1)All the class files
2)META-INF/ejb-jar.xml
3)META-INF/orion-ejb-jar.xml
Then I create an ear file myfirstejb.ear which has:
1) myfirstejb.jar
2) META-INF/application.xml
But when I try to deploy, it gives an error as :
Invalid J2EE application file specified - Cannot get xml document by parsing META-INF/ejb-jar.xml in myfirstejb.jar: Unexpected EOF.
My xml files have the following entries;
ejb-jar.xml
-----------
<ejb-jar>
<enterprise-beans>
<session>
<description>Session Bean (Stateless)</description>
<display-name>MySessionEJB</display-name>
<ejb-name>MySessionEJB</ejb-name>
<home>MySessionEJBHome</home>
<remote>MySessionEJB</remote>
<ejb-class>MySessionEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<ejb-jar>
orion-ejb-jar.xml
-----------------
<orion-ejb-jar>
<enterprise-beans>
<session-deployment name="MySessionEJB" location="MySessionEJBBean" />
</enterprise-beans>
</orion-ejb-jar>
application.xml
---------------
<application>
<description>Session Bean (Stateless)</description>
<module>
<ejb>myfirstejb.jar</ejb>
</module>
</application>
Can you guide me, for the same. This is how I did in Weblogic.
-Navin.