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

Error deploying a .war -- strange

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When launching Tomcat 4.0.3 I get get the message "Error deploying web application" followed by a FileNotFoundException citing a .class file in my WEB-INF\classes directory. (I don't know why it's even looking for a .class file from the Web app.)
If I *manually* unzip the .war and start Tomcat I do *not* get the error.
If I re-zip the unzipped Web app (renaming it as a .war file) and delete the unzipped version, then restart Tomcat, I do *not* get the error. In other words, Tomcat can deploy *my* version of the .war that was simply a re-zipping of the original .war.
The original .war was created from Eclipse, and upon inspection looks fine. It's obviously all there because I can do the manual unzipping, etc.
Suggestions?
 
Max Rahder
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ahh. The Eclipse-generated .war has a leading "\" in front of all file paths. Sun's "jar" utility does not have the leading "\". I'm not sure *why* Eclipse includes the leading backslash...
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was a good find!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic