Seem like you are mapping all files in your webapp to the login servlet (<url-pattern>/*</url-pattern> ). I don't think that's what you want.
Probably something like <url-pattern>/servlet/*</url-pattern> is more like it. James -- web dev jobs at http://www.freelancedeveloper.org --- Sandra Patricia Hunter <[EMAIL PROTECTED]> wrote: > I built my jsp files and they ran just fine. > Then I created a servlet that runs just fine as > well. > But when I try to now run my jsp Tomcat continues to > refer to files that are > only relevant for the servlet. > Even plain html pages don't run correctly. Servlets > still run fine. > Please help! > > Work folder is empty. > > Error message when running jsp or html: > javax.servlet.ServletException: Error allocating a > servlet instance > java.lang.NoClassDefFoundError: > idcard/PasswordBuilder (wrong name: > PasswordBuilder) > This refers to files relevant to servlet. > > File structure: > C:\Tomcat\webapps\idcard\WEB-INF\classes\idcard (I > put the jsp in first > idcard file, servlet in second, tried moving jsp to > second: no success) > > Web.xml snippet: > <servlet> > <servlet-name>IDLogin</servlet-name> > <description> > this is the login page for the servlet > </description> > <servlet-class>idcard.IDLogin</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>IDLogin</servlet-name> > <url-pattern>/*</url-pattern> > </servlet-mapping> > > Server.xml context path: > <Context path="/idcard" docBase="idcard" debug="0" > reloadable="true"/> > > Path: > CATALINA_HOME = C:\Tomcat > CLASSPATH = C:\j2sdkee1.3.1\lib\j2ee.jar; > C:\j2sdk1.4.0_03\bin;C:\Tomcat\webapps\idcard\WEB-INF\classes;%path% > > JAVA_HOME = C:\j2sdk1.4.0-03 > > I am using Tomcat 4.0.1 > > Sandra Patricia Hunter > Systems Development and Web Design > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
