javax.xml.ws.WebServiceException: No Content-type in the header!
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:163)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:86)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.client.Stub.process(Stub.java:248)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
at $Proxy31.getOrder(Unknown Source)
at junit.test.WSTest.getOderTest(WSTest.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
解决如下:
Well, we had this interesting problem yesterday, very simple to fix as soon as we figured out where it came from. So this post is more a reminder for myself than to enlighten the world.
The scenario was as follows, we had developed a web service endpoint that was running on a JBoss 5. It was developed by using Jax-ws, and we also generated a client with wsimport.
It worked nicelly for two of us, but when a third developer was running the same web service with the same client on his machine (his own JBoss), we ran into the following exception:
javax.xml.ws.WebServiceException: No Content-type in the header!
Because we had the same version of the JBoss, we thought at first that this had to do with our client. But after some testing and googling, we found that it was on the JBoss side and that the following libraries (found in JBOSS_HOME/common/lib) had to be moved to the endorsed folder (JBOSS_HOME/lib/endorsed).
jbossws-native-jaxrpc.jar
jbossws-native-jaxws.jar
jbossws-native-jaxws-ext.jar
jbossws-native-saaj.jar
Well, well it’s not easy being a developer.
===================================
Thank you so much!
I never would have figured this one out on my own and it was driving me nuts.
I’m still stuck on JBoss 4.2.3, but the problem and solution are the same except that I had to copy from JBOSS_HOME/server/default/lib/ to JBOSS_HOME/lib/endorsed.
分享到:
相关推荐
jboss中间件的反序列化漏洞检测工具,可检测主机搭建的中间件并获得shell
Jboss漏洞利用的小工具。执行命令一次不行可以尝试多次执行
NULL 博文链接:https://caco.iteye.com/blog/433425
Jopr的读音为Jopper,Jopr表示能够最好地处理客户的JBoss中间件方案 Jopr是一个企业级的JBoss中间件及其应用的集成化管理平台。 通过统一的图形化管理控制台,您可以管理和监控网络、操作系统、数据库等基础设施...
JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南JBOSS使用指南
使用注意: 1. WebLogic反弹需要等5秒左右 2. 该工具为对外测试版,请尽量按照正常思路来用,比如Url填写清楚,IP地址写对了,报错或者抛异常神马的别怪我,调输入校验好蛋疼。 本工具与网上已公布工具优点: 1. ...
jboss使用详细操作步骤,jboss使用详细操作步骤,jboss使用详细操作步骤,jboss使用详细操作步骤
NULL 博文链接:https://jonenine.iteye.com/blog/2170673
JBOSS使用手册 JBOSS使用手册 JBOSS使用手册
jboss sever 工具jboss sever 工具jboss sever 工具jboss sever 工具jboss sever 工具
jboss-5.0工具jboss-5.0工具jboss-5.0工具jboss-5.0工具jboss-5.0工具
Jbosside使用指南 jboss ide
jboss漏洞getshell工具
JBOSS使用手册
jboss重要工具包j多多boss重要工具包
通过JBOSS4 commons-collections.jar包的反序列化类InvokerTransformer, InstantiateFactory 和 InstantiateTransfromer class 文件可以远程操控服务器
CVE-2017-12149漏洞利用工具,针对该漏洞快速方便的进行利用。
Struts2及jboss漏洞利用工具。非常好用本人几经尝试过。 Struts2的漏洞实用工具 ,以及jboss的jar cmd运行代码,良心出品
webservice-jboss-tutorial.zip