Skip to main content



      Home
Home » Newcomers » Newcomers » Web.xml Not Being Read at Run-Time
Web.xml Not Being Read at Run-Time [message #168217] Tue, 29 August 2006 12:57 Go to next message
Eclipse UserFriend
Originally posted by: dsalahi.randmcnally.com

I have Eclipse 3.2 with the WTP plug-in and I've created a new Dynamic Web
Project with a single JSP page. I've configured the project to use Apache
Tomcat as the web server and the project runs OK and displays the contents
of the JSP file when I run it.

My problem is that the project doesn't use the contents of the Web.xml
file at run-time. For example, my JSP page is called Dave.jsp. Since that
filename doesn't match any of the standard filenames included in the
welcome-file-list, at run-time the browser window shows a directory
listing with my single file. If I click on it, it displays the JSP page
contents. If I rename my file to index.jsp, it loads automatically at
startup since it does then match an entry in the welcome-file-list. But if
I rename it back to Dave.jsp and then add that name to the
welcome-file-list it doesn't automatically load my page.

I have a similar problem in another project using a different set of XML
entries (resource-env-ref). Here too it just ignores my entries.

Why is Tomcat ignoring my Web.xml? I've looked into the deployed directory:
D:\Projects\Eclipse\.metadata\.plugins\org.eclipse.wst.serve r.core\tmp0\webapps\Test\WEB-INF
and verified that my modified web.xml file has been copied there. But
Tomcat just doesn't seem to use it. Why not?

David Salahi
Re: Web.xml Not Being Read at Run-Time [message #168259 is a reply to message #168217] Tue, 29 August 2006 13:31 Go to previous message
Eclipse UserFriend
Originally posted by: dsalahi.randmcnally.com

Actually, I found that it does read web.xml but I found that I had to do
several things to make it work. I'm not sure if all are necessary but
these are the steps I took:

1) Stop Tomcat after each execution
2) Check "Update context root for web module" on the Debug on Server
dialog.
3) Edit web.xml only from within Eclipse

David Salahi
Previous Topic:when files are opened they are also opene din Notepad
Next Topic:Having problems in XML in BIRT
Goto Forum:
  


Current Time: Mon Jul 14 03:30:55 EDT 2025

Powered by FUDForum. Page generated in 0.32518 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top