Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP and Tomcat's server.xml
WTP and Tomcat's server.xml [message #39249] Tue, 17 August 2004 12:15 Go to next message
Eclipse UserFriend
Originally posted by: emdot.seznam.cz

Hi,

I have a problem when installing/restarting tomcat from the "Servers"
view. When I start the Tomcat from Eclipse the
$CATALINA_HOME/conf/server.xml configuration file is always ignored. So
when I configure e.g. some DataSource in my server.xml for myweb
<Context> , I'm unable to use it. I cannot use
$CATALINA_HOME/conf/Catalina/localhost/myweb.xml approach either,
because this file is overwritten each time I start/restart Tomcat from
Eclipse.

So, is there any solution to solve this issue?

1. set somewhere in the plugin configuration custom myweb.xml (now it is
probably created by WTP itself?)

2. find out which server.xml is used (if any, and then I can customize
it instead of $CATALINA_HOME/conf/server.xml)

Thanks for any tips,

Martin
Re: WTP and Tomcat's server.xml [message #40344 is a reply to message #39249] Mon, 23 August 2004 13:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: v.stefa.libero.it

> I have a problem when installing/restarting tomcat from the "Servers"
> view. When I start the Tomcat from Eclipse the
> $CATALINA_HOME/conf/server.xml configuration file is always ignored. So
> when I configure e.g. some DataSource in my server.xml for myweb
> <Context> , I'm unable to use it. I cannot use
> $CATALINA_HOME/conf/Catalina/localhost/myweb.xml approach either,
> because this file is overwritten each time I start/restart Tomcat from
> Eclipse.

I solved this problem editing the two files "server.xml" located in

D:\eclipse30\workspace\.metadata\.plugins\com.ibm.wtp.server .core\tmp0\conf
and
D:\eclipse30\workspace\.metadata\.plugins\com.ibm.wtp.server .core\configs\20
_08_04_0.271-data

(my home eclipse 3.0 directory is D:\eclipse30).

It seems it works.

Vincenzo (Italy)
Re: WTP and Tomcat's server.xml [message #40845 is a reply to message #40344] Fri, 27 August 2004 12:17 Go to previous messageGo to next message
Tim deBoer is currently offline Tim deBoerFriend
Messages: 71
Registered: July 2009
Member
Hi Martin & Enzo,

You don't need to edit the copy in the temp directory. It will be updated
from the master copy (currently in configs) the next time you publish.

Since you know enough about the Tomcat configuration, there's another thing
that will help. Under Preferences > Server, select the checkbox that creates
resources in the workspace. Then delete the existing Tomcat server and
create another one. This will create all the resources inside the workspace
instead of in the .metadata directory, so you can edit them alongside other
files in your workspace.
Re: WTP and Tomcat's server.xml [message #41066 is a reply to message #40845] Mon, 30 August 2004 08:19 Go to previous message
Eclipse UserFriend
Originally posted by: emdot.seznam.cz

Tim deBoer wrote:
> Hi Martin & Enzo,
>
> You don't need to edit the copy in the temp directory. It will be updated
> from the master copy (currently in configs) the next time you publish.
>
> Since you know enough about the Tomcat configuration, there's another thing
> that will help. Under Preferences > Server, select the checkbox that creates
> resources in the workspace. Then delete the existing Tomcat server and
> create another one. This will create all the resources inside the workspace
> instead of in the .metadata directory, so you can edit them alongside other
> files in your workspace.

Works exactly as I need. Life is little easier again :)
Thanks for answers to both of you.

Martin
Previous Topic:Seeting Tomcat's environment
Next Topic:IBM database tools
Goto Forum:
  


Current Time: Thu Oct 10 22:27:09 GMT 2024

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

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

Back to the top