my dog learned polymorphism*
The moose likes Struts and the fly likes SEVERE: No action instance for path /xxxx ould be created  java.lang.ClassCastExcepti Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "SEVERE: No action instance for path /xxxx ould be created  java.lang.ClassCastExcepti" Watch "SEVERE: No action instance for path /xxxx ould be created  java.lang.ClassCastExcepti" New topic
Author

SEVERE: No action instance for path /xxxx ould be created java.lang.ClassCastExcepti

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
Hi ia doing struts application i receive following error

SEVERE: No action instance for path /admregister could be created
java.lang.ClassCastException: com.sipl.siixt.ts.admin.AdminActionForm



here is my struts-config.xml



[/CODE]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

Amolpalekar,
When do you get the error? If it is when the struts file is loaded, check that you form class extends ActionForm. If it is when the action is executed, try printing out the stack trace to see where the exception is being thrown.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Milan Jagatiya
Ranch Hand

Joined: Jan 01, 2007
Posts: 164
hi,




[QB]


"AdminActionForm" is action class or actionform ??? ...
I think you are passing actionform in actions type attribute. you should pass action class there.

milan.


Milan.<br />I can because I think I can...
 
Consider Paul's rocket mass heater.
 
subject: SEVERE: No action instance for path /xxxx ould be created java.lang.ClassCastExcepti
 
Similar Threads
javax.servlet.jsp. JspException: Cannot find message resources under key
Struts: Getting a blank page instead of the form
ClassCastException in struts - urgent! :(
Struts IE render problem
Cannot retrieve mapping for action