Hi, You don't need to map movie DB. But what you should do is put both it and your JSP in packages as applicable: http://jakarta.apache.org/tomcat/faq/classnotfound.html.
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Vamsee Kanakala [mailto:[EMAIL PROTECTED] >Sent: Thursday, July 22, 2004 11:57 AM >To: [EMAIL PROTECTED] >Subject: class not found error > >Dear list users, > > I have a beginner's problem: I'm trying to get a small app which >retrieves a bunch of records from database (postgres) and prints them. I >set up the datasources, etc, correctly. I have the structure like this: > >CATALINA_HOME > | > -- webapps > | > -- movies > | > -- WEB-INF > | | > | | --classes > | | | > | | --MovieDB.class > | | -- web.xml > | > |-- users.jsp > > > From what I have read in the docs, this structure seems okay, but when >I try to access localhost/movies/users.jsp it gives me an error saying >that class MovieDB is not found. >I didn't give any mapping about MovieDB in web.xml because it's not a >servlet. Do I need to do it anyways? What am I doing wrong? Do I need to >declare about this in server.xml as a <Context> tag? > >TIA, >Vamsee. > >-- >Because joy is one's fuel - Ayn Rand > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
