WebSocket Unexpected response code: 500
2013-08-14 00:27
330 查看
使用tomcat7 + myeclipse实现websocket时报错WebSocket Unexpected response code: 500
原因:
因为要使用tomcat的websocket要导入jar包,但是myeclipse默认会将jar包复制到WEB-INF/lib下,所以造成jar包重复!
解决:
将非tomcat包的弄到一个library里并设为system library,然后将tomcat的包弄到一个library里。
工程右键 ->performence->MyEclipse->Web->Deplyment 下的 Library Deployment Policies
取消默认的布署设置选项 , 将 Use workbench default settings 选项的去掉 , 并去掉JARs from User Libraries
原因:
因为要使用tomcat的websocket要导入jar包,但是myeclipse默认会将jar包复制到WEB-INF/lib下,所以造成jar包重复!
解决:
将非tomcat包的弄到一个library里并设为system library,然后将tomcat的包弄到一个library里。
工程右键 ->performence->MyEclipse->Web->Deplyment 下的 Library Deployment Policies
取消默认的布署设置选项 , 将 Use workbench default settings 选项的去掉 , 并去掉JARs from User Libraries
相关文章推荐
- WebSocket Unexpected response code: 500
- WebSocket connection to,Error during WebSocket handshake: Unexpected response code: 404
- WebSocket connection to,Error during WebSocket handshake: Unexpected response code: 404
- linux 部署django项目时出错: WebSocket connection,Unexpected response code: 200"
- Websockets with Glassfish 3.1.2 and Grizzly - Unexpected response code: 405
- Websockets with Glassfish 3.1.2 and Grizzly - Unexpected response code: 405
- failed: Error during WebSocket handshake: Unexpected response code: 200
- HttpWebRequest.GetResponse() raises exception when http status code 400 (bad request) is returned
- android Volley: [461] BasicNetwork.performRequest: Unexpected response code 400 for xxxxx
- HttpWebResponse.StatusCode的枚举值
- HttpWebResponse远程服务器返回错误: (500) 内部服务器错误。
- C#、JAVA操作Hadoop(HDFS、Map/Reduce)真实过程概述。组件、源码下载。无法解决:Response status code does not indicate success: 500。
- WebSocket handshake: Unexpected response code: 404
- vue-cli Failed to download repo vuejs-templates/webapck: Response code 404 (Not Found)
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法
- Error during WebSocket handshake: Unexpected response code: 200错误
- reactNative 报错提示:ReactNative:The development server returned response error code: 500
- ReactNative:The development server returned response error code: 500
- java.io.IOException: Server returned HTTP response code: 500 for URL
- HttpWebResponse远程服务器返回错误: (500) 内部服务器错误