Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di Ironmax
    Registrato dal
    Dec 2008
    Messaggi
    1,026

    Problemi con file cxf-servlet.xml con un progetto jax-ws

    Salve.
    Sto cercando di capire come risolvere un errore nel file cxf-servlet di un progetto jax-ws
    codice:
    <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:cxf="http://cxf.apache.org/core"
        xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
        <import resource="classpath:META-INF/cxf/cxf.xml" />
        <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
        <jaxws:endpoint id="ordini" implementor="org.magazzino.first.OrdiniImpl"
            address="/GestioneOrdini" />
        <cxf:bus>
            <cxf:features>
                <cxf:logging />
            </cxf:features>
        </cxf:bus>
    </beans>
    L'errore che mi evidenzia eclipse in fase di compilazione sul tag di :
    codice:
    <jaxws:endpoint id="ordini" implementor="org.magazzino.first.OrdiniImpl"
            address="/GestioneOrdini" />
    è il seguente:
    codice:
    Multiple annotations found at this line:
        - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 
         'jaxws:endpoint'.
        - 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>.
    Mentre al tag <cxf:bus> mi da il seguente errore sempre in fase di compliazione:
    codice:
    Multiple annotations found at this line:
        - schema_reference.4: Failed to read schema document 'http://cxf.apache.org/schemas/core.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>.
        - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'cxf:bus'.
    Grazie per qualsiasi aiuto.

  2. #2
    Utente di HTML.it L'avatar di bstefano79
    Registrato dal
    Feb 2004
    Messaggi
    2,520
    hai provato a vedere se raggiungi http://cxf.apache.org/schemas/core.xsd da un browser? Sei sotto un proxy?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.