Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Web Services
Deprecated method problem
Arun Kumar
Ranch Hand
Posts: 62
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Guys,
I have this
ant
task which I am using to generate the JAX-WS stubs
<taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" classpathref="axis.classpath" /> <target name="generateWSartifacts" > <wsgen sei="com.ing.tpa.services.wsfacade.TPACodeWSFacade" destdir="${build}/classes" cp="{src}" resourcedestdir="${root}/soap" sourcedestdir="${src}" keep="true" verbose="true" genwsdl="true"> <classpath refid="compile.classpath"/> </wsgen> </target>
It fails in the middle throwing this error.
[wsgen] com\ing\tpa\services\wsfacade\jaxws\FindAllTPACodeByUserTypeResponse.java [wsgen] com\ing\tpa\services\wsfacade\jaxws\IsValidTPACode.java [wsgen] com\ing\tpa\services\wsfacade\jaxws\IsValidTPACodeResponse.java [wsgen] com\ing\tpa\services\wsfacade\jaxws\ProcessingExceptionBean.java [wsgen] Note: C:\workspace\TPAServices\src\com\ing\tpa\services\dao\TPACodeDAO.java uses or overrides a deprecated API. [wsgen] Note: Recompile with -Xlint:deprecation for details. [wsgen] Note: ap round: 2 BUILD FAILED C:\workspace\TPAServices\build.xml:1155: Error starting wsgen:
Can I somehow suppress this and move on, I am not interested in doing anything about the depreceted method, It can just hang in there.
Arun Kumar
Ranch Hand
Posts: 62
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I added fork="true" in the ant task like below and it works.
<target name="generateWSartifacts" > <wsgen sei="com.ing.tpa.services.wsfacade.TPACodeWSFacade" destdir="${build}/classes" cp="${build}/classes" resourcedestdir="${root}/soap" sourcedestdir="${src}" keep="true" debug="off" verbose="true" fork="true" genwsdl="true"> <classpath refid="compile.classpath"/> </wsgen> </target>
I don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
java.io.IOException:CreateProcess error=5, Access is denied(While running build.xml in Ant editor)
Building with ant from eclipse
about wsgen with ant
How to generate WSDL file for any JAX-WS?
JAX-WS create server and client jar in one build pass (ant)
More...