File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SEVERE: Exception starting filter struts2 Unable to load configuration.

 
vikas byn
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
probably problem with jar files make sure that you have included all the necessary jar files.
 
sarath j nair
Greenhorn
Posts: 11
Chrome Eclipse IDE Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Untitled.jpg
[Thumbnail for Untitled.jpg]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic