[ale] tomcat woes

Michael Hirsch mdhirsch at gmail.com
Wed May 25 13:25:33 EDT 2005


On 5/24/05, James P. Kinney III <jkinney at localnetsolutions.com> wrote:
> On Tue, 2005-05-24 at 12:50 -0400, Barry Hawkins wrote:
> > On Tue, May 24, 2005 at 12:26:19PM -0400, James P. Kinney III spake thus:
> > > On Tue, 2005-05-24 at 11:40 -0400, Barry Hawkins wrote:
> > > > On Mon, May 23, 2005 at 10:59:41PM -0400, James P. Kinney III spake thus:
> > > > > Has anyone setup tomcat 5 with the /servlets/* invoker?
> > > > I believe the Servlet invoker requires /servlet/ with no 's'.
> > >
> > > I'll double check. I've seen docs that say both. I settled on servlets
> > > as that is what the old setup was using (and all the page links are
> > > using).
> > [...]
> > You are correct; the Servlet invoker mapping is configurable.  You could
> > even have /doo-doo/* if so desired. 8^)
> >
> > > >   If you need a classpath
> > > > entry for a .jar or .class files outside the webapps directory, it
> > > > is a bit more involved, but fortunately doable.
> > >
> > > Ah Ha! I haven't tweaked the classpath for the tomcat startup to include
> > > the {user}/servlets directory.
> > [...]
> > Hope that helps; let us know how you make out.
> 
> No joy yet. I added an explicit classpath for the location of the jar
> file collection I'm trying to hit. The log file shows the following:

First thing I'd do is make sure the classpath is getting through to
tomcat.  Find the place in the startup file that java iss actually
getting called and insert "echo $CLASSPATH" before it.  (or to be
fancy, "echo $CLASSAPTH | tr : "\n" ")  The tomcat startup script does
a lot with the classpath and it is easy to have it be something other
than what you think it is.

Michael



More information about the Ale mailing list