thx willem I try it now 2010/11/10 Willem Jiang <[email protected]>
> 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 > -- 命运并不是不可战胜的,平等需要自己去争取,平等不会白白让你取得。想要平等,必须有劳动,有付出,有汗水,有坚定的信念。
