java - Failed to read schema document Schema Cloudfoundry -
i'm developing app java , spring , i'm trying upload appfog.
the application working , it's working in appfog, in eclipse i'm getting annoying error in applicationcontext.xml
file.
according documentation in appfog have set this: spring - appfog documentation
snippet of applicationcontext.xml
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:cloud="http://schema.cloudfoundry.org/spring" xsi:schemalocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd http://schema.cloudfoundry.org/spring http://schema.cloudfoundry.org/spring/cloudfoundry-spring.xsd"> <cloud:data-source id="datasource">
in tag cloud:data source
i'm getting error:
multiple annotations found @ line: - schema_reference.4: failed read schema document 'http://schema.cloudfoundry.org/spring/cloudfoundry-spring.xsd', because 1) not find document; 2) document not read; 3) root element of document not <xsd:schema>. - cvc-complex-type.2.4.c: matching wildcard strict, no declaration can found element 'cloud:data-source'.
i've tried http://schema.cloudfoundry.org/spring/cloudfoundry-spring-0.8.xsd
, different versions i'm getting same error.
i have included in pom next library too:
<dependency> <groupid>org.cloudfoundry</groupid> <artifactid>cloudfoundry-runtime</artifactid> <version>0.8.1</version> </dependency>
some ideas?
thanks!
so looks app working locally , on appfog, issue validation error in eclipse. using spring tool suite plugin? should happen here schema should found within spring jar file (the source on github https://github.com/cloudfoundry/vcap-java/blob/master/cloudfoundry-runtime/src/main/resources/meta-inf/spring.schemas) - guess there should way of telling eclipse resolve there, , suspect sts know how resolve it.
Comments
Post a Comment