Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to change Context Root ?
How to change Context Root ? [message #159850] Thu, 09 February 2006 14:31 Go to next message
Eclipse UserFriend
Originally posted by: yjpark.inops.co.kr

Hi
I want to work with WTP1.0, Tomcat 5.0 with context root /
but in wtp project wizard I can't change my project to root.
My project name is Test and I can access by http://localhost:8080/Test,
but can not access by http://localhost:8080,
I changed server.xml as follows
<Context docBase="Test" path="/" reloadable="true"
source="org.eclipse.jst.j2ee.server:Test"/>

but it didn't works and logs as follows

Installing web application at context path from URL
file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
2006. 2. 9. &#50724;&#54980; 11:32:37
org.apache.catalina.core.StandardHostDeployer install
&#51221;&#48372;: Installing web application at context path /Test from
URL
file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test

Please help me
Thanks
Re: How to change Context Root ? [message #160050 is a reply to message #159850] Fri, 10 February 2006 03:04 Go to previous messageGo to next message
Max Giesbert is currently offline Max GiesbertFriend
Messages: 38
Registered: July 2009
Member
i think the path statement needs to be "". but i experienced it is not
working anyway. see other postings concerning the "default server".

let me know if you figure it out.

thx

max

younJung Park wrote:
> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
> but in wtp project wizard I can't change my project to root.
> My project name is Test and I can access by http://localhost:8080/Test,
> but can not access by http://localhost:8080,
> I changed server.xml as follows
> <Context docBase="Test" path="/" reloadable="true"
> source="org.eclipse.jst.j2ee.server:Test"/>
>
> but it didn't works and logs as follows
>
> Installing web application at context path from URL
> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>
> 2006. 2. 9. &#50724;&#54980; 11:32:37
> org.apache.catalina.core.StandardHostDeployer install
> &#51221;&#48372;: Installing web application at context path /Test from
> URL
> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>
>
> Please help me
> Thanks
>
Re: How to change Context Root ? [message #160351 is a reply to message #160050] Sat, 11 February 2006 14:17 Go to previous messageGo to next message
Frits Jalvingh is currently offline Frits JalvinghFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,

Perhaps you need to use the context ROOT (full uppercase) as that is the
name of the / application in Tomcat?

Frits

Max Giesbert wrote:
> i think the path statement needs to be "". but i experienced it is not
> working anyway. see other postings concerning the "default server".
>
> let me know if you figure it out.
>
> thx
>
> max
>
> younJung Park wrote:
>
>> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
>> but in wtp project wizard I can't change my project to root.
>> My project name is Test and I can access by http://localhost:8080/Test,
>> but can not access by http://localhost:8080,
>> I changed server.xml as follows
>> <Context docBase="Test" path="/" reloadable="true"
>> source="org.eclipse.jst.j2ee.server:Test"/>
>>
>> but it didn't works and logs as follows
>>
>> Installing web application at context path from URL
>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>>
>> 2006. 2. 9. &#50724;&#54980; 11:32:37
>> org.apache.catalina.core.StandardHostDeployer install
>> &#51221;&#48372;: Installing web application at context path /Test
>> from URL
>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>>
>>
>> Please help me
>> Thanks
>>
Re: How to change Context Root ? [message #160407 is a reply to message #160351] Mon, 13 February 2006 00:48 Go to previous messageGo to next message
Max Giesbert is currently offline Max GiesbertFriend
Messages: 38
Registered: July 2009
Member
Have you tested that or just guessing?

Frits Jalvingh wrote:
> Hi,
>
> Perhaps you need to use the context ROOT (full uppercase) as that is the
> name of the / application in Tomcat?
>
> Frits
>
> Max Giesbert wrote:
>
>> i think the path statement needs to be "". but i experienced it is not
>> working anyway. see other postings concerning the "default server".
>>
>> let me know if you figure it out.
>>
>> thx
>>
>> max
>>
>> younJung Park wrote:
>>
>>> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
>>> but in wtp project wizard I can't change my project to root.
>>> My project name is Test and I can access by http://localhost:8080/Test,
>>> but can not access by http://localhost:8080,
>>> I changed server.xml as follows
>>> <Context docBase="Test" path="/" reloadable="true"
>>> source="org.eclipse.jst.j2ee.server:Test"/>
>>>
>>> but it didn't works and logs as follows
>>>
>>> Installing web application at context path from URL
>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>>>
>>> 2006. 2. 9. &#50724;&#54980; 11:32:37
>>> org.apache.catalina.core.StandardHostDeployer install
>>> &#51221;&#48372;: Installing web application at context path /Test
>>> from URL
>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>>>
>>>
>>> Please help me
>>> Thanks
>>>
Re: How to change Context Root ? [message #160415 is a reply to message #159850] Mon, 13 February 2006 03:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: caclark.cox.net

younJung Park wrote:
> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
> but in wtp project wizard I can't change my project to root.
> My project name is Test and I can access by http://localhost:8080/Test,
> but can not access by http://localhost:8080,
> I changed server.xml as follows
> <Context docBase="Test" path="/" reloadable="true"
> source="org.eclipse.jst.j2ee.server:Test"/>
>
> but it didn't works and logs as follows
>
> Installing web application at context path from URL
> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>
> 2006. 2. 9. &#50724;&#54980; 11:32:37
> org.apache.catalina.core.StandardHostDeployer install
> &#51221;&#48372;: Installing web application at context path /Test from
> URL
> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>
>
> Please help me
> Thanks
>

Because of a bug in the Property editor (Project Properties->J2EE) where
you can't set an empty context root, you'll have to edit
..settings/.component and remove the value _completely_ for the
context-root property so that it looks like
<property name="context-root"/>

You can set the META-INF/context.xml's <Context> path attribute to "/", too.

This should help. Don't ever set your path to "ROOT".

Cary
Re: How to change Context Root ? [message #160457 is a reply to message #160415] Mon, 13 February 2006 06:24 Go to previous messageGo to next message
Max Giesbert is currently offline Max GiesbertFriend
Messages: 38
Registered: July 2009
Member
thx for this clear answer. it works!

cheers

max


Cary Clark wrote:
> younJung Park wrote:
>
>> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
>> but in wtp project wizard I can't change my project to root.
>> My project name is Test and I can access by http://localhost:8080/Test,
>> but can not access by http://localhost:8080,
>> I changed server.xml as follows
>> <Context docBase="Test" path="/" reloadable="true"
>> source="org.eclipse.jst.j2ee.server:Test"/>
>>
>> but it didn't works and logs as follows
>>
>> Installing web application at context path from URL
>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>>
>> 2006. 2. 9. &#50724;&#54980; 11:32:37
>> org.apache.catalina.core.StandardHostDeployer install
>> &#51221;&#48372;: Installing web application at context path /Test
>> from URL
>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>>
>>
>> Please help me
>> Thanks
>>
>
> Because of a bug in the Property editor (Project Properties->J2EE) where
> you can't set an empty context root, you'll have to edit
> .settings/.component and remove the value _completely_ for the
> context-root property so that it looks like
> <property name="context-root"/>
>
> You can set the META-INF/context.xml's <Context> path attribute to "/",
> too.
>
> This should help. Don't ever set your path to "ROOT".
>
> Cary
Re: How to change Context Root ? [message #160666 is a reply to message #160415] Tue, 14 February 2006 04:48 Go to previous messageGo to next message
Max Giesbert is currently offline Max GiesbertFriend
Messages: 38
Registered: July 2009
Member
After setting the path as described I know experince that the context is
actually loaded twice. one in the default directory and one in my
project directory. how can i stop this behaviour?

thx

max

Cary Clark wrote:
> younJung Park wrote:
>
>> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
>> but in wtp project wizard I can't change my project to root.
>> My project name is Test and I can access by http://localhost:8080/Test,
>> but can not access by http://localhost:8080,
>> I changed server.xml as follows
>> <Context docBase="Test" path="/" reloadable="true"
>> source="org.eclipse.jst.j2ee.server:Test"/>
>>
>> but it didn't works and logs as follows
>>
>> Installing web application at context path from URL
>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>>
>> 2006. 2. 9. &#50724;&#54980; 11:32:37
>> org.apache.catalina.core.StandardHostDeployer install
>> &#51221;&#48372;: Installing web application at context path /Test
>> from URL
>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>>
>>
>> Please help me
>> Thanks
>>
>
> Because of a bug in the Property editor (Project Properties->J2EE) where
> you can't set an empty context root, you'll have to edit
> .settings/.component and remove the value _completely_ for the
> context-root property so that it looks like
> <property name="context-root"/>
>
> You can set the META-INF/context.xml's <Context> path attribute to "/",
> too.
>
> This should help. Don't ever set your path to "ROOT".
>
> Cary
Re: How to change Context Root ? [message #160705 is a reply to message #160666] Tue, 14 February 2006 13:59 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
It can't be avoided for now. See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=125364

I'm still working on a patch. The main problem to be addressed in
finishing it, other than finding the time, it how to support the default
context.

Cheers,
Larry

Max Giesbert wrote:
> After setting the path as described I know experince that the context is
> actually loaded twice. one in the default directory and one in my
> project directory. how can i stop this behaviour?
>
> thx
>
> max
>
> Cary Clark wrote:
>
>> younJung Park wrote:
>>
>>> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
>>> but in wtp project wizard I can't change my project to root.
>>> My project name is Test and I can access by http://localhost:8080/Test,
>>> but can not access by http://localhost:8080,
>>> I changed server.xml as follows
>>> <Context docBase="Test" path="/" reloadable="true"
>>> source="org.eclipse.jst.j2ee.server:Test"/>
>>>
>>> but it didn't works and logs as follows
>>>
>>> Installing web application at context path from URL
>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>>>
>>> 2006. 2. 9. &#50724;&#54980; 11:32:37
>>> org.apache.catalina.core.StandardHostDeployer install
>>> &#51221;&#48372;: Installing web application at context path /Test
>>> from URL
>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>>>
>>>
>>> Please help me
>>> Thanks
>>>
>>
>> Because of a bug in the Property editor (Project Properties->J2EE)
>> where you can't set an empty context root, you'll have to edit
>> .settings/.component and remove the value _completely_ for the
>> context-root property so that it looks like
>> <property name="context-root"/>
>>
>> You can set the META-INF/context.xml's <Context> path attribute to
>> "/", too.
>>
>> This should help. Don't ever set your path to "ROOT".
>>
>> Cary
Re: How to change Context Root ? [message #160713 is a reply to message #160705] Tue, 14 February 2006 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: caclark.etechsolutions.net

Larry Isaacs said the following on 2/14/2006 7:59 AM:
> It can't be avoided for now. See:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=125364
>
> I'm still working on a patch. The main problem to be addressed in
> finishing it, other than finding the time, it how to support the default
> context.
>
> Cheers,
> Larry
>
> Max Giesbert wrote:
>> After setting the path as described I know experince that the context
>> is actually loaded twice. one in the default directory and one in my
>> project directory. how can i stop this behaviour?
>>
>> thx
>>
>> max
>>
>> Cary Clark wrote:
>>
>>> younJung Park wrote:
>>>
>>>> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
>>>> but in wtp project wizard I can't change my project to root.
>>>> My project name is Test and I can access by http://localhost:8080/Test,
>>>> but can not access by http://localhost:8080,
>>>> I changed server.xml as follows
>>>> <Context docBase="Test" path="/" reloadable="true"
>>>> source="org.eclipse.jst.j2ee.server:Test"/>
>>>>
>>>> but it didn't works and logs as follows
>>>>
>>>> Installing web application at context path from URL
>>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>>>>
>>>> 2006. 2. 9. &#50724;&#54980; 11:32:37
>>>> org.apache.catalina.core.StandardHostDeployer install
>>>> &#51221;&#48372;: Installing web application at context path /Test
>>>> from URL
>>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>>>>
>>>>
>>>> Please help me
>>>> Thanks
>>>>
>>>
>>> Because of a bug in the Property editor (Project Properties->J2EE)
>>> where you can't set an empty context root, you'll have to edit
>>> .settings/.component and remove the value _completely_ for the
>>> context-root property so that it looks like
>>> <property name="context-root"/>
>>>
>>> You can set the META-INF/context.xml's <Context> path attribute to
>>> "/", too.
>>>
>>> This should help. Don't ever set your path to "ROOT".
>>>
>>> Cary

I sure thought I cured this by setting the autoDeploy="false" and
deployOnStartup="false" in the server.xml <Host> definition.
Re: How to change Context Root ? [message #160728 is a reply to message #160713] Tue, 14 February 2006 15:33 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Cary wrote:
> Larry Isaacs said the following on 2/14/2006 7:59 AM:
>
>> It can't be avoided for now. See:
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=125364
>>
>> I'm still working on a patch. The main problem to be addressed in
>> finishing it, other than finding the time, it how to support the
>> default context.
>>
>> Cheers,
>> Larry
>>
>> Max Giesbert wrote:
>>
>>> After setting the path as described I know experince that the context
>>> is actually loaded twice. one in the default directory and one in my
>>> project directory. how can i stop this behaviour?
>>>
>>> thx
>>>
>>> max
>>>
>>> Cary Clark wrote:
>>>
>>>> younJung Park wrote:
>>>>
>>>>> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
>>>>> but in wtp project wizard I can't change my project to root.
>>>>> My project name is Test and I can access by
>>>>> http://localhost:8080/Test,
>>>>> but can not access by http://localhost:8080,
>>>>> I changed server.xml as follows
>>>>> <Context docBase="Test" path="/" reloadable="true"
>>>>> source="org.eclipse.jst.j2ee.server:Test"/>
>>>>>
>>>>> but it didn't works and logs as follows
>>>>>
>>>>> Installing web application at context path from URL
>>>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>>>>>
>>>>> 2006. 2. 9. &#50724;&#54980; 11:32:37
>>>>> org.apache.catalina.core.StandardHostDeployer install
>>>>> &#51221;&#48372;: Installing web application at context path /Test
>>>>> from URL
>>>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>>>>>
>>>>>
>>>>> Please help me
>>>>> Thanks
>>>>>
>>>>
>>>> Because of a bug in the Property editor (Project Properties->J2EE)
>>>> where you can't set an empty context root, you'll have to edit
>>>> .settings/.component and remove the value _completely_ for the
>>>> context-root property so that it looks like
>>>> <property name="context-root"/>
>>>>
>>>> You can set the META-INF/context.xml's <Context> path attribute to
>>>> "/", too.
>>>>
>>>> This should help. Don't ever set your path to "ROOT".
>>>>
>>>> Cary
>
>
> I sure thought I cured this by setting the autoDeploy="false" and
> deployOnStartup="false" in the server.xml <Host> definition.
>
True. I should have said without manually managing your configuration.

Cheers,
Larry
Re: How to change Context Root ? [message #161055 is a reply to message #160407] Fri, 17 February 2006 13:25 Go to previous message
Frits Jalvingh is currently offline Frits JalvinghFriend
Messages: 19
Registered: July 2009
Junior Member
I have not tested this under Eclipse but i have certainly used this
under Tomcat. You can even see it at work in a default Tomcat
installation: it has a default ROOT application installed in
[tomcat]/webapps/ROOT

Frits

Max Giesbert wrote:
> Have you tested that or just guessing?
>
> Frits Jalvingh wrote:
>> Hi,
>>
>> Perhaps you need to use the context ROOT (full uppercase) as that is
>> the name of the / application in Tomcat?
>>
>> Frits
>>
>> Max Giesbert wrote:
>>
>>> i think the path statement needs to be "". but i experienced it is
>>> not working anyway. see other postings concerning the "default server".
>>>
>>> let me know if you figure it out.
>>>
>>> thx
>>>
>>> max
>>>
>>> younJung Park wrote:
>>>
>>>> Hi I want to work with WTP1.0, Tomcat 5.0 with context root /
>>>> but in wtp project wizard I can't change my project to root.
>>>> My project name is Test and I can access by http://localhost:8080/Test,
>>>> but can not access by http://localhost:8080,
>>>> I changed server.xml as follows
>>>> <Context docBase="Test" path="/" reloadable="true"
>>>> source="org.eclipse.jst.j2ee.server:Test"/>
>>>>
>>>> but it didn't works and logs as follows
>>>>
>>>> Installing web application at context path from URL
>>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\ROOT
>>>>
>>>> 2006. 2. 9. &#50724;&#54980; 11:32:37
>>>> org.apache.catalina.core.StandardHostDeployer install
>>>> &#51221;&#48372;: Installing web application at context path /Test
>>>> from URL
>>>> file:G:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst .server.core\tmp0\webapps\Test
>>>>
>>>>
>>>> Please help me
>>>> Thanks
>>>>
Previous Topic:tomcat runtime classpath
Next Topic:XML Validation question, possibly a bug
Goto Forum:
  


Current Time: Thu Apr 25 22:35:12 GMT 2024

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

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

Back to the top