aspose file tools*
The moose likes Struts and the fly likes SEVERE: Exception starting filter struts2 Unable to load configuration. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "SEVERE: Exception starting filter struts2 Unable to load configuration. " Watch "SEVERE: Exception starting filter struts2 Unable to load configuration. " New topic
Author

SEVERE: Exception starting filter struts2 Unable to load configuration.

vikas byn
Ranch Hand

Joined: Mar 18, 2011
Posts: 80
I have an application in struts2 that is configured in eclipse and it is running fine. this application library set as classpath
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="lib" path="E:/tomcat-6/lib/juiceup-libs/mysql-connector-java-5.0.8.jar"/>
<classpathentry kind="lib" path="E:/tomcat-6/lib/juiceup-libs/struts2-core-2.1.6.jar"/>
<classpathentry kind="lib" path="E:/tomcat-6/lib/juiceup-libs/commons-beanutils-1.8.0.jar"/>
<classpathentry kind="lib" path="E:/tomcat-6/lib/juiceup-libs/commons-codec-1.3.jar"/>
...
...
...
</classpath>

-----------------------------

Now i want to deploy that application with different name, So i create new web application and put that jars into lib directory of application.

Now I see that exception on eclipse console..

SEVERE: Exception starting filter struts2
Unable to load configuration. - bean - somepath/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72

I am stuck with this problem, please suggest me how to resolve this issue.


Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

probably problem with jar files make sure that you have included all the necessary jar files.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
sarath j nair
Greenhorn

Joined: Nov 10, 2011
Posts: 11

Seems that there is a conflict between 2 jars in your application and due to which Struts2 is unable to start is filter. looking at the log shows that you have 2 struts2-core jars in your class-path

struts2-core-2.2.3.1.jar
struts2-core-2.1.8.1.jar


remove all struts jar file and place only one jar and run it

Check your application class path for the same jar with multiple versions.


[Thumbnail for Untitled.jpg]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SEVERE: Exception starting filter struts2 Unable to load configuration.