File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes  Unable to read TLD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark " Unable to read TLD "META-INF/jsf_core.tld from  jsf-impl-2.0.jar when "Integrating JSF with Struts " Watch " Unable to read TLD "META-INF/jsf_core.tld from  jsf-impl-2.0.jar when "Integrating JSF with Struts " New topic
Author

Unable to read TLD "META-INF/jsf_core.tld from jsf-impl-2.0.jar when "Integrating JSF with Struts

maya kannan
Greenhorn

Joined: Sep 22, 2010
Posts: 4
Hi
We have one struts+spring+hibernate Application , we are trying to do "Integrating JSF with Struts applications", for that
we have done some configuration in web.xml and struts-config.xml. I have added some jar file in my WEB-INF/lib.

The jar files containing in my WEB-INF/lib are listed here:
antlr-2.7.6rc1.jar,asm.jar,asm-attrs.jar,bsh-2.0b2.jar,c3p0-0.9.1.2-jdk1.3.jar,cglib-2.1.3.jar,commons-beanutils-1.7.jar,commons-betwixt-0.8.jar,commons-cli-1.0.jar,commons-codec-1.3.jar,commons-collections-3.jar,commons-dbcp-1.2.1.jar,commons-digester-1.7.jar,commons-discovery-0.2.jar,commons-fileupload.jar,commons-httpclient-3.1.jar,commons-io-1.3.1.jar,commons-lang-2.3.jar,commons-logging-1.1.jar,commons-pool-1.2.jar,commons-validator.jar,connector-1_5.jar,dom4j-1.6.1.jar,ehcache-1.1.jar,el-api-6.0.20.jar,el-impl-2.2.0-SNAPSHOT.jar,hibernate-3.1.3.jar,jetty-util-6.0.0,.jar,servlet-api-2.3.jar,spring-2.5.6.jar,standard.jar,struts.jar,xercesImpl-2.6.2.jar,xmlParserAPIs-2.6.2.jar,xstream-1.3.1

The below jar file are the one's newly added for "Integrating JSF with Struts applications"
jsf-api-2.0.jar,jsf-impl-2.0.jar,myfaces-jsf-api-1.0.9.jar.jar.jar,struts-faces-1.3.10.jar


My web.xml is:

My struts-config.xml is


I am using Spring source toll suite, tomcat 5.5 and jdk 1.5
my Tomcat 5.5\common\lib containing jar files
commons-el.jar,jasper-compiler.jar,jasper-compiler-jdt.jar,jasper-runtime.jar,jsp-api.jar,naming-factory.jar,naming-factory-dbcp.jar,
naming-resources.jar,servlet-api.jar

My Server is starting properly . not able to load jsp page
, I am getting the exception as



org.apache.jasper.JasperException: Unable to read TLD "META-INF/jsf_core.tld" from JAR file "file:/SSHIntgr/WEB-INF/lib/jsf-impl-2.0.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: com.sun.faces.taglib.jsf_core.CoreValidator
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:179)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:181)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)

How can i solve this ?
thanks in advance
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1016
First it would have been easier to view the list of jar files in a long list, rather than comma searated

antlr-2.7.6rc1.jar
asm.jar
asm-attrs.jar
bsh-2.0b2.jar
c3p0-0.9.1.2-jdk1.3.jar
cglib-2.1.3.jar
commons-beanutils-1.7.jar
commons-betwixt-0.8.jar
commons-cli-1.0.jar
commons-codec-1.3.jar
commons-collections-3.jar
commons-dbcp-1.2.1.jar
commons-digester-1.7.jar
commons-discovery-0.2.jar
commons-fileupload.jar
commons-httpclient-3.1.jar
commons-io-1.3.1.jar
commons-lang-2.3.jar
commons-logging-1.1.jar
commons-pool-1.2.jar
commons-validator.jar
connector-1_5.jar
dom4j-1.6.1.jar
ehcache-1.1.jar
el-api-6.0.20.jar
el-impl-2.2.0-SNAPSHOT.jar
hibernate-3.1.3.jar
jetty-util-6.0.0.jar
servlet-api-2.3.jar
spring-2.5.6.jar
standard.jar
struts.jar
xercesImpl-2.6.2.jar
xmlParserAPIs-2.6.2.jar
xstream-1.3.1


Out of that list, at least the following should not be present: servlet-api-2.3.jar
You also probably don't need the el-api-6.0.20.jar or el-impl-2.2.0-SNAPSHOT.jar
The servlet classes and el should be provided by your container.
They look to be in the server's lib directory already, and should NOT in your WEB-INF/lib.

xerces and xmlParserAPis may also be unneeded extras, as that JDK comes standard with xml parsers.
Depending of course on what version of java you are using :-)


Also you listed: "jetty-util-6.0.0,.jar" which has a comma in the filename

Removing those extra files might fix the issue. The servlet one in particular will cause problems.
 
jQuery in Action, 2nd edition
 
subject: Unable to read TLD "META-INF/jsf_core.tld from jsf-impl-2.0.jar when "Integrating JSF with Struts
 
Similar Threads
loader constraints violated when linking javax/el/ELResolver class error
The method doMarkDoneOutboundCall(null, String) is undefined for the type Done_jsp
Error JSF 2.1: java.io.FileNotFoundException:*/*.xhtml Not Found in ExternalContext
at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.getServletMapping
java.lang.NullPointerException at the starting of tomcat 6.0