aspose file tools*
The moose likes Struts and the fly likes CodebehindUnknownHandler problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "CodebehindUnknownHandler problem" Watch "CodebehindUnknownHandler problem" New topic
Author

CodebehindUnknownHandler problem

Mick Smith
Greenhorn

Joined: Dec 10, 2009
Posts: 14
Hi

I have this big problem. When I start my application in Eclipse IDE, it starts fine and I can use my action classes with no problems.
When I export my war file into my Tomcat Server, I start the application(again fine and no problem). However, I get this error

org.apache.struts2.codebehind.CodebehindUnknownHandler - Trying to locate result with extension .jsp in directory /generic/

Anyone know why this is happening? My application used to work in the tomcat server but now its not working. I havent changed classpath or anything to do with struts.

Is it possible something to do with struts.xml and namespaces?

your help is appreciated and urgent.

thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

*Something* changed.

Codebehind is deprecated, by the way.
Mick Smith
Greenhorn

Joined: Dec 10, 2009
Posts: 14
Basically the actions fire properly when I am in Eclipse. As soon as I run my app in Tomcatserver, the actions are not picked up and subsequently not fired and I get this codebehindUnknownhandler issue.

I have a struts.xml which references other .xml files (these are my different sections in the application i.e: namespaces).

What could cause tomcat not picking up these actions in the other xml files and only picks up the ones in struts.xml?/

thanks for any assistance as this thing is really killing me
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'd guess (and it's just a guess, since there's essentially zero information to work with) that something isn't being deployed. But impossible to say.
Mick Smith
Greenhorn

Joined: Dec 10, 2009
Posts: 14
My problem seems to have dissapeared!.. I rebuilt several times and all of a sudden I am not getting this anymore.
 
 
subject: CodebehindUnknownHandler problem