problem loading localhost:8080 in eclipse [message #179431] |
Wed, 20 September 2006 06:27  |
Eclipse User |
|
|
|
Originally posted by: dxrysom.gmail.com
hello,
i have:
eclipse 3.2
wtp 1.5.1
and other required packages to run wtp.
I use tomcat 5.5.17 as a server.
my problem is this:
i have a simple test web project with only one html file index.html. when i
run the project from within eclipse everything is ok
(http://locahost:8080/mysite/index.html). BUT i cannot access tomcat's
default home page (http://localhost:8080). it gives me a 404 error. is this
normal? is it a bug?
this does not happen when i run tomcat outside eclipse.
thank you
|
|
|
Re: problem loading localhost:8080 in eclipse [message #179441 is a reply to message #179431] |
Wed, 20 September 2006 08:08  |
Eclipse User |
|
|
|
This is normal. To see why, double-click on the Tomcat server in the
Servers view. This will open the Tomcat configuration editor. Click on
the "Open launch configuration" link in the Overview section. This will
open the launch configuration properties dialog. Select the Arguments
tab and examine the contents of the VM Arguments field.
Note that the catalina.home property points to your Tomcat installation,
but catalina.base points to a
".metadata\.plugins\org.eclipse.wst.server.core\tmp?" directory under
your workspace. Thus, you are running a separate instance of Tomcat.
The "webapps" directory under the ".metadata\...\tmp?" directory
contains only an "empty" ROOT webapp plus any web projects you have
added to the server. This is why you get the 404.
In the Tomcat configuration editor, you can uncheck the "Run modules
directly from the workspace (do not modify the Tomcat installation)"
option and catalina.base and catalina.home will both be set to your
Tomcat installation. Be aware that in this configuration, the Tomcat
server in Eclipse "owns" your Tomcat installation. Every time you start
the Tomcat server from Eclipse, the Tomcat files under the Servers
project in your workspace will overwrite the files in your installation.
It was assumed the most would want to keep their Tomcat installation
independent from Eclipse Tomcat server, so the default is to create a
separate Tomcat instance. With separate instances, you can run the
Tomcat installation at the same time as the Eclipse Tomcat server
provided you modify one or both of them so that the ports they use do
not conflict.
If you would like the standard Tomcat webapps present while keeping the
separate Tomcat instance in Eclipse, switch to the Modules tab in the
Tomcat configuration editor and use the "Add External Web Module" button
to manually add the desired webapps. Note that this will add a little
bit to the startup time for the server.
Cheers,
Larry
dimitris wrote:
> hello,
> i have:
> eclipse 3.2
> wtp 1.5.1
> and other required packages to run wtp.
> I use tomcat 5.5.17 as a server.
> my problem is this:
> i have a simple test web project with only one html file index.html. when i
> run the project from within eclipse everything is ok
> (http://locahost:8080/mysite/index.html). BUT i cannot access tomcat's
> default home page (http://localhost:8080). it gives me a 404 error. is this
> normal? is it a bug?
> this does not happen when i run tomcat outside eclipse.
> thank you
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07731 seconds