Skip to main content

wsgen error report

4 replies [Last post]
jjl
Offline
Joined: 2006-03-05
Points: 0

Hi,

I have my wsgen task included in my compile task.

I have another "other" task that depends on compile.

If I invoke: ant compile other

wsgen fails because it's classpath is set twice. Has this problem already been identified and fixed? I can't find it by searching the forum.

I am using JAX-WS version:

JAX-WS RI 2.0-b26-ea3

Thanks.
Jeff

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohlert
Offline
Joined: 2003-06-16
Points: 0

Jeff,
I am not following what you are doing, maybe you can include your task defs. Also, what error do you get? Did you try using -verbose to debug your ant tasks?

jjl
Offline
Joined: 2006-03-05
Points: 0

Basically, I have the targets like:



...


...


...

So, when I do a:

ant all test

the wsgen target breaks, complaining that classpath is defined twice. Actually, I believe it prints out either a real or simulated command line that contains two -classpath parameters.

If I do either of:

ant all
ant test

separately, everything is ok. It's only a problem when I specify more than one target that depends on my wsgen.

You may be able to produce the same effect if you had something like:


...

and invoke:

ant everything

Jeff

kohlert
Offline
Joined: 2003-06-16
Points: 0

Ah, this might be related to a bug in ant where it does
not free up resources between target calls. I believe you can fix this problem by invoking ant with the JAX-WS jars on the classpath.

Returned mail