cxf webservice im standalone-spring-Anwendung

Ich versuche zu implementieren eines webservice in eine bestehende standalone-spring-Anwendung.

Ich konfiguriert Frühling:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:jaxws="http://cxf.apache.org/jaxws"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">


    <import resource="classpath:beans/webservice.xml" />

....

webservice.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:jaxws="http://cxf.apache.org/jaxws"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">


<bean id="CheckService" class="test.ws.CheckService">
</bean>

<jaxws:endpoint 
    id="checkService" 
    implementor="#CheckService"
    address="http://localhost:9000/CheckService" />

Ich habe die Konfiguration nach amtlichen Unterlagen und Proben aus den Büchern. Ich bekomme Ausnahme:

03/11/2010 09:34:12 WARN Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://cxf.apache.org/schemas/jaxws.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)

...

http://cxf.apache.org/schemas/jaxws.xsd zugänglich ist, aus dem browser und ich glaube, es ist gut gebildet (offizielle xsd).

Ich vermute, dass das problem nicht im Zusammenhang mit cxf eher swing-Konfiguration zusammenhängt.

Dank,

Hubidubi

  • Könnte ein problem im IDE-cache.. laufen Sie diese von einer IDE? (Und wenn ja: Welche?)
  • Bei mir läuft es aus Eclipse und das bauen mit maven
InformationsquelleAutor Hubidubi | 2010-11-03
Schreibe einen Kommentar