• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CodebehindUnknownHandler problem

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*Something* changed.

Codebehind is deprecated, by the way.
 
Mick Smith
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My problem seems to have dissapeared!.. I rebuilt several times and all of a sudden I am not getting this anymore.
 
reply
    Bookmark Topic Watch Topic
  • New Topic