`

Java Endorsed Standards Override Mechanism

    博客分类:
  • Java
阅读更多

Introduction

From time to time it is necessary to update the Java platform in order to incorporate newer versions of standards that are created outside of the Java Community Process (Endorsed Standards), or in order to update the version of a technology included in the platform to correspond to a later standalone version of that technology (Standalone Technologies).

The Endorsed Standards Override Mechanism provides a means whereby later versions of classes and interfaces that implement Endorsed Standards or Standalone Technologies may be incorporated into the Java Platform.

Deploying updated packages

Packages to be updated through this mechanism should be placed in JAR files. The system property java.endorsed.dirs specifies one or more directories that the Java runtime environment will search for such JAR files. If more than one directory path is specified by java.endorsed.dirs, they must be separated by File.pathSeparatorChar. If no value is set for java.endorsed.dirs, then Sun Microsystem's implementation of the Java platform looks for JAR files in a default standard location:
<java-home>\lib\endorsed [Microsoft Windows] <java-home>/lib/endorsed [Solaris or Linux]
Here <java-home> refers to the directory where the runtime software is installed (which is the top-level directory of the Java SE Runtime Environment or the jre directory in the JDK).

The Java SE runtime environment will use classes in such JAR files to override the corresponding classes provided in the Java platform as it was shipped.

Endorsed Standards APIs

The Endorsed Standards for Java SE constitute all classes and interfaces that are defined in the packages listed in this section. Classes and interfaces defined in sub-packages of listed packages are not Endorsed Standards unless those sub-packages are themselves listed. The Endorsed Standards Override Mechanism may be used to override the Java SE platform packages in this list, and these packages may be overridden only by versions of the Endorsed Standard that are newer than that provided by the Java platform as released by Sun. With the exception of packages listed here and the technologies listed in the Standalone Technologies section below, no other packages from the Java SE platform API specification may be overridden.
javax.rmi.CORBA org.omg.CORBA org.omg.CORBA.DynAnyPackage org.omg.CORBA.ORBPackage org.omg.CORBA.portable org.omg.CORBA.TypeCodePackage org.omg.CORBA_2_3 org.omg.CORBA_2_3.portable org.omg.CosNaming org.omg.CosNaming.NamingContextExtPackage org.omg.CosNaming.NamingContextPackage org.omg.Dynamic org.omg.DynamicAny org.omg.DynamicAny.DynAnyFactoryPackage org.omg.DynamicAny.DynAnyPackage org.omg.IOP org.omg.IOP.CodecFactoryPackage org.omg.IOP.CodecPackage org.omg.Messaging org.omg.PortableInterceptor                                                                                                                                                                                                                                                                                                                                                                 
In addition to the packages listed above, which are part of the Java SE specification, users of Sun's Java SE Reference Implementation are allowed to use the Endorsed Standards Override Mechanism to override implementation-specific classes associated with these packages, such as the org.w3c.dom sub-packages delivered in Sun's Reference Implementation.

Standalone Technologies

The Standalone Technologies for Java SE constitute all classes and interfaces that are defined and implemented in the technologies listed in this section. The Endorsed Standards Override Mechanism may be used to override the Java technologies in this list, and these technologies may be overridden only by providing a complete and newer implementation of the Standalone Technology than was provided in the original implementation of the Java Platform. With the exception of the technologies in this list and the packages listed in the Endorsed Standards APIs section above, no other packages from the Java SE platform API specification may be overridden.
Java API for XML Processing (JAXP), version 1.4
Java Architecture for XML Binding (JAXB), version 2.0
Java API for XML-Based Web Services (JAX-WS), version 2.0
Java Compiler API, version 1.0
Pluggable Annotation Processing API, version 1.0
Common Annotations for the Java Platform, version 1.0
Scripting for the Java Platform, version 1.0
SOAP with Attachments API for Java (SAAJ), version 1.3

参考:
http://java.sun.com/javase/6/docs/technotes/guides/standards/index.html

分享到:
评论

相关推荐

    apache-tomcat-8.0.44与jdk1.8.0_77的jre集成

    4. **配置`catalina.properties`**:在Tomcat的`conf`目录下,有一个名为`catalina.properties`的文件,这里可以设置`java.endorsed.dirs`属性来加载Java Endorsed Standards Override Mechanism,以及`common....

    jaxws-api-2.1_jaxb-api-2.1.jar

    **Endorsed Standards Override Mechanism** 在Java中,"endorsed"目录用于覆盖标准库中的特定版本,以便使用不同或者更新的实现。`endorsed`目录里的jar文件会在Java启动时优先加载,因此,当系统需要使用特定版本...

    JavaSE-6.0-英文手册(2008/11/30_FullUpdate)

    Endorsed Standards Override Mechanism Extension Mechanism Internationalization JavaBeansTM Component API Java Management Extensions (JMX) Java Native Interface (JNI) Security XML ...

    endorsed 解决soa连接错误

    标题中的"endorsed 解决soa连接错误"指的是在Java环境中,通过使用endorsed目录机制来解决SOA(Service-Oriented Architecture,面向服务架构)连接时遇到的问题。SOA是一种设计原则,允许应用程序组件之间通过网络...

    jaxb-api-2.2 jaxb-impl

    在使用webservice,mule esb等需要jaxb的项目里经常会出现 JAXB 2.0 API is being loaded from the bootstrap classloader这个错误,按照打出的信息Use the endorsed directory mechanism to place jaxb-api.jar in ...

    Java利用endorsed如何覆盖jdk提供的类详解

    主要给大家介绍了关于Java利用endorsed如何覆盖jdk提供的类的相关资料,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧。

    javaee-endorsed-api-7.0.jar

    java运行依赖jar包

    OpenSAML示例代码(java)

    `endorsed` 目录通常用来存放与Java标准库冲突但需要使用的第三方库,因为它们需要被Java虚拟机识别为“已认可”的扩展。 `src` 目录包含了项目的源代码,可能有Java类和其他资源文件,如XML配置或模板。 `lib` ...

    jaxb-2_1_9.zip

    Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/) 解决方法:找一个jaxb-api.jar的包(比如从netbeans...

    tomcat6.0 修改启动内存设置 java jvm参数配置

    -Djava.endorsed.dirs="C:\ApacheGroup\Tomcat 5.0\common\endorsed" -Xrs ``` - 新增 `-Xms300m -Xmx350m` 到上述命令中: ```bat -Dcatalina.home="C:\ApacheGroup\Tomcat 5.0" -Djava.endorsed.dirs="C:\...

    decvm-0.2 for java7

    4. 使用带有-Djava.endorsed.dirs参数的java命令启动你的应用程序,这样DCEVM就会被自动加载。 一旦安装并配置好DCEVM,你就可以在IDE(如Eclipse或IntelliJ IDEA)中启用HotSwap功能。当修改了源代码并保存后,IDE...

    javax.xml.ws.Service 报错需要的包

    需要确保endorsed目录设置正确,通常在`JAVA_HOME/jre/lib/endorsed`或`JAVA_HOME/lib/endorsed`下,并且包含了所有必要的JAX-WS相关jar文件。 3. **Maven或Gradle构建问题**:如果你使用的是Maven或Gradle这样的...

    JAVA如何调用wsdl过程详解

    建议升级JDK至1.7,并且在JDK文件夹下的jre/lib/endorsed路径中添加apache-cxf中jaxb对应的jar包。 b. 其次,在生成Java文件并导入项目后,可能遇到构造函数报错的问题。这个问题通常是由于jax-ws2.2规范与Java 6的...

    java相关问题

    Java 提供了 endorsed 技术来覆盖 JDK 中的类,但这不适用于 `java.lang` 包中的类。 2. **Java 代码查错** - **错误示例1**:抽象方法 `isStupidName` 缺少分号且包含花括号,抽象方法定义应为 `public abstract ...

    xalan系列jar包

    5. **endorsed.txt**: 这个文件可能是在Java运行环境中设置endorsed目录的指示。在Java中,endorsed目录用于覆盖JDK自带的标准库。当新的XML解析器或XSLT处理器比JDK自带的更先进时,可以通过在endorsed目录下放置...

    json webservice

    这个"endorsed"文件夹可能包含了额外的库,如Java JSON处理库,这些库可以通过设置`java.endorsed.dirs`系统属性来优先加载,避免与JRE自带的库冲突。 2. 配置MySQL数据库并导入相关的数据库文件。这将创建所需的表...

    tomcat-8.0.45

    Apache Tomcat 8.0.45 是一个广泛使用的开源软件,它是一个实现了Java Servlet、JavaServer Pages(JSP)和Java EE的Web应用程序容器。这个版本是Tomcat的8.0系列的一个稳定版本,提供了对Java EE 7规范的支持。在本...

Global site tag (gtag.js) - Google Analytics