Questions tagged [endorsed]
29 questions
28
votes
3 answers
How do you replace endorsed directory in Java 9?
In Java 8 and prior there exists the mechanism to use an endorsed directory(java.endorsed.dirs), which is a collection of libraries which overrides JDK internal implementations.
How can I solve this in Java-9? As endorsed dirs where removed there?

keiki
- 3,260
- 3
- 30
- 38
16
votes
1 answer
Difference between classpath and endorsed directory
Does anyone know what the difference is between adding an appropriate JAR-file (eg. Apache XALAN) to a JRE's endorsed directory and adding it to the application's classpath?
Is it possible to take a jar-file that can be added to the endorsed lib and…

Henrik Aasted Sørensen
- 6,966
- 11
- 51
- 60
14
votes
2 answers
What is Java EE Endorsed API?
See here.
There are three different Java EE related API:s available in the Maven repository.
Specification APIs (Maven artifact: javaee-api)
Web Specification APIs (javaee-web)
Endorsed APIs (javaee-endorsed-api)
I know the specification API (the…

Martin Andersson
- 18,072
- 9
- 87
- 115
13
votes
4 answers
How to fix -Djava.endorsed.dirs not supported, that emerged after installing WTP in Eclipse?
I used tomcat for projects before, but this problem came after installing the WTP, and occurs when I try to run the application on server.
First comes a message, could not create Java Virtual Machine, then in the console occures this…

Marjan100
- 346
- 1
- 2
- 16
8
votes
3 answers
LinkageError JAXB 2.0 -> 2.1 (Tomcat)
I'm getting this error when trying to access my webservice running inside tomcat.
Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from…

Bart van Heukelom
- 43,244
- 59
- 186
- 301
8
votes
3 answers
what is the exact way to use Endorsed directory in jdk1.6
I want to upgrade my jaxws to 2.2 (jdk1.6 comes bundled with jaxws 2.1). My jdk is (I did not install public jre):
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed…

Persimmonium
- 15,593
- 11
- 47
- 78
8
votes
3 answers
javac cannot find symbol constructor Service
I am in the process of learning CXF with the help of this Apache CXF Web Service Development book but, alas, one of the book's sample projects won't even compile!
The code in question is Chapter 3's contractfirst and it's not a typo problem because…

Eternal Learner
- 2,602
- 5
- 27
- 38
6
votes
0 answers
Apache CXF and Java 9. WS Consumer not generated
In Java 1.8, I had no problems generating a WS client using:
wsdl2java -ant -client -d ClientDir hello_world.wsdl
as refers to Apache CXF documentation http://cxf.apache.org/docs/developing-a-consumer.html
But in Java 9, I have got the following…

Ximo Dante
- 67
- 9
6
votes
0 answers
use endorsed standard override mechanism for xerces in GlassFish 4.0
How do I use the endorsed standard mechanism to use xerces in a GlassFish 4.0 WAR application? According to the documentation*, you should put it into domain-dir/lib/endorsed. However, when I put xercesImpl, xml-apis as well as xml-resolver there,…

Yogu
- 9,165
- 5
- 37
- 58
4
votes
1 answer
Web Services with JAX WS-SUN library in WAS 7.0
CONTEXT OF THE PROBLEM:
I consume a Web service methods exposed by an institution outside the mine, the web service was generated by JAX WS-SUN.
Implement other web service for domestic consumption of my institution which encapsulates the methods…

Paul Inche
- 41
- 1
- 2
4
votes
1 answer
Building a project gave me java.lang.LinkageError: JAXB 2.1 API is being loaded from the bootstrap classloader
While building project I am getting the following error:
java.lang.LinkageError: JAXB 2.1 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Documents and…

Surendra
- 119
- 1
- 1
- 10
4
votes
1 answer
jaxws-api 2.2 not loaded in maven build
I have generated Java code with Apache CXF tool wsdl2java. In the comments of my service it says that I should endorse Jaxws API 2.2 but don't know what it means. In my Maven POM I have this:
javax.xml.ws
…

azec-pdx
- 4,790
- 6
- 56
- 87
3
votes
1 answer
Java WebStart and endorsed directories
How do I specify in java webstart .jnlp file, that some of my jars are overriding the JRE builtin implementations? Just like the endorsed lib property on a regular application.

m_vitaly
- 11,856
- 5
- 47
- 63
3
votes
0 answers
Java endorsed and Netbeans
I'm using Netbeans as an IDE while programing Java. Recently new version of NetBeans has arrived. So I've installed it and import one of my project group. This group has project with some web clients that use jax-ws.
I know all the troubles with…

bes67
- 223
- 1
- 3
- 8
2
votes
1 answer
Setting "endorsed" dir in an embedded tomcat server
I am creating a web application using Eclipse (3.4), and m2eclipse. I am using the deploy goal but often prefer to use the run goal for the use of the embedded tomcat in the maven tomcat plugin. I added the xalan jar to the endorsed dir as I had…

rperez
- 8,430
- 11
- 36
- 44