WTP and Tomcat's server.xml [message #39249] |
Tue, 17 August 2004 12:15 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #41066 is a reply to message #40845] |
Mon, 30 August 2004 08:19 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.07941 seconds