tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anto Paul <antop...@gmail.com>
Subject Re: Question Title: Newbie Tomcat 4.0 install gives 500 "No Context configured" error @ HTTP localhost
Date Sun, 01 May 2005 15:40:41 GMT
On 4/30/05, Anoop kumar V <anoopkumarv@gmail.com> wrote:
> I am not sure why you had a blank (empty) webapps directory - possibly
> because you chose to download a version of tomcat4.0 which has no examples
> included...
> 
> I have done nothing at all to the web.xml. There was abs nothing wrong with
> your TC installation - except that it required an application to see if it
> works. I extracted the root folder from TC4.1.30 and gave it to u. The
> web.xml is the default delivered one for the root app.
> 
> hope you have a wonderful project.
> Anoop
> 
> On 4/29/05, Michelle Bruns <sapphireblue@gmail.com> wrote:
> >
> > That is perfect! I had almost given up on getting 4.0 and this works
> > beautifully. I will have to look at web.xml to see what exactly you
> > changed, because I found on Google many people with the same problem
> > but no one with the answer. Thank you SO much! You saved my life!
> >
> >
> > m
> >
> > On 4/29/05, Anoop kumar V <anoopkumarv@gmail.com> wrote:
> > > ok here it is - remove all there is in the webapps folder and extract
> > the
> > > zip file attached into webapps.
> > > restart tomcat...
> > >
> > > then on a browser go to http://localhost:8080/index.html
> > > actually http://localhost:8080/ should work too
> > >
> > > actually you were right - the web.xml I had given was from 5.0 version
> > of
> > > tomcat.. no wonder.....
> > > I didnt spend too much time on this....
> > >
> > >
> > > Anoop
> > >
> > > On 4/29/05, Michelle Bruns <sapphireblue@gmail.com> wrote:
> > > > Hello,
> > > >
> > > > Same web-app error on the new web.xml .
> > > >
> > > > My zip file is about 2.6M. I uploaded it to
> > > > http://www.sapphireblue.com/tomcat/tomcat.zip, but please
> > > do not spend
> > > > a lot of time on it. If you can see a fast easy fix that is great, but
> > > > it would probably be good for me to learn 5.5 anyway.
> > > >
> > > > I really appreciate all your help!
> > > >
> > > > m
> > > >
> > > >
> > > > On 4/29/05, Anoop kumar V < anoopkumarv@gmail.com> wrote:
> > > > > my mistake then.. - I wanted to give you a bare version of the
> > web.xml.
> > > I
> > > > > pulled it out from my current tomcat ( I use 4.1 btw)... by
> > stripping
> > > out
> > > > > the unnecessary lines. Looks like I deleted more than I shd have!
> > > > >
> > > > > I suggest you use the file attached after deleting the previously
> > made
> > > > > web.xml...
> > > > >
> > > > > If it is possible send me the zip file you are using to install..
I
> > will
> > > > > look into it and tell u exactly what u need to do.
> > > > >
> > > > > regards,
> > > > > Anoop
> > > > >
> > > > > On 4/29/05, Michelle Bruns <sapphireblue@gmail.com> wrote:
> > > > > > Anoop,
> > > > > >
> > > > > > Thank you so much for taking so much time to so thoroughly respond
> > to
> > > > > > my message.
> > > > > >
> > > > > > I tried your suggestions, but no luck. It sounds to me as if
maybe
> > you
> > > > > > are describing a scenario for a newer version of Tomcat than
I was
> > > > > > using (4.0, because my instructor said it was "easier", ha).
For
> > > > > > example, I have no install file, only a .zip to extract. And
when
> > I
> > > > > > tried your XML test, on Tomcat startup I got
> > > > > > "org.xml.sax.SAXParseException : Element type "web-app" must
be
> > > > > > declared."
> > > > > >
> > > > > > I have since installed Tomcat 5.5, and it works fine. I can
see
> > that
> > > > > > the web-app element is perfectly valid in the newer version,
so
> > your
> > > > > > advice probably would have been right on for a newer Tomcat
> > install
> > > > > > than 4.0 . I guess since I have 5.5 running OK, I'll try to
do my
> > > > > > classwork using it, and hope it's not too different for me to
do
> > my
> > > > > > assignments which assume 4.0 .
> > > > > >
> > > > > > Thanks again for your help, I really appreciate it.
> > > > > >
> > > > > > On 4/29/05, Anoop kumar V <anoopkumarv@gmail.com> wrote:
> > > > > > > SO probably you opted for a custom install and checked
out that
> > u
> > > did
> > > > > NOT
> > > > > > > want examples to be installed. If that is true then it
explains
> > why
> > > you
> > > > > do
> > > > > > > not have examples and other folders under webapps.
> > > > > >
> > > > > > m
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thanks and best regards,
> > > > > Anoop
> > > > >
> > > >
> > > > --
> > > >
> > > > Michelle Kinsey Bruns
> > > > http://www.sapphireblue.com/ * michelle@sapphireblue.com
> > > >
> > > > ... I get my kicks above the waistline, sunshine
> > > >
> > >
> > >
> > >
> > > --
> > > Thanks and best regards,
> > > Anoop
> > >
> >
> > --
> >
> >
> > Michelle Kinsey Bruns
> > http://www.sapphireblue.com/ * michelle@sapphireblue.com
> >
> > ... I get my kicks above the waistline, sunshine
> >
> 
> --
> Thanks and best regards,
> Anoop
> 
>

Actually the web.xml segment given by Anoop is from a Tomcat 5.x
version which is Servlet 2.4 compliant. Tomcat 4.x is Servlet 2.3
compliant. i use this header in web.xml in Tomcat 4.1.12.

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

    As far as Tomcat 5.5 is concerned you can develop your assigment
in it but be careful not to use any JSP 2.0/Servlet 2.4 codings. Also
you will have to change web.xml for Tomcat 4.x.
    You can try your luck with Tomcat 4.1.31, which is the latest
stable version in 4.x tree. it is working out of the box for me.

-- 
rgds
Anto Paul

---------------------------------------------------------------------
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