aspose file tools*
The moose likes Struts and the fly likes The requested resource () is not available. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "The requested resource () is not available." Watch "The requested resource () is not available." New topic
Author

The requested resource () is not available.

Vazzdoin Rocko
Ranch Hand

Joined: Feb 24, 2010
Posts: 40
Hi. I am new to the Struts2.I am practicing on a sample project from webpage. But when i try to run this project the web page shows
The requested resource () is not available.

And The printStack shows :
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:269)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Dec 15, 2010 3:15:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Dec 15, 2010 3:15:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/Struts2Login] startup failed due to previous errors
1) struts2-core-2.1.2
2 ) xwork-2.1.1
3 ) freemarker-2.3.12
4 ) ognl-2.6.11
5 ) commons-collections-3.2
6 ) commons-logging-1.1
.
Please suggest me some solution as i've been running from pillar to post to solve this problem.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268

I think this problem is realted with the validation side since it is showing some filter file missing...


No Kaustubh No Fun, Know Kaustubh Know Fun..
Vazzdoin Rocko
Ranch Hand

Joined: Feb 24, 2010
Posts: 40
So What should i do to overcome this problem, please prescribe in detail as i told you i am newby to struts2. thanks
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268

From my knowledge I think there's some problem with your web.xml file or the file in wich you mentioned the path of this files..It is not getting the correct path for the file...But I am not sure about this..probably someone who knows better can answer perfectly..for now just check your web.xml file...

Best Of Luck
Vazzdoin Rocko
Ranch Hand

Joined: Feb 24, 2010
Posts: 40
Here is my web.xml file,Rest of the info is available in the begining of the post. If anyone knows where's the glitch,kindly reply me with your observations and hopefully resolution .


Thanks.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

It looks like struts jars are not getting deployed with your application properly. How are you running the application and in which servlet container (like tomcat)??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The requested resource () is not available.
 
Similar Threads
Tomcat error while running JForum integrated project
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
Struts2JQuery plugin problem
Spring MVC troubleshoot
SEVERE: Dispatcher initialization failed