2011-03-31 53 views
1

有沒有人可以幫我解決這個問題。已經下載並配置了Myfaces 2.04和tomahawk2-1.1.10。該應用程序精細啓動,但目前它初始化戰斧,我們得到以下(符web.xml配置是罰款,每MyFaces的文檔):SAXException開始Tomhawk2-1.1.10

java.io.IOException: Error parsing [jar:file:/C:/FNBConnectProjects/servers/apache-tomcat-6.0.20/webapps/FNBConnectPortal/WEB-INF/lib/tomahawk20-1.1.10.jar!/META-INF/tomahawk.taglib.xml]: 
    at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:410) 
    at com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:431) 
    at com.sun.facelets.compiler.Compiler.initialize(Compiler.java:87) 
    at com.sun.facelets.compiler.Compiler.compile(Compiler.java:104) 
    at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197) 
    at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144) 
    at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95) 
    at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517) 
    at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567) 
    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) 
    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) 
    at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:85) 
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239) 
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
    at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) 
    at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) 
    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) 
    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
    at za.co.fnbconnect.portal.util.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:94) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
    at za.co.fnbconnect.portal.util.StatsFilter.doFilter(StatsFilter.java:45) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) 
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) 
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) 
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) 
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) 
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) 
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) 
    at java.lang.Thread.run(Thread.java:619) 
Caused by: org.xml.sax.SAXException: Error Handling [jar:file:/C:/FNBConnectProjects/servers/apache-tomcat-6.0.20/webapps/FNBConnectPortal/WEB-INF/lib/tomahawk20-1.1.10.jar!/META-INF/[email protected],29] 
    at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.error(TagLibraryConfig.java:376) 
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) 
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384) 
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318) 
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1621) 
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1900) 
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:764) 
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363) 
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1318) 
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3103) 
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922) 
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) 
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) 
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) 
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) 
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) 
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) 
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) 
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) 
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) 
    at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:407) 
    ... 43 more 

2011年3月31日下午12點40分54秒

+0

跟蹤中是否沒有其他原因? SAXException應該又有另一個根本原因。 – BalusC 2011-03-31 13:28:37

+0

奇怪的沒有。這就對了。我恢復了我只能假設的是非jsf2版本的Tomahawk(tomahawk-1.1.10),並且這種情況很好。然而,它在其最終呈現的javascript中查找名爲「oamSubmitForm」的東西。我們最終利用我們很早以前創建的腳本來解決這個問題,以允許用戶按下某些字段上的輸入來提交操作。不理想,但因爲我們將在大約10小時內生活...... – Gerrie 2011-03-31 14:50:51

+0

我查了一下資料來源並做出了猜測。希望有所幫助。 – BalusC 2011-03-31 15:14:07

回答

2

引起:org.xml.sax.SAXException:錯誤處理[jar:file:/ C:/FNBConnectProjects/servers/apache-tomcat-6.0.20/webapps/FNBConnectPortal/WEB-INF/lib/tomahawk20- 1.1.10.jar!/META-INF/[email protected],29]

錯誤表現在第23行,第29個字符爲01 JAR中的。我有JAR這裏已經存在,檢查源:

20  <facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee" 
21     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
22     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd" 
23     version="2.0"> 
24     
25   <namespace>http://myfaces.apache.org/tomahawk</namespace> 
26   <composite-library-name>org.apache.myfaces.custom</composite-library-name> 

這是一個與version="2.0"行。這表明版本衝突。您的webapp的/WEB-INF/faces-config.xml文件是按照JSF 2.0聲明的,而不是1.2或其他?

<?xml version="1.0" encoding="UTF-8"?> 
<faces-config 
    xmlns="http://java.sun.com/xml/ns/javaee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" 
    version="2.0"> 
    <!-- Config here --> 
</faces-config> 
+0

我只有這些在我的faces-config文件中:<?xml version =「1.0」?> <!DOCTYPE faces-config PUBLIC 「 - // Sun Microsystems,Inc. //DTD JavaServer Faces Config 1.1 // EN 「 」http://java.sun.com/dtd/web-facesconfig_1_1.dtd「> Gerrie 2011-04-01 08:36:22

+0

您肯定需要按照我的回答中的解釋,將其替換爲JSF 2.0。 – BalusC 2011-04-01 11:01:43