Skip to main content

javaccode.Symbol$CompletionFailure:file javax\jws\WebServic.class not found

2 replies [Last post]
mdasrafkhan
Offline
Joined: 2009-01-28
Points: 0

I am getting this ugly error when tried to compile a maven web service based client module.

Failure executing javac, but could not parse the error:
An exception has occurred in the compiler (1.5.0_17). Please file a bug at the J
ava Developer Connection (http://java.sun.com/webapps/bugreport) after checking
the Bug Parade for duplicates. Include your program and the following diagnosti
c in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: file javax\jws\WebService.cla
ss not found

I am using jdk 1.5 in windows platform, the maven dependency is like this:

javax.xml.ws
jaxws-api
2.0
compile

com.sun.xml.ws
jaxws-rt
2.1.3
compile

Is this a bug in java compiler? how to resolve this error.

thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jcasseday
Offline
Joined: 2006-02-21
Points: 0

I solved this problem by deleting my local maven respository

rm -r ~/.m2/repository

Hope that helps!

dma_k
Offline
Joined: 2006-11-03
Points: 0

I have solved the problem by adding

javax.jws
jsr181-api
1.0-MR1

to the project. Indeed strange error. I use IBM JVM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32).