Principal Software Engineer Works at Oath: (which acquired Millennial Media) (which acquired Nexage) Lives in Atlanta, GA
Java developer, currently into Scala, likes to tinker, tries to solve all problems in life by writing code and loves the great indoors!
[ Blog ]
Did your trusty old JMX console on JBoss 6 stopped working once you upgraded java to JDK8? Here is the jar you are looking for.
I recently had to upgrade Java to JDK 8 at work. (I know, it is about time we did that). We are still on JBoss 6 and we use the jmx-console extensively for almost every application we have running on JBoss 6.
Once I upgraded to JDK8, the jmx-console that I usually access at http://localhost:8080/jmx-console
was broken and was throwing the following stacktrace:
Some googling led me to this bug and it was suggested there that I would need a newer Eclipse ECJ compiler. Why JBoss (or Tomcat internally) is using the Eclipse JDT’s Java compiler to compile JSP is beyond me.
Fortunately, the ECJ compiler jar was available in the Maven Repo.
tl;dr
I grabbed the jar from the above (ecj-4.4.1.jar
) and copied it to my jboss installation’s jboss-6.1.0.Final/lib/endorsed
folder and restarted it.
That is all I had to do. It has been working great so far and my jmx-console is back as you can see here:
comments powered by Disqus