permaculture playing cards*
The moose likes Struts and the fly likes where do we find the server log in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "where do we find the server log in struts" Watch "where do we find the server log in struts" New topic
Author

where do we find the server log in struts

Gunj Agarwal
Greenhorn

Joined: Jan 29, 2006
Posts: 16
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

Joined: Feb 15, 2005
Posts: 4864
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 ]

Merrill
Consultant, Sima Solutions
Gunj Agarwal
Greenhorn

Joined: Jan 29, 2006
Posts: 16
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

Joined: Feb 15, 2005
Posts: 4864
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where do we find the server log in struts