Re: jsp and classpath

From: Yamin (absdfsd_at_sdfdasfsd.com)
Date: 04/14/04


Date: Wed, 14 Apr 2004 13:49:12 -0400


"Dmytro Sheyko" <dshe@isd.dp.ua> wrote in message
news:c5iqh4$vt0$1@mfdebug.isd.dp.ua...
>
> "Yamin" <absdfsd@sdfdasfsd.com> wrote in message
> news:_5%ec.7516$2Z6.630415@news20.bellglobal.com...
> > Hi all,
> >
> > I'm just started off learning a bit of jsp and jservlets. I got the
basic
> > setup to run. But I'm having a slight problem here.
> >
> > The SETUP:
> > ***************************************
> > G:\www\Tomcat 5.0\webapps\test\WEB-INF/classes
> > crazyClass.java, crazyClass.class, crazyClass.jar
> > G:\www\Tomcat 5.0\webapps\test\WEB-INF\lib
> > catalina-root.jar
> > ***************************************
>
> Move crazyClass.jar from WEB-INF/classes to WEB-INF/lib
>
> Web Server adds jars and zips from WEB-INF/lib into classpath of web
> application. But not from WEB-INF/classes
>

Hey Dmytro,

I tried that, and I get the same error message
*********************************************************
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 4 in the jsp file: /test.jsp
Generated servlet error:
    [javac] Compiling 1 source file

G:\www\Tomcat
5.0\work\Catalina\localhost\test\org\apache\jsp\test_jsp.java:52: cannot
resolve symbol
symbol : variable crazyClass
location: class org.apache.jsp.test_jsp
      out.print( "at " + crazyClass.getValue() );
                              ^
1 error
*********************************************************

Yamin