`

java.lang.ClassNotFoundException: [Ljava.lang.String;

    博客分类:
  • jsf
阅读更多

使用jsf 1.2-b20-FCS 与 tomahawk-1.1.6 发生错误:

java.lang.ClassNotFoundException: [Ljava.lang.String;
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1020)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:770)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:529)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2007-11-27 15:39:27 com.sun.faces.config.ConfigureListener contextInitialized
信息: Completed initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/jsf'
2007-11-27 15:39:27 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: java.lang.ClassNotFoundException: [Ljava.lang.String;
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:535)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: [Ljava.lang.String;
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1020)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:770)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:529)
    ... 15 more

解决方法:
JDK 6.0:  的bug,只能等待sun解决.
汗...
使用JDK 1.5没问题
参考链接: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149

分享到:
评论
3 楼 bug1024 2009-12-08  
这个应该是类加载器的委托造成的,你看一下有没有把class生成到了jre的lib/或lib/ext/下,WebappClassLoader没有被调用到,所以找不到这个类,可以把servlet-api.jar copy到jre的lib/ext下试试
2 楼 lysmart_8 2008-03-29  
jdk6.0bug,没办法的哦,但是有的项目不会错误的哦,我有几个项目就一个项目会有这个问题,晕倒
1 楼 liutongxin2005 2008-01-12  
    

相关推荐

Global site tag (gtag.js) - Google Analytics