Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic