留言板

Weblogic 9.2 whit RHINO.jar (class org.mozilla.javascript.CompilerEnviron

thumbnail
Edwin Espinoza Zevallos,修改在15 年前。

Weblogic 9.2 whit RHINO.jar (class org.mozilla.javascript.CompilerEnviron

Junior Member 帖子: 77 加入日期: 09-2-13 最近的帖子
Hi all !!

I have a problem with RHINO.jar. in weblogic 9.2(MP3).

The problem is caused by the fact that weblogic.jar(org>mozilla>classfile and javascript) contains its own version of Rhino, which is an older version that the version I am using in LIFERAY 5.2.1

Log Error:

context-path: '/liferay'] Servlet failed with Exception java.lang.IllegalAccessError: tried to access class org.mozilla.javascript.DefaultErrorReporter from class org.mozilla.javascript.CompilerEnvirons
at org.mozilla.javascript.CompilerEnvirons.<init>(CompilerEnvirons.java:48)

one workAround(I have Error JAVASCRIPT in HOME LIFERAY):
------------------------
I did was remove the old version in weblogic.jar and put Rhino.jar in the class path(in your domain's lib directory). Good start Liferay , but I have a problems with JAVASCRIPT.
Any solution for this? your help will be greatly appreciated!
saintrenault saintrenault saintrenault,修改在15 年前。

RE: Weblogic 9.2 whit RHINO.jar (class org.mozilla.javascript.Compile

New Member 帖子: 4 加入日期: 09-3-16 最近的帖子
I also encountered the same problem, and I got a solution.
1.If you startup weblogic in enclipse,
you can configure the weblogic, in the Paths configurations, you can add the rhino.jar to the "Prepend to classpath" , restart your weblogic and it will be ok.

2.If you startup using startweblogic.cmd, you just need to change the set classpath property.
in windows enviroment:
you need to change the file : bea\user_projects\domains\yourdomain\bin\ startweblogic.cmd,

change this row
--------------------------------------------
set CLASSPATH=%CLASSPATH%;%MEDREC_WEBLOGIC_CLASSPATH%
--------------------------------------------
to
-------------------------------------------
set CLASSPATH=E:\bea9\user_projects\domains\liferay\lib\rhino.jar;%CLASSPATH%;%MEDREC_WEBLOGIC_CLASSPATH%
-------------------------------------------

this directory : "E:\bea9\user_projects\domains\liferay\lib\rhino.jar " is where you reserve rhino.jar, and this jar is from the liferay package.

In doing this, the rhino.jar in liferay will be preloaded. Hope this will help you.
thumbnail
Edwin Espinoza Zevallos,修改在15 年前。

RE: Weblogic 9.2 whit RHINO.jar (class org.mozilla.javascript.Compile

Junior Member 帖子: 77 加入日期: 09-2-13 最近的帖子
Thanks you, Saintrenault !!

Other solution is put in .../jdk1.5.0/jre/lib/ext(or create directory endorsed) the lib Rhino.jar.

Thanks ,
Edwin Espinoza.
Jeramie Vargas,修改在10 年前。

RE: Weblogic 9.2 whit RHINO.jar (class org.mozilla.javascript.Compile

New Member 发布: 1 加入日期: 13-10-25 最近的帖子
Hi! I am encountering that error too. I have a rhino-js-1.6R7.jar in my jdk path.

But still faces the same problem. How should I go with these?

I am using Weblogic 10.3 Thanks!