Thanks for clarifying that. That was actually my initial configuration - I'm using Eclipse WTP & somehow my project setup got corrupt. Opening a new dynamic 2.5 web module fixed it. To get EL support enabled also had to manually add el-api.jar & el-impl.jar to Tomcat's classpath to assure they load before Tomcat's built-in EL support.
Sagie On Wed, 2010-06-09 at 15:00 +0300, Ali Ok wrote: > Hi, > > You don't need facelets.jar or > <view-handler>org.apache.myfaces.view.facelets.FaceletViewHandler</view-handler> > config. > > Those are bundled and default with Myfaces 2.0. > > Regards, > Ali > > On Wed, Jun 9, 2010 at 2:48 PM, [email protected] <[email protected]> wrote: > > > Hello, > > > > I'm trying to debug a myfaces 2.0.0 + facelets Tomcat setup. I'm getting > > SAXException's while loading any of the taglib.xml's included in > > faceletes-1.1.14 META-INF dir: > > > > SEVERE: Error Loading Library: > > > > jar:file:/home/muadib/workbench/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/jsf-helloworld > > /WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-core.taglib.xml > > java.io.IOException: Error parsing > > > > [jar:file:/home/muadib/workbench/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/jsf-hello > > world/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-core.taglib.xml]: > > at > > > > org.apache.myfaces.view.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:636) > > at > > > > org.apache.myfaces.view.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:662) > > at > > > > org.apache.myfaces.view.facelets.compiler.Compiler.initialize(Compiler.java:93) > > at > > > > org.apache.myfaces.view.facelets.compiler.Compiler.compileViewMetadata(Compiler.java:125) > > ... > > Caused by: org.xml.sax.SAXException: Error Handling > > > > [jar:file:/home/muadib/workbench/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtp > > > > webapps/jsf-helloworld/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-core.taglib....@25,74] > > <library-class> > > at org.apache.myfaces.view.facelets.compiler.TagLibraryConfig > > $LibraryHandler.endElement(TagLibraryConfig.java:453) > > at > > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) > > at > > > > com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:263) > > at > > > > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2028) > > at > > > > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:901) > > at > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782) > > at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl > > $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:29 > > 38) > > at > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) > > at > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) > > 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) > > > > > > thought it was a double class load issue but without the taglib files > > the myfaces facelet compiler complains: > > > > org.apache.myfaces.view.facelets.compiler.Compiler initialize > > SEVERE: Missing Built-in Tag Libraries! Make sure they are included > > within the META-INF directory of Facelets' Jar > > > > > > // Specs: > > Tomcat 6.0.20 > > MyFaces 2.0.0 > > JRE 1.6.0.20 > > > > // contents of WEB-INF/lib : > > commons-beanutils-1.7.0.jar > > commons-codec-1.3.jar > > commons-collections-3.2.jar > > commons-digester-1.8.jar > > commons-discovery-0.4.jar > > commons-el-1.0.0.jar > > commons-logging-1.1.1.jar > > el-api-2.2.0-SNAPSHOT.jar > > el-impl-2.2.0-SNAPSHOT.jar > > jsf-facelets-1.1.14.jar > > jstl-api-1.2.jar > > jstl-impl-1.2.jar > > juel-impl-2.2.1.jar > > myfaces-api-2.0.1-SNAPSHOT.jar > > myfaces-impl-2.0.1-SNAPSHOT.jar > > > > // faces-config.xml > > <?xml version="1.0"?> > > <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"> > > <application> > > > > <locale-config><default-locale>en</default-locale></locale-config> > > > > > > <view-handler>org.apache.myfaces.view.facelets.FaceletViewHandler</view-handler> > > </application> > > </faces-config> > > > > btw - the link to http://www.irian.at/myfaces.jsf examples application > > from http://myfaces.apache.org/core20/gettingstarted.html is broken. > > A working myfaces 2.0 + facelets example could be very useful. couldn't > > seem to find myfaces-2.0.0-examples.tgz. > > > > Thanks, > > Sagie > > > > > > > > > >

