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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts example problem" Watch "struts example problem" New topic
Author

struts example problem

arun sahni
Ranch Hand

Joined: Jan 16, 2002
Posts: 91
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.


Arun Sahni<br />SCJP2,SWCD,<br />BEA Certified Specialist: Server <br />JCert Enterprise Developer for BEA.
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
are all .tld 's in your web-inf directory ?
arun sahni
Ranch Hand

Joined: Jan 16, 2002
Posts: 91
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

Joined: Jun 21, 2002
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts example problem