File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Oracle/OAS and the fly likes Deployment Problem ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Deployment Problem ???" Watch "Deployment Problem ???" New topic
Author

Deployment Problem ???

Kumar Navin
Ranch Hand

Joined: May 27, 2004
Posts: 52
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.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1134

Kumar,
You don't need to explicitly create the "orion-ejb-jar.xml" file -- it gets created automatically during deployment.

Your "ejb-jar.xml" file is missing some header information, something like:
[But not necessarily _exactly_ like it.]

I'm sorry to have to tell you this, but OC4J is different to WebLogic.
[Bummer, eh?]

If you haven't done so already, I recommend reading the documentation and the sample code, which are available from:

http://www.oracle.com/technology/products/ias/index.html

Good Luck,
Avi.
 
GeeCON Prague 2014
 
subject: Deployment Problem ???