cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5211) Codegeneration will fail if opensaml 2.6.0 is added as dependency to the project
Date Thu, 22 May 2014 15:23:01 GMT

     [ https://issues.apache.org/jira/browse/CXF-5211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-5211.
------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: Invalid
         Assignee: Daniel Kulp

> Codegeneration will fail if opensaml 2.6.0 is added as dependency to the project
> --------------------------------------------------------------------------------
>
>                 Key: CXF-5211
>                 URL: https://issues.apache.org/jira/browse/CXF-5211
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.6
>            Reporter: David J. M. Karlsen
>            Assignee: Daniel Kulp
>             Fix For: Invalid
>
>
> If I add:
> {noformat}
>  <dependency>
>                         <groupId>org.opensaml</groupId>
>                         <artifactId>opensaml</artifactId>
>                         <version>2.6.0</version>
>                         <optional>true</optional>
>                         <exclusions>
>                                 <exclusion>
>                                         <groupId>xml-apis</groupId>
>                                         <artifactId>xml-apis</artifactId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <groupId>xerces</groupId>
>                                         <artifactId>xercesImpl</artifactId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <groupId>commons-logging</groupId>
>                                         <artifactId>commons-logging</artifactId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <groupId>log4j</groupId>
>                                         <artifactId>log4j</artifactId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <groupId>org.apache.xerces</groupId>
>                                         <artifactId>xml-apis</artifactId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <groupId>org.apache.xerces</groupId>
>                                         <artifactId>xercesImpl</artifactId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <groupId>org.apache.xerces</groupId>
>                                         <artifactId>serializer</artifactId>
>                                 </exclusion>
>                         </exclusions>
>                 </dependency>
> {noformat}
> to the projects dependency list 
> the codegeneration:
> {noformat}
>    <plugin>
>                                 <groupId>org.apache.cxf</groupId>
>                                 <artifactId>cxf-codegen-plugin</artifactId>
>                                 <version>${cxf.version}</version>
>                                 <dependencies>
>                                         <dependency>
>                                                 <groupId>org.apache.cxf.xjcplugins</groupId>
>                                                 <artifactId>cxf-xjc-ts</artifactId>
>                                                 <version>${cxf.xjc.utils.version}</version>
>                                         </dependency>
>                                         <dependency>
>                                                 <groupId>net.java.dev.jaxb2-commons</groupId>
>                                                 <artifactId>jaxb-fluent-api</artifactId>
>                                                 <version>2.1.8</version>
>                                         </dependency>
>                                         <dependency>
>                                                 <groupId>org.jvnet.jaxb2_commons</groupId>
>                                                 <artifactId>jaxb2-basics</artifactId>
>                                                 <version>${jaxb2.commons.version}</version>
>                                         </dependency>
>                                         <dependency>
>                                                 <groupId>org.apache.cxf</groupId>
>                                                 <artifactId>cxf-rt-ws-addr</artifactId>
>                                                 <version>${cxf.version}</version>
>                                         </dependency>
>                                 </dependencies>
>                                 <configuration>
>                                         <defaultOptions>
>                                                 <catalog>${basedir}/src/main/resources/wsdl/catalog.xml</catalog>
> <validateWsdl>false</validateWsdl>
>                                                 <extraargs>
>                                                         <extraarg>-xjc-Xts</extraarg>
>                                                         <extraarg>-xjc-Xfluent-api</extraarg>
>                                                         <extraarg>-xjc-Xcopyable</extraarg>
>                                                         <extraarg>-mark-generated</extraarg>
>                                                         <extraarg>-verbose</extraarg>
>                                                 </extraargs>
>                                                 <bindingFiles>
>                                                         <bindingFile>${basedir}/src/main/resources/wsdl/jaxbbindings.xml</bindingFile>
>                                                 </bindingFiles>
>                                         </defaultOptions>
>                                 </configuration>
>                                 <executions>
>                                         <execution>
>                                                 <id>embedded-wsdls</id>
>                                                 <goals>
>                                                         <goal>wsdl2java</goal>
>                                                 </goals>
>                                         </execution>
>                                         <execution>
>                          <execution>
>                                                 <id>extracted-wsdls</id>
>                                                 <goals>
>                                                         <goal>wsdl2java</goal>
>                                                 </goals>
>                                                 <configuration>
>                                                         <wsdlRoot>${wsdlDir}/WEB-INF/wsdl</wsdlRoot>
>                                                 </configuration>
>                                         </execution>
>                                 </executions>
>                         </plugin>
>                 </plugins>
> {noformat}
> will fail with:
> {noformat}
> [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.7.6:wsdl2java (embedded-wsdls)
on project cxf-utils: org/apache/xml/serializer/TreeWalker: org.apache.xml.serializer.TreeWalker
-> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.7.6:wsdl2java
(embedded-wsdls) on project cxf-utils: org/apache/xml/serializer/TreeWalker
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
>         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:318)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>         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:606)
>         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:414)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
> Caused by: org.apache.maven.plugin.MojoExecutionException: org/apache/xml/serializer/TreeWalker
>         at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(WSDL2JavaMojo.java:447)
>         at org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:310)
>         at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:524)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>         ... 19 more
> Caused by: java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
>         at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:823)
>         at org.apache.cxf.helpers.DOMUtils.writeXml(DOMUtils.java:606)
>         at org.apache.cxf.tools.util.JAXBUtils.getPackageMappingSchemaBindingFile(JAXBUtils.java:134)
>         at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:448)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:714)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:270)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
>         at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(WSDL2JavaMojo.java:427)
>         ... 23 more
> Caused by: java.lang.ClassNotFoundException: org.apache.xml.serializer.TreeWalker
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 35 more
> [ERROR] 
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message