https://bz.apache.org/bugzilla/show_bug.cgi?id=58754
Bug ID: 58754
Summary: WARNING: A context path must either be an empty string
or start with a '/' and do not end with a '/'. The
path [/] does not meet these criteria and has been
changed to []
Product: Tomcat 8
Version: 8.0.30
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
I get warning:
org.apache.catalina.core.StandardContext setPath
WARNING: A context path must either be an empty string or start with a '/' and
do not end with a '/'. The path [/] does not meet these criteria and has been
changed to []
for web.xml:
<servlet-mapping>
<servlet-name>appServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
and project dependencies:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
Servlet 3.0 specification in section: "12.2 Specification of Mappings" say:
A string containing only the ’ / ’ character indicates the "default" servlet
of the application. In this case the servlet path is the request URI minus
the context path and the path info is null.
The Java EE 6 platform requires Servlet 3.0.
So warning misleading and wrong according to specification semantic.
--
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]