Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9646

Wsconsume is not able to generate jar file from wsdl

    Details

      Description

      Description:
      Wsconsume is able to generate jar file from wsdl on WildFly 11. On WildFly master, wsconsume doesn't create any files in "out" folder. It leads to Exception from wsdl2java tool.

      Steps to reproduce:

      1. cd ${JBOSS_HOME}/bin
      2. # download Echo1.wsdl, Echo1Service.wsdl and Echo1Service_schema1.xsd files, these files are attached to this jira
      3. mkdir out
      4. ./wsconsume.sh -j wsClientShort.jar -p org.jboss.test.script -o out Echo1Service.wsdl

      Actual results:

      [mkopecky@dhcp-10-40-4-226 bin]$ ./wsconsume.sh -j wsClientShort.jar -p org.jboss.test.script -o out Echo1Service.wsdl
      Could not find log4j.properties or log4j.xml configuration, logging to console.
      
      Loading FrontEnd jaxws ...
      Loading DataBinding jaxb ...
      wsdl2java -clientjar wsClientShort.jar -compile -exsh false -p org.jboss.test.script -d /home/mkopecky/playground/wf/wfly.08/wfly.08/bin/out/tmp3507583 -verbose -classdir /home/mkopecky/playground/wf/wfly.08/wfly.08/bin/out -allowElementReferences file:/home/mkopecky/playground/wf/wfly.08/wfly.08/bin/Echo1Service.wsdl
      wsdl2java - Apache CXF 3.1.12
      
      JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava
      org.apache.cxf.tools.common.ToolException: java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/mkopecky/playground/wf/wfly.08/wfly.08/bin/out/tmp3507583/org/jboss/test/script/package-info.java" "read")
      	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:423)
      	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:105)
      	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
      	at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:313)
      	at org.jboss.ws.tools.cmd.WSConsume.importServices(WSConsume.java:298)
      	at org.jboss.ws.tools.cmd.WSConsume.mainInternal(WSConsume.java:108)
      	at org.jboss.ws.tools.cmd.WSConsume.main(WSConsume.java:96)
      	at org.jboss.modules.Module.run(Module.java:344)
      	at org.jboss.modules.Main.main(Main.java:525)
      Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/mkopecky/playground/wf/wfly.08/wfly.08/bin/out/tmp3507583/org/jboss/test/script/package-info.java" "read")
      	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      	at java.security.AccessController.checkPermission(AccessController.java:884)
      	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
      	at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
      	at java.io.File.isDirectory(File.java:844)
      	at com.sun.tools.javac.file.RegularFileObject.<init>(RegularFileObject.java:69)
      	at com.sun.tools.javac.file.RegularFileObject.<init>(RegularFileObject.java:64)
      	at com.sun.tools.javac.file.JavacFileManager.getJavaFileObjectsFromFiles(JavacFileManager.java:785)
      	at com.sun.tools.javac.file.JavacFileManager.getJavaFileObjectsFromStrings(JavacFileManager.java:185)
      	at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:192)
      	at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:141)
      	at org.apache.cxf.tools.common.ClassUtils.compile(ClassUtils.java:123)
      	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:306)
      	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
      	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:415)
      	... 8 more
      [mkopecky@dhcp-10-40-4-226 bin]$ ll out/
      total 0
      [mkopecky@dhcp-10-40-4-226 bin]$
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rsearls r searls
                Reporter:
                mkopecky Marek Kopecky
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: