Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Deploying ear file in Weblogic8.1

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai folks,

I have created a small example having jar file,war files.My directory structure is

Hello
SayHello
HelloEjb
classes folder having all ejb classes
META-INF having ejb-jar.xml,weblogic-jar.xml
HelloWeb
classes folder haveing all servlet classes
WEB-INF having web.xml
HelloEjb.jar
HelloWeb.war

After developing jar and war files I created new folder Helloear and placed ear file in that folder and its directory structure is
Helloear
META-INF
application.xml
weblogic-application.xml
HelloWeb.war
HelloEjb.jar
Helloear.ear

Now for deploying I opened weblogic8.1 console and tried to deploy the ear file by uploading it.After uplodaing ear file when I click deploy button its giving error message as

J2EE:160043]Missing deployment descriptor "META-INF/application.xml" at "C:\beanew\user_projects\domains\mydomain\myserver\upload\Helloear.ear"

And my application.xml is
______________________________
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>

<application>
<display-name>Stateless Session Bean Example</dislay-name>
<module>
<ejb>HelloEjb.jar</ejb>
</module>
<module>
<web>
<web-uri>HelloWeb.war</web-uri>
<context-root>/HelloWeb</context-root>
</web>
</module>
</application>
_____________________________

I am not able to figure out why this error is coming.Please some one help me with this.Is there any mistake with directory structure..or files .
I want to try manually first without using ide tools or deploy tools.So some one please tell me how to resolve this error.

Thank u in advance

Sai
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Karthik,

Does your ear file have application.xml and weblogic-application.xml?

check if this link would be helpful to you.

http://edocs.bea.com/wls/docs81/programming/environment.html#1100776

Regards,
Sunitha.
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic