You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Roger Wei <kh...@verizon.net> on 2001/09/02 23:48:45 UTC

Having problem with Tomcat 4.0b7 -> HTTP Status 503 - This application is not currently available

Hi everyone:

I go to 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/ and download
jakarta-servletapi-4-b7.zip 
jakarta-tomcat-4.0-b7.zip 
, upzip them and rename as c:\Tomcat4

Then setup the CATALINA_HOME = c:\Tomcat4 , and move the "servlet.jar" into $catalina_home/lib

Now I can access http://localhost:8080/index.html without any problem,
but I can NOT run any JSP or Servlet example. The error message is
" HTTP Status 503 - This application is not currently available "

[ system: ]
windows2000Pro
Java 1.4 beta
Tomcat 4.0 b7

Please tell me what I miss in the setup progress, I've read all the document, but I can't find a
" install.txt ", the C:\Tomcat4\webapps\ROOT\docs\appdev\installation.html can't solve my problem.

Thanks in advance.

Regards,
Roger


RE: Having problem with Tomcat 4.0b7 -> HTTP Status 503 - This application is not currently available

Posted by Marina Sturino <ma...@katamail.com>.
At 17.57 02/09/01 -0400, you wrote:
>Futher more, I also copy the serlet.jar into c:\tomcat4\common\lib , still 
>fail.

Hi,
I'm installed Tomcat 4.06b on windows 2000 (and on windows 98), but i don't 
moved the file servlet.jar, it's in the default directory C:\tomcat4\common\lib
and Tomcat works very well!

Best regards

Marina


>I know how to setup Tomcat 3.2.3 and Tomcat 3.3 beta, but I just CAN'T do that
>with Tomcat 4.0 b7
>
>killing me...
>
>
> > -----Original Message-----
> > From: Roger Wei [mailto:khuhui.wei@verizon.net]
> > Sent: Sunday, September 02, 2001 5:49 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Having problem with Tomcat 4.0b7 -> HTTP Status 503 -
> > This application is not currently available
> >
> >
> > Hi everyone:
> >
> > I go to
> > http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b
> > 7/ and download
> > jakarta-servletapi-4-b7.zip
> > jakarta-tomcat-4.0-b7.zip
> > , upzip them and rename as c:\Tomcat4
> >
> > Then setup the CATALINA_HOME = c:\Tomcat4 , and move the
> > "servlet.jar" into $catalina_home/lib
> >
> > Now I can access http://localhost:8080/index.html without any problem,
> > but I can NOT run any JSP or Servlet example. The error message is
> > " HTTP Status 503 - This application is not currently available "
> >
> > [ system: ]
> > windows2000Pro
> > Java 1.4 beta
> > Tomcat 4.0 b7
> >
> > Please tell me what I miss in the setup progress, I've read all
> > the document, but I can't find a
> > " install.txt ", the
> > C:\Tomcat4\webapps\ROOT\docs\appdev\installation.html can't solve
> > my problem.
> >
> > Thanks in advance.
> >
> > Regards,
> > Roger
> >
> >

-------------------------------------------------------------------------------------------
L'unico modo per accelerare windows 9.x/2K e' a 9,8 m/s^2 ;-)

Utente Linux registrato: #218195 (http://counter.li.org)


RE: Having problem with Tomcat 4.0b7 -> HTTP Status 503 - This application is not currently available

Posted by Dmitri Colebatch <di...@bigpond.net.au>.
Why are you moving servlet.jar - I'm a 3.2 user, but I just tried the tar
of 4.0b7 and it worked fine without moving anything.

hth
dim

On Sun, 2 Sep 2001, Roger Wei wrote:

> Futher more, I also copy the serlet.jar into c:\tomcat4\common\lib , still fail.
> 
> I know how to setup Tomcat 3.2.3 and Tomcat 3.3 beta, but I just CAN'T do that
> with Tomcat 4.0 b7
> 
> killing me...
> 
> 
> > -----Original Message-----
> > From: Roger Wei [mailto:khuhui.wei@verizon.net]
> > Sent: Sunday, September 02, 2001 5:49 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Having problem with Tomcat 4.0b7 -> HTTP Status 503 - 
> > This application is not currently available
> > 
> > 
> > Hi everyone:
> > 
> > I go to 
> > http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b
> > 7/ and download
> > jakarta-servletapi-4-b7.zip 
> > jakarta-tomcat-4.0-b7.zip 
> > , upzip them and rename as c:\Tomcat4
> > 
> > Then setup the CATALINA_HOME = c:\Tomcat4 , and move the 
> > "servlet.jar" into $catalina_home/lib
> > 
> > Now I can access http://localhost:8080/index.html without any problem,
> > but I can NOT run any JSP or Servlet example. The error message is
> > " HTTP Status 503 - This application is not currently available "
> > 
> > [ system: ]
> > windows2000Pro
> > Java 1.4 beta
> > Tomcat 4.0 b7
> > 
> > Please tell me what I miss in the setup progress, I've read all 
> > the document, but I can't find a
> > " install.txt ", the 
> > C:\Tomcat4\webapps\ROOT\docs\appdev\installation.html can't solve 
> > my problem.
> > 
> > Thanks in advance.
> > 
> > Regards,
> > Roger
> > 
> > 


RE: Having problem with Tomcat 4.0b7 -> HTTP Status 503 - This application is not currently available

Posted by Roger Wei <kh...@verizon.net>.
Futher more, I also copy the serlet.jar into c:\tomcat4\common\lib , still fail.

I know how to setup Tomcat 3.2.3 and Tomcat 3.3 beta, but I just CAN'T do that
with Tomcat 4.0 b7

killing me...


> -----Original Message-----
> From: Roger Wei [mailto:khuhui.wei@verizon.net]
> Sent: Sunday, September 02, 2001 5:49 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Having problem with Tomcat 4.0b7 -> HTTP Status 503 - 
> This application is not currently available
> 
> 
> Hi everyone:
> 
> I go to 
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b
> 7/ and download
> jakarta-servletapi-4-b7.zip 
> jakarta-tomcat-4.0-b7.zip 
> , upzip them and rename as c:\Tomcat4
> 
> Then setup the CATALINA_HOME = c:\Tomcat4 , and move the 
> "servlet.jar" into $catalina_home/lib
> 
> Now I can access http://localhost:8080/index.html without any problem,
> but I can NOT run any JSP or Servlet example. The error message is
> " HTTP Status 503 - This application is not currently available "
> 
> [ system: ]
> windows2000Pro
> Java 1.4 beta
> Tomcat 4.0 b7
> 
> Please tell me what I miss in the setup progress, I've read all 
> the document, but I can't find a
> " install.txt ", the 
> C:\Tomcat4\webapps\ROOT\docs\appdev\installation.html can't solve 
> my problem.
> 
> Thanks in advance.
> 
> Regards,
> Roger
> 
> 

Re: Tomcat 4.0b7 -> JSP Examples dont work

Posted by Calvin Lau <al...@uclink4.berkeley.edu>.
I also found versions of jaxp.jar and crimson.jar under JAVA_HOME/lib/jaxp-1.1.  Will those conflict with the ones in
CATALINA_HOME?

Calvin Lau wrote:

