- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Spring Boot Soap 客户端,当我在 Tomcat 上运行时工作正常,但是当我在 WebSphere 上部署相同的客户端时,SOAP 调用失败并显示以下消息。它提示说
SOAPHeaderElement that was not namespace qualified. The SOAPHeaderElement localName is clientVersion; prefix is null: namespace is null.'
public void doWithMessage(WebServiceMessage message) {
try {
SoapMessage soapMessage = (SoapMessage) message;
SoapHeader header = soapMessage.getSoapHeader();
StringSource headerSource = new StringSource(
"<clientVersion>" + clientVersionNumber + "</clientVersion>");
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.transform(headerSource, header.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
[24/02/20 15:06:56:239 EST] 000000c7 SystemErr R FATAL ERROR: 'java.lang.RuntimeException: javax.xml.soap.SOAPException: WSWS4119E: An attempt was made to set a SOAPHeaderElement that was not namespace qualified. The SOAPHeaderElement localName is clientVersion; prefix is null: namespace is null.'
:javax.xml.soap.SOAPException: WSWS4119E: An attempt was made to set a SOAPHeaderElement that was not namespace qualified. The SOAPHeaderElement localName is clientVersion; prefix is null: namespace is null.
[24/02/20 15:06:56:342 EST] 000000c6 AxisEngine E org.apache.axis2.engine.AxisEngine receive An error was detected during JAXWS processing
org.apache.axis2.AxisFault: An error was detected during JAXWS processing
at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:208)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:212)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:1633)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1124)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:963)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:289)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
[24/02/20 15:06:56:376 EST] 000000c7 SystemOut O Excpetion caught: null
[24/02/20 15:06:56:361 EST] 000000c7 SystemErr R org.springframework.ws.soap.client.SoapFaultClientException: Internal Error
[24/02/20 15:06:56:361 EST] 000000c7 SystemErr R at org.springframework.ws.soap.client.core.SoapFaultMessageResolver.resolveFault(SoapFaultMessageResolver.java:38)
[24/02/20 15:06:56:361 EST] 000000c7 SystemErr R at org.springframework.ws.client.core.WebServiceTemplate.handleFault(WebServiceTemplate.java:830)
[24/02/20 15:06:56:361 EST] 000000c7 SystemErr R at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:624)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:555)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:390)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at client.tphehtvc.service.SoapClient.callRemoteService(SoapClient.java:89)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at client.tphehtvc.service.SoapClient.getScheduledWorkHH(SoapClient.java:142)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at client.tphehtvc.controller.ScheduleWork.getScheduledWorkHH(ScheduleWork.java:416)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[24/02/20 15:06:56:362 EST] 000000c7 SystemErr R at java.lang.reflect.Method.invoke(Method.java:508)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
[24/02/20 15:06:56:363 EST] 000000c7 SystemErr R at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
[24/02/20 15:06:56:364 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
[24/02/20 15:06:56:365 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:366 EST] 000000c7 SystemErr R at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
[24/02/20 15:06:56:366 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:366 EST] 000000c7 SystemErr R at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158)
[24/02/20 15:06:56:366 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:366 EST] 000000c7 SystemErr R at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
[24/02/20 15:06:56:366 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:366 EST] 000000c7 SystemErr R at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
[24/02/20 15:06:56:366 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:367 EST] 000000c7 SystemErr R at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
[24/02/20 15:06:56:368 EST] 000000c7 SystemErr R at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
[24/02/20 15:06:56:368 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
[24/02/20 15:06:56:368 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
[24/02/20 15:06:56:368 EST] 000000c7 SystemErr R at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
[24/02/20 15:06:56:368 EST] 000000c7 SystemErr R at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
[24/02/20 15:06:56:368 EST] 000000c7 SystemErr R at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
[24/02/20 15:06:56:368 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
[24/02/20 15:06:56:369 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
[24/02/20 15:06:56:370 EST] 000000c7 SystemErr R at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:128)
[24/02/20 15:06:56:370 EST] 000000c7 SystemErr R at org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:66)
[24/02/20 15:06:56:370 EST] 000000c7 SystemErr R at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:103)
[24/02/20 15:06:56:370 EST] 000000c7 SystemErr R at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
[24/02/20 15:06:56:370 EST] 000000c7 SystemErr R at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:121)
[24/02/20 15:06:56:370 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
[24/02/20 15:06:56:370 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
[24/02/20 15:06:56:371 EST] 000000c7 SystemErr R at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
[24/02/20 15:06:56:371 EST] 000000c7 SystemErr R at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
[24/02/20 15:06:56:371 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
[24/02/20 15:06:56:372 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
[24/02/20 15:06:56:372 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
[24/02/20 15:06:56:372 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
[24/02/20 15:06:56:372 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4219)
[24/02/20 15:06:56:373 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppImpl.handleRequest(WebAppImpl.java:2208)
[24/02/20 15:06:56:373 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
[24/02/20 15:06:56:373 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1030)
[24/02/20 15:06:56:373 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
[24/02/20 15:06:56:374 EST] 000000c7 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
[24/02/20 15:06:56:374 EST] 000000c7 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
[24/02/20 15:06:56:374 EST] 000000c7 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
[24/02/20 15:06:56:374 EST] 000000c7 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[24/02/20 15:06:56:375 EST] 000000c7 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
有人可以告诉我如何正确设置 SOAPHeaderElement
吗?
最佳答案
我找到了解决此问题的两种方法。
使用 SoapHeaderElement 而不是 StringSource
public void doWithMessage(WebServiceMessage message) {
try {
SoapMessage soapMessage = (SoapMessage) message;
SoapHeader header = soapMessage.getSoapHeader();
SoapHeaderElement messageId = header.addHeaderElement(
new QName("http://<namespace>", "clientVersion", ""));
messageId.setText(clientVersionNumber);
} catch (Exception e) {
e.printStackTrace();
}
}
关于java - 部署在 websphere 上时 SOAP 调用失败,但在 tomcat 上运行正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60399029/
我希望在某些环境中使用用户名和密码保护某个角色,但在其他环境中甚至不需要提示。如果我在 tomcat web.xml 中有一个 auth-constraint,我可以创建一个具有“匿名”访问权限的角色
我正在使用 Tomcat jmxproxy 和状态来监视 Web 应用程序,但是 jmxproxy 页面中有很多无用的信息,并且其中没有任何信息,例如事件连接数。有谁知道如何过滤 jmxproxy 页
是否可以通过执行 JSP 来重启 Tomcat6? 这是因为我想通过使用网络服务器远程部署应用程序的更改。 部署脚本是用 bash 编写的,它从 svn 中 check out 最新版本,然后将其打包
我有一个包含 2 个子项目(后端和 ui)的 gradle 项目。 Ui由gradle tomcatRunWar完美启动.后端有我们在生产地点的配置描述符/conf/Catalina/localhos
发现 XAMPP 控件认为 tomcat 正在运行但无法停止它的问题。 在catalina下的tomcat logs目录下可以找到如下错误 “严重:无法联系 localhost:8005。Tomcat
PuppetLabs 在 PuppetForge 上有一个模块,用于部署 Tomcat 及其配置。 https://forge.puppet.com/puppetlabs/tomcat Tomcat
我有一个部署到 Tomcat 实例中的 Web 应用程序。我希望能够将 tomcat 配置为在 Tomcat 本身启动时不自动启动该应用程序。但是,我确实希望启动 Tomcat 管理器,以便我可以根据
操作系统:windows XP。 我已经安装了 Tomcat 7.0.25,文件夹“manager”位于 webapps 文件夹中。 我已阅读此处的文档:http://tomcat.apache.or
我们在 server.xml 文件中启用了以下访问日志模式 pattern="%h %H %l %u %t "%r" %s %b location: %{location}o"。 有人可以帮助理解模式
我最近开始使用 tomcat,我有一个关于 Tomcat 请求路由/映射的查询。 假设我在 tomcat 服务器中部署了四个应用程序 A、B、C 和 D,当有请求到来时,tomcat 如何知道要调用哪
我在我的计算机上使用 Tomcat,它可以通过端口 8080 访问。我想要的是我应该能够使用我的计算机的 IP 地址访问我的 Tomcat 服务器页面。我以前读过很多主题,但找不到一个可以帮助我的主题
我有一个 tomcat 7 服务器和一个 postgreSQL 9.0 数据库。我用它来为地理网络元数据编辑器设置开发环境。一切都是根据 geonetwork 网站教程设置的。我在将服务器与数据库连接
我的服务器有 物理 ip 和 虚拟 ip 由网络管理员设置。在我安装的服务器内部 Apache tomcat 7.0.29并创建一个网络应用程序。当我运行 wget http://:8080/xxx或
我有多个应用程序在不同的端口上运行(tomcat 实例) 都有相同的CATALINA_HOME 目前我必须在所有实例中部署和安装psi 探针,并在不同的窗口中分别监控每个端口。 我如何在一个单一的探测
based on this question 我尝试将 Tomcat 控制台输出重定向到一个文本文件,它对我的 Web 应用程序工作正常,但问题是,每次 Tomcat 启动时它都会被覆盖。我需要创
我需要阐明我的问题。问题是:有什么方法可以影响 Tomcat 为特定部署的应用程序分配多少堆内存?更多详细信息 - 我如何为已部署的应用程序设置特定的 Java 选项(考虑我想为每个应用程序设置特殊的
应用服务器内部的类加载机制是开发人员常见的困惑来源;这就是为什么我想问一个关于 tomcat 7 服务器中这个机制的问题:我有一个网络应用程序 sample.war,它依赖于 jgroups 库, 放
尝试将嵌入式 Tomcat 5 迁移到嵌入式 Tomcat 7。在启动过程中获取 NPE。 我扩展了 Embedded 类并按照正确的顺序执行所有建议的初始化。 NPE 发生在这里: Caused b
我可以使用随附的 start.sh 文件启动 tomcat,但是是否有任何参数可以用来执行以下操作: 在指定的根目录启动 Tomcat 服务 强制 Tomcat 在浏览器中拉出指定的主页 谢谢 最佳答
我在两台 diff 机器 tomcat 服务器上做一个简单的集群配置。每次我启动 tomcat 时,我都会收到一个错误,就像集群组中没有事件成员一样。我正在附加集群配置
我是一名优秀的程序员,十分优秀!