Summary: | NullPointerException if context.xml is present with <Resource> | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Flávio Henrique <servlet> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | regression | ||
Priority: | P3 | ||
Version: | 7.0.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Attachments: | server.xml that crashes tomcat 7.0.2 |
Description
Flávio Henrique
2010-09-29 13:02:53 UTC
I Solved the problem (but I still thing that this is a bug in tomcat), let me explain with more detail, because I was to anxious do report the bug. The problem happens when you have context <Resource> tag in SERVER.XML. The problem doesn´t happens with you have a new <Realm> inside SERVER.XML. How I solved the problem: 1 - instead of inserting context information in SERVER.XML, I created myApplication.xml in conf\Catalina\localhost\myApplication.xml. The first approach work on tomcat 6, but not in tomcat 7. By the way, I solved the problem, I am afraid that the presence of additional context information in SERVER.XML crashes tomcat 7. Can anyone confirm if it´s a bug? Can you attach a server.xml that actually breaks - it's not clear from your report what you're actually having problems with. Created attachment 26143 [details]
server.xml that crashes tomcat 7.0.2
Server.xml that crash tomcat 7.02. Only added <Context> information inside <Host>.
Here is the server.xml (zipped). I only added to the default server.xml <Context> inside <Host> Thanks Thanks for the example. That made it much clearer. This has been fixed in trunk and will be included in 7.0.4 onwards. |