• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deployment Problem ???

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic