问题描述
本地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这个,没有任何相关信息,真无语了。
解决方案
解决方案二:
我也碰到这个问题解决了么
解决方案三:
我也是这个问题请问解决了吗