The directory structure should be:
webapps/myapp
webapps/myapp/WEB-INF
if you put your index.html into myapp directory then tomcat should use that
file (if it exists)
Regards
Jan
On Wednesday, June 13, 2001 4:36 PM, Matthias Schiffer
[SMTP:[EMAIL PROTECTED]] wrote:
>
> Hi!
>
> No! I have daone all these point or better in an Embedded Tomcat-Machine
> you do not have to put a server.xml anywhere, but a web.xml....But
> thanks anyway..... Tomcat finds all my Web.xml files but it seems to be
> not able to read/find/locate my desired welcome-file. What can I do ??
>
>
> "Pernica, Jan" schrieb:
> >
> > Hi
> > 1) you have to add your application into $JAKARTA_HOME/conf/server.xml
(look
> > how example is defined)
> > 2) you have to put your web.xml into
> > $JAKARTA_HOME/webapps/yourapp/WEB-INF/web.xml
> >
>
> > > I have still several problems with my embedded Tomcat. I would be very
> > > thankful if you take a look over my src-code and tell me whether it's
> > > right or not, but I think the src-code is not my problem. I think my
> > > problem is the configuration of the Tomcat because it seems to be
> > > impossible to find any documentation about configuring a Tomcat as
> > > Embedded.
> > > So, my introduction for you: I have a ICCS/-directory, which is my
> > > root-directory(app1.getParent()). In this directory there is also a
> > > conf-directory, in which the default-modified web.xml is placed, and
in
> > > the ICCS/-directory there is a html/-subdirectory, in which all my
> > > html-files including my desired welcome-file index.html are placed. So
I
> > > don't know how to configure my web.xml files or other files, if i was
> > > wrong, correctly. Please help me with all my problems. Perhaps now you
> > > think I am a little bit stupid but I am very new in configuring and
> > > installing webservers generally.
> > >
> > > I have just taken over the delievered web.xml in Tomcat Vers. 4 B5 and
> > > created a web.xml file in my html/-subdirectory and then in the
> > > WEB-INF-subdirectory of it. This file is also found and in it is
> > > written:
> > >
> > > <web-app>
> > > <welcome-file-list>
> > > <welcome-file>index.html</welcome-file>
> > > </welcome-file-list>
> > > </web-app>
> > >
> > > If this was all right, there would be an error containing: "The
request
> > > file contained no data" or something like that.
> > >
> > >
> > > I hope you have read until this line and you can now answer my
> > > questions.
> > >
> > > Yours faithfully
> > >
> > > Matthias Schiffer
> >
> > __________________________________________________________________
> > Tato komunikace je urcena vyhradne pro adresata a je duverna.
> > This communication is intended solely for the addressee and is
confidential.
__________________________________________________________________
Tato komunikace je urcena vyhradne pro adresata a je duverna.
This communication is intended solely for the addressee and is confidential.