java.lang.ClassFormatError:...illegal JVM_CONSTANT_Class name: [L[Ljava/lang/String;;错误
【早期文章迁移过来】
OS :RedHat Enterprise Server 5.4
JDK:Jrockit 1.6.0_05
WLS:10.3.0.0
应用访问中有些jsp页面无法显示,IE报错500,后台日志报错如下:
java.lang.ClassFormatError: jsp_servlet/_customermanage/__customerlist : illegal JVM_CONSTANT_Class name: [L[Ljava/lang/String;;.>
<2011-3-3 ???02?41?¤?3? CST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@177b024 - appName: 'chongqing', name: 'chongqing', context-path: '/chongqing', spec-version: '2.5'] Root cause of ServletException.
javax.servlet.ServletException: [HTTP:101249][weblogic.servlet.internal.WebAppServletContext@177b024 - appName: 'chongqing', name: 'chongqing', context-path: '/chongqing', spec-version: '2.5']: Servlet class jsp_servlet._customermanage.__customerlist for servlet /CustomerManage/CustomerList.jsp could not be loaded because the requested class was not found in the classpath .
java.lang.ClassFormatError: jsp_servlet/_customermanage/__customerlist : illegal JVM_CONSTANT_Class name: [L[Ljava/lang/String;;.
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:533)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:262)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:182)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
解决方法:
1.在MEM_ARGS中增加参数-Xverify:none
-Xverify:<option>With no parameters, enables the verifier. Note that this is the default; used on its own, this option has no effect.
-Xverify:allThis option enables maximum verification.
-Xverify:noneThis option disables the verifier.
-Xverify:remoteThis option enables strict class-loading checks on remotely loaded classes.
2.如果还是没有解决,就要打补丁
Patches are available for bug 8177354:
------------------------------------------
PATCH REPOSITORY INFORMATION
------------------------------------------
WLS Version | Patch ID | Passcode
--------------+----------+----------------
10.3 GA | HEH5 | JW6PS6W4