- 浏览: 248000 次
- 性别:
- 来自: Shanghai
文章分类
最新评论
-
a790851624:
本人刚到公司,接到一个任务:在java代码中集成kettle的 ...
java应用程序中集成Kettle -
obnijeh:
谢谢共享,正需要。
Kettle 简介及Kettle用户操作手册 -
zhaokui:
很好,很好
Java中SimpleDateFormat用法详解——获得常用时间表示法(二) -
zhaokui:
,不错,不错
Java中SimpleDateFormat用法详解(一) -
babaoqi:
学习下,O(∩_∩)O谢谢了
Kettle 简介及Kettle用户操作手册
web.xml Deployment Descriptor Elements
The following sections describe the deployment descriptor elements defined in the web.xml
file under the root element <web-app>
:
- context-param
- description
- display-name
- distributable
- ejb-ref
- ejb-local-ref
- env-entry
- error-page
- filter
- filter-mapping
- icon
- listener
- login-config
- mime-mapping
- resource-env-ref
- resource-ref
- security-constraint
- security-role
- servlet
- servlet-mapping
- session-config
- taglib
- welcome-file-list
icon
The icon
element specifies the location within the Web application for a small and large image used to represent the Web application in a GUI tool. (The servlet element also has an element called the icon element, used to supply an icon to represent a servlet in a GUI tool.)
The following table describes the elements you can define within an icon
element.
display-name
The optional display-name
element specifies the Web application display name, a short name that can be displayed by GUI tools.
description
The optional description element provides descriptive text about the Web application.
distributable
The distributable element is not used by WebLogic Server.
context-param
The optional context-param
element contains the declaration of a Web application's servlet context initialization parameters. The following table describes the reserved context parameters used by the Web application container, which have been deprecated and have replacements in weblogic.xml..
input-charset (defined within charset-param) in weblogic.xml. See input-charset. |
||
Define how often WebLogic Server checks whether a servlet has been modified, and if so, reloads it. A value of -1 is never reload, 0 is always reload. The default is set to 1 second. |
servlet-reload-check-secs (defined within container-descriptor) in weblogic.xml.See container-descriptor. |
|
When this values has been set, the container appends this path to the Web application classpath. This is not a recommended method and is supported only for backward compatibility. |
No replacement. Use other means such as manifest classpath or WEB-INF/lib or WEB-INF/classes or virtual directories. |
|
Sets the default servlet for the Web application. This is not a recommended |
No replacement. Instead use the servlet and servlet-mapping elements in web.xml to define a default servlet. The URL pattern for default-servlet should be "/". See servlet-mapping. For additional examples of servlet mapping, see Servlet Mapping. |
The following context-param
parameter is still valid.
filter
The filter element defines a filter class and its initialization attributes. For more information on filters, see Configuring Filters.
The following table describes the elements you can define within a filter element.
filter-mapping
The following table describes the elements you can define within a filter-mapping
element.
listener
Define an application listener using the listener element.
For more information, see Configuring an Event Listener Class.
servlet
The servlet
element contains the declarative data of a servlet.
If a jsp-file
is specified and the <load-on-startup>
element is present, then the JSP is precompiled and loaded when WebLogic Server starts.
The following table describes the elements you can define within a servlet element.
icon
This is an element within the servlet.
The icon
element specifies the location within the Web application for small and large images used to represent the servlet in a GUI tool.
The following table describes the elements you can define within an icon
element.
init-param
This is an element within the servlet.
The optional init-param
element contains a name/value pair as an initialization attribute of the servlet. Use a separate set of init-param
tags for each attribute.
You can access these attributes with the javax.servlet.ServletConfig.getInitParameter()
method.
The following table describes the elements you can define within a init-param
element.
security-role-ref
This is an element within the servlet.
The security-role-ref
element links a security role name defined by <security-role>
to an alternative role name that is hard-coded in the servlet logic. This extra layer of abstraction allows the servlet to be configured at deployment without changing servlet code.
The following table describes the elements you can define within a security-role-ref
element.
servlet-mapping
The servlet-mapping
element defines a mapping between a servlet and a URL pattern.
The following table describes the elements you can define within a servlet-mapping
element.
The name of the servlet to which you are mapping a URL pattern. This name corresponds to the name you assigned a servlet in a |
||
Describes a pattern used to resolve URLs. The portion of the URL after the
The URL must follow the rules specified in the Servlet 2.3 Specification. For additional examples of servlet mapping, see Servlet Mapping. |
session-config
The session-config
element defines the session attributes for this Web application.
The following table describes the element you can define within a session-config
element.
The number of minutes after which sessions in this Web application expire. The value set in this element overrides the value set in the Maximum value: Integer.MAX_VALUE ÷ 60
For more information, see session-descriptor. |
mime-mapping
The mime-mapping
element defines a mapping between an extension and a mime type.
The following table describes the elements you can define within a mime-mapping
element.
welcome-file-list
The optional welcome-file-list
element contains an ordered list of welcome-file
elements.
When the URL request is a directory name, WebLogic Server serves the first file specified in this element. If that file is not found, the server then tries the next file in the list.
For more information, see Configuring Welcome Pages and How WebLogic Server Resolves HTTP Requests.
The following table describes the element you can define within a welcome-file-list
element.
error-page
The optional error-page
element specifies a mapping between an error code or exception type to the path of a resource in the Web application.
When an error occurs—while WebLogic Server is responding to an HTTP request, or as a result of a Java exception—WebLogic Server returns an HTML page that displays either the HTTP error code or a page containing the Java error message. You can define your own HTML page to be displayed in place of these default error pages or in response to a Java exception.
For more information, see Customizing HTTP Error Responses and How WebLogic Server Resolves HTTP Requests
The following table describes the elements you can define within an error-page
element.
Note: Define either an <error-code>
or an <exception-type>
but not both.
A fully-qualified class name of a Java exception type, for example, |
||
The location of the resource to display in response to the error. For example, |
taglib
The optional taglib
element describes a JSP tag library.
This element associates the location of a JSP Tag Library Descriptor (TLD) with a URI pattern. Although you can specify a TLD in your JSP that is relative to the WEB-INF
directory, you can also use the <taglib>
tag to configure the TLD when deploying your Web application. Use a separate element for each TLD.
The following table describes the elements you can define within a taglib
element.
resource-env-ref
The resource-env-ref element contains a declaration of a Web application's reference to an administered object associated with a resource in the Web application's environment. It consists of an optional description, the resource environment reference name, and an indication of the resource environment reference type expected by the Web application code.
<resource-env-ref>
<resource-env-ref-name>jms/StockQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
The following table describes the elements you can define within a resource-env-ref element.
resource-ref
The optional resource-ref
element defines a reference lookup name to an external resource. This allows the servlet code to look up a resource by a "virtual" name that is mapped to the actual location at deployment time.
Use a separate <resource-ref>
element to define each external resource name. The external resource name is mapped to the actual location name of the resource at deployment time in the WebLogic-specific deployment descriptor weblogic.xml
.
The following table describes the elements you can define within a resource-ref
element.
The name of the resource used in the JNDI tree. Servlets in the Web application use this name to look up a reference to the resource. |
||
The Java type of the resource that corresponds to the reference name. Use the full package name of the Java type. |
||
Used to control the resource sign on for security. If set to |
||
Specifies whether connections obtained through the given resource manager connection factory reference can be shared. |
security-constraint
The security-constraint
element defines the access privileges to a collection of resources defined by the <web-resource-collection>
element.
For detailed instructions and an example on configuring security in Web applications, see Securing WebLogic Resources. Also, for more information on WebLogic Security, refer to Programming WebLogic Security.
The following table describes the elements you can define within a security-constraint element.
Defines the components of the Web application to which this security constraint is applied. |
||
Defines which groups or principals have access to the collection of web resources defined in this security constraint. See also auth-constraint. |
||
Defines how the client should communicate with the server. See also user-data-constraint |
web-resource-collection
Each <security-constraint>
element must have one or more <web-resource-collection>
elements. These define the area of the Web application to which this security constraint is applied.
This is an element within the security-constraint.
The following table describes the elements you can define within a web-resource-collection element.
auth-constraint
This is an element within the security-constraint.
The optional auth-constraint
element defines which groups or principals have access to the collection of Web resources defined in this security constraint.
The following table describes the elements you can define within an auth-constraint
element.
user-data-constraint
This is an element within the security-constraint.
The user-data-constraint
element defines how the client should communicate with the server.
The following table describes the elements you may define within a user-data-constraint
element.
login-config
Use the optional login-config
element to configure how the user is authenticated; the realm name that should be used for this application; and the attributes that are needed by the form login mechanism.
If this element is present, the user must be authenticated in order to access any resource that is constrained by a <security-constraint>
defined in the Web application. Once authenticated, the user can be authorized to access other resources with access privileges.
The following table describes the elements you can define within a login-config
element.
Specifies the method used to authenticate the user. Possible values:
|
||
The name of the realm that is referenced to authenticate the user credentials. If omitted, the realm defined with the Auth Realm Name field on the Web application—> Configuration—>Other tab of the Administration Console is used by default. For more information, see Managing WebLogic Security. Note: The |
||
Use this element if you configure the |
form-login-config
This is an element within the login-config.
Use the <form-login-config>
element if you configure the <auth-method>
to FORM
.
security-role
The following table describes the elements you can define within a security-role
element.
The role name. The name you use here must have a corresponding entry in the WebLogic-specific deployment descriptor, |
env-entry
The optional env-entry
element declares an environment entry for an application. Use a separate element for each environment entry.
The following table describes the elements you can define within an env-entry
element.
ejb-ref
The optional ejb-ref
element defines a reference to an EJB resource. This reference is mapped to the actual location of the EJB at deployment time by defining the mapping in the WebLogic-specific deployment descriptor file, weblogic.xml
. Use a separate <ejb-ref>
element to define each reference EJB name.
The following table describes the elements you can define within an ejb-ref
element.
The name of the EJB used in the Web application. This name is mapped to the JNDI tree in the WebLogic-specific deployment descriptor |
||
The |
||
A security role whose security context is applied to the referenced EJB. Must be a security role defined with the |
ejb-local-ref
The ejb-local-ref element is used for the declaration of a reference to an enterprise bean's local home. The declaration consists of:
- An optional description
- The EJB reference name used in the code of the Web application that references the enterprise bean. The expected type of the referenced enterprise bean
- The expected local home and local interfaces of the referenced enterprise bean
- Optional ejb-link information, used to specify the referenced enterprise bean
The following table describes the elements you can define within an ejb-local-ref
element.
发表评论
-
Weblogic远程调试
2012-10-15 15:04 715配置weblogic远程调试之前,需要做这几个工作: 1 ... -
WebLogic组播测试工具MulticastTest的使用
2011-10-14 14:06 2700When you have servers in one cl ... -
weblogic日志小结
2011-03-02 16:16 20081.access.log http服务日志 ... -
资料地址
2010-09-21 15:57 765http://blog.csdn.net/liwei_cmg/ ... -
部署 web 项目到weblogic时的错误二
2010-07-14 17:53 986weblogic.management.ManagementE ... -
部署 web 项目到weblogic时的错误一
2010-07-14 17:47 1942部署 web project 到weblogic上后,出 ... -
快速把web项目部署到weblogic上
2010-05-27 17:15 1057weblogic简介 ... -
WebLogic上部署J2EE应用程序
2010-05-27 17:12 1019J2EE的主要技术:JSP、Servlet、J2EE配置、 ... -
Eclipse 3.2 + MyEclipse 5.0GA + WebLogic 9.2 配置详解
2010-05-26 15:29 1008Eclipse 3.2 + MyEclipse 5.0GA ... -
Tomcat 项目迁移至weblogic 10笔记
2010-05-26 15:27 2292OS:Windows XP WebApp Server:To ... -
Weblogic Server上部署War包
2010-05-26 15:24 1943利用各种IDE工具,将项目打成War包(当然,也可以直接在ID ... -
weblogic9.1部署Web应用程序
2010-05-26 15:14 1215安装 Web 应用程序指的是使其物理文件或目录可由 WebLo ... -
WebLogic Server的安装与配置
2010-05-26 15:10 1481WebLogic Server是BEA公司的产品,是 ... -
WebLogic Server9.2破解下载、 WebLogic Server 10破解下载大全
2010-05-26 09:26 8119以下信息均收集于互联网,仅供学习和测试使用. 没有特别说明均 ...
相关推荐
《web.xml配置参考文档》是Java Web开发中的核心参考资料,主要涵盖了如何在Web应用程序中进行配置的详尽指南。此文档以CHM(Compiled Help Manual)格式提供,便于开发者快速检索和查阅。对于任何涉及Java Web、JSP...
保准可以用,我之前下载过其他的有的不能用。所以我就自己传上来了,如果不能用,留言给我,我发给你!
### 部署描述文件web.xml配置详解 #### 一、引言 在Java Web开发中,`web.xml`是一个非常重要的配置文件,它作为Web应用程序的部署描述符,负责管理与应用程序相关的各项配置信息。本文将深入解析`web.xml`的各项...
第一次发上来东西。希望大家多多支持,绝对能下载。
10. ****:映射Servlet到URL模式,扩展了Servlet的web.xml配置。 11. ****:定义文件扩展名与其对应的MIME类型。 三、weblogic.xml的实践应用 1. **性能优化**:通过调整session管理策略,可以优化服务器内存使用,...
"DWR中文API"是DWR库的中文参考文档,详细列出了各种接口、类和方法,是开发者查找和理解DWR功能的重要参考资料。API文档通常会包括每个类的描述、方法签名、参数说明和返回值,帮助开发者快速定位并使用所需的功能...
- 根据需求调整XML配置,优化缓存性能和资源使用。 以上是Linux环境下配置JDK、Tomcat以及安装GeoWebCache的基本流程。实际操作中,还需考虑系统安全、权限控制、日志管理和性能监控等细节。在配置过程中,阅读...
- Context是具体应用程序的容器,它对应于WAR文件或WEB-INF目录中的web.xml配置。每个Context定义了一个Web应用程序的上下文根,比如"/app1",并与特定的Host相关联。Context可以设置在Host内,也可以在Engine级别...
本书不仅可以作为java web开发的学习用书,还可以作为从事java web开发的程序员的参考用书和必备手册。此外,本书的配套光盘还免费提供了价值人民币330元的java教学视频,对java语言进行了全面讲解,帮助一些不会...
总之,《ASP.NET 2.0 XML 高级编程(第3版)》全面覆盖了ASP.NET 2.0框架下XML的高级应用,对于希望深入理解并充分利用XML来提升Web应用性能的开发者来说,是一本不可多得的参考书。同时,提供的代码示例和实践指导...
在本教程中,我们将深入探讨如何使用DOM4J解析XML配置文件,并模拟处理`web.xml`中的`url-pattern`元素。 首先,让我们了解DOM4J的基本概念。DOM4J是一个基于Java的DOM模型的XML库,它扩展了标准的DOM API,增加了...
### structs的配置文件hbm.xml知识点详解 #### 一、概述 在介绍具体的配置细节之前,我们先来了解一下struts2、Hibernate3.2以及Spring2.0这三种技术的基本概念及其整合的意义。 1. **Struts2**:是Apache基金会...
例如,Apache CXF包含了一个完整的类库,可以处理从生成WSDL到部署Web服务的整个过程,而Metro则是Sun Microsystems(现Oracle)提供的官方参考实现。 通过理解这些核心组件及其作用,开发者能够更好地构建和维护...
2. 使用jboss.xml配置:此方法需要在ejb jar包同级目录下添加jboss.xml文件,用于定制JNDI名称。ejb-jar.xml中的会通过jboss.xml映射到JNDI中的特定名称,使得客户端能够通过自定义的名称查找EJB。 在部署过程中,...
- 实现集群分发可以通过`HttpClusterServlet`实现,具体的部署方式参见上述集群配置文章介绍的`web.xml`和`weblogic.xml`文件。 - 实现单一服务转发则通过`HttpProxyServlet`实现,配置`weblogic.xml`和`web.xml`...
### Struts-config.xml配置文件详解 #### 一、引言 在Java Web开发领域中,Struts框架作为经典的MVC(Model-View-Controller)架构实现之一,为开发者提供了便捷的方式来构建可维护性和扩展性高的Web应用程序。...
XML(eXtensible Markup Language)是一种用于标记数据的语言,广泛应用于数据交换、配置文件、文档存储等多个领域。在Java平台上,XML的处理能力尤为强大,为开发者提供了丰富的API和工具。 1. **Java与XML的基础*...
通过深入学习Spring Security 3.0.x 的官方参考文档,开发者能够掌握这个框架的核心概念和用法,为构建安全的企业级应用提供坚实的基础。文档的中文版有助于国内开发者更便捷地理解和使用这一强大的安全框架。
书中会详细讲解XML的语法、解析、验证、DOM模型、XPath查询、XSLT转换以及XML文档对象模型(XML DOM)等核心概念。 在高级编程方面,读者将了解到如何使用ASP.NET 2.0的XML Web服务(ASMX)和WCF(Windows ...
XML常用于Web服务、配置文件和数据集成。与HTML不同,XML不关心数据的显示,只关注数据的结构。 **PHP(Hypertext Preprocessor)** 是一种服务器端的脚本语言,用于创建动态网页和Web应用程序。PHP能与MySQL等...