Advice: read the complete stacktrace

As I wrote before I am currently building EJB3/ JSF1.2 applications which I build and deploy with Maven2. Last time I was building my web project when suddenly I got a Maven error, stating:

[INFO] ————————————————————————
[INFO] ————————————————————————
[INFO] Compilation failure
Failure executing javac, but could not parse the error:
An exception has occurred in the compiler (1.5.0_09). 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\ejb\ApplicationException.class not found

When I started to read the error message my first reaction was: WTF! A bug in the compiler?!?!

But then I read the last line in which it says it misses a class from the EJB3 library, so I added to my pom:


Now the Maven build works without any problem. So that’s why you should study the entire error stack trace before you start to panic about bugs in the JDK compiler that you are using 🙂

About Pascal Alma

Pascal is a senior IT consultant and has been working in IT since 1997. He is monitoring the latest development in new technologies (Mobile, Cloud, Big Data) closely and particularly interested in Java open source tool stacks, cloud related technologies like AWS and mobile development like building iOS apps with Swift. Specialties: Java/JEE/Spring Amazon AWS API/REST Big Data Continuous Delivery Swift/iOS
This entry was posted in Maven and tagged . Bookmark the permalink.

One Response to Advice: read the complete stacktrace

  1. Jesus says:

    You are the man!!!!
    It’s true that we should always read the complete trace, but when you see that your compiler has a bug …
    In my case the problem was using JAX-WS and the missing class javax.xml.bind.annotation.XmlSeeAlso, it was solved by adding jaxb-api-2.1.jar to my pom.


Comments are closed.