日期:2014-05-16  浏览次数:20394 次

Tomcat在Eclipse里启动时JSF报的一个异常,帮我看看吧
1,项目中用到了JSF,可在Eclipse里启动Tomcat时有些问题,Eclipse报了如下异常:
2008-03-10 08:38:05,234 ERROR (org.apache.myfaces.application.ApplicationImpl:304) - Converter class com.fm.cmt.convertor.ContentTypeConverter not found
javax.faces.FacesException: java.lang.ClassNotFoundException: com.fm.cmt.convertor.ContentTypeConverter
?? ?at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:165)
?? ?at org.apache.myfaces.application.ApplicationImpl.addConverter(ApplicationImpl.java:298)
?? ?at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:615)
?? ?at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:148)
?? ?at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
?? ?at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
?? ?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
?? ?at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
?? ?at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
?? ?at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
?? ?at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
?? ?at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
?? ?at org.apache.catalina.core.StandardService.start(StandardService.java:448)
?? ?at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
?? ?at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
?? ?at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
?? ?at java.lang.reflect.Method.invoke(Method.java:597)
?? ?at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
?? ?at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.ClassNotFoundException: com.fm.cmt.convertor.ContentTypeConverter
?? ?at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
?? ?at java.security.AccessController.doPrivileged(Native Method)
?? ?at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
?? ?at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
?? ?at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
?? ?at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
?? ?at java.lang.Class.forName0(Native Method)
?? ?at java.lang.Class.forName(Class.java:247)
?? ?at org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:141)
?? ?at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:160)
?? ?... 20 more

?? ?不过,虽然有这个异常,可启动后运行时没有别的问题,这个问题也就先这样放着了.
1 楼 kencool 2008-03-11  
引用
Converter class com.fm.cmt.convertor.ContentTypeConverter not found

运行数据转换,可能会报错