2013-07-22 1 views
0

Java 및 Spring으로 응용 프로그램을 개발 중이며이를 AppFog에 업로드하려고합니다.스키마 문서를 읽지 못했습니다. 스키마 Cloudfoundry

응용 프로그램이 제대로 작동하고 AppFog에서 작동하지만 Eclipse에서 내 applicationContext.xml 파일에서 매우 성가신 오류가 발생합니다.

AppFog의 문서에 따르면이 같은 그것을 설정해야합니다 : Spring - AppFog Documentation

발췌문 태그 cloud:data source I 오류를 받고 있어요에서 내 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"> 

의 : 내가 http://schema.cloudfoundry.org/spring/cloudfoundry-spring-0.8.xsd 다른과 시도했습니다

Multiple annotations found at this line: 
- schema_reference.4: Failed to read schema document 'http://schema.cloudfoundry.org/spring/cloudfoundry-spring.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 'cloud:data-source'. 

를했습니다 그러나 나는 항상 같은 오류를 겪고있다.

<dependency> 
    <groupId>org.cloudfoundry</groupId> 
    <artifactId>cloudfoundry-runtime</artifactId> 
    <version>0.8.1</version> 
</dependency> 

몇 가지 아이디어 :

나는 다음 라이브러리도 내 치어에 포함되어 있나요?

감사합니다.

답변

0

그래서 App이 로컬에서 AppFog에서 작동하는 것처럼 보입니다. 그러나 이클립스에서 문제가 유효성 검사 오류라고합니다. Spring Tool Suite 플러그인을 사용하고 있습니까? 여기서 실제로 일어나야 할 것은 스키마가 Spring Jar 파일 (소스가 Github https://github.com/cloudfoundry/vcap-java/blob/master/cloudfoundry-runtime/src/main/resources/META-INF/spring.schemas에 있음) 내에 있어야한다는 것입니다. Eclipse에서이 문제를 해결할 방법이 있어야한다고 생각합니다. STS가 실제로 그것을 해결하십시오.