Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » location of tomcat configuration
location of tomcat configuration [message #170102] Thu, 25 May 2006 08:37 Go to next message
Tomasz Pik is currently offline Tomasz PikFriend
Messages: 18
Registered: July 2009
Junior Member
I've two servers registered in WTP (latest RC of 1.5).
For JBoss server WTP is able to use existing configuration (let's me
choose between 'default', 'all' and 'minimal' with out-of-the-box
JBoss installation.
But for Tomcat WTP creates a 'Servers' project in workspace and store
Tomcat configuration there.
Is there a possiblity to reuse existing Tomcat configuration like for
JBoss, without dedicated 'Servers' project?

Thanks,
Tomek
Re: location of tomcat configuration [message #170121 is a reply to message #170102] Thu, 25 May 2006 14:13 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1313
Registered: July 2009
Senior Member
It's not clear what you want to accomplish. When you create a new
Tomcat server, it does "reuse" the configuration in your Tomcat
installation when creating the copies under the Servers project. These
are created so that there are copies of these files that can be modified
while the Tomcat server is running without disturbing the server. At an
appropriate time, changes can be applied to the server to affect the
next start or restart.

This approach provides a higher level of integration. If you change a
JSP, publishing this change to the Tomcat server means simply copying
the JSP to the server. JBoss is built upon the "generic server"
support. With it's level of integration, publishing a JSP change means
packaging the new JSP into a WAR file, possibly putting the WAR in an
EAR, copying the EAR or WAR file to JBoss, and having the JBoss restart
the webapp. You could duplicate this lower level of integration for
Tomcat using an appropriate generic server definition file, but I'm not
sure there would be much of an advantage for doing so.

Cheers,
Larry

Tomasz Pik wrote:
> I've two servers registered in WTP (latest RC of 1.5).
> For JBoss server WTP is able to use existing configuration (let's me
> choose between 'default', 'all' and 'minimal' with out-of-the-box
> JBoss installation.
> But for Tomcat WTP creates a 'Servers' project in workspace and store
> Tomcat configuration there.
> Is there a possiblity to reuse existing Tomcat configuration like for
> JBoss, without dedicated 'Servers' project?
>
> Thanks,
> Tomek
Re: location of tomcat configuration [message #170179 is a reply to message #170121] Fri, 26 May 2006 07:00 Go to previous messageGo to next message
Tomasz Pik is currently offline Tomasz PikFriend
Messages: 18
Registered: July 2009
Junior Member
Larry Isaacs wrote:
> It's not clear what you want to accomplish. When you create a new
> Tomcat server, it does "reuse" the configuration in your Tomcat
> installation when creating the copies under the Servers project. These
> are created so that there are copies of these files that can be modified
> while the Tomcat server is running without disturbing the server. At an
> appropriate time, changes can be applied to the server to affect the
> next start or restart.
>
> This approach provides a higher level of integration. If you change a
> JSP, publishing this change to the Tomcat server means simply copying
> the JSP to the server. JBoss is built upon the "generic server"
> support. With it's level of integration, publishing a JSP change means
> packaging the new JSP into a WAR file, possibly putting the WAR in an
> EAR, copying the EAR or WAR file to JBoss, and having the JBoss restart
> the webapp. You could duplicate this lower level of integration for
> Tomcat using an appropriate generic server definition file, but I'm not
> sure there would be much of an advantage for doing so.

Thank you for explanation!
One thing that I do not understand is why this 'Servers' directory is
visible for me as a project. I accidentaly 'close unrelated projects'
and tomcat wasn't able to run, I have to find this one and reopen it.
Maybe this copy of config files should be stored somewhere inside
${workspace}/.metadata/.plugins/org.eclipse.wst.server.core ?
Is there a way to force wtp to use location other then project in
eclipse?

Thanks once more for explanation,
Tomek

>
> Cheers,
> Larry
>
> Tomasz Pik wrote:
>> I've two servers registered in WTP (latest RC of 1.5).
>> For JBoss server WTP is able to use existing configuration (let's me
>> choose between 'default', 'all' and 'minimal' with out-of-the-box
>> JBoss installation.
>> But for Tomcat WTP creates a 'Servers' project in workspace and store
>> Tomcat configuration there.
>> Is there a possiblity to reuse existing Tomcat configuration like for
>> JBoss, without dedicated 'Servers' project?
>>
>> Thanks,
>> Tomek
Re: location of tomcat configuration [message #170215 is a reply to message #170179] Fri, 26 May 2006 12:11 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1313
Registered: July 2009
Senior Member
The reason these files are placed in the Servers project is so they are
easily reached should you wish to edit them within Eclipse. For this
level of integration, you shouldn't have to go outside of Eclipse to
make modifications. However, the UI available to manage the
configuration is somewhat limited in what it can currently handle.
Manual editing is how everything else would be managed, such as adding a
new user to tomcat-users.xml. Since the Tomcat support if very much
tied to seeing these as workspace project files, I doubt there is any
way to have them located someplace else.

Larry

Tomasz Pik wrote:
> Larry Isaacs wrote:
>> It's not clear what you want to accomplish. When you create a new
>> Tomcat server, it does "reuse" the configuration in your Tomcat
>> installation when creating the copies under the Servers project. These
>> are created so that there are copies of these files that can be modified
>> while the Tomcat server is running without disturbing the server. At an
>> appropriate time, changes can be applied to the server to affect the
>> next start or restart.
>>
>> This approach provides a higher level of integration. If you change a
>> JSP, publishing this change to the Tomcat server means simply copying
>> the JSP to the server. JBoss is built upon the "generic server"
>> support. With it's level of integration, publishing a JSP change means
>> packaging the new JSP into a WAR file, possibly putting the WAR in an
>> EAR, copying the EAR or WAR file to JBoss, and having the JBoss restart
>> the webapp. You could duplicate this lower level of integration for
>> Tomcat using an appropriate generic server definition file, but I'm not
>> sure there would be much of an advantage for doing so.
>
> Thank you for explanation!
> One thing that I do not understand is why this 'Servers' directory is
> visible for me as a project. I accidentaly 'close unrelated projects'
> and tomcat wasn't able to run, I have to find this one and reopen it.
> Maybe this copy of config files should be stored somewhere inside
> ${workspace}/.metadata/.plugins/org.eclipse.wst.server.core ?
> Is there a way to force wtp to use location other then project in
> eclipse?
>
> Thanks once more for explanation,
> Tomek
>
>> Cheers,
>> Larry
>>
>> Tomasz Pik wrote:
>>> I've two servers registered in WTP (latest RC of 1.5).
>>> For JBoss server WTP is able to use existing configuration (let's me
>>> choose between 'default', 'all' and 'minimal' with out-of-the-box
>>> JBoss installation.
>>> But for Tomcat WTP creates a 'Servers' project in workspace and store
>>> Tomcat configuration there.
>>> Is there a possiblity to reuse existing Tomcat configuration like for
>>> JBoss, without dedicated 'Servers' project?
>>>
>>> Thanks,
>>> Tomek
Previous Topic:Server hostname clarification
Next Topic:WSDL Editor question
Goto Forum:
  


Current Time: Fri Dec 19 02:25:42 GMT 2014

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

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