Java. Lang. linkageerror occurs when eclipse integrates the jboss-5.0.0.GA

Source: Internet
Author: User
ArticleDirectory
    • Endorsed standards classes deployment

When myeclipse integrates jboss5.0 and starts JBoss, the following API error message is displayed:

Java. lang. linkageerror: jaxb 2.1 API is being loaded from the bootstrap classloader, but this RI (from jar: file:/E: /Java/Apache-Tomcat-6.0.26/webapps/ejbclient/WEB-INF/lib/jaxb-impl.jar! /COM/Sun/XML/bind/v2/model/impl/modelbuilder. Class) needs 2.2 API. Use
The endorsed directory mechanism to place jaxb-api.jar In the bootstrap classloader. (See http://java.sun.com/j2se/1.6.0/docs/guide/standards)
Go to Sun's website and explain the information as follows:

Endorsed standards classes deployment

Classes implementing newer versions of endorsed standards shocould be placed in jar files. The system property
Java. endorsed. dirsSpecifies one or more directories that the Java Runtime Environment will search for such jar files. If more than one directory path is specified
Java. endorsed. dirs, They must be separated

File. pathseparatorchar. If no value is set
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 j2se runtime environment or
JREDirectory in the JDK ).

The j2se runtime environment will use classes in such jar files to override the corresponding classes provided in the Java platform as shipped by Sun.

SetJboss-5.0.0.GA \ Lib \ endorsedJaxb-api.jar under the directory. This JAR file is placed in the JDK'sJava \ jdk1.6.0 \ JRE \ LibThe endorsed directory under this directory for the class loader to load; the operation is to create an endorsed directory in the JRE/lib directory, and then put the above jaxb-api.jar in this directory, restart JBoss to solve this problem.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.