• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAR inside EAR is not being deployed by WLS 8.1

 
Sanjay Shende
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have exploded EAR directory containing exploded WAR directory and EJB jar files. Even though I have mentioned everything in
META-INF\application.xml file, WAR is not deployed and surprisingly it throws exception for WEB-INF\web-services.xml File not found.
Here is directory structure of my Enterprise Application which is stored at location bea\weblogic81\server\bin\application\
MyEAR
|
|- META-INF\application.xml(this contains info of all modules )
ejb1.jar
ejb2.jar
|
|-MyWAR
|
|-WEB-INF\web.xml
|
|-classes\myapplication\servlets(all the servlet classes)
When ejb module and WAR modules are deployed seperately it works fine. But when I deploy these in a single EAR it does not work.
Waiting for your reply.
Regds,
Sanjay
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I didn't get. Why are your web.xml and servlet classes outside the war file???they should be packaged together. Also the servlet and classes for the web app should be posted under the WEB-INF/classes directory..
regards.
 
Kripal Singh
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your EAR and WAR are packaged properly there should not any problems. Once you deploy the ear file click on EAR deployment deploy tab then click on the WAR application > target tab. Target your WAR app on the desired servers.
 
Sanjay Shende
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
No. my WEB-INF and classes are inside WAR directory and not outside. Till its not working properly.
Today its giving me : following exception.
java.util.zip.ZipException: ZIP file must have at least one entry
Thanks & Regards
Sanjay
9868006867
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic