【发布时间】:2014-06-05 21:00:02
【问题描述】:
我有一个简单的 Web 应用程序,它在 Apache Tomcat 8.0 中部署和运行良好。一旦我添加了 spring-data-jpa 依赖项,它就会失败。到目前为止,代码没有任何变化。
<spring.version>3.2.2.RELEASE</spring.version>
<spring.data.jpa.version>1.6.0.RELEASE</spring.data.jpa.version>
<!-- SPRING -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>${spring.data.jpa.version}</version>
</dependency>
这是输出:
NetBeans: Deploying on Apache Tomcat or TomEE
profile mode: false
debug mode: false
force redeploy: true
Undeploying ...
undeploy?path=/student-exchange
OK - Undeployed application at context path /student-exchange
In-place deployment at /Users/Vincent/NetBeansProjects/student-exchange/target/StudentsApplication
Deployment is in progress...
deploy?config=file%3A%2Fvar%2Ffolders%2Fzg%2Fb2w5j60d2x7cy12hxn998r480000gs%2FT%2Fcontext8080124463540341991.xml&path=/student-exchange
FAIL - Deployed application at context path /student-exchange but context failed to start
我无法找出原因。是否还有 Netbeans 未显示的更多细节?
【问题讨论】:
-
如果你在 Netbeans 之外部署,它可以工作吗?
标签: java spring hibernate spring-mvc jpa