How to change Context Root ? [message #159850] |
Thu, 09 February 2006 14:31 |
Eclipse User |
|
|
|
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. 오후 11:32:37
org.apache.catalina.core.StandardHostDeployer install
정보: 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 |
Eclipse User |
|
|
|
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. 오후 11:32:37
> org.apache.catalina.core.StandardHostDeployer install
> 정보: 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 |
Eclipse User |
|
|
|
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. 오후 11:32:37
>>>> org.apache.catalina.core.StandardHostDeployer install
>>>> 정보: 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 |
Larry Isaacs 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. 오후 11:32:37
>>>>> org.apache.catalina.core.StandardHostDeployer install
>>>>> 정보: 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03534 seconds