cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: Using WSDL2Java in java code!
Date Wed, 10 Nov 2010 09:47:31 GMT

On 2010-11-10, at 下午5:38, Wang Jinglong wrote:

> hi,
>
> in my environmen,i need to use wsdl4java to generate java code in  
> runtime.
> so i need call wsdl4java api that i can generate code in runtime(may  
> be
> not in web apps).
>
> then i run my test case,that throw an exception:
> org.apache.cxf.tools.common.ToolException: Could not find jaxws  
> frontend
> within classpath
> at
> org 
> .apache 
> .cxf.tools.wsdlto.core.PluginLoader.getFrontEnd(PluginLoader.java:241)
> at
> org 
> .apache 
> .cxf 
> .tools.wsdlto.core.PluginLoader.getFrontEndProfile(PluginLoader.java: 
> 377)
> at  
> org.apache.cxf.tools.wsdlto.WSDLToJava.loadFrontEnd(WSDLToJava.java: 
> 64)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:96)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
>
> that's means no jar of jaxws frontend in my classpath.
>
> how to add jaxws frontend into my classpath?
>
> i'm use maven.
>
> pom dependencies:
>
> <dependencies>
> <dependency>
> <groupId>wsdl4j</groupId>
> <artifactId>wsdl4j</artifactId>
> <version>1.6.2</version>
> </dependency>
> <dependency>
> <groupId>org.apache.ws.schema</groupId>
> <artifactId>XmlSchema</artifactId>
> <version>1.4.5</version>
> </dependency>
> <dependency>
> <groupId>dom4j</groupId>
> <artifactId>dom4j</artifactId>
> <version>1.6.1</version>
> <type>jar</type>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.8.2</version>
> <type>jar</type>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.15</version>
> <type>jar</type>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>ws-commons</groupId>
> <artifactId>axiom</artifactId>
> <version>1.1.1</version>
> <type>jar</type>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-tools-wsdlto-core</artifactId>
> <version>2.3.0</version>
> <type>jar</type>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-frontend-jaxws</artifactId>
> <version>2.3.0</version>
> <type>jar</type>
> <scope>compile</scope>
Change it to
<scope>runtime</scope>

to see if it helps

Freeman
> </dependency>
> </dependencies>

>
> thx a lot!


-- 
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org


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