You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Carlos Garcia (JIRA)" <ji...@apache.org> on 2013/01/15 16:04:12 UTC

[jira] [Comment Edited] (CXF-2956) Eclipse validation error when using http-conf.xsd

    [ https://issues.apache.org/jira/browse/CXF-2956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553840#comment-13553840 ] 

Carlos Garcia edited comment on CXF-2956 at 1/15/13 3:04 PM:
-------------------------------------------------------------

I do have the same error when using that exact XML file and ...

STS Version: 3.1.0.RELEASE - Build Id: 201210061306

together with the following MVN dependency versions:

<spring-version>3.1.0.RELEASE</spring-version>
<spring-security-version>3.1.0.RELEASE</spring-security-version>
<cxf.version>2.2.3</cxf.version>

No restart + clean has helped me.

I have also tried with this XML file (extracted from the examples) both with the Spring beans XSD version explicitely set to 2.0 (as it is in the examples) but also without it (removing 2.0). Then again, no success:

<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:sec="http://cxf.apache.org/configuration/security"
  xmlns:http="http://cxf.apache.org/transports/http/configuration"
  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  xsi:schemaLocation="
      http://cxf.apache.org/configuration/security
      http://cxf.apache.org/schemas/configuration/security.xsd
      http://cxf.apache.org/transports/http/configuration
      http://cxf.apache.org/schemas/configuration/http-conf.xsd
      http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

  <http:conduit name="{http://apache.org/hello_world}HelloWorld.http-conduit">

    <http:tlsClientParameters>
      <sec:keyManagers keyPassword="password">
        <sec:keyStore type="JKS" password="password"
                      file="my/file/dir/Morpit.jks"/>
      </sec:keyManagers>
      <sec:trustManagers>
        <sec:keyStore type="JKS" password="password"
                      file="my/file/dir/Truststore.jks"/>
      </sec:trustManagers>
      <sec:cipherSuitesFilter>
        <!-- these filters ensure that a ciphersuite with
             export-suitable or null encryption is used,
             but exclude anonymous Diffie-Hellman key change as
             this is vulnerable to man-in-the-middle attacks -->
        <sec:include>.*_EXPORT_.*</sec:include>
        <sec:include>.*_EXPORT1024_.*</sec:include>
        <sec:include>.*_WITH_DES_.*</sec:include>
        <sec:include>.*_WITH_AES_.*</sec:include>
        <sec:include>.*_WITH_NULL_.*</sec:include>
        <sec:exclude>.*_DH_anon_.*</sec:exclude>
      </sec:cipherSuitesFilter>
    </http:tlsClientParameters>
    <http:authorization>
      <sec:UserName>Betty</sec:UserName>
      <sec:Password>password</sec:Password>
    </http:authorization>
    <http:client AutoRedirect="true" Connection="Keep-Alive"/>

  </http:conduit>

</beans>

Thanks in advance for your answer. 

Carlos
                
      was (Author: cgarci):
    I do have the same error when using:

STS Version: 3.1.0.RELEASE - Build Id: 201210061306

With the following MVN dependency versions:

<spring-version>3.1.0.RELEASE</spring-version>
<spring-security-version>3.1.0.RELEASE</spring-security-version>
<cxf.version>2.2.3</cxf.version>

No restart + clean has helped me.

Thanks in advance for your answer. 

Carlos
                  
> Eclipse validation error when using http-conf.xsd
> -------------------------------------------------
>
>                 Key: CXF-2956
>                 URL: https://issues.apache.org/jira/browse/CXF-2956
>             Project: CXF
>          Issue Type: Bug
>          Components: Resources
>    Affects Versions: 2.2.10
>         Environment: Spring-2.5.6, cxf-2.2.10, Eclipse 3.6, Eclipse WTP
>            Reporter: Christian Kerschenbauer
>         Attachments: CXF - Spring Error.png
>
>
> We are getting an validation error when using the http-conf.xsd in our application. To isolate the problem I imported the "wsdl_first_https" project into eclipse. The validation error occurs even there. Just open the file "InsecureClient.xml", right click and choose validate.
> Error Message:
> Referenced file contains errors (jar:file:/D:/eclipse-helios/plugins/org.eclipse.wst.standard.schemas_1.0.300.v201004110600.jar!/dtds/strict.dtd).  For more information, right click on the message in the Problems View and select "Show Details..."	InsecureClient.xml	/wsdl_first_https/src/demo/hw_https/client	line 1	XML Problem
> Show Details message: The declaration for the entity "ContentType" must end with '>'.
> Excerpt from file InsecureClient.xml:
> {code:xml}
> <beans xmlns="http://www.springframework.org/schema/beans"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xmlns:http="http://cxf.apache.org/transports/http/configuration"
>   xsi:schemaLocation="
> http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
>   <http:conduit name="{http://apache.org/hello_world_soap_http}SoapPort.http-conduit">
>   </http:conduit>
> </beans>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira