struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aur Gal <...@dovesolutions.com>
Subject RE: can't create action instance
Date Fri, 20 Oct 2000 16:07:12 GMT
did you include an actionClass attribute in your action.xml?

-----Original Message-----
From: Phil Windley [mailto:windley@imall.com]
Sent: Friday, October 20, 2000 11:05 AM
To: struts-user@jakarta.apache.org
Subject: Re: can't create action instance 



OK, I've checked all this until I'm slap happy and still can't see a
problem (I'm sure I'll kick myself when I see it).  

One clue I've seen is that upon loading, my application lists as loaded (in
a context), but on stopping Tomcat, its not listed in the stopped
contexts.  

Will I see more of an error message than the one listed below if there's a
run time error in the action class?

--phil--

On Fri, 13 Oct 2000 23:26:27 -0400 Robert Leland writes
+--------------------
| Welcome to the club ! :( I think I have found atleast 8
| different ways to mess up either the Form or Action Class names.
| 
| Make sure the case Upper/Lower of login.do or whatever
| you specified for your action class match.
| These are in your action.xml or struts-config.xml.
| Also make sure the full path/package is specified.
| Like org.freetocreate.seminar I believe this is at the top of the file.
| 
| Good Luck,
| 
| Rob
| 
| 
| 
| 
| Phil Windley wrote:
| > 
| > I'm working on my first struts application after having successfully
| > getting the struts-example to work (Tomcat 3.2 and the 9/26 build or
| > Struts).
| > 
| > Yesterday I had my first form/action/jsp working.  Today it doesn't
work.
| > The machine was rebooted, so something has changed, but I'll be darned
if I
| > know what.  The JSP runs and the form bean is successfully created.  The
| > form bean also runs (its validating correctly), but if the input is
correct
| > (and thus makes it past the form bean validation), I get
| > 
| > 2000-10-13 03:41:12 - Ctx( /seminar ): 500 R( /seminar + /logon.do +
null)
| > No action instance for path /logon could be created
| > 
| > Inside the servlet.log file (Tomcat), I see:
| > 
| > 2000-10-13 03:41:12 - path="/seminar" :action: Processing a POST for
/logon
| > 2000-10-13 03:41:12 - path="/seminar" :action:  Looking for ActionForm
bean
| > under attribute 'logonForm'
| > 2000-10-13 03:41:12 - path="/seminar" :action:  Populating bean
properties
| > from this request
| > 2000-10-13 03:41:12 - path="/seminar" :action:  Validating bean
properties
| > 2000-10-13 03:41:12 - path="/seminar" :action: Could not create an
| > ActionInstance for '/logon'
| > 
| > The action instace is correctly referenced in the action map, and exists
in
| > the same directory as the form bean (so its on the path).
| > 
| > Questions:
| > 
| > 1.) is there somewhere to see more detailed error messages
| > 
| > 2.) anyone happen to know what my problem is?
| > 
| > Thanks.
| > 
| > --phil--
| 
| -- 
| Robert Leland			Robert@freetocreate.org
| 804 N. Kenmore Street		+01-703-525-3580
| Arlington VA 22201
| 

Mime
View raw message