https://issues.apache.org/bugzilla/show_bug.cgi?id=49351
Summary: Tomcat Embedded fails if StandardService is not set Product: Tomcat 6 Version: 6.0.26 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: dev@tomcat.apache.org ReportedBy: mgoldh...@gmail.com The code in StandardEngine (around line 354) handles the situation when the standard engine is not set. But if you don't do it, the execution of Tomcat embedded fails with a NPE. The reason for this is a missing name for the StandardService. A workaround is to just add the StandardService to the server container with the following code: <code> StandardService service = new StandardService(); service.setContainer( server.getContainer() ); service.setName(TC_HOST_CONTAINER_NAME); service.initialize(); </code> However, the name should be set in org.apache.catalina.core.StandardEngine:355 to the engine name. The error exists in the trunk too. -- 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org