Hi everyone,
I am a new Struts2 user and I am trying to develop a little project. I am using
Struts 2.5.2,
java 1.7.0_79,
Tomcat 7.0.67 and I am using Eclipse (Neon) like
IDE.
After I added the libreries in my pom.xml
<dependencies>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-convention-plugin</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>ognl</groupId>
<artifactId>ognl</artifactId>
<version>3.1.10</version>
</dependency>
<dependency>
<groupId>com.opensymphony</groupId>
<artifactId>xwork</artifactId>
<version>2.1.2</version>
</dependency>
</dependencies>
and configured my web.xml
<web-app id="GameRoom" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
I am reciving this error from the server
I haven't written any Action yet, but i created a simple hello.jsp and I'd aspect to see this page instead the error.
The exception reports "Unable to load configuration." so I thought to add a struts.xml, so I did
but I am still having the same problem.
I really can't understand what sort of configuration I am not able to load.
I am looking forward to hearing from you to receive some suggestions.
Best Regards
Nicola