[jbosstools-issues] [JBoss JIRA] (JBIDE-17859) XML validation error for a web service configuration XML file in a Seam project

Thomas Haskes (JIRA) issues at jboss.org
Thu Oct 22 05:11:00 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-17859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120855#comment-13120855 ] 

Thomas Haskes commented on JBIDE-17859:
---------------------------------------

For others that are looking for a solution this may be useful. I had the same problem described above in eclipse, but the solution of adding the aforementioned attributes did not work for me. Adding the attributes made the error disappear, but then my ear would not deploy anymore, stating the error "Unexpected element: handler-chains" while deploying.

Adding the following attributes worked though, the error in eclipse disappeard, ant the ear did deploy again:

{code:xml}
<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">
{code}

I found that solution here:
http://stackoverflow.com/questions/27903735/cannot-find-declaration-of-element-handler-chains-jboss-developer-studio

> XML validation error for a web service configuration XML file in a Seam project
> -------------------------------------------------------------------------------
>
>                 Key: JBIDE-17859
>                 URL: https://issues.jboss.org/browse/JBIDE-17859
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: upstream
>         Environment: JBDS 8.0.0.Beta3
>            Reporter: Ron Šmeral
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.2.0.CR1
>
>
> {noformat}
> cvc-elt.1: Cannot find the declaration of element 'handler-chains'.	
> soap-handlers.xml
> /seambay-ejb/src/main/resources/org/jboss/seam/example/seambay
> line 2
> XML Problem
> {noformat}
> The file is valid and satisfies the webservices schema in the javaee namespace: http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/javaee_web_services_metadata_handler_2_0.xsd:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
>   <handler-chain>
>     <handler>
>       <handler-name>SOAP Request Handler</handler-name>
>       <handler-class>org.jboss.seam.webservice.SOAPRequestHandler</handler-class>
>     </handler>
>   </handler-chain>
> </handler-chains>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list