Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Servlets in 4.0.12

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wrote a simple application in which posting a request from jsp to servlet. I wrote this app in WSAD 4.0.3 and work fine. I make a WAR file and when I deployed this WAR on TOMCAT and run my jsp it says it could not find my servlet file.
The requested resource (/FirstProject/servlet/MyServlet) is not available.
Does I need to do anything specific to servlets?
Please help me. Thanks in adv.
-VKG
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'VKG',

Welcome to JavaRanch, but please take a moment to review our naming policy and change your display name to two names.

As for your question. You are using Tomcat 4.1.12, right? (never heard of 4.0.12). In 4.1.12 and all TC releases hence, the "default" servlet/* mapping is disabled. Check the web.xml file found in the conf directory.
 
Viku John
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mike its working....
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic