草庐IT

java - 使用 native Java SE 6 JAX-WS 实现而不是 JBoss WS 堆栈

JBoss6.0Final附带JBossWS(默认情况下为ApacheCXF堆栈),我知道我可以将默认实现替换为来自JBossWSdownloadssite的相应JBossWSNative或Metro版本.问题是,我有一个客户端jar库(不幸的是只有二进制文件),它使用一些专有的SOAPWeb服务。当我从部署到JBoss的Web应用程序使用客户端API时,我遇到了很多间歇性SOAP错误(使用ApacheCXF和JBossNative堆栈进行了测试)。由于相同的Web服务在从独立的jar文件(没有第三方JAX-WS实现)运行时似乎工作正常,我正在考虑禁用JBossWS堆栈以支持提供的na

java - 如何在处理自定义错误异常时获取 SOAP 错误的错误代码

我们的系统使用SOAPWeb服务,使用基于服务的WSDL生成的JAX-WS客户端stub。如果发生错误,服务器会像这样返回SOAP错误:SomeErrorCodeSomeerrormessage123456789true基于WSDLSomeCustomFault生成异常类,并声明所有服务方法以抛出此(见下文)异常。@WebFault(name="ApiFault",targetNamespace="http://services.altasoft.ge/orders/v1.0")publicclassSomeCustomFaultextendsException{privateApiF

mongodb - 无法在 OpenShift : "Failed to execute: ' control deploy' for/var/lib/openshift/XXX/jbossews"上部署我的应用程序

将新更改推送到我的OpenShift存储库时,应用程序构建良好但无法部署:Repositoryssh://XXX@myapp-mydomain.rhcloud.com/~/git/app.git/ThejbossewscartridgeisalreadystoppedStoppingMongoDBcartridgeStoppingRockMongocartridgeWaitingforstoptofinishWaitingforstoptofinishBuildinggitref'master',commit9a591e1UsingMavenmirror/var/lib/openshi

java - 非法注释异常 : Two classes have the same XML type name

我正在JBoss5和Java1.6下开发Web服务。什么可能导致此异常?下面是我的简化网络服务代码。@Stateless@WebService()publicclassAccountWS{@WebMethod()publicCreateAccountResponsecreateAccount(@WebParam(name="request")CreateAccountRequestrequest){returnnull;}下面是完整的堆栈跟踪。16:19:03,421ERROR[AbstractKernelController]ErrorinstallingtoReal:name=vf

java - 非法注释异常 : Two classes have the same XML type name

我正在JBoss5和Java1.6下开发Web服务。什么可能导致此异常?下面是我的简化网络服务代码。@Stateless@WebService()publicclassAccountWS{@WebMethod()publicCreateAccountResponsecreateAccount(@WebParam(name="request")CreateAccountRequestrequest){returnnull;}下面是完整的堆栈跟踪。16:19:03,421ERROR[AbstractKernelController]ErrorinstallingtoReal:name=vf

java.util.List 是一个接口(interface),JAXB 不能处理接口(interface)

在尝试部署我的应用程序时,我似乎遇到了以下异常:Causedby:com.sun.xml.bind.v2.runtime.IllegalAnnotationsException:2countsofIllegalAnnotationExceptionsjava.util.Listisaninterface,andJAXBcan'thandleinterfaces.thisproblemisrelatedtothefollowinglocation:atjava.util.Listatprivatejava.util.Listfoobar.alkohol.register.webservi

java.util.List 是一个接口(interface),JAXB 不能处理接口(interface)

在尝试部署我的应用程序时,我似乎遇到了以下异常:Causedby:com.sun.xml.bind.v2.runtime.IllegalAnnotationsException:2countsofIllegalAnnotationExceptionsjava.util.Listisaninterface,andJAXBcan'thandleinterfaces.thisproblemisrelatedtothefollowinglocation:atjava.util.Listatprivatejava.util.Listfoobar.alkohol.register.webservi