This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes class attribute invalid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "class attribute invalid" Watch "class attribute invalid" New topic

class attribute invalid

Sebastiaan Kortleven
Ranch Hand

Joined: Mar 12, 2004
Posts: 81
Hi all,

I'm about to go bananas. I'm trying to write a simple JSP with a bean and I keep getting this error (I'm using Tomcat 5.5.17):

This is my bean:

And this is the interesting part of my JSP page

The path the .class file is in is $CATALINA_HOME\webapps\ROOT\am\WEB-INF\classes\be\ictservices\aansluitingsmodule\dto

What am I doing wrong?

Ben Souther

Joined: Dec 11, 2004
Posts: 13410


Move your "am" directory from the ROOT directory to the webapps directory.
All of your webapps should be directly under the webapps directory.
The ROOT folder is a webapp. It is the root webapp that ships with Tomcat.
Webapps can't be nested inside one another.
[ October 04, 2006: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Sebastiaan Kortleven
Ranch Hand

Joined: Mar 12, 2004
Posts: 81
/me bangs head on desk...

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: class attribute invalid
Similar Threads
Pro Spring Integration: Failed to find MBeans Instance
To the author: What to do on refactoring
advice on persistence
Column 'NEXT_HI' is either not in any table in the FROM list or appears
Getting "object is not an instance of declaring class" exception. Please help.