Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » context path
context path [message #77980] Mon, 28 February 2005 05:49 Go to next message
Eclipse UserFriend
There are 2 optional places where a servlet's context path can be set:
1. In the project's web.xml
2. In the server's editor (modules pane)

They seem not to be synchronized (should they be?) - is that a bug?

I created a new project, as described in
http://www.eclipse.org/webtools/jst/components/j2ee/scenario s/ServletScenario.html
and then tried to change the context (I want my servlet to be invoked with
http://localhost:8080/HelloWorld) by changing both places. It did not work
and the servlet stopped working. I then tried to repair the damage and redid
my changes, but that did not help.
Can anyone help me please?
Re: context path [message #78155 is a reply to message #77980] Mon, 28 February 2005 12:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jmordax.terra.es

Zohar wrote:

>There are 2 optional places where a servlet's context path can be set:
>1. In the project's web.xml
>2. In the server's editor (modules pane)
>
>They seem not to be synchronized (should they be?) - is that a bug?
>
>I created a new project, as described in
> http://www.eclipse.org/webtools/jst/components/j2ee/scenario s/ServletScenario.html
>and then tried to change the context (I want my servlet to be invoked with
>http://localhost:8080/HelloWorld) by changing both places. It did not work
>and the servlet stopped working. I then tried to repair the damage and redid
>my changes, but that did not help.
>Can anyone help me please?
>
I think that is about: https://bugs.eclipse.org/bugs/show_bug.cgi?id=83164

Regards,

Chemi.
Re: context path [message #80933 is a reply to message #78155] Mon, 07 March 2005 12:16 Go to previous message
Eclipse UserFriend
It's become a nightmare deploying. I've tried so many combinations of
start/stop and changing the server's configuration (both through the web.xml
and through the server's config) - sometimes it works , but most times it
doesn't :(
It seems that eclipse insists on deploying my servlet with the context root
of the servlet's class name. Where does it keep this information, or does it
reassign it anew each time by looking at the classes?

"Chemi" <jmordax@terra.es> wrote in message
news:cvvm0k$juf$1@www.eclipse.org...
> Zohar wrote:
>
>>There are 2 optional places where a servlet's context path can be set:
>>1. In the project's web.xml
>>2. In the server's editor (modules pane)
>>
>>They seem not to be synchronized (should they be?) - is that a bug?
>>
>>I created a new project, as described in
>> http://www.eclipse.org/webtools/jst/components/j2ee/scenario s/ServletScenario.html
>>and then tried to change the context (I want my servlet to be invoked with
>>http://localhost:8080/HelloWorld) by changing both places. It did not work
>>and the servlet stopped working. I then tried to repair the damage and
>>redid
>>my changes, but that did not help.
>>Can anyone help me please?
>>
> I think that is about: https://bugs.eclipse.org/bugs/show_bug.cgi?id=83164
>
> Regards,
>
> Chemi.
Previous Topic:init params
Next Topic:JavaScript debugging
Goto Forum:
  


Current Time: Thu May 08 00:11:18 EDT 2025

Powered by FUDForum. Page generated in 0.07067 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top