• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conflict when using MAVEN cxf - codegen plugin for wsdl2java

 
Kulpreet Singh
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic