Failed to read external DTD 'XMLSchema.dtd' - Apache cxf & Spring bootApache CXF WSDL FileNotFoundExceptionMaven cxf Plugin errorHow to call external webservice using Fuse ESB and cxfcxf puts source files in target but compiler can't see them?How to configure port for a Spring Boot applicationMaven cxf-codegen-plugin and import in wsdlCXF auto generation fails with “Duplicated option: frontend” in maven?wsdl with duplicate type definitions on the same target namespaceapache cxf wsdl2java Failed to generate types->Access is deniedConfiguring the maven plugin cxf-codegen-plugin to ignore security concerns
word describing multiple paths to the same abstract outcome
The most efficient algorithm to find all possible integer pairs which sum to a given integer
What (else) happened July 1st 1858 in London?
Is there a good way to store credentials outside of a password manager?
Can somebody explain Brexit in a few child-proof sentences?
In Star Trek IV, why did the Bounty go back to a time when whales were already rare?
Pronouncing Homer as in modern Greek
Is a naturally all "male" species possible?
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
Organic chemistry Iodoform Reaction
Can a malicious addon access internet history and such in chrome/firefox?
Is there any significance to the Valyrian Stone vault door of Qarth?
Is there an wasy way to program in Tikz something like the one in the image?
What does the "3am" section means in manpages?
Is there an Impartial Brexit Deal comparison site?
Why does this part of the Space Shuttle launch pad seem to be floating in air?
Female=gender counterpart?
Did US corporations pay demonstrators in the German demonstrations against article 13?
Meta programming: Declare a new struct on the fly
A social experiment. What is the worst that can happen?
What do you call the infoboxes with text and sometimes images on the side of a page we find in textbooks?
Adding empty element to declared container without declaring type of element
How can I raise concerns with a new DM about XP splitting?
Would it be legal for a US State to ban exports of a natural resource?
Failed to read external DTD 'XMLSchema.dtd' - Apache cxf & Spring boot
Apache CXF WSDL FileNotFoundExceptionMaven cxf Plugin errorHow to call external webservice using Fuse ESB and cxfcxf puts source files in target but compiler can't see them?How to configure port for a Spring Boot applicationMaven cxf-codegen-plugin and import in wsdlCXF auto generation fails with “Duplicated option: frontend” in maven?wsdl with duplicate type definitions on the same target namespaceapache cxf wsdl2java Failed to generate types->Access is deniedConfiguring the maven plugin cxf-codegen-plugin to ignore security concerns
I'm using Apache-cxf's cxf-codegen-plugin for wsdl2java generation. It was working properly so far but when I've updated my apache-cxf(3.3.1) and spring boot(2.1.3.RELEASE) to the latest version, Maven's started to give me Maven error message:
Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:3.3.1:wsdl2java failed: org.apache.ws.commons.schema.XmlSchemaException: External DTD: Failed to read external DTD 'XMLSchema.dtd', because 'http' access is not allowed due to restriction set by the accessExternalDTD property. (org.apache.cxf:cxf-codegen-plugin:3.3.1:wsdl2java:generate-sources:generate-sources)
I saw that I might need to make some additional configuration about VM and added following tags:
<fork>always</fork>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
but hit a new error:
Command line was: /usr/lib/jvm/java-8-oracle/jre/bin/java -Djavax.xml.accessExternalSchema=all -jar /tmp/cxf-tmp-4500902427872984708/cxf-codegen118328547383604063.jar -encoding UTF-8 -d /home/tsvetoslav/sts-workspace/smdp1/target/generated/cxf -impl -verbose -wsdlLocation classpath:wsdl/ES3_SMSR.wsdl file:/home/tsvetoslav/sts-workspace/smdp1/src/main/resources/wsdl/ES3_SMSR.wsdl
Finally, here is my plugin:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>$cxf.version</version>
<configuration>
<fork>always</fork>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>$project.build.directory/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>$project.basedir/src/main/resources/wsdl/ES3.wsdl</wsdl>
<wsdlLocation>classpath:wsdl/ES3.wsdl</wsdlLocation>
<extraargs>
<extraarg>-impl</extraarg>
<extraarg>-verbose</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Any suggestion, how can I solve the issue?
java maven spring-boot cxf
New contributor
add a comment |
I'm using Apache-cxf's cxf-codegen-plugin for wsdl2java generation. It was working properly so far but when I've updated my apache-cxf(3.3.1) and spring boot(2.1.3.RELEASE) to the latest version, Maven's started to give me Maven error message:
Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:3.3.1:wsdl2java failed: org.apache.ws.commons.schema.XmlSchemaException: External DTD: Failed to read external DTD 'XMLSchema.dtd', because 'http' access is not allowed due to restriction set by the accessExternalDTD property. (org.apache.cxf:cxf-codegen-plugin:3.3.1:wsdl2java:generate-sources:generate-sources)
I saw that I might need to make some additional configuration about VM and added following tags:
<fork>always</fork>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
but hit a new error:
Command line was: /usr/lib/jvm/java-8-oracle/jre/bin/java -Djavax.xml.accessExternalSchema=all -jar /tmp/cxf-tmp-4500902427872984708/cxf-codegen118328547383604063.jar -encoding UTF-8 -d /home/tsvetoslav/sts-workspace/smdp1/target/generated/cxf -impl -verbose -wsdlLocation classpath:wsdl/ES3_SMSR.wsdl file:/home/tsvetoslav/sts-workspace/smdp1/src/main/resources/wsdl/ES3_SMSR.wsdl
Finally, here is my plugin:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>$cxf.version</version>
<configuration>
<fork>always</fork>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>$project.build.directory/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>$project.basedir/src/main/resources/wsdl/ES3.wsdl</wsdl>
<wsdlLocation>classpath:wsdl/ES3.wsdl</wsdlLocation>
<extraargs>
<extraarg>-impl</extraarg>
<extraarg>-verbose</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Any suggestion, how can I solve the issue?
java maven spring-boot cxf
New contributor
add a comment |
I'm using Apache-cxf's cxf-codegen-plugin for wsdl2java generation. It was working properly so far but when I've updated my apache-cxf(3.3.1) and spring boot(2.1.3.RELEASE) to the latest version, Maven's started to give me Maven error message:
Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:3.3.1:wsdl2java failed: org.apache.ws.commons.schema.XmlSchemaException: External DTD: Failed to read external DTD 'XMLSchema.dtd', because 'http' access is not allowed due to restriction set by the accessExternalDTD property. (org.apache.cxf:cxf-codegen-plugin:3.3.1:wsdl2java:generate-sources:generate-sources)
I saw that I might need to make some additional configuration about VM and added following tags:
<fork>always</fork>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
but hit a new error:
Command line was: /usr/lib/jvm/java-8-oracle/jre/bin/java -Djavax.xml.accessExternalSchema=all -jar /tmp/cxf-tmp-4500902427872984708/cxf-codegen118328547383604063.jar -encoding UTF-8 -d /home/tsvetoslav/sts-workspace/smdp1/target/generated/cxf -impl -verbose -wsdlLocation classpath:wsdl/ES3_SMSR.wsdl file:/home/tsvetoslav/sts-workspace/smdp1/src/main/resources/wsdl/ES3_SMSR.wsdl
Finally, here is my plugin:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>$cxf.version</version>
<configuration>
<fork>always</fork>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>$project.build.directory/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>$project.basedir/src/main/resources/wsdl/ES3.wsdl</wsdl>
<wsdlLocation>classpath:wsdl/ES3.wsdl</wsdlLocation>
<extraargs>
<extraarg>-impl</extraarg>
<extraarg>-verbose</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Any suggestion, how can I solve the issue?
java maven spring-boot cxf
New contributor
I'm using Apache-cxf's cxf-codegen-plugin for wsdl2java generation. It was working properly so far but when I've updated my apache-cxf(3.3.1) and spring boot(2.1.3.RELEASE) to the latest version, Maven's started to give me Maven error message:
Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:3.3.1:wsdl2java failed: org.apache.ws.commons.schema.XmlSchemaException: External DTD: Failed to read external DTD 'XMLSchema.dtd', because 'http' access is not allowed due to restriction set by the accessExternalDTD property. (org.apache.cxf:cxf-codegen-plugin:3.3.1:wsdl2java:generate-sources:generate-sources)
I saw that I might need to make some additional configuration about VM and added following tags:
<fork>always</fork>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
but hit a new error:
Command line was: /usr/lib/jvm/java-8-oracle/jre/bin/java -Djavax.xml.accessExternalSchema=all -jar /tmp/cxf-tmp-4500902427872984708/cxf-codegen118328547383604063.jar -encoding UTF-8 -d /home/tsvetoslav/sts-workspace/smdp1/target/generated/cxf -impl -verbose -wsdlLocation classpath:wsdl/ES3_SMSR.wsdl file:/home/tsvetoslav/sts-workspace/smdp1/src/main/resources/wsdl/ES3_SMSR.wsdl
Finally, here is my plugin:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>$cxf.version</version>
<configuration>
<fork>always</fork>
<additionalJvmArgs>-Djavax.xml.accessExternalSchema=all</additionalJvmArgs>
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>$project.build.directory/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>$project.basedir/src/main/resources/wsdl/ES3.wsdl</wsdl>
<wsdlLocation>classpath:wsdl/ES3.wsdl</wsdlLocation>
<extraargs>
<extraarg>-impl</extraarg>
<extraarg>-verbose</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Any suggestion, how can I solve the issue?
java maven spring-boot cxf
java maven spring-boot cxf
New contributor
New contributor
edited Mar 21 at 14:33
Tsvetoslav
New contributor
asked Mar 21 at 14:27
TsvetoslavTsvetoslav
33
33
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Tsvetoslav is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55282704%2ffailed-to-read-external-dtd-xmlschema-dtd-apache-cxf-spring-boot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Tsvetoslav is a new contributor. Be nice, and check out our Code of Conduct.
Tsvetoslav is a new contributor. Be nice, and check out our Code of Conduct.
Tsvetoslav is a new contributor. Be nice, and check out our Code of Conduct.
Tsvetoslav is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55282704%2ffailed-to-read-external-dtd-xmlschema-dtd-apache-cxf-spring-boot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown