This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying ear file in Weblogic8.1

 
karthik saivarma
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
sunitha chekuri
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic