tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49351] Tomcat Embedded fails if StandardService is not set
Date Sat, 26 Jun 2010 12:44:49 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49351

--- Comment #1 from Mark Thomas <markt@apache.org> 2010-06-26 08:44:45 EDT ---
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);
             }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message