my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Deploying ear file in Weblogic8.1
 
Similar Threads
MDB with annotation in weblogic exception
getting 404 error.. this is not struts application
Learn to deploy EJBs on JBOSS
linking webapp with ejb in ear
"NoClassDefFound Error" deploying EAR file