This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | websocket context path not correct | ||
---|---|---|---|
Product: | javaee | Reporter: | keith_cambron |
Component: | Web Project | Assignee: | David Konecny <dkonecny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | TOMCAT |
Priority: | P3 | ||
Version: | 7.2.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
keith_cambron
2013-08-05 21:00:28 UTC
Created attachment 138318 [details]
IDE log
Probably JavaEE area? A test project demonstrating this problem would make it easier for me to reproduce the problem and provide help. Having said that this does not sound like a NetBeans problem but rather an issue in how project is setup or deployed. Could you give an example of URL you expect and URL which NetBeans uses? I'd think that you deploy an app to Tomcat, eg. "http://localhost:8080/myapp/" and from your HTML page you do new WebSocket("ws://localhost:8080/myapp/mywebsocket"). The problem was resolved by creating a separate WebSocketServlet, rather than extending the existing HttpServlet, and by declaring both servlets with unique URL patterns in web.xml . |