• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with JWSDP - Tomcat 4

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guy's !!!
I want to deploy a web appln in Tomcat 4 in the same simple way as is done in Tomcat 3.2.1. In the sence i do not want to create a .war file which is created in Tomcat 4 though the use of the depoyment tool which internally carries out the task of creating the the deployment descriptor file - web.xml. The reason being that the when Tomcat 4 server is used along with the deployment tool it slows the system to a considerable extent.Also, i would like to have the flexibilty to edit the deployment descriptor file anytime without much difficulty. Is it nessacessy to have a .war file ?

Also, in order to make the system perform better & reduce the load of both these programs(Tomcat server & deploy tool) i tried to do away with the deployment tool by trying to use the Manager App. For this i created a dummy appln, the folder & file paths of which were as follows :
c:\jwsdp\webapps\dummyappln\Web-inf\web.xml
c:\jwsdp\webapps\dummyappln\Web-inf\classes\dummyServlet
However, on trying to install this application using the Manager Command
http://localhost:8080/manager/install?path=dummyappln&war=file:/c:\jwsdp\webapps\dummyappln
the appln got install and gave an indication of "running" when the following url was accessed
http://localhost:8080/manager/list. But, finally on running the application it threw a "resource not available" exception. On checking the logs folder ie c:\jwsdp\logs folder i found that it had logged an internal server error : "web.xml not found, defaults set". That is since it was'nt able to find web.xml it was unable to read the "<servlet>" & "<servet-mapping>" tags and thus finally could'nt locate the servlet.
Can someone pls tell me where i am going wrong !!! Does'nt everything seem right ... pls let me know.
Thanks Guys
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Savio
As to the first question, you dont hae to have a war file to deploy your app. You can just put the exploded directory structure under the webapps directory of your Tomcat installation. Then the web.xml file will be in the WEB-INF directory immediately under your web app folder.
hope that helps
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
c:\jwsdp\webapps\dummyappln\Web-inf\web.xml
has to have WEB-INF upper case like this:
c:\jwsdp\webapps\dummyappln\WEB-INF\web.xml
Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic