aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Conflict when using MAVEN cxf - codegen plugin for wsdl2java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Conflict when using MAVEN cxf - codegen plugin for wsdl2java" Watch "Conflict when using MAVEN cxf - codegen plugin for wsdl2java" New topic
Author

Conflict when using MAVEN cxf - codegen plugin for wsdl2java

Kulpreet Singh
Greenhorn

Joined: Apr 12, 2012
Posts: 3
Hi,

I am trying to use cxf-codegen-plugin for WSDL 2 java code. I also have the below dependencies in my POM file for the project

<dependency>
<groupId>org.codehaus.castor</groupId>
<artifactId>castor</artifactId>
<version>1.1.2</version>
</dependency>

<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.5.2</version>
</dependency>

<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1.1</version>
</dependency>

<dependency>
<groupId>org.milyn</groupId>
<artifactId>milyn-smooks-all</artifactId>
<version>1.4</version>
</dependency>

These dependecies are causing an error to cxf-codegen-plugin, error that i am seeing is
org.apache.xerche.dom.DeferredDocumentTypeImpl cannot be cast to org.w3c.dom.Element

Is there a way i can have both(the dependencies and the plugin) in the same POM file and make it work?

will appreciate any help!!

Thanks,
K

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5842
    
    7

It might help if you posted the full mvn output.

Did you try running mvn with -X to see if that gave you any more information?

Are you certain that you don't have a stray JAR file containing one of those two classes? You can add "-verbose:class" to MVN_OPTS, that would cause the JVM to print the JAR for every class loaded. That would let you know if you have any stray JAR files. (Make sure you don't set CLASSPATH!)


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conflict when using MAVEN cxf - codegen plugin for wsdl2java