aspose file tools*
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 Spring in Action 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
Author

Problem configuring the struts in Eclipse

Deep Mukherjee
Greenhorn

Joined: Jan 04, 2010
Posts: 20
Hi ,

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

commons-fileupload-1.1.1
commons-io-1.2
commons-logging-1.0.3
commons-logging-api-5.5.23
freemarker-1.5.3
javassist-3.7.ga
ognl-2.1.4
struts2-core-2.0.11.1
xwork-2.0-beta-3-j4
xwork-core-2.1.6
testng-5.5-jdk14
backport-util-concurrent-2.2

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(AnnotationParser.java:239)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:229)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
at java.lang.reflect.Method.declaredAnnotations(Method.java:695)
at java.lang.reflect.Method.getAnnotation(Method.java:679)
at java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:168)
at org.apache.catalina.core.DefaultInstanceManager.populateAnnotationsCache(DefaultInstanceManager.java:347)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:125)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:256)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4624)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5281)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
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: http://aspose.com/file-tools
 
subject: Problem configuring the struts in Eclipse