wood burning stoves 2.0*
The moose likes Servlets and the fly likes The value for the useBean class attribute user.userData is invalid. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "The value for the useBean class attribute user.userData is invalid." Watch "The value for the useBean class attribute user.userData is invalid." New topic
Author

The value for the useBean class attribute user.userData is invalid.

martin brow
Greenhorn

Joined: Dec 13, 2011
Posts: 3
Hello,

I am running into a problem, I can't acces my .class files in Tomcat 7. Here is the code:

index.jsp:


NextPage.jsp:


SaveName.jsp:

web.xml:

My directory structure is as follows:
jsp_test/WebContent: index.jsp, NextPage.jsp, SaveName.jsp
jsp_test/WebContent/WEB-INF: web.xml
jsp_test/WebContent/WEB-INF/classes/user/userData.class

But Tomcat gives the following error once I have submitted data in index.jsp:


I have tried searching on the internet, but I cannot find any solution... How can I solve this error? Any help would be greatly appreciated!

Hadez

Tomcat 7.0.23
Fedora 16
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

Welcome to the Ranch!

Shouldn't class userData a) be renamed to UserData, and b) implement Serializable?

Also,
martin brow wrote:

Class user.userData is not a servlet, and should not be setup like one.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The value for the useBean class attribute user.userData is invalid.
 
Similar Threads
custom tag SetProperty: Mandatory attribute property missing
Tomcat and Bean placement
use of value object ( javabeans )
java bean , jsp page and parameters
Where to put bean class in Tomcat?