File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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;

<description>Session Bean (Stateless)</description>

<session-deployment name="MySessionEJB" location="MySessionEJBBean" />


<description>Session Bean (Stateless)</description>

Can you guide me, for the same. This is how I did in Weblogic.

Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

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:

Good Luck,
I agree. Here's the link:
subject: Deployment Problem ???
It's not a secret anymore!