Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts example problem

 
arun sahni
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run struts( I tried with various releases of Struts) example in Tomcat 4.0.3 I get following error when I try to access struts-example from browser:
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/struts-bean.tld: Internal Error: File /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd not found
at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:226)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1162)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:758)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:121)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
The error is log file is similar :
2002-04-15 16:10:37 Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found
2002-04-15 16:10:37 StandardHost[localhost]: Installing web application at context path /struts-example from URL jar:file:C:\Program Files\Apache Tomcat 4.0\webapps\struts-example.war!/
2002-04-15 16:10:37 WebappLoader[/struts-example]: Deploying class repositories to work directory C:\Program Files\Apache Tomcat 4.0\work\localhost\struts-example
2002-04-15 16:10:37 WebappLoader[/struts-example]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to C:\Program Files\Apache Tomcat 4.0\webapps\struts-example\WEB-INF\lib\commons-beanutils.jar
2002-04-15 16:10:37 WebappLoader[/struts-example]: Deploy JAR /WEB-INF/lib/commons-collections.jar to C:\Program Files\Apache Tomcat 4.0\webapps\struts-example\WEB-INF\lib\commons-collections.jar
2002-04-15 16:10:37 WebappLoader[/struts-example]: Deploy JAR /WEB-INF/lib/commons-dbcp.jar to C:\Program Files\Apache Tomcat 4.0\webapps\struts-example\WEB-INF\lib\commons-dbcp.jar
2002-04-15 16:10:37 WebappLoader[/struts-example]: Deploy JAR /WEB-INF/lib/commons-digester.jar to C:\Program Files\Apache Tomcat 4.0\webapps\struts-example\WEB-INF\lib\commons-digester.jar
I am using binary dist. of struts. Iam surprised why is it lokking javax/resources which is not there in servlet.jar.
Any help is welcome.
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are all .tld 's in your web-inf directory ?
 
arun sahni
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Taariq
All .tld in my example application directory.
I just copied the struts-example war into webapps directory to use it.
[ April 16, 2002: Message edited by: arun sahni ]
 
cri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heya, I've got the same error (for a different .tld), but when I'm playing with security permissions in the catalina.policy file... has any1 another ideea where it comes from ?
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/i18n.tld: Internal Error: File /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd not found
at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:226)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
...
regads,
cri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic