This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to deploy my own webapplication

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai
all,

i am using tomcat 4.*.
I downloaded from apache.

Servlet executes if i store class file in E:\Program Files\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes


but i have created my own webdirectory(jyotiweb) in E:\Program Files\Apache Tomcat 4.0\webapps
i created WEB-INF file in E:\Program Files\Apache Tomcat 4.0\webapps\Jyotiweb
i created classes file in E:\Program Files\Apache Tomcat 4.0\webapps\Jyotiweb\WEB-INF


save my hallo class file in E:\Program Files\Apache Tomcat 4.0\webapps\Jyotiweb\WEB-INF\classes

save my web.xml in E:\Program Files\Apache Tomcat 4.0\webapps\Jyotiweb\WEB-INF


in browser enter--


http://localhost:8080/jyotiweb/servlet/Hallo


but show error
Apache Tomcat/4.0.1 - HTTP Status 404 - /jyotiweb/servlet/Hallo
--------------------------------------------------------------------------------
tApache Tomcat/4.0.1 - HTTP Status 404 - /jyotiweb/servlet/Hallo
--------------------------------------------------------------------------------
dtype Status report

message /jyotiweb/servlet/Hallo
description The requested resource (/jyotiweb/servlet/Hallo) is not available.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
/servlet is disabled by default.

You need to enable it in order to use this mapping. But you already have your WEB-INF file, so the better alternative is to provide a servlet mapping and use that instead.
 
djyoti sahu
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please tell me how to do this mapping.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Had the same problem put this in a file called web.xml in the WEB-INF directory of your app:

Should do the trick
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic