LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2004, 11:10 PM   #1
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Rep: Reputation: 31
No action instance for path XXX could be created STRUTS


Hello:

I have a little web application under Tomcat + Struts + J2EE and I just can't seem to find out what's wrong:

I have this action mapping:

Code:
 <action-mappings>
      <action path="/teacher/setSchedule" 
type="crimson.ccss.teacher.action.SetScheduleAction" scope="request" 
name="setScheduleForm" validate="false" input="/teacher/setSchedule.jsp">
         <forward name="Success" path="/ok.html" />
      </action>
 </action-mappings>
 <form-beans>
      <form-bean name="setScheduleForm" 
type="crimson.ccss.teacher.form.SetScheduleForm" />
 </form-beans>
and my /teacher/setSchedule.jsp:

Code:
<html:form action="teacher/setSchedule">
 // STUFF IN A FORM
</html:form>
I know the bean ActionForm is correctly written because it does't complain about bean not found of bad setter and getter methods.

I click on submit (to send the form) and I get:


Code:
type Status report

message No action instance for path /teacher/setSchedule could be created


description The server encountered an internal error (No action instance for 
path /teacher/setSchedule could be created) that prevented it from fulfilling 
this request.
I've checked the action class, that is as follows:

Code:
package crimson.ccss.teacher.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;

import crimson.ccss.common.IConstants;

public class SetScheduleAction extends Action
{
	public ActionForward execute( 	 ActionMapping mapping,
		                                 ActionForm form,
		                                 HttpServletRequest request,
		                                 HttpServletResponse response)
	    																throws Exception
    {
		return mapping.findForward(IConstants.SUCCESS_KEY );
	}// execute

}// set Schedule Action
It does extend from Action, it does have execute() and all.... also I believe the package it's in is correct.... but I have that tomcat error...

please any ideas? thanks a lot


Poeta

Last edited by poeta_boy; 11-16-2004 at 11:11 PM.
 
Old 11-18-2004, 03:41 PM   #2
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
I've solved it.... after going blind I desperately erased all .class and recompiled it all over again.... working now

Thanks!
 
Old 06-23-2011, 08:03 PM   #3
angelblond
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Thanks!!

Man YOU'RE THE ONE!!! I spent HOURS trying to find the solve to that, and I realized I changed the name of the XXXAction.java and in the compiled .class the old name was already registered. After recompiling everything goes right. Thanks A LOT!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
Problem getting connection with a DLink Router with IP 10.xxx.xxx.xxx kezira Fedora 9 11-28-2005 10:31 PM
Problem getting connection with a DLink Router after setting static IP 10.xxx.xxx.xxx kezira Linux - Networking 1 11-09-2005 10:27 PM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM
# ping -b xxx.xxx.xxx.255 porous Linux - Networking 2 10-13-2003 12:34 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration