Win a copy of Terraform in Action this week in the Cloud 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

WAR inside EAR is not being deployed by WLS 8.1

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic