tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Gummi" <pradeep.gu...@villanova.edu>
Subject Re:setting external classes in the classpath
Date Fri, 05 Sep 2003 17:30:43 GMT

Hi all, 
I am tring to include external classes that are needed for my servlet 
class.   I tried to modify classpath in setclasspath.bat file by 
set CLASSPATH=%JAVA_HOME%
\lib\tools.jar;c:\mindbridge\classes\saclasses.jar
I needed all the classes in the saclasses.jar file for my servlet. When 
i restart the tomcat server, it just shows a blank page with out 
showing the default page. Is this the right way of including classes?
pradeep
----- Original Message -----
From: "Pradeep Gummi" <pradeep.gummi@villanova.edu>
Date: Friday, September 5, 2003 8:28 am
Subject: Re: How to use classes from another webapp/context?

> Hi Ulrich,
> I think you should get them working by placing the classes in the 
> CATALINA_HOME/common/classes folder or the jars in the lib folder. 
> This 
> would share the classes in all web apps. There you would be giving 
> the 
> information of the catalina and system class loaders. 
> 
> grant codeBase "file:${catalina.home}/common/-" {
>  permission java.security.AllPermission;
> };
> I am not sure if this is what you want. Actually I am trying to 
> use 
> classes from outside catalina.home and am trying to figure out if 
> that 
> is practically possible. Please update me if you have any solutions
> 
> thanks
> pradeep 
> 
> ----- Original Message -----
> From: Ulrich Mayring <ulim@denic.de>
> Date: Friday, September 5, 2003 4:19 am
> Subject: How to use classes from another webapp/context?
> 
> > Hello,
> > 
> > I know that Tomcat has seperate classloaders for each webapp, 
> but 
> > what I 
> > would like to do is have JSPs in one webapp and the classes they 
> > use in 
> > another. I tried enabling the crossContext feature for the 
> > relevant 
> > contexts, but that didn't work, the classes weren't found.
> > 
> > Background: we have editors, who write and deploy JSP files, and 
> > programmers, who write and deploy classes used by JSP files. I 
> > would 
> > like to have the editors manage their webapps with the JSP files 
> > via the 
> > HTML manager and the programmers to do the same for their webapps.
> > 
> > I know that I could put the classes under the shared directory, 
> > but then 
> > they would not be in a webapp anymore and thus management via 
> the 
> > HTML 
> > manager would not work anymore. Tomcat would need to be 
> restarted 
> > on 
> > every change.
> > 
> > I could also have the programmers give JAR files to the editors 
> > and have 
> > the editors deploy them with their webapps, but then the classes 
> > would 
> > be duplicated across many webapps and also I don't want the 
> > editors 
> > handling JAR files.
> > 
> > Is there any solution?
> > 
> > Thanks in advance for any pointers,
> > 
> > Ulrich
> > 
> > 
> > 
> > -----------------------------------------------------------------
> --
> > --
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > 
> > 
> > 
> 
> 
> 
> -------------------------------------------------------------------
> --
> 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