aspose file tools*
The moose likes Struts and the fly likes struts-blank.war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts-blank.war file" Watch "struts-blank.war file" New topic
Author

struts-blank.war file

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
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 ............
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
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
Ashwin Raj
Greenhorn

Joined: Jan 02, 2008
Posts: 2
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
Jitendra Supe
Greenhorn

Joined: Aug 15, 2005
Posts: 5
Hi Ashwini,

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


Thanks
Jitendra
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Let's hope so; it's been over a *year*.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts-blank.war file