Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
martin brow
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic