This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where do we find the server log in struts

 
Gunj Agarwal
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Iam caught up with the error "Cannot find ActionMappings or ActionFormBeans collection"...I have tried all the solutions provided in the post message here...can anyone help me out..also pls can u tell me whr to find the log of the error
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error is generally caused when the Struts ActionForm was not initialized properly before you try to display a JSP.

First, check to see that you have the following in your web.xml file:



Note the <load-on-startup> tag. It's essential.

If your web.xml file looks ok, then the Struts ActionServlet may not be initializing due to XML errors in your struts-config.xml file. Check your application server's log file for errors when the application is first starting up.

Struts errors are generally sent to the application server's SystemOut.log and SystemError.log files. The location of these files differs by application server. Check your application server documentation on where to find these files.

[ January 29, 2006: Message edited by: Merrill Higginson ]
[ January 29, 2006: Message edited by: Merrill Higginson ]
 
Gunj Agarwal
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have included <load-on-startup> n im using weblogic,but unable to find where the logs are being written...
how do i chk whether my form is getting initialized???
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not that familiar with WebLogic. Check the WebLogic documentation for the location of the log files.

Here's a link I got just by Googling "WebLogic Log files"

http://e-docs.bea.com/wls/docs90/logging/logging_services.html#1174360

Look for a stack trace that references the ActionServlet.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic