WTP to configure JNDI

You want to configure the WTP environment, the following JNDI, there are two ways, one is in the Server project server.xml in the preparation of jndi the xml tags, but if you do not want to do this, but would like to "conf \ Catalina \ localhost" the following new xml should be a how to do it directly in wtp release directory "conf \ Catalina \ localhost" in the new name of a project. xml does not work, because every time the server starts the file will be overwritten. Can then project WebRoot / META-INF folder, create a new one the following context.xml, your context configuration and jndi configuration written in this file inside, and then open the server configuration interface, check the "publish module context to separate XML file" you're done. Start the server, the contents of the context.xml will be copied to the "conf \ Catalina \ localhost" in the.

WTP to configure JNDI

References:

http://wiki.eclipse.org/WTP_Tomcat_FAQ # How_do_I_specify_the_Tomcat_context_configuration_for_my_Web_Application.3F

How do I specify the Tomcat context configuration for my Web Application?

The configuration within <Context> elements may be added to the server.xml file associated with the Tomcat server, after the project has been added to the server. Note that if the project is removed from the server, this configuration will be lost. You can save a copy of the configuration in some file in your project if you want to persist this information.

Another approach is use the support found in Tomcat 4.1 and later for specifying context configuration within a META-INF/context.xml file found in the Web application. If a project containing a META-INF/context.xml file is added to one of these Tomcat servers in WTP, the context configuration found in this file will be included in the context for that project when server.xml, or separate context XML file in WTP 2.0.x and later, is file copied as part of publishing the server. When adding the configuration from the META-INF/context.xml file, all child elements of the <Context> are copied as well as its attributes, excluding the "path" and "docBase" attributes.

分类:Java 时间:2008-12-15 人气:275
分享到:
blog comments powered by Disqus

相关文章

  • Tomcat Web application using web.xml control Xiangjie (1) 2010-07-30

    Transfer from: http://fanqiang.chinaunix.net/app/web/2006-04-29/4122.shtml Tomcat Web application using web.xml control Xiangjie (1) Study: feng_sundy Source: unknown (2006-04-29 13:39:34) A definition of the head and the root element Deployment desc

  • Spring hibernate: this web application instance has been stopped already 2009-12-07

    Look at the error message: (In fact, the error from, that is it unacceptable and will not affect the works.) 2010-2-8 20:33:56 org.apache.catalina.core.StandardContext reload Information: Reloading this Context has started ********** Remove Context 9

  • Filter (filter) in the web application 2010-06-22

    Filter (Filter) in the Web development application: Filter specification from the beginning Servlet2.3 new features and enhanced specification in Servlet2.4. The following is a Filter in the Web development application. Filter Overview: Filter is bet

  • Enhance Web application performance best practices 2011-09-20

    First, to enhance Web application performance of the six basic ways 1 to reduce the number of HTTP requests Each HTTP request has a cost, including lookup DNS, create a connection and waiting for a response, so the number of requests to cut unnecessa

  • tomcat three ways to deploy web application 2010-03-15

    Reprinted: http://hi.baidu.com/xiaoba130/blog/item/493daad003f51e319a5027a4.html 1, directly into the Webapps directory Tomcat's Webapps directory is the default Tomcat application directory, when the server starts, it will load all the directory app

  • Tomcat web application deployment 2010-11-06

    Max on us today about web training program in the proper deployment under tomcat. Mainly include: 1.java the classloader in tomcat architecture under http://www.jaxmao.org/tomcat-docs/class-loader-howto.html Wrote Like many server applications, like,

  • Deployed in the Tomcat Java Web application (transfer) Tomcat war released 2010-03-31

    Deployed in the Tomcat Java Web applications in two ways: static and dynamic deployment of the deployment. In the following Tomcat $ CATALINA_HOME refers to the root directory. First, the static deployment of static deployment means is that we start

  • Tomcat Web Application Deployment Methods 2010-06-02

    Tomcat Web Application Deployment Methods Reference: http://blog.csdn.net/willowind/archive/2010/03/22/5404711.aspx Deployed in the Tomcat Java Web applications in two ways: static and dynamic deployment of the deployment. Below $ CATALINA_HOME refer

  • In Tomcat 6.0.X install Tomcat Administration Web Application 2010-09-05

    The new version of Tomcat is no longer integrated Tomcat Administration Web Application, need to manually install, you can use apache-tomcat-5.5.30, following the installation steps: 1, first download and install Tomcat 6.0 (the following method only

  • Tomcat in, Web application of the class and resource loading 2010-02-25

    Yesterday, reading a help: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html Is about Tomcat in, classLoader how they work. Some of them talk like this: Quote Therefore, from the perspective of a web application, class or resource loadi

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.569 (s). 12 q(s)