aspose file tools
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 Storm Applied this week in the Other Open Source APIs 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...

I agree. Here's the link:
subject: class attribute invalid