【发布时间】:2015-06-25 23:56:53
【问题描述】:
我正在尝试将 Apache wink 1.4 与 JBoss EAP 6.4 上的 Spring 集成。下面是我的 Pom.xml 摘录。
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-server</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-spring-support</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-client</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-json4j</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.jboss.archetype.eap</groupId>
<artifactId>jboss-javaee6-webapp-archetype</artifactId>
<version>6.4.0.GA</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.1.6.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.1.6.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.1.6.RELEASE</version>
</dependency>
我在 web.xml 中也有配置来查找 winkdefault.properties。
在构建应用程序时,找不到“META-INF/wink-default.properties”,我在服务器日志中收到以下异常。
[org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 96) 上下文初始化失败:org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/wink -default1.properties];嵌套异常是 java.io.FileNotFoundException:类路径资源 [META-INF/wink-default.properties] 无法打开,因为它不存在
有人可以帮忙吗?
【问题讨论】:
-
我反编译了 wink-spring-support.jar 并使用以下类路径更改了上下文:META-INF/server/wink-core-context.xml 并且它能够注册。
标签: spring