I downloaded struts-1.3.8-all.zip and extracted it in a folder struts-1.3.8. It contained sub-folders apps,docs,lib and src. apps folder contained struts-blank-1.3.8.war. I wanted to make my application using struts-blank.war. So i extracted the struts-blank.war file into a folder struts-blank-1.3.8. This contained 3 sub-folders META-INF, pages and WEB-INF. 1.) When I opened the web.xml file I found that there is no entry for the <taglib> tag libraries in the web.xml file. Also there are no .tld files such struts-bean.tld,struts-html.tld, etc. in WEB-INF. Does the struts-blank.war have the .tld files ??? If yes then why are they not coming in WEB-INF..... 2.) Also log4j is not working when I configure it....... It gave the following exception : 17:32:39,656 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apac he.log4j.spi.ErrorHandler" variable. 17:32:39,656 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by 17:32:39,656 ERROR [STDERR] log4j:ERROR [WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: java.net.FactoryURLClassLoader@1082d45 ] whereas object of type 17:32:39,656 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.No AnnotationURLClassLoader@1de3f2d]. 17:32:39,718 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows. 17:32:39,718 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
I cannot help you with #2, but about the missing taglibs...the preferred method these days is to not declare your tablibs in web.xml. The taglibs are included in struts.jar and if you use the URI defined in the taglibs you are good to go:
I am using Struts 1.3.8 with WebSphere 6.1 (IBM Java 1.5). I am not sure if it is a compiler problem, but the runtime does not seem to find the TLDs in the struts-taglib-1.3.8.jar file that is part of the included libraries in the build path. I am developing using MyEclipseIDE, so I exported that same project (as is) to a WAR file and deployed it to Tomcat (using Sun Java 1.6), and the runtime has no problem recognizing the TLDs directly from the JAR. Is this a compiler related issue or am I missing something else?
The error that I get when I access the JSP using the Struts HTML tag is "Unable to locate the tag library".