1

我在 github 上的项目:https ://github.com/henryyan/kft-activiti-demo

一般不勾选“Serve modules without publishing”,项目就可以启动了。检查发生错误后(Tomcat6 没问题!!!):

引起:java.io.FileNotFoundException:/Users/henryyan/work/projects/activiti/kft-activiti-demo/src/main/webapp/WEB-INF/classes/applicationContext.xml(没有这样的文件或目录)

为什么要从“ src ”中找到文件“applicationContext.xml” ,它应该是目标/类。

完整日志:https ://gist.github.com/4407208

4

1 回答 1

0

我认为您需要在 maven-war-plugin 中将资源添加为 Web 资源:

<plugin>
   <artifactId>maven-war-plugin</artifactId>
   <version>2.1.1</version>
   <configuration>
      <webResources>
         <resource>                      
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
         </resource>
      </webResources>
   </configuration>
</plugin>
于 2012-12-29T21:03:43.977 回答