You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Christian J. Dechery" <ch...@finep.gov.br> on 2002/07/10 15:11:54 UTC

can't get class to be accessed globally

I have a class (let's name her A)... and I want it to be accessed by all webapps...
 
so I tried placing her at tomcat_home\classes, tomcat_home\common\classes... but when I execute the JSP it says :
Generated servlet error:
C:\Tomcat 4\work\localhost\teste1\teste$jsp.java:59: Class org.apache.jsp.A not found.
                 A tcd = new A();
 
here is the code of the JSP:
<@page import="A">
 
<%
 A tcd = new A();
 out.println("A URL para esse contexto é \""+tcd.myContextURL()+"\".");
%>
 
why is this happening?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| christian@finep.gov.br
.:| (21) 2555-0332


Re: can't get class to be accessed globally

Posted by "Dr. Edward R. Jones" <ej...@falcon.tamucc.edu>.
Hi Christian,

Try placing the class in tomcat_home\shared\classes .  That works for 
me.

take care - edwardJones
On Wed, 10 Jul 2002, Christian J. Dechery wrote:

> I have a class (let's name her A)... and I want it to be accessed by all webapps...
>  
> so I tried placing her at tomcat_home\classes, tomcat_home\common\classes... but when I execute the JSP it says :
> Generated servlet error:
> C:\Tomcat 4\work\localhost\teste1\teste$jsp.java:59: Class org.apache.jsp.A not found.
>                  A tcd = new A();
>  
> here is the code of the JSP:
> <@page import="A">
>  
> <%
>  A tcd = new A();
>  out.println("A URL para esse contexto é \""+tcd.myContextURL()+"\".");
> %>
>  
> why is this happening?
>  
> .:| Christian J. Dechery
> .:| FINEP - Depto. de Sistemas
> .:| christian@finep.gov.br
> .:| (21) 2555-0332
> 
> 

-- 
****************************************************************************
 Edward R. Jones, Ph.D.            |  email:   ejones@falcon.tamucc.edu
 Texas A&M Univ. - Corpus Christi  |  phone:   (361) 825-5840 
****************************************************************************


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>