Java weblogic 12c上的子示例错误
大气的pubsub示例部署到weblogic 12c 通过下面的小改动,我部署了这个应用程序Java weblogic 12c上的子示例错误,java,jakarta-ee,atmosphere,Java,Jakarta Ee,Atmosphere,大气的pubsub示例部署到weblogic 12c 通过下面的小改动,我部署了这个应用程序 var request = { url :document.location.toString()+'ws/pubsub/' + getElementByIdValue('topic'), 给出以下错误 在服务器端 org.atmosphere.websocket.protocol.simplehttprotocol BEA-000000状态代码大于或等于40
var request = {
url :document.location.toString()+'ws/pubsub/' + getElementByIdValue('topic'),
给出以下错误
在服务器端org.atmosphere.websocket.protocol.simplehttprotocol BEA-000000状态代码大于或等于400状态405消息方法不允许 在脚本控制台(chrome)中
网络
错误:405:不允许使用方法 错误:405:不允许使用方法 message=测试试图使用websocket时发送的pubsub 控制台
GET=1396276957934“>http://localhost:7001/atmosphere/ws/pubsub/Test?X-大气传输=关闭&X-Atmosphere-tracking-id=&=1396276957934 400(错误请求)Atmosphere.js:1816
连接到“ws://localhost:7001/atmosphere/ws/pubsub/Test?X-atmosphere-tracking-id=0&X-atmosphere-Framework=2.1.4-javascript&X-atmosphere-Transport=WebSocket&X-atmosphere-TrackMessageSize=true&X-Cache-Date=0&X-atmo-protocol=true”的WebSocket连接失败:接收到包含保留状态代码的断开关闭帧。
已解决
document.location.toString()
需要修改为
document.location.origin+'/atmosphere/ws/pubsub/'
跳过html文件的名称(如果不是index.html)
大气处理器将负责操作,并按预期连接到WebSocket
当weblogic-12c检测到websocket内容时,它会自动将/ws/添加到上下文路径中,因此长轮询需要作为一个单独的url进行处理
指