Summary: | Tomcat Embedded fails if StandardService is not set | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Martin Goldhahn <mgoldhahn> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 6.0.26 | ||
Target Milestone: | default | ||
Hardware: | PC | ||
OS: | Windows XP |
Description
Martin Goldhahn
2010-05-27 06:39:35 UTC
Trunk has been re-factored so that code doesn't exist any more. The following patch should work for 6.0.x: Index: java/org/apache/catalina/core/StandardEngine.java =================================================================== --- java/org/apache/catalina/core/StandardEngine.java (revision 958198) +++ java/org/apache/catalina/core/StandardEngine.java (working copy) @@ -354,6 +354,8 @@ service=new StandardService(); service.setContainer( this ); service.initialize(); + // Use same name for Service + service.setName(getName()); } catch( Throwable t ) { log.error(t); } Fixed in 6.0.x and will be included in 6.0.28 onwards. |