no tomcat root context on linux [message #114358] |
Tue, 28 June 2005 07:17  |
Eclipse User |
|
|
|
Originally posted by: robert.momac.net
Hi,
When installing WTP (wtp-sdk-1.0M4) on my linux box, everyting seemed to
work fine; except for the fact that
the tomcat (5.5.4)server didn't seem to respond at all (I got a connection,
but all I got was empty pages). After a lot
of messing around I found out that the HEAD of the request told me
"400 No Host matches server name 127.0.0.1"
when I requested an arbitrairy url. This seems to be caused by a missing
root context for tomcat.
The strange thing is that a WTP installation on windows (though a WTP M2
release) gives me a nice
error message telling me the page does not exist.
This might be a M4 feature, but it took me 2 days to find out that tomcat
was actually running fine.. so if
it's a feature, it might be usefull to document it - myabe it is
documented... but I missed it.
(btw. is ther a FAQ for wtp?)
regards,
Robert Bakker
|
|
|
Re: no tomcat root context on linux [message #114433 is a reply to message #114358] |
Tue, 28 June 2005 12:46  |
Eclipse User |
|
|
|
Sorry for the lack of documentation. If you right-click on the server
in the Servers view and select Open, the server configuration is
displayed. Note the "Run modules directly from the workspace" checkbox.
If checked, you are running in a "test" environment and a local
CATALINA_BASE is created under
<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp?. If
the checkbox is unchecked, CATALINA_BASE will be the Tomcat
installation, implying that this server configuration "owns" that Tomcat
installation, i.e. it will overwrite config files, etc.
When running with the local CATALINA_BASE, i.e. checkbox is checked, the
current implementation doesn't create a default webapp so as not to
preclude you from providing your own. Post M5, I plan to update this to
create a default webapp as long as one is not being deployed. For now,
you can navigate to the ".metadata/.../tmp?/webapps" directory and
create "ROOT/WEB-INF" directories. This will provide an "empty" default
webapp and you will get the normal 404 responses for requests that don't
map to any webapps.
If the checkbox is unchecked, this is not an issue since the standard
Tomcat webapps will be served. However, it will have to ensure that any
local changes made to that Tomcat installation don't interfere with
WTP's use of that installation.
HTH.
Cheers,
Larry
Robert Bakker wrote:
> Hi,
>
> When installing WTP (wtp-sdk-1.0M4) on my linux box, everyting seemed to
> work fine; except for the fact that
> the tomcat (5.5.4)server didn't seem to respond at all (I got a connection,
> but all I got was empty pages). After a lot
> of messing around I found out that the HEAD of the request told me
> "400 No Host matches server name 127.0.0.1"
> when I requested an arbitrairy url. This seems to be caused by a missing
> root context for tomcat.
>
> The strange thing is that a WTP installation on windows (though a WTP M2
> release) gives me a nice
> error message telling me the page does not exist.
>
> This might be a M4 feature, but it took me 2 days to find out that tomcat
> was actually running fine.. so if
> it's a feature, it might be usefull to document it - myabe it is
> documented... but I missed it.
> (btw. is ther a FAQ for wtp?)
>
> regards,
>
> Robert Bakker
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02712 seconds