> Good call Mark...I have a servlet.jar in JAVA_HOME/jre/lib/ext as well as in an old installation of Tomcat.  I removed
> the servlet.jar under JAVA_HOME, and the JSPs work now.  I'm very new to all this (Java development, classpaths, etc).
> >From what I understand, Tomcat4.0 will automatically include everything in CATALINA_HOME (or is it only certain
> libs...what's the difference between common/lib and lib?) and JAVA_HOME, and everything else I use, I need to add to my
> system classpath.  Is this correct?  So files in an old installation of Tomcat ( ie. c:\tomcat_old ) won't affect
> anything right?
>
> Likewise, everything else I use can either be added into CATALINA_HOME into one of the libs or referenced in the system
> classpath.  Thanks in advance.
>
> Calvin
>
> Mark Miesfeld wrote:
>
> > On Mon, 03 Sep 2001 13:49:31 -0700, Calvin Lau wrote:
> >
> > : I can't seem to get Tomcat4.0 running properly.  The Servlet examplse work
> > : fine but not the JSPs.
> > :
> > : I get:
> > :
> > : org.apache.jasper.JasperException: Unable to compile class for
> > : JSPnullC:\dev\jakarta-tomcat-4.0-b7\work\localhost\examples\jsp\dates\_0002fjsp_0002fdates_0002fdate_jsp.java:167:
> > : Incompatible type for method. Explicit cast needed to convert
> > : java.lang.Throwable to java.lang.Exception.
> > :             if (pageContext != null) pageContext.handlePageException(t);
> > :                                                                      ^
> > : 1 error
> > :
> > : I didn't move anything around.  I just installed it and the Servlet examples
> > : work fine but not the JSPs.
> >
> > I think this probably comes from having an earlier version of the
> > Servlet API in the class path, like maybe in <JAVA_HOME>/jre/lib/ext
> >
> > --
> > Mark Miesfeld
> > miesfeld@acm.org


Re: Tomcat 4.0b7 -> JSP Examples dont work

Posted by Calvin Lau <al...@uclink4.berkeley.edu>.
Good call Mark...I have a servlet.jar in JAVA_HOME/jre/lib/ext as well as in an old installation of Tomcat.  I removed
the servlet.jar under JAVA_HOME, and the JSPs work now.  I'm very new to all this (Java development, classpaths, etc).
>From what I understand, Tomcat4.0 will automatically include everything in CATALINA_HOME (or is it only certain
libs...what's the difference between common/lib and lib?) and JAVA_HOME, and everything else I use, I need to add to my
system classpath.  Is this correct?  So files in an old installation of Tomcat ( ie. c:\tomcat_old ) won't affect
anything right?

Likewise, everything else I use can either be added into CATALINA_HOME into one of the libs or referenced in the system
classpath.  Thanks in advance.

Calvin


Mark Miesfeld wrote:

> On Mon, 03 Sep 2001 13:49:31 -0700, Calvin Lau wrote:
>
> : I can't seem to get Tomcat4.0 running properly.  The Servlet examplse work
> : fine but not the JSPs.
> :
> : I get:
> :
> : org.apache.jasper.JasperException: Unable to compile class for
> : JSPnullC:\dev\jakarta-tomcat-4.0-b7\work\localhost\examples\jsp\dates\_0002fjsp_0002fdates_0002fdate_jsp.java:167:
> : Incompatible type for method. Explicit cast needed to convert
> : java.lang.Throwable to java.lang.Exception.
> :             if (pageContext != null) pageContext.handlePageException(t);
> :                                                                      ^
> : 1 error
> :
> : I didn't move anything around.  I just installed it and the Servlet examples
> : work fine but not the JSPs.
>
> I think this probably comes from having an earlier version of the
> Servlet API in the class path, like maybe in <JAVA_HOME>/jre/lib/ext
>
> --
> Mark Miesfeld
> miesfeld@acm.org


Re: Tomcat 4.0b7 -> JSP Examples dont work

Posted by Roland <ro...@netquant.com.br>.
Well, I had similar problems. I took a time until I realized that I had
overwritten the newer jar files in the tomcat_home/lib directory with the
older jar files from the b-5 version of Tomcat. Did you do the same mistake?

Roland



Re: Tomcat 4.0b7 -> JSP Examples dont work

Posted by Mark Miesfeld <mi...@acm.org>.
On Mon, 03 Sep 2001 13:49:31 -0700, Calvin Lau wrote:

: I can't seem to get Tomcat4.0 running properly.  The Servlet examplse work
: fine but not the JSPs.
:
: I get:
:
: org.apache.jasper.JasperException: Unable to compile class for
: JSPnullC:\dev\jakarta-tomcat-4.0-b7\work\localhost\examples\jsp\dates\_0002fjsp_0002fdates_0002fdate_jsp.java:167:
: Incompatible type for method. Explicit cast needed to convert
: java.lang.Throwable to java.lang.Exception.
:             if (pageContext != null) pageContext.handlePageException(t);
:                                                                      ^
: 1 error
:
: I didn't move anything around.  I just installed it and the Servlet examples
: work fine but not the JSPs.

I think this probably comes from having an earlier version of the
Servlet API in the class path, like maybe in <JAVA_HOME>/jre/lib/ext

--
Mark Miesfeld
miesfeld@acm.org


Re: Tomcat 4.0b7 -> JSP Examples dont work

Posted by "Craig R. McClanahan" <cr...@apache.org>.
Double check for an old copy of servlet.jar (or possibly jsdk.jar) in your
classpath, or in your system extensions directory
($JAVA_HOME/jre/lib/ext).  This particular error message happens whenever
there is more than one servlet.jar visible, and one of them is < servlet
2.3 / jsp 1.2.

Craig

On Mon, 3 Sep 2001, Calvin Lau wrote:

> Date: Mon, 03 Sep 2001 13:49:31 -0700
> From: Calvin Lau <al...@uclink4.berkeley.edu>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat 4.0b7 -> JSP Examples dont work
>
> I can't seem to get Tomcat4.0 running properly.  The Servlet examplse work
> fine but not the JSPs.
>
> I get:
>
> org.apache.jasper.JasperException: Unable to compile class for
> JSPnullC:\dev\jakarta-tomcat-4.0-b7\work\localhost\examples\jsp\dates\_0002fjsp_0002fdates_0002fdate_jsp.java:167:
> Incompatible type for method. Explicit cast needed to convert
> java.lang.Throwable to java.lang.Exception.
>             if (pageContext != null) pageContext.handlePageException(t);
>                                                                      ^
> 1 error
>
> I didn't move anything around.  I just installed it and the Servlet examples
> work fine but not the JSPs.
>
> Anyone else have this problem or know why?
>
>


Tomcat 4.0b7 -> JSP Examples dont work

Posted by Calvin Lau <al...@uclink4.berkeley.edu>.
I can't seem to get Tomcat4.0 running properly.  The Servlet examplse work
fine but not the JSPs.

I get:

org.apache.jasper.JasperException: Unable to compile class for
JSPnullC:\dev\jakarta-tomcat-4.0-b7\work\localhost\examples\jsp\dates\_0002fjsp_0002fdates_0002fdate_jsp.java:167:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
            if (pageContext != null) pageContext.handlePageException(t);
                                                                     ^
1 error

I didn't move anything around.  I just installed it and the Servlet examples
work fine but not the JSPs.

Anyone else have this problem or know why?


Re: Having problem with Tomcat 4.0b7 -> HTTP Status 503 - This application is not currently available

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Sun, 2 Sep 2001, Roger Wei wrote:

>
> Then setup the CATALINA_HOME = c:\Tomcat4 , and move the "servlet.jar"
> into $catalina_home/lib
>

Why are you doing this?

The Tomcat 4 binary distribution includes servlet.jar in the one and only
place where it works correctly (in the "common/lib" directory).  You
should *not* move it anywhere else, or put it inside your web app.

>
> Roger
>

Craig