• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

WAR inside EAR is not being deployed by WLS 8.1

 
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
 
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.
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!