This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes Chnages not effective in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Chnages not effective in web.xml" Watch "Chnages not effective in web.xml" New topic

Chnages not effective in web.xml

Animesh Gupta

Joined: Jul 14, 2010
Posts: 10
Hi All,
I got stuck with my first tomcat deployment. I am very new at this so finding difficulty to resolve the issue. Please help me out.

I am using Tomcat 7.0 on windows vista OS. As the tomcat service cannot start on windows vista. I downloaded the tomcat source and built it with apache ant.
Now, I am able to start and stop the server from the command prompt.

The directory structure is webapps>ROOT>MyApp>WEN-INF>classes.

In my html file I have the action set as follows ::--

In the web.xml I am having ::--

When I tried to perform the action on html page it gave a message

Now, I changes the " PickChoose to Picker " in both web.xml and html file. I shut down the server and restarted it from the command prompt.

Again I performed the action on the html and the message I got was ::--

But, I changed the PickChoose to Picker. How did it gave me the old name, i.e., PickChoose ?

I am not able to run my app, guys help me with some insight.

Thanks and Regards

Thanks and Regards
Poobhathy Kannan
Ranch Hand

Joined: May 26, 2004
Posts: 94
Animesh, shouldn't your application deployed under webapps? .... webapps>MyApp>WEN-INF>classes
Amit Gajjar

Joined: Dec 20, 2007
Posts: 1
Try to clear the cache and restart the server. your changes to web.xml should be effective.

Amit Gajjar | SCJP 5
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

I don't know if it a typo - but the folder inside your WAR is called WEB-INF - not WEN-INF

Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link:
subject: Chnages not effective in web.xml
jQuery in Action, 3rd edition