https://issues.apache.org/bugzilla/show_bug.cgi?id=47316
Summary: In config file, Service and engine names must match
Product: Tomcat 6
Version: unspecified
Platform: Other
OS/Version: AIX
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
We had a config working on 6.0.18 and failing in 6.0.20.
In tomcat log, we found the following NPE at initialization:
Jun 4, 2009 5:15:25 PM org.apache.catalina.connector.MapperListener init
WARNING: Error registering contexts
Throwable occurred: java.lang.NullPointerException
at
org.apache.catalina.connector.MapperListener.registerHost(MapperListener.java:332)
at
org.apache.catalina.connector.MapperListener.init(MapperListener.java:129)
at org.apache.catalina.connector.Connector.start(Connector.java:1146)
at
org.apache.catalina.core.StandardService.start(StandardService.java:531)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:612)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Following this error, server keeps on starting and is correctly listening on
its connector port as expected. Any call to a JSP, static ressource will keep
on returning a 400 status code.
Further testes were conducted and we found that in server.xml service name
(<Service name="xxx") and engine name (<Engine name="xxx") have to match. If
they don't, you get the NPE error and 400 status code. If they match, no NPE
and no 400 errors.
--
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: [email protected]
For additional commands, e-mail: [email protected]