- Eclipse Indigo.
- M2Eclipse плагин.
- Tomcat 7.
- Весна рамки.
Попытка использования опции «Развертывание развертывания», так что зависимости Maven моего проекта Eclipse автоматически добавляются в Tomcat.Развертывание сборки в Eclipse
Это часть моего файла pom.xml:
...
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.1.9.Final</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.2.1.RELEASE</version>
</dependency>
</dependencies>
...
я Свойства проекта -> Сборка Deployment -> Добавить -> Java Build Path Записи -> Maven зависимости.
Когда я пытаюсь добавить свой проект на сервер Tomcat в Eclipse, я получаю:
Как вы можете видеть, только пружинный веб-зависимость добавляется к моему проекта, и поэтому я получаю следующую ошибку развертывания.
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
Любые идеи?