Home » Language IDEs » ServerTools (WTP) » Web tools, Tomcat and JNDI configuration.
Web tools, Tomcat and JNDI configuration. [message #53457] |
Tue, 16 November 2004 12:13 |
Eclipse User |
|
|
|
Originally posted by: michele.l.evinco.it
Hi World!,
I' ve a simple question.
Where i can set JNDI resources in Web tools.
Now, with sysdeo plugin, i configure these resources in the file
name-application.xml in conf/Catalina/localhost.
With webtools, when i start the server, the plug-in reset my file with
the base Context information:
<Context docBase="C:/Progetti/Java/Nus/WebContent" path="/Nus"
reloadable="true">
</Context>
so, i loose all the information about JNDI resources every time i start
up the server.
I've try to write these data in server.xml but when the server start it
create a new configuration file with the base Context information.
The only way that i've found to work with JNDI is :
1. start server.
2. edit the name-application.xml in conf/Catalina/localhost when
the server is up.
Do someone have try to work with JNDI? if yes, there is a simple way to
configure it in the server with web tools?
Thanks
Bye
|
|
| | |
Re: Web tools, Tomcat and JNDI configuration. [message #77791 is a reply to message #54875] |
Sun, 27 February 2005 21:15 |
Christian Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Tim deBoer wrote:
> Hi Michele,
>
> 4 of the Tomcat configuration files are stored inside WTP so that they can
> be configured using the server editor. On publish, if you have the "Run
> modules directly from the workspace..." turned off, these files are
> published out to the Tomcat installation.
>
> To get around this, go to the Server preferences and check the "Create
> server resources in the workspace" option. When you create a new Tomcat
> server, these files will get created in the workspace instead of metadata,
> and you can edit the files directly inside the workspace, and they'll
> automatically be published out to Tomcat before running.
>
>
Hi,
i still have this problem,
i have created a new tomcat 5.5 server in the workspace, with the above
mentioned option checked. but eclipse still loads the server.xml file in
the ..\workspace\.metadata\.plugins\org.eclipse.wst.server.core dir.
changing the argument in the server run-configuration to the server.xml
in the workspace is useless to, because eclipse changes this value
automatically back to the metadata\plugins-path when starting the server.
|
|
|
Re: Web tools, Tomcat and JNDI configuration. [message #78083 is a reply to message #77791] |
Mon, 28 February 2005 14:36 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
WTP M3 now includes support for META-INF/context.xml. If present in
your web project, the children of the <context> element in this file
will be included in the <context> written to the server.xml when the
publish operation is performed. These children will not be visible in
the server.xml(s) found under the Servers project, but will be present
in the server.xml from which Tomcat is run. For details, see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=82812
Cheers,
Larry
Christian wrote:
> Tim deBoer wrote:
>
>> Hi Michele,
>>
>> 4 of the Tomcat configuration files are stored inside WTP so that they
>> can
>> be configured using the server editor. On publish, if you have the "Run
>> modules directly from the workspace..." turned off, these files are
>> published out to the Tomcat installation.
>>
>> To get around this, go to the Server preferences and check the "Create
>> server resources in the workspace" option. When you create a new Tomcat
>> server, these files will get created in the workspace instead of
>> metadata,
>> and you can edit the files directly inside the workspace, and they'll
>> automatically be published out to Tomcat before running.
>>
>>
> Hi,
>
> i still have this problem,
> i have created a new tomcat 5.5 server in the workspace, with the above
> mentioned option checked. but eclipse still loads the server.xml file in
> the ..\workspace\.metadata\.plugins\org.eclipse.wst.server.core dir.
> changing the argument in the server run-configuration to the server.xml
> in the workspace is useless to, because eclipse changes this value
> automatically back to the metadata\plugins-path when starting the server.
|
|
|
Goto Forum:
Current Time: Thu Dec 26 12:34:48 GMT 2024
Powered by FUDForum. Page generated in 0.02579 seconds
|