Search code examples
eclipsejsfmojarra

How to debug Mojarra 2.2.9 in Eclipse


I'm simply trying to debug Mojarra 2.2.9, I see the sources but when I'm trying to debug Mojarra, for example UIInput.processUpdates, it says "line not available" in the debug view, I still see the source but cannot navigate step by step into it.

Is it due to debug option used during compilation step in Mojarra, if yes, is there any way I can workaround this?

I'm using Tomcat 7 (so JSF not provided) and this dependency:

<dependency>
    <groupId>org.glassfish</groupId>
    <artifactId>javax.faces</artifactId>
    <version>2.2.9</version/>
</dependency>

Solution

  • This problem does not happen in 2.2.8 and 2.2.10. This is what I thought, Mojarra 2.2.9 has been compiled without providing debug information, I guess it has been compiled with -g:source option. I'm wondering why? Well, it forces me to upgrade Mojarra then.