maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "laudio.info" <laudio.i...@gmail.com>
Subject maven jax-ws and jdk7. help please
Date Sun, 27 Jan 2013 01:58:58 GMT
hello
i have made several Ws using maven, jaxws and jdk6
usin jdk 7 appears one privilegedActionException
i am working with this problem 7 days and i don't know how to solve it.
Can you help me please?
thanks

my pom is this:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.caf.ws</groupId>
  <artifactId>myWS</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>
  <build>
<plugins>
 <plugin>
 <artifactId>maven-war-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.12</version>
<executions>
<execution>
<id>wsgen</id>
<goals>
<goal>wsgen</goal>
</goals>
<configuration>
<sei>
com.myproject.mywsimpl
</sei>
<genWsdl>true</genWsdl>
<keep>true</keep>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
</plugin>
    </plugins>
  </build>
  <dependencies>
  <dependency>
  <groupId>com.sun.xml.ws</groupId>
  <artifactId>jaxws-rt</artifactId>
  <version>2.2.7</version>
  </dependency>
  </dependencies>
</project>

And the error is this:
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.150s
[INFO] Finished at: Sun Jan 27 02:52:58 CET 2013
[INFO] Final Memory: 20M/182M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:jaxws-maven-plugin:1.12:wsgen (wsgen) on project
MyWebServiceWar: Failed to execute wsgen: Unable to create JAXBContext:
PrivilegedActionException: 1 counts of IllegalAnnotationExceptions -> [Help
1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.mojo:jaxws-maven-plugin:1.12:wsgen (wsgen) on project
MyWebServiceWar: Failed to execute wsgen
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
execute wsgen
 at
org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:102)
 at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 ... 19 more
Caused by: javax.xml.ws.WebServiceException: Unable to create JAXBContext
 at
com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:164)
 at
com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
 at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:255)
 at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:240)
 at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:123)
 at com.sun.tools.ws.WsGen.doMain(WsGen.java:69)
 at
org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:97)
 ... 21 more
Caused by: java.security.PrivilegedActionException:
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of
IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
 this problem is related to the following location:
  at java.lang.StackTraceElement
  at public java.lang.StackTraceElement[]
java.lang.Throwable.getStackTrace()
  at java.lang.Throwable
  at private java.lang.Throwable[]
com.myproject.jaxws.ExceptionBean.suppressed
  at com.myproject.prototype.ws.impl.jaxws.ExceptionBean
 at java.security.AccessController.doPrivileged(Native Method)
 at
com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
 ... 27 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
 this problem is related to the following location:
  at java.lang.StackTraceElement
  at public java.lang.StackTraceElement[]
java.lang.Throwable.getStackTrace()
  at java.lang.Throwable
  at private java.lang.Throwable[]
com.myproject.prototype.ws.impl.jaxws.ExceptionBean.suppressed
  at com.myproject.prototype.ws.impl.jaxws.ExceptionBean
 at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
 at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:447)
 at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:288)
 at
com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1111)
 at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
 at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)
 at
com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:109)
 at
com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:159)
 at
com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:152)
 ... 29 more

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message