File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Problem configuring the struts in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem configuring the struts in Eclipse " Watch "Problem configuring the struts in Eclipse " New topic

Problem configuring the struts in Eclipse

Deep Mukherjee

Joined: Jan 04, 2010
Posts: 20
Hi ,

I am trying to configure struts in Eclipse using tomcat 7. I have used following jar files .


Kept all files in the lib folder of the Server .While starting the server getting this exception .

Dec 19, 2011 3:42:21 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts
java.lang.ClassCastException: $Proxy0 cannot be cast to java.lang.annotation.Annotation
at sun.reflect.annotation.AnnotationParser.annotationForMap(
at sun.reflect.annotation.AnnotationParser.parseAnnotation(
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(
at sun.reflect.annotation.AnnotationParser.parseAnnotations(
at java.lang.reflect.Method.declaredAnnotations(
at java.lang.reflect.Method.getAnnotation(
at java.lang.reflect.AccessibleObject.isAnnotationPresent(
at org.apache.catalina.core.DefaultInstanceManager.populateAnnotationsCache(
at org.apache.catalina.core.DefaultInstanceManager.newInstance(
at org.apache.catalina.core.DefaultInstanceManager.newInstance(
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
at org.apache.catalina.core.ApplicationFilterConfig.<init>(
at org.apache.catalina.core.StandardContext.filterStart(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase$
at org.apache.catalina.core.ContainerBase$
at java.util.concurrent.FutureTask$Sync.innerRun(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$
Dec 19, 2011 3:42:21 PM org.apache.catalina.core.StandardContext startInternal

Can any one help?

Reagards ,

Deep Mukherjee

Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

Apart from having all jars, you need to make a manual filter entry in your web.xml

Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

FilterDispatcher is obsolete use StrutsPrepareAndExectueFilter.

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.
I agree. Here's the link:
subject: Problem configuring the struts in Eclipse
It's not a secret anymore!