• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts-blank.war file

 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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




Please Help !!!

Thanks in advance ............
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

- Brent
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".

-Ashwin
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ashwini,

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


Thanks
Jitendra
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's hope so; it's been over a *year*.
 
I am a man of mystery. Mostly because of this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic