File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Debugging Struts. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Debugging Struts." Watch "Debugging Struts." New topic
Author

Debugging Struts.

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hi Everyone,

I was looking into an issue with my application, one of my filters was not working, which was rendering the 500.jsp with no logs. So to turn on debugging, I added the devMode to true in one of the struts, but after that my who application stopped working. By stopped working i mean that, the struts forwards are not working anymore. Could you please let me know if there are any additional config that I need to do?



My application is a mix for struts 1.1 and struts 2.0, by the way.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

So, what it's doing when it should forward and put the logger level in debug mode and identify the problem.


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.
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Rather than going to the details.. I must first start by saying, that the main issue is with the servlet context.

/xxx/xxx/URL works and eventually forwards to /xxx/URL.

Directly hitting the /xxx/URL does not.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

I think it's problem with namespace, you have to specify the same space. If my consideration is correct you should get action not found error. NameSpace Configuration.
 
jQuery in Action, 2nd edition
 
subject: Debugging Struts.