при развертывании войны в TomCat у меня появляется эта ошибка:
14 сентября 2010 11:48:07
org.apache.catalina.core.StandardContext
filterStart GRAVE: исключение au
Démarrage Du Filterre Struts2 Невозможно
загрузить bean: type:
Класс: com.opensymphony.xwork2.ObjectFactory
- bean - jar: file: / C: /Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/tuto-hello/WEB-INF/lib/struts2-core-2.2.1.jar! / struts- default.xml: 29: 72
в
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register (XmlConfigurationProvider.java:208)
в
org.apache.struts2.config.StrutsXmlConfigurationProvider.register (StrutsXmlConfigurationProvider.java:101)
в
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload (DefaultConfiguration.java:131)
в
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (ConfigurationManager.java:52)
в
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (Dispatcher.java:395)
в
org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:452)
в
org.apache.struts2.dispatcher.FilterDispatcher.init (FilterDispatcher.java:201)
в
org.apache.catalina.core.ApplicationFilterConfig.getFilter (ApplicationFilterConfig.java:295)
в
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (ApplicationFilterConfig.java:422)
в
org.apache.catalina.core.ApplicationFilterConfig. (ApplicationFilterConfig.java:115)
в
org.apache.catalina.core.StandardContext.filterStart (StandardContext.java:4001)
в
org.apache.catalina.core.StandardContext.start (StandardContext.java:4651)
в
org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java:791)
в
org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:771)
в
org.apache.catalina.core.StandardHost.addChild (StandardHost.java:546)
в
org.apache.catalina.startup.HostConfig.deployWAR (HostConfig.java:905)
в
org.apache.catalina.startup.HostConfig.deployWARs (HostConfig.java:740)
в
org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:500)
в
org.apache.catalina.startup.HostConfig.start (HostConfig.java:1277)
в
org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:321)
в
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119)
в
org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1053)
в
org.apache.catalina.core.StandardHost.start (StandardHost.java:785)
в
org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1045)
в
org.apache.catalina.core.StandardEngine.start (StandardEngine.java:445)
в
org.apache.catalina.core.StandardService.start (StandardService.java:519)
в
org.apache.catalina.core.StandardServer.start (StandardServer.java:710)
в
org.apache.catalina.startup.Catalina.start (Catalina.java:581)
в
sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
Метод) в
sun.reflect.NativeMethodAccessorImpl.invoke (Неизвестно
Источник) в
sun.reflect.DelegatingMethodAccessorImpl.invoke (Неизвестно
Источник) в
java.lang.reflect.Method.invoke (Неизвестно
Источник) в
org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:289)
в
org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:414)
Вызвано: классом бина
com.opensymphony.xwork2.ObjectFactory
с именем xwork уже был
загружен бобом -
баночка: Файл: / C: /Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/tuto-hello/WEB-INF/lib/struts2-core-2.0.11.2.jar /struts-default.xml : 30: 72 - bean - jar: file: / C: /Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/tuto-hello/WEB-INF/lib/struts2-core-2.2.1.jar ! /struts-default.xml: 29: 72
в
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register (XmlConfigurationProvider.java:193)
... еще 33 14 сентября 2010 11:48:08org.apache.catalina.core.ApplicationContext log ИНФО: ContextListener: contextInitialized () 14 сентября.2010 11:48:08 org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized ()
POM.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.test</groupId>
<artifactId>monTest</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>monTest Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.13</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.3.2.GA</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>default-tools.jar</id>
<activation>
<property>
<name>java.vendor</name>
<value>Sun Microsystems Inc.</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.4.2</version>
<scope>system</scope>
<systemPath>C:\Program Files\Java\jdk1.6.0_21\lib\tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<finalName>monTest</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<update>true</update>
<url>http://127.0.0.1:8080/manager/html</url>
<username>root</username>
<password>root</password>
</configuration>
</plugin>
</plugins>
</build>
</project>