• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is this action not being recognised.  RSS feed

 
O. Ziggy
Ranch Hand
Posts: 430
Android Debian VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following action definition



Its an action that is access from the following form



When i submit the form i get the following error.



I checked everything, the location of the Servlet, the paths, spellings and just cant figure out what is wrong. Any ideas?

[ October 26, 2007: Message edited by: O. Ziggy ]
[ October 26, 2007: Message edited by: O. Ziggy ]
 
amit punekar
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
From the exception stack it seems to me that the class "com.xxx.ccsuk.presentation.events.tasks.UpdateCustomerAmendmentStatusAction" is not available in the classpath.
It has to be present in WEB-INF\classes or WEB-INF\lib (inside JAR) so that webapp can load it.
Regards,
Amit
 
O. Ziggy
Ranch Hand
Posts: 430
Android Debian VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, The file is compiled and is in Web-INF\classes in the correct subdirectory. Im struggling to figuring out what the problem because everything seem to be correct.

Thanks
 
amit punekar
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Originally posted by O. Ziggy:
Hi, The file is compiled and is in Web-INF\classes in the correct subdirectory.


Can you please check the if the directory name is "WEB-INF" in case sensitivity ? It can be the problem. Because in your post you have mentioned the name as "Web-INF".

regards,
amit
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are other actions in your application working? If so I would look closely at the spelling and case of your class and package name and make sure they match exactly what is specified in your java file.

- Brent
 
Jayant Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<forward name="success" path="/main/viewCustomerAmendments"/>
Try adding .do at the end

<forward name="success" path="/main/viewCustomerAmendments.do"/>

It appears that there is some problem with either your package naming of class naming. Double check your class names. Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!