I have a handler-chain configuration for my webservice handler
我有一个用于webservice处理程序的handler-chain配置
At my webservice class I have;
在我的网络服务课上;
@HandlerChain(file = "jaxws-handlers-server.xml")
public class RoleMemberServiceSoap11Impl{...}
and my jaxws-handlers-server.xml is ;
和我的jaxws-handlers-server。xml是;
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<handler-chain>
<protocol-bindings>##SOAP11_HTTP</protocol-bindings>
<handler>
<handler-name>TransactionBridgeHandler</handler-name>
<handler-class>org.jboss.jbossts.txbridge.inbound.JaxWSTxInboundBridgeHandler
</handler-class>
</handler>
<handler>
<handler-class>com.arjuna.mw.wst11.service.JaxWSHeaderContextProcessor
</handler-class>
</handler>
</handler-chain>
</handler-chains>
In that xml file i got the following error for element.
在那个xml文件中,我得到了下面的元素错误。
Cannot find declaration of element handler-chains
I ve searched and tried various workaround about changing xmlns:xsd urls. Also I tried the workaround that given at https://issues.jboss.org/browse/JBIDE-17859
我已经搜索并尝试了各种关于更改xmlns:xsd url的工作。我还尝试了https://issues。jboss.org/browse/jbide -17859提供的解决方案
but that does not help.
但这无济于事。
IDE : Jboss Developer Studio.
IDE: Jboss开发人员工作室。
Project: Dynamic Web Project 2.4
项目:动态Web项目2.4
Server Jboss 6.1+
服务器Jboss 6.1 +
Java : 1.6
Java:1.6
Any suggestions will be appreciated.
如有任何建议,我们将不胜感激。
Thanks.
谢谢。
2 个解决方案
#1
15
I resolved the issue by replacing
我用替换的方法解决了这个问题。
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
to
来
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/javaee_web_services_metadata_handler_2_0.xsd">
#2
5
I had a similar problem in Eclipse + JDK 1.8 that was resolved by changing the address of the XMLNS attribute.
我在Eclipse + JDK 1.8中遇到过类似的问题,通过更改XMLNS属性的地址来解决。
From:
来自:
<javaee:handler-chains xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
To:
:
<javaee:handler-chains xmlns:javaee="http://xmlns.jcp.org/xml/ns/javaee/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
See the link below that Oracle has changed the address of the new schemas: http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html#7
请看下面的链接,Oracle已经更改了新模式的地址:http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html#7
#1
15
I resolved the issue by replacing
我用替换的方法解决了这个问题。
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
to
来
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/javaee_web_services_metadata_handler_2_0.xsd">
#2
5
I had a similar problem in Eclipse + JDK 1.8 that was resolved by changing the address of the XMLNS attribute.
我在Eclipse + JDK 1.8中遇到过类似的问题,通过更改XMLNS属性的地址来解决。
From:
来自:
<javaee:handler-chains xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
To:
:
<javaee:handler-chains xmlns:javaee="http://xmlns.jcp.org/xml/ns/javaee/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
See the link below that Oracle has changed the address of the new schemas: http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html#7
请看下面的链接,Oracle已经更改了新模式的地址:http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html#7