• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic