https://bz.apache.org/bugzilla/show_bug.cgi?id=57676
Bug ID: 57676 Summary: A small suggestion: WebSocket check same path endpoint implement may need to enhance Product: Tomcat 8 Version: 8.0.5 Hardware: PC Status: NEW Severity: normal Priority: P2 Component: WebSocket Assignee: dev@tomcat.apache.org Reporter: yklovej...@163.com If there are two websocket endpoint has same path, eg, path is "/",Tomcat start will report the following errors: Multiple Endpoints may not be deployed to the same path [/] ... But the errors info can't provide us more enough info.We can't know which the two endpoints.If so,we may need to search texts,I think not very convenient. If report the following errors info, we can know which two endpoints: Multiple Endpoints may not be deployed to the same path [/], the first endpoint is [echo.EchoServer], the second endpoint is [echo.annoted.EchoServer] The simple way is to modify WsServerContainer#addEndpoint() method and org/apache/tomcat/websocket/server/LocalStrings.properties. example: #serverContainer.duplicatePaths=Multiple Endpoints may not be deployed to the same path [{0}] serverContainer.duplicatePaths=Multiple Endpoints may not be deployed to the same path [{0}], the first endpoint is [{1}], the second endpoint is [{2}] if (old != null) { // Duplicate path mappings throw new DeploymentException(sm.getString("serverContainer.duplicatePaths", path, old.getEndpointClass().getName(), sec.getEndpointClass().getName())); } -- 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