Hi,

You need to put this module into your pom dependency.

     <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-tools-wsdlto-frontend-jaxws</artifactId>
    <packaging>jar</packaging>

On 11/10/10 5:38 PM, 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>
> </dependency>
> </dependencies>
> 
> thx a lot!
> 


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to