You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Todd Grigsby <st...@tgrigsby.com> on 2003/04/25 08:08:45 UTC
Tomcat can't see jars
PROBLEM: TOMCAT DOESN'T SEE JARS
PARTIAL SOLUTION: INCLUDING EVERY JAR IN THE SYSTEM IN THE CLASSPATH
Summary: After installing Tomcat 5.0 into a system that had been working just
fine on 4.1.24, Tomcat will not run and doesn't appear to see the jar files.
ANY of the jar files.
The long version:
Ok, I've been fighting this problem all afternoon and into the night, and I've
got to wonder, how many people have just s***-canned Tomcat after attempting to
upgrade? I tried to update my installation from 4.1.24 to 5.0 alpha in the
hopes that some of the problems I've had with the Logger would clear up.
Man, do I ever regret doing that.
After what seemed like a smooth install, following all the directions, the
server wouldn't start up. I went over the environment variables again and again:
JAVA_HOME set, using jdk 1.4.1
CATALINA_HOME set to the Tomcat directory
TOMCAT_HOME set the same
CLASSPATH set to %JAVA_HOME%\lib;%CATALINA_HOME%\server\lib\catalina.jar;
Which would seem inconsequential, since 4.1.24 had been running flawlessly for
some time. But when I started up Tomcat 5.0, the window would flash and
disappear. After two hours wasted on trying to get it to work, I decided to
roll it back and forget it for now. See, I'd renamed the old directory, so one
could safely assume that putting the old version back would be as simple as
renaming it back to Jakarta, right?
Huh uh.
The old version is now doing the same thing as the new version. What the -?
I spent some time figuring out how to run Tomcat from a command line so I could
see what the problem was. Turns out, it can't see the jar files. None of them.
I still don't have it running, but the solution seems to be to put a reference
to every single jar file in the system in the classpath. It didn't require this
before, so what changed? AND WHY?!
So has anyone seen this?
Your help is much appreciated!
TG
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Tomcat can't see jars
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 25 Apr 2003, Todd Grigsby wrote:
> Date: Fri, 25 Apr 2003 09:01:07 -0700
> From: Todd Grigsby <st...@tgrigsby.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: Struts Users Mailing List <st...@jakarta.apache.org>
> Subject: Re: Tomcat can't see jars
>
>
> Thanks Craig for at least offering the tidbit that Tomcat's classpath shouldn't
> be mucked with. I agree, but it was the only way I could get Tomcat back up and
> running. And it does -- but doesn't see any applications. I get a 500 on every
> app, including admin.
>
Then that means there is something wrong with your installation, or you're
suffering from the fact that Tomcat 5.0 is alpha quality code, or you've
got a corrupted installation (Tomcat 5 works for me).
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Tomcat can't see jars
Posted by Todd Grigsby <st...@tgrigsby.com>.
Thanks Craig for at least offering the tidbit that Tomcat's classpath shouldn't
be mucked with. I agree, but it was the only way I could get Tomcat back up and
running. And it does -- but doesn't see any applications. I get a 500 on every
app, including admin.
Craig R. McClanahan wrote:
>
> On Thu, 24 Apr 2003, Todd Grigsby wrote:
>
>
>>PROBLEM: TOMCAT DOESN'T SEE JARS
>>PARTIAL SOLUTION: INCLUDING EVERY JAR IN THE SYSTEM IN THE CLASSPATH
>>
>>Summary: After installing Tomcat 5.0 into a system that had been working just
>>fine on 4.1.24, Tomcat will not run and doesn't appear to see the jar files.
>>ANY of the jar files.
>>
>
>
> Why in the world are you upgrading from a production quality platform to a
> very very very early alpha, and then are surprised that you might be
> having problems?
>
> At any rate, you need to deal with issues like this on the Tomcat user
> list (to subscribe, send an empty mail to
> tomcat-user-subscribe@jakarta.apache.org), not here. Concentrate first on
> making sure that the standard applications shipped with Tomcat run
> correctly -- if they don't, then something is wrong with your
> installation.
>
> By the way, messing with Tomcat's classpath is absolutely, positively, not
> the right answer. It will only cause you grief, and guarantees that
> Struts will not work correctly.
>
> Craig
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Tomcat can't see jars
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Thu, 24 Apr 2003, Todd Grigsby wrote:
>
> PROBLEM: TOMCAT DOESN'T SEE JARS
> PARTIAL SOLUTION: INCLUDING EVERY JAR IN THE SYSTEM IN THE CLASSPATH
>
> Summary: After installing Tomcat 5.0 into a system that had been working just
> fine on 4.1.24, Tomcat will not run and doesn't appear to see the jar files.
> ANY of the jar files.
>
Why in the world are you upgrading from a production quality platform to a
very very very early alpha, and then are surprised that you might be
having problems?
At any rate, you need to deal with issues like this on the Tomcat user
list (to subscribe, send an empty mail to
tomcat-user-subscribe@jakarta.apache.org), not here. Concentrate first on
making sure that the standard applications shipped with Tomcat run
correctly -- if they don't, then something is wrong with your
installation.
By the way, messing with Tomcat's classpath is absolutely, positively, not
the right answer. It will only cause you grief, and guarantees that
Struts will not work correctly.
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org