Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1707

Security Exception when using java2ws via the cxf-java2ws-plugin in Netbeans

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2
    • Component/s: Build system
    • Labels:
      None

      Description

      Similar to https://issues.apache.org/jira/browse/CXF-1256, I get a security exception when using java2ws via the cxf-java2ws-plugin in Netbeans 6.x.
      For CXF-1256 the error was in wsdl2java, for my case the error is in java2ws.

      As CXF-1526 was a bug in CXF rather than Netbeans, I figure this is the same case.

      Stack Trace below

      [DEBUG]Setting context classloader for plugin to: /plugins/org.apache.cxf:cxf-java2ws-plugin:2.1.1@-953946915/thread:exec_Build cxfdemo_1 (instance is: ClassRealm[/plugins/org.apache.cxf:cxf-java2ws-plugin:2.1.1@-953946915/thread:exec_Build cxfdemo_1, parent: ClassRealm[plexus.core, parent: null]])
      [ERROR]Runtime Exception thrown during execution
      [ERROR]null
      [ERROR]Error stacktrace:
      [ERROR]java.lang.SecurityException
      [ERROR] at org.netbeans.TopSecurityManager.checkSetSecurityManager(TopSecurityManager.java:442)
      [ERROR] at org.netbeans.TopSecurityManager.checkPermission(TopSecurityManager.java:376)
      [ERROR] at java.lang.System.setSecurityManager0(System.java:273)
      [ERROR] at java.lang.System.setSecurityManager(System.java:264)
      [ERROR] at org.apache.cxf.maven_plugin.Java2WSMojo.execute(Java2WSMojo.java:140)
      [ERROR] at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:580)
      [ERROR] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
      [ERROR] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
      [ERROR] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
      [ERROR] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
      [ERROR] at org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:72)
      [ERROR] at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
      [ERROR] at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
      [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
      [ERROR] at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
      [ERROR] at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
      [ERROR] at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
      [ERROR] at org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:215)
      [ERROR] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              gumnaam.suri gumnaam suri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: