WAS自由:ClassNotFoundException:[Ljava.lang.String

时间:2019-07-11 08:07:32

标签: java websphere websphere-liberty

我们正在将一些项目从WAS 6迁移到WAS 8.5,现在我们遇到以下错误:

[err] java.lang.ClassNotFoundException: [Ljava.lang.String;
[err]   at com.ibm.ws.classloading.internal.UnifiedClassLoader.findClass(UnifiedClassLoader.java:120)

完整的错误堆栈如下所示:

[err] java.lang.ClassNotFoundException: [Ljava.lang.String;
[err]   at com.ibm.ws.classloading.internal.UnifiedClassLoader.findClass(UnifiedClassLoader.java:120)
[err]   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[err]   at com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClass0(UnifiedClassLoader.java:108)
[err]   at [internal classes]
[err]   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[err]   at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:635)
[err]   at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:422)
[err]   at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
[err]   at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2388)
[err]   at [internal classes]
[err]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[err]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[err]   at java.lang.Thread.run(Thread.java:745)
[ERROR   ] SRVE0283E: Exception detected while initializing context : javax.faces.FacesException: java.lang.ClassNotFoundException: [Ljava.lang.String;
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:354)
    at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2388)
    at [internal classes]
Caused by: java.lang.ClassNotFoundException: [Ljava.lang.String;
    at com.ibm.ws.classloading.internal.UnifiedClassLoader.findClass(UnifiedClassLoader.java:120)
    ... 1 more

[ERROR   ] An error occured while initializing MyFaces: null
java.lang.UnsupportedOperationException

我们已经尝试了类似问题的解决方案,例如添加Dsun.lang.ClassLoader.allowArraySyntax=true参数,但是升级或更新JDK / JRE或WAS版本对我们来说是不可行的,因此我们坚持这一点,但我们没有对WAS足够了解,可以自己探索更多解决方案

0 个答案:

没有答案