This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes Error in FilterStart Struts 2 web app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error in FilterStart Struts 2 web app" Watch "Error in FilterStart Struts 2 web app" New topic
Author

Error in FilterStart Struts 2 web app

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9396
    
    2

Guys,

I have some problem with my Struts / Spring application. Below is the error that I see on my Tomcat console during startup:



This is my web.xml;



So, help needed to get this resolved.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9396
    
    2

Seems to me like the Web application context start has spit some errors. But what exactly is the stack trace?? Where can I dind that? How to change the Tomcat logs to show more stack trace??
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9396
    
    2

Here is yet another stack trace after changing the log levels of tomcat:

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9396
    
    2

Failed to include the tiles-default in the base struts.xml config file. Just included it and it worked.

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Note that tiles-default already extends struts-default.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9396
    
    2

But how come the context error vanished after extending the tiles-default???
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You didn't post the S2 config that's causing the error, but so far I'd guess because you're trying to use tiles results.
 
GeeCON Prague 2014
 
subject: Error in FilterStart Struts 2 web app