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 software developer and architect. Pascal has been designing and building applications since 2001. He is particularly interested in Open Source toolstack (Mule, Spring Framework, JBoss) and technologies like Web Services, SOA and Cloud technologies. Lately he is having great fun by building iOS apps with Swift. Specialties: JEE AWS XML/XSD/XSLT Web Services/SOA Mule ESB/ WSO2 ESB Maven Cloud Technology 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.