This discussion is archived
3 Replies Latest reply: Feb 8, 2013 8:38 AM by 990033 RSS

JRockit and prefer-application-packages

972560 Newbie
Currently Being Moderated
We encountered an issue with JRockit and weblogic 10.3.5. Here are the details:

1. Trying to enable EL 2.2 (for JSF 2).
2. Enabled it the way specified in this blog:
http://jsfprimefacesblog.blogspot.com/2011/11/el-22-and-weblogic-1035.html
3. Works perfectly fine when "Sun's JDK 1.6".
4. When we switch to JRockit, we get "java.lang.ClassNotFoundError: javax.el.ExpressionFactory".

Workaround:

1. set el-api-2.2.jar in PRE_CLASSPATH in setDomainEnv.bat/sh
2. Put in prefer-application-packages "<package-name>com.sun.el.*</package-name>" (removed <package-name>java.el.*</package-name>).

It's little surprising that it works fine in Sun's JDK, but Jrockit does not honor the prefer-application-packages for javax.el.*.

Does anybody knows the cause for this?

Thanks.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points