Showing posts with label Java Debugging. Show all posts
Showing posts with label Java Debugging. Show all posts

Saturday, July 24, 2010

solution for compilation error problem with JDK 1.5 com.sun.tools.javac.code.Symbol$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 (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include
your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$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

Tuesday, October 9, 2007

Java Debugging Tool jdb

Today I came across java debugging tool jdb.

http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jdb.html

Its nice tool to debug the java code from command line. You can debug the code step by step.Also in multiple steps. Along with that you can traverse thr' code if it available with you.

Nice tool !