This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

struts-blank.war file

Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded 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
----------> Parent Classloader:
] 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
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

Please Help !!!

Thanks in advance ............
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

<%@ taglib uri="" prefix="html" %>
<%@ taglib uri="" prefix="bean" %>
<%@ taglib uri="" prefix="logic" %>
<%@ taglib uri="" prefix="tiles" %>

- Brent
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ashwini,

does your issue got resolved? Does your application is working on WAS 6.1?

Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's hope so; it's been over a *year*.
    Bookmark Topic Watch Topic
  • New Topic