`

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

分享到:
评论

相关推荐

    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 ...

    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提供的类的相关资料,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧。

    endorsed 解决soa连接错误

    下载本包解压后放在%TOMCAT_HOME%和%JAVA_HOME%\lib下(jar包必须在endorsed 文件夹下)

    JAVA EE API

    JAVA EE API大全

    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参数配置

    在/usr/local/apache-tomcat-5.5.23/bin目录下的catalina.sh 添加:JAVA_OPTS='-Xms...-Djava.endorsed.dirs="C:\\ApacheGroup\\Tomcat 5.0\\common\\endorsed" -Xrs 加入 -Xms300m -Xmx350m 重起tomcat服务,设置生效

    javaee-endorsed-api-7.0.jar

    java运行依赖jar包

    PNS_OSA_183_2020_ENDORSED.pdf

    PNS_OSA_183_2020_ENDORSED.pdf

    sax2j:模式感知 XML 到 JSON 转换器

    sax2j 模式感知 XML 到 JSON 转换器sax2j是一个将 XML 转换为 JSON 的工具。 它使用 XML 文档的 XML 模式来指导棘手的决定,例如... 要使用架构 foo.xsd 将 foo.xml 转换为 JSON,请键入: java -Djava.endorsed.dirs=

    tomcat8:tomcat8源码分析

    -Dcatalina.home=launch -Dcatalina.base=launch -Djava.endorsed.dirs=launch/endorsed -Djava.io.tmpdir=launch/temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging....

    tomcat-source-code:tomcat8.x原始码-tomcat source code

    -Djava.endorsed.dirs=catalina-home/endorsed -Djava.io.tmpdir=catalina-home/temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=home/conf/logging....

    Tomcat9.0-read:tomcat源码阅读

    Djava.endorsed.dirs = D:\ code \ tomcat-read \ endorsed -Djava.io.tmpdir = D:\ code \ tomcat-read \ temp -Djava.util。 logging.manager = org.apache.juli.ClassLoaderLogManager -Djava.util.logging....

    myTomcat:tomcat源码调试构建-源码搭建

    - Djava . endorsed . dirs = F : / github_code / Mine / myTomcat / catalina - home / endorsed - Djava . io . tmpdir = F : / github_code / Mine / myTomcat / catalina - home / temp - Djava . ut

    jaxb-api-2.1.jar

    把该文件放在System.out.println(System.getProperty("java.endorsed.dirs"));目录下可以解决JAXB 2.0 API is being loaded from the bootstrap classloader错误. 注意:java web 项目必须在一个发布后的可以正常...

    jaxws-api-2.1.jar

    WebService runtime modeler error: Wrapper class XXX is not found....下载附件,执行System.out.println(System.getProperty("java.endorsed.dirs"));输出文件目录。如果endorsed文件夹不存在,可新建。

    jaxb-impl-2.1.jar

    WebService runtime modeler error: Wrapper class XXX is not found....下载附件,执行System.out.println(System.getProperty("java.endorsed.dirs"));输出文件目录。如果endorsed文件夹不存在,可新建。

    jdk1.8.0_66 debug源码,查看局部变量

    Java --&gt; Installed JRES,选择相应的JDK,点击Edit,r然后选择点击Add External jars,选择我们步骤9中目中的rt_debug.jar,就可以了。 注意:若原来的JRE目录下已经存在了rt.jar包,则要将新编译的rt_debug.jar...

    tomcat8.5:Tomcat8.5源码解析-源码解析

    虚拟机选项: -Dcatalina.home = catalina-home -Dcatalina.base = catalina-home -Djava.endorsed.dirs = catalina-home /认可-Djava.io.tmpdir = catalina-home / temp -Djava.util.logging.manager = org .apache...

Global site tag (gtag.js) - Google Analytics