Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

can't deploy HTML pages on TOMCAT

Thread view: 
Ranjeeva - 20 Mar 2006 15:42 GMT
Hi All,

I'm trying to deploy a set of html pages on TOMCAT. These pages can be
correctly displayed under /webapps/jsp-examples/jsp2/el/ (which is a
default directory that comes with the installation). However when I try
to deploy them under a new directory (say) /webapps/foobar/
I get a "HTTP 404 The Page cannot be found" error. JSPs from this
location can be deployed successfully. This appear to be a
configuration issue. I would really appreciate it if someone could
point me in the right direction.

Many Thanks,

Ranjeeva
SigmaCrisis@gmail.com - 20 Mar 2006 16:32 GMT
Wouldn't  you access them through:
localhost/foobar/

The above refers to the index.html, if you have one, in foobar.

hth.
jagonzal@gmail.com - 20 Mar 2006 20:42 GMT
> I'm trying to deploy a set of html pages on TOMCAT. These pages can be
> correctly displayed under /webapps/jsp-examples/jsp2/el/ (which is a
[quoted text clipped - 4 lines]
> configuration issue. I would really appreciate it if someone could
> point me in the right direction.

You have to properly deploy them in their own web application context,
or, failing that, deploy them in tomcat's default webapp.

(i.e. copy them to /webapps/ROOT/mydir/ to access them as
http://somehost/mydir/somehtmlpage.html)
Ranjeeva - 21 Mar 2006 12:10 GMT
Thanks all for your help. I managed to work it out. All I needed to do
was to add the 8080 port to the uri e.g.
http://www.mydomain.com:8080/foobar/index.html and it worked.

Ranjeeva


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.