Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » changing context name
changing context name [message #195549] Tue, 03 July 2007 13:14 Go to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Hi,
I have a dynamic web project. How do I change my project's context name?
Re: changing context name [message #195565 is a reply to message #195549] Tue, 03 July 2007 13:57 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 189
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
You have to make an EAR project that adds your Web project.
Then you have to open the application.xml of the EAR project. There you can
modify the context-root tag of your Web module.

If you publish the Web project directly, without including it in an EAR
(e.g. Tomcat) then the context-root value is the name of the Web project.


"zohar" <david_fire4@hotmail.com> wrote in message
news:f6di3f$p58$1@build.eclipse.org...
> Hi,
> I have a dynamic web project. How do I change my project's context name?
Re: changing context name [message #195580 is a reply to message #195565] Tue, 03 July 2007 14:27 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Thank you so much for all the help.

"Kaloyan Raev" <kaloyan.raev@sap.com> wrote in message
news:f6dkji$2oi$1@build.eclipse.org...
> You have to make an EAR project that adds your Web project.
> Then you have to open the application.xml of the EAR project. There you
> can modify the context-root tag of your Web module.
>
> If you publish the Web project directly, without including it in an EAR
> (e.g. Tomcat) then the context-root value is the name of the Web project.
>
>
> "zohar" <david_fire4@hotmail.com> wrote in message
> news:f6di3f$p58$1@build.eclipse.org...
>> Hi,
>> I have a dynamic web project. How do I change my project's context name?
>
>
Re: changing context name [message #195588 is a reply to message #195580] Tue, 03 July 2007 15:03 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1313
Registered: July 2009
Senior Member
Just to be sure, a Dynamic Web Project has settings for a deploy-name
(found in the org.eclipse.wst.common.component file) and a context-root.
If by "context name" you are referring to the context-root setting,
you can change that in the web project using the Web Project Settings
page of the project's Properties dialog.

Cheers,
Larry

zohar wrote:
> Thank you so much for all the help.
>
> "Kaloyan Raev" <kaloyan.raev@sap.com> wrote in message
> news:f6dkji$2oi$1@build.eclipse.org...
>> You have to make an EAR project that adds your Web project.
>> Then you have to open the application.xml of the EAR project. There
>> you can modify the context-root tag of your Web module.
>>
>> If you publish the Web project directly, without including it in an
>> EAR (e.g. Tomcat) then the context-root value is the name of the Web
>> project.
>>
>>
>> "zohar" <david_fire4@hotmail.com> wrote in message
>> news:f6di3f$p58$1@build.eclipse.org...
>>> Hi,
>>> I have a dynamic web project. How do I change my project's context name?
>>
>>
Re: changing context name [message #195620 is a reply to message #195588] Wed, 04 July 2007 05:58 Go to previous message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Not sure I understand the difference, but I wanted my project to be deployed
as a different context. I changed the project name and it did the trick (it
actually didn't work right away - can't remember what I did to make it take
affect).

"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:f6dofp$p6i$1@build.eclipse.org...
> Just to be sure, a Dynamic Web Project has settings for a deploy-name
> (found in the org.eclipse.wst.common.component file) and a context-root.
> If by "context name" you are referring to the context-root setting, you
> can change that in the web project using the Web Project Settings page of
> the project's Properties dialog.
>
> Cheers,
> Larry
>
> zohar wrote:
>> Thank you so much for all the help.
>>
>> "Kaloyan Raev" <kaloyan.raev@sap.com> wrote in message
>> news:f6dkji$2oi$1@build.eclipse.org...
>>> You have to make an EAR project that adds your Web project.
>>> Then you have to open the application.xml of the EAR project. There you
>>> can modify the context-root tag of your Web module.
>>>
>>> If you publish the Web project directly, without including it in an EAR
>>> (e.g. Tomcat) then the context-root value is the name of the Web
>>> project.
>>>
>>>
>>> "zohar" <david_fire4@hotmail.com> wrote in message
>>> news:f6di3f$p58$1@build.eclipse.org...
>>>> Hi,
>>>> I have a dynamic web project. How do I change my project's context
>>>> name?
>>>
>>>
Previous Topic:WTP all-in-one
Next Topic:How to create a new Server for WebSphere 5.1
Goto Forum:
  


Current Time: Sat Dec 20 12:29:18 GMT 2014

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

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