java.net.MalformedURLException: no protocol: standard-html-renderkit-impl.xml

在做JSF一个小例题是碰到的错误:

错误提示:

警告: Can't parse configuration file:file:/G:/ACCP/JSF/练习/testJSF/Tomcat/work/WebModule1/loader/com/sun/faces/standard-html-renderkit.xml java.net.MalformedURLException: no protocol: standard-html-renderkit-impl.xml  at java.net.URL.(URL.java:537)  at java.net.URL.(URL.java:434)  at java.net.URL.(URL.java:383)  at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)  at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)  at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)  at org.apache.xerces.impl.XMLDTDScannerImpl.startPE(Unknown Source)  at org.apache.xerces.impl.XMLDTDScannerImpl.skipSeparator(Unknown Source)  at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)  at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown Source)  at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)  at org.apache.commons.digester.Digester.parse(Digester.java:1548)  at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1239)  at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:213)  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)  at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)  at org.apache.catalina.core.StandardService.start(StandardService.java:480)  at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)  at org.apache.catalina.startup.Catalina.start(Catalina.java:556)  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:324)  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)2008-6-25 8:44:36 org.apache.catalina.core.StandardContext start严重: Error listenerStart2008-6-25 8:44:36 org.apache.catalina.core.StandardContext start严重: Context startup failed due to previous errors2008-6-25 8:44:36 org.apache.catalina.core.StandardHost getDeployer

错误原因:

路径中有中文名称

解决办法:

改为英文就好了

你可能感兴趣的:(JAVA)