• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 22650
126
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.
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic