This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Deploying ear file in Weblogic8.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Deploying ear file in Weblogic8.1" Watch "Deploying ear file in Weblogic8.1" New topic
Author

Deploying ear file in Weblogic8.1

karthik saivarma
Greenhorn

Joined: Jan 20, 2006
Posts: 7
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

Joined: Oct 20, 2005
Posts: 8
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying ear file in Weblogic8.1