Websphere下发布WebService报错Endpoint publish not allowed in managed environment

问题描述

本地tomcat发布没有问题,放到Websphere问题来了。java.lang.UnsupportedOperationException:Endpointpublishnotallowedinmanagedenvironmentatorg.apache.axis2.jaxws.server.endpoint.EndpointImpl.publish(EndpointImpl.java:214)atorg.apache.axis2.jaxws.spi.Provider.createAndPublishEndpoint(Provider.java:57)atorg.apache.axis2.jaxws.spi.Provider.createAndPublishEndpoint(Provider.java:52)atjavax.xml.ws.Endpoint.publish(Endpoint.java:220)atcom.jxlife.cas.webservice.serverlet.CasUserWebServiceInitServlet.init(CasUserWebServiceInitServlet.java:24)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:342)atcom.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:634)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)atcom.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)atcom.jxlife.cas.web.WebRequestContext.doFilter(WebRequestContext.java:56)atorg.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)atorg.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)atcom.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)atorg.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)atorg.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)atorg.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:960)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1064)atcom.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3878)atcom.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)atcom.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)atcom.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)atcom.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:461)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:528)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:314)atcom.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)atcom.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)atcom.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)atcom.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)atcom.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)atcom.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)atcom.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)atcom.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)atcom.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1864)

我使用的是java自带的Endpoint.publish发布。atorg.apache.axis2.jaxws.server.endpoint.EndpointImpl.publish(EndpointImpl.java:214)atorg.apache.axis2.jaxws.spi.Provider.createAndPublishEndpoint(Provider.java:57)atorg.apache.axis2.jaxws.spi.Provider.createAndPublishEndpoint(Provider.java:52)atjavax.xml.ws.Endpoint.publish(Endpoint.java:220)

为毛到了Websphere上他用了axis2发布,我项目里没有用到任何axis2的jar。baidu了下Endpointpublishnotallowedinmanagedenvironment这个,没有任何相关信息,真无语了。

解决方案

解决方案二:
我也碰到这个问题解决了么
解决方案三:
我也是这个问题请问解决了吗

时间: 2024-08-23 21:53:09

Websphere下发布WebService报错Endpoint publish not allowed in managed environment的相关文章

webservice websphere-websphere6.0下发布webservice报错,tomcat下正常

问题描述 websphere6.0下发布webservice报错,tomcat下正常 错误信息如下: Fault - ; nested exception is: WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: can't declare any more prefixes in this context: java.lang.IllegalStateException: can't dec

tamcat发布webservice报错(jaxws)

问题描述 各位大侠们:tamcat发布webservice报错(jaxws),帮帮忙呢!纠结了好几天的严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclasscom.sun.xml.ws.transport.http.servlet.WSServletContextListenercom.sun.xml.ws.transport.http.servlet.WSServletException:WSSERVLET11:无

java webservice 报错

问题描述 java webservice 报错 Exception in thread "main" javax.xml.ws.WebServiceException: WSDL file:/C:/Workspaces/MyEclipse%208.6/08-SOA/WebRoot/WEB-INF/classes/META-INF/wsdl/user.wsdl has the following services [{http://service.ok.com.cn}UserServic

web service-android通过ksoap2连接webservice报错

问题描述 android通过ksoap2连接webservice报错 SoapFault - faultcode: 'Receiver' faultstring: 'Layout does not exist LayoutID = 0' faultactor: 'null' detail: nullat org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(SoapSerializationEnvelope.java:137)哪

ocket xception-android开发,调用webservice报错,求指导一下,感激不尽

问题描述 android开发,调用webservice报错,求指导一下,感激不尽 java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) 解决方案 网络问题,检查下通讯,ip端口等等.

wsdl-掉用webservice报错,,大家帮忙看看啊

问题描述 掉用webservice报错,,大家帮忙看看啊 五月 11, 2015 5:16:50 下午 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL 信息: Creating Service {http://impl.webservice.platform.hotent.com/}UserDetailsServiceImplService from WSDL: http://loc

解决IIS下UTF-8文件报错乱码问题

解决IIS下UTF-8文件报错乱码的问题 原因: 你的网站是utf-8编码,但iis的错误信息输出默认使用的是gb2312编码.导致iis出现运行时错误的时候显示的页面是乱码. 解决办法: [办法1] 自己处理错误,不让iis来处理. 在所有可能出错的地方,都用类似下面的方式来捕捉. On Error Resume Next Err.Raise 6 '这行是可能出错的代码 If Err Then Response.Write Err.Description Response.End End If

python-window下安装uwsgi报错

问题描述 window下安装uwsgi报错 cmd下运行:pip install uwsgi 报错:AttributeError:'module' object hsa no attribute 'uname' 怎么安装成功呢?求大神,指教 解决方案 这个应该是需要linux环境.或者你自己下载uwsgi源码来编译 解决方案二: 好吧,新手,再看看吧,谢谢大神!

OS X下gcc编译报错,Xcode带的gcc

问题描述 OS X下gcc编译报错,Xcode带的gcc 错误是 dpc2sim.a file was built for archive which is not the architecture being linked (x86_64) 用Data Prefetch Championship给的framework写prefetch的程序http://comparch-conf.gatech.edu/dpc2/想先跑跑人家给的example,可是编译的时候就报错了.我用的是OS X,gcc版