tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Thielen" <d...@thielen.com>
Subject Re: Tomcat classpath?
Date Thu, 27 Jun 2002 17:17:04 GMT
I tried CATALINA_HOME\webapps\ROOT\WEB-INF\classes\net\windward\*.class (my
package is net.windward)
I tried CATALINA_HOME\webapps\WEB-INF\classes\net\windward\*.class
I tried CATALINA_HOME\webapps\_\WEB-INF\classes\net\windward\*.class

I also added:
  <Context path="/apps" docBase="apps" debug="0" privileged="true" />

And then created
CATALINA_HOME\webapps\apps\*.jsp
and
CATALINA_HOME\webapps\apps\WEB-INF\classes\net\windward\*.class

In all these cases I can get ot the .jsp file but the jsp file cannot find
the java .class files.

I am doing no web.xml file because I have no servlets or anything else like
that. Just jsp files and classes for them to access.

????? - thanks - dave


----- Original Message -----
From: "Milt Epstein" <mepstein@uiuc.edu>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, June 27, 2002 11:04 AM
Subject: Re: Tomcat classpath?


> On Thu, 27 Jun 2002, David Thielen wrote:
>
> > What's the context when I have:
> >
> >   <Context path="/" docBase="c:\Inetpub\wwwroot" debug="0"
privileged="true"
> > />
> >
> > I tried ROOT, nothing, "_" - none of them worked.
>
> What do you mean when you say you "tried ROOT, ...", where did you try
> it?  And when you say they didn't work, what do you mean?  It didn't
> find the servlets/jsps, or it didn't find the classes/jars?  What URL
> did you try?  Anything relevant in the logs?
>
> I'd *think* that the path attribute above is just to tell Tomcat how
> to match URLs to resources (e.g. servlets/jsps).
>
> And I'd think that you can have WEB-INF under c:\Inetpub\wwwroot (and
> lib and classes under WEB-INF).
>
>
> > ----- Original Message -----
> > From: "Milt Epstein" <mepstein@uiuc.edu>
> > To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> > Sent: Thursday, June 27, 2002 10:31 AM
> > Subject: Re: Tomcat classpath?
> >
> >
> > > On Thu, 27 Jun 2002, David Thielen wrote:
> > >
> > > > Hi;
> > > >
> > > > Where do I place jar files or where in the tomcat configuration do I
> > > > tell it of a jar file to use with my jsp?
> > > >
> > > > Also, can I just do .class files in a directory or must it be a jar
> > > > file? (And if so, how do I set that?)
> > >
> > > If you're talking about context specific stuff, jars go in
> > > ...<context>/WEB-INF/lib and classes in
> > > ...<context>/WEB-INF/classes (don't forget to include the complete
> > > package hierarchy in the classes subdirectory).
> > >
> > > You don't set the classpath for this stuff, it all works
automatically.
>
> Milt Epstein
> Research Programmer
> Systems and Technology Services (STS)
> Campus Information Technologies and Educational Services (CITES)
> University of Illinois at Urbana-Champaign (UIUC)
> mepstein@uiuc.edu
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>
>


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


Mime
View raw message