How to change Context Root ? [message #159850] |
Thu, 09 February 2006 09: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 #160728 is a reply to message #160713] |
Tue, 14 February 2006 10:33   |
Eclipse User |
|
|
|
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
|
|
|
Re: How to change Context Root ? [message #161055 is a reply to message #160407] |
Fri, 17 February 2006 08:25  |
Eclipse User |
|
|
|
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. 오후 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
>>>>
|
|
|
Powered by
FUDForum. Page generated in 0.04484 seconds