tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Roberts <techi...@ait-web.com>
Subject Re: Error 500 - Can't find my classes in WEB-INF/classes
Date Fri, 30 May 2003 13:43:48 GMT
Yea!

I put my classes inside of a package within WEB-INF/classes

Problem solved.

Thanks,

-- 
*******************************************
* Rick Roberts                            *
* Advanced Information Technologies, Inc. *
*******************************************

Tim Funk wrote:
> See  "Don't use packageless classes and declare all imported classes!"
> 
> http://tomcatfaq.sourceforge.net/classnotfound.html
> 
> -Tim
> 
> Rick Roberts wrote:
> 
>> I have some beans and support classes in WEB-INF/classes.
>> Tomcat 3.2 found them OK.  I just got Tomcat 4.1 running but having 
>> trouble getting my JSP pages to find my beans / servlets in 
>> WEB-INF/classes.
>>
>> In this case, ConnectionBean.class is in WEB-INF/classes/ but I don't 
>> know how to tell Tomcat to find it there.
>>
>> -------
>> org.apache.jasper.JasperException: Unable to compile class for JSP
>>
>> An error occurred at line: 2 in the jsp file: /viewResult.jsp
>>
>> Generated servlet error:
>>     [javac] Compiling 1 source file
>>     [javac] 
>> /var/tomcat4/work/Standalone/localhost/sqledit/viewResult_jsp.java:47: 
>> cannot resolve symbol
>>     [javac] symbol  : class ConnectionBean
>>     [javac] location: class org.apache.jsp.viewResult_jsp
>>     [javac]       ConnectionBean conn = null;
>>     [javac]       ^
>> ---------
>>
>> What am I missing?
>>
>> Thanks,
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message