Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find declaration of element handler-chains Jboss Developer Studio

Tags:

xml

jboss

xsd

I have a handler-chain configuration for my Webservice handler

At my Webservice class I have;

 @HandlerChain(file = "jaxws-handlers-server.xml")
    public class RoleMemberServiceSoap11Impl{...}

and my jaxws-handlers-server.xml is ;

<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.

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

but that does not help.

IDE : Jboss Developer Studio.

Project: Dynamic Web Project 2.4

Server Jboss 6.1+

Java : 1.6

Any suggestions will be appreciated.

Thanks.

like image 211
Tunceren Avatar asked Jan 12 '15 14:01

Tunceren


1 Answers

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"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
  http://java.sun.com/xml/ns/javaee/javaee_web_services_metadata_handler_2_0.xsd">
like image 64
Tunceren Avatar answered Oct 24 '22 18:10

Tunceren