Java 无法读取架构文档架构Cloudfoundry
我正在用Java和Spring开发一个应用程序,并试图将其上传到AppFog 应用程序工作正常,并且在AppFog中工作,但在Eclipse中,我在Java 无法读取架构文档架构Cloudfoundry,java,spring,maven,cloud-foundry,appfog,Java,Spring,Maven,Cloud Foundry,Appfog,我正在用Java和Spring开发一个应用程序,并试图将其上传到AppFog 应用程序工作正常,并且在AppFog中工作,但在Eclipse中,我在applicationContext.xml文件中遇到了一个非常恼人的错误 根据AppFog中的文档,我必须将其设置为: 我的applicationContext.xml的片段 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://ww
applicationContext.xml
文件中遇到了一个非常恼人的错误
根据AppFog中的文档,我必须将其设置为:
我的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
和不同的版本,但我总是遇到相同的错误
我的pom中也包含了下一个库:
<dependency>
<groupId>org.cloudfoundry</groupId>
<artifactId>cloudfoundry-runtime</artifactId>
<version>0.8.1</version>
</dependency>
org.cloudfoundry
cloudfoundry运行时
0.8.1
一些想法
谢谢 看起来您的应用程序正在本地和AppFog上运行,但正如您所说,问题是Eclipse中的验证错误。您正在使用Spring工具套件插件吗?这里实际应该发生的是,模式应该在springjar文件中找到(源代码在Github上)——我想应该有一种方法告诉Eclipse在那里解决它,我怀疑STS实际上知道如何解决它
<dependency>
<groupId>org.cloudfoundry</groupId>
<artifactId>cloudfoundry-runtime</artifactId>
<version>0.8.1</version>
</dependency>