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













0















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?










share|improve this question









New contributor




Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    0















    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?










    share|improve this question









    New contributor




    Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      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?










      share|improve this question









      New contributor




      Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      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






      share|improve this question









      New contributor




      Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Mar 21 at 14:33







      Tsvetoslav













      New contributor




      Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Mar 21 at 14:27









      TsvetoslavTsvetoslav

      33




      33




      New contributor




      Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Tsvetoslav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          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.









          draft saved

          draft discarded


















          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.









          draft saved

          draft discarded


















          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현