Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003977 [Resin] major always 03-31-10 14:14 01-18-11 17:08
Reporter norlab View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.10
Summary 0003977: Display of web.xml upon auto-restart
Description When I upload a new .jar file to the domain/WEB-INF/lib directory, the server automatically restarts. When this happens, I sometimes encounter the error where the web.xml file will be displayed as the error page for the website.

Also, we are starting hosts in separate JVM instances, not sure if this contributes to the issue.

1.) Upload new .jar file.
2.) Go the the website and click to refresh/reload the website quickly.
3.) Often this will show back the web.xml file which sometimes includes DB connection info w/ password.

I think that it is happening if a web page is called during the process of loading a new .jar file.

Additional Information
Attached Files

- Relationships

- Notes
03-31-10 14:15

This has happened in the previous few versions also, but since I just upgraded to .10 I thought I'd put the bug in.
03-31-10 14:37

The entire web.xml as a text file? Or an error where Resin shows 3-5 lines of web.xml context?

I can see the second happening because of a timing issue during startup, but I'm not sure how showing the whole web.xml would be possible.
04-02-10 11:04

I think that only part of the web.xml file is being displayed, as part of an error message.

500 Servlet Exception

WEB-INF/web.xml:1: com.caucho.server.webapp.Listener.setListenerClass():
com.caucho.config.ConfigRuntimeException: java.lang.ClassNotFoundException: in EnvironmentClassLoader[web-app:]

The bad part that mine always seems to display is displaying the DB connection information with user, password etc.

I think that you are right in that it is a timing issue, is their any way to display something other than the WEB.xml file or any parts of it? Maybe during startup a message can display that says..."Server starting up, please refer to server logs for more details."

Would custom error messages prevent this from happening? I see it mostly on our development site, that doesn't have custom pages for error handling.

04-02-10 11:22

If you remove the <development-mode-error-page/> in the resin.xml, the error message will be a generic one that doesn't show the web.xml.

Do you know where that class is in the classpath? Is there a chance that the class is being loaded before the <class-loader> tag is evaluated?

- Issue History
Date Modified Username Field Change
03-31-10 14:14 norlab New Issue
03-31-10 14:15 norlab Note Added: 0004502
03-31-10 14:37 ferg Note Added: 0004503
04-02-10 11:04 norlab Note Added: 0004513
04-02-10 11:22 ferg Note Added: 0004514
04-06-10 05:20 hans Issue Monitored: hans
01-18-11 17:08 ferg Assigned To  => ferg
01-18-11 17:08 ferg Status new => closed
01-18-11 17:08 ferg Resolution open => fixed
01-18-11 17:08 ferg Fixed in Version  => 4.0.14

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
37 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker