Sunday 15 February 2015

eclipse - SpringSource Tool Suite can't find Spring schema files -


I do not know whether this is a problem with STS / Eclipse or my project setup but about STS My Spring Schema Is complaining.

  Several comments have been found in this line: - cvc-complex-type.2.4.c: Match Wildcard is strict, but no declaration can be found for the element 'jee: jndi- Look '. - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/jee/spring-jee.xsd' because 1) the document could not be found; 2) The document could not be read; 3) The basic element of the document & lt; Xsd: schema & gt; is not. Several comments were found in this line: - schema_reference.4: failed to read the schema document 'http://www.springframework.org/schema/tx/spring-tx.xsd' because 1) the document could not be found; 2) The document could not be read; 3) The basic element of the document & lt; Xsd: schema & gt; is not. - cvc-complex-type.2.4.c: Match wildcard is strict, but no declaration can be found for the element 'tx: advice' There are several comments on this line: - CVC-Complex-Type.2.4.c c: Mailing Wildcard is strict, but no declaration can be found for element 'aop: config' - schema_reference.4: reading schema document 'http://www.springframework.org/schema/aop/spring-aop.xsd' Failed because 1) the document could not be found; 2) The document could not be read; 3) The basic element of the document & lt; Xsd: schema & gt; is not.   

Here's my app config:

   & Lt ;! - Other things in which there is no problem - & gt; & Lt; Tx: Advice ID = "transactionAdvice" transaction-manager = "transactionManager" & gt; & Lt; Tx: blames the account & gt; & Lt ;! - All methods starting with 'received' are read only - & gt; & Lt; Tx: Method Name = "get *" read-only = "true" /> & Lt ;! - Other methods Use default transaction settings (see below) - & gt; & Lt; Tx: method name = "*" /> & Lt; / Tx: Explains responsible & gt; & Lt; / Tx: Advice & gt; & Lt; Aop: config & gt; & Lt; Aop: pointcut expression = "execution (* com.example.service. *. (..))" id = "servicesPointcut" /> & Lt; Aop: Consultant Advice - ref = "transactionAdvice" pointcut-ref = "servicesPointcut" /> & Lt; / Aop: config & gt; & Lt; / Bean & gt;    spring-batch-core -2.1.9 RELEASE.jar spring-batch-infrastructure-2.1.1.9 RELEASE.jar spring-batch test -2.1.9. RELEASE.jar spring- Beans-3.1.4. RELEASE .jar spring-reference -3.1.4. RELEASE.jar spring-reference-support -3.1.4. RELEASE.jar spring-core -3.1.4. RELEASE.jar spring-data-commons- 1.5.1.RELEASE.jar spring-data-jpa-1.3.1.RELEASE.jar spring-expression -3.1.4. RELEASE.jar spring-jdbc -3.1.4. RELEASE.jar spring-or -3.1.4. RELEASE.jar spring-osm-3.1.4.RELEASE.jar spring-test -3.1.4. RELEASE.jar spring-tx-3..1.4. RELEASE.jar   

My Project Room Looking in, i Spring-Reference -3.1.4. RELEASE.jar / META-INF / Spring. Schemas containing the line http: //www.springframework.org/schema/jee/spring-jee .xsd = org / springframework / EJB / config / spring-jEi3.1.xsd . For AOP tags, the same file on my classpath is in the Vasant-AOP-3.1.1. RELEASE.jar .

Anyone have any suggestions for getting rid of this error?

You have your classpath in Spring-Tx-3.1.1. RELEASE.jar and Spring.xm Are you referring perhaps the XSD announcements you are using are outdated? (I.e. Use :)

No comments:

Post a Comment