Hi Javier,

setting up the bookstore is easy: copy the war file
inside the zip archive to Tomcat's webapps directory,
then point your browser to the following address:

http://localhost:8080/bookstore/bookstore.html

In case your server is not running on port 8080
(default), change the number above to resem-
ble the appropriate port. Bingo. And forget
about editing server.xml, as this is a .war file;
just copying it will completely suffice. The
one single reason why something like

http://localhost:8080/bookstore/

doesn't work at first attempt is that Sun forgot
to specify the <welcome-file> in web.xml
(underneath WEB-INF). Either add the appro-
priate entry on your own or just rename
bookstore.html to index.html (one of the
default welcome files), and you should be
fine ;)

HTH,

-- Chris (SCPJ2)

NB. .war files are great, aren't they?

----- Original Message -----
From: "Javier Sturman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 24, 2002 6:32 PM
Subject: Configuration issue - Duke's Bookstore


> I've just installed tomcat 4.0.3 and I would like to set up Duke's
> Bookstore example that is in java.sun.com (tutorial/download).
>
> In the web page says that I should add this line to the server start up
> file. I assume that is server.xml
>
> <Context path="/bookstore" docBase="webapps/bookstore" debug="0"
> reloadable="true" />
>
> I unzipped the file (tut-bookstore-tomcat.zip) to webapps directory.
> (D:\jakarta-tomcat-4.0.3\webapps\bookstore)
>
> Now I point to that url with my browser and I get a 404 error.
> Btw I restarted the server after editing server.xml
>
> Any ideas or url?
>
>
> Thanks.
>
> --
> *** Javier Sturman - public key: (http://leeloo.mine.nu/jfiber.sig)
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to