Saturday, July 24, 2010

solution for compilation error problem with JDK 1.5$CompletionFailure

Hello ,

I was trying build application to used on JBOss using maven 2. Application involves lots of dependencies
while building application with maven 2 ,build was giving following errror.

[INFO] Compilation failure
Failure executing javac, but could not parse the error:
An exception has occurred in the compiler (1.5.0_15). Please file a bug at the Java Developer Connection ( after checking the Bug Parade for duplicates. Include
your program and the following diagnostic in your report. Thank you.$CompletionFailure: file javax\jws\WebService.class not found

After spending lots of hours searching on internet as well as trial and error I found a workaround.

1. Locate the jar file which contains this class. In my case it was jboss-jaxws-4.2.1.jar
2. Copy the jar file to following path $JDK1.5 path\jre\lib\ext
Compilation should be successful now.

I know this is not a elegant solution but it works