This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "class attribute invalid" Watch "class attribute invalid" New topic
Author

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?

Thanks!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

$CATALINA_HOME\webapps\ROOT\am\WEB-INF\classes\be\ictservices\aansluitingsmodule\dto

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...

thanks!!!
 
Consider Paul's rocket mass heater.
 
subject: class attribute invalid