On 9/18/05, T West <[EMAIL PROTECTED]> wrote: > My Tomcat log is for catalina.out is: > log4j:WARN No appenders could be found for logger > (org.apache.catalina.startup.Embedded). > log4j:WARN Please initialize the log4j system properly. > > And my localhost log is: > 2005-09-18 12:29:10 > expand(jar:file:/usr/local/jakarta-tomcat-5.5.9/webapps/DatabaseRetrieval.war!/) > 2005-09-18 12:29:10 Proposed directory name: DatabaseRetrieval > 2005-09-18 12:29:10 Have created expansion directory > /usr/local/tomcat/webapps/DatabaseRetrieval > 2005-09-18 12:29:10 Have opened JAR file successfully > 2005-09-18 12:29:10 Have retrieved entries enumeration > 2005-09-18 12:29:10 Am processing entry META-INF/ > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/META-INF > 2005-09-18 12:29:10 Am processing entry META-INF/MANIFEST.MF > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/META-INF > 2005-09-18 12:29:10 Creating expanded file META-INF/MANIFEST.MF > 2005-09-18 12:29:10 Am processing entry classes/ > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Am processing entry classes/DatabaseRetrievalIF.class > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/DatabaseRetrievalIF.class > 2005-09-18 12:29:10 Am processing entry > classes/DatabaseRetrievalActionForm.class > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file > classes/DatabaseRetrievalActionForm.class > 2005-09-18 12:29:10 Am processing entry classes/HibernateUtil.class > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/HibernateUtil.class > 2005-09-18 12:29:10 Am processing entry classes/hibernate.cfg.xml > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/hibernate.cfg.xml > 2005-09-18 12:29:10 Am processing entry classes/DBUserBean.class > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/DBUserBean.class > 2005-09-18 12:29:10 Am processing entry classes/log4j.properties > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/log4j.properties > 2005-09-18 12:29:10 Am processing entry > classes/DatabaseRetrievalAction.class > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file > classes/DatabaseRetrievalAction.class > 2005-09-18 12:29:10 Am processing entry classes/AuditBean.class > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/AuditBean.class > 2005-09-18 12:29:10 Am processing entry classes/AuditBean.hbm.xml > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/AuditBean.hbm.xml > 2005-09-18 12:29:10 Am processing entry classes/DBUserBean.hbm.xml > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/DBUserBean.hbm.xml > 2005-09-18 12:29:10 Am processing entry classes/DatabaseRetrieval.class > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/classes > 2005-09-18 12:29:10 Creating expanded file classes/DatabaseRetrieval.class > 2005-09-18 12:29:10 Am processing entry DatabaseRetrievalForm.html > 2005-09-18 12:29:10 Creating expanded file DatabaseRetrievalForm.html > 2005-09-18 12:29:10 Am processing entry DatabaseRetrievalResults.ftl > 2005-09-18 12:29:10 Creating expanded file DatabaseRetrievalResults.ftl > 2005-09-18 12:29:10 Am processing entry index2.jsp > 2005-09-18 12:29:10 Creating expanded file index2.jsp > 2005-09-18 12:29:10 Am processing entry index.jsp > 2005-09-18 12:29:10 Creating expanded file index.jsp > 2005-09-18 12:29:10 Am processing entry lib/ > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Am processing entry lib/antlr.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/antlr.jar > 2005-09-18 12:29:10 Am processing entry lib/struts.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/struts.jar > 2005-09-18 12:29:10 Am processing entry lib/jakarta-oro.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/jakarta-oro.jar > 2005-09-18 12:29:10 Am processing entry > lib/ostermillerutils_1_04_03_for_java_1_4.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file > lib/ostermillerutils_1_04_03_for_java_1_4.jar > 2005-09-18 12:29:10 Am processing entry lib/hibernate.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/hibernate.jar > 2005-09-18 12:29:10 Am processing entry lib/commons-digester.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/commons-digester.jar > 2005-09-18 12:29:10 Am processing entry lib/jta.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/jta.jar > 2005-09-18 12:29:10 Am processing entry lib/cglib-ful-2.0.2.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/cglib-ful-2.0.2.jar > 2005-09-18 12:29:10 Am processing entry lib/commons-collections.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/commons-collections.jar > 2005-09-18 12:29:10 Am processing entry lib/postgresql-8.0-311.jdbc3.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/postgresql-8.0-311.jdbc3.jar > 2005-09-18 12:29:10 Am processing entry lib/commons-logging.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/commons-logging.jar > 2005-09-18 12:29:10 Am processing entry lib/struts-legacy.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/struts-legacy.jar > 2005-09-18 12:29:10 Am processing entry lib/commons-fileupload.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/commons-fileupload.jar > 2005-09-18 12:29:10 Am processing entry lib/freemarker.jar > 2005-09-18 12:29:10 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:10 Creating expanded file lib/freemarker.jar > 2005-09-18 12:29:11 Am processing entry lib/commons-beanutils.jar > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:11 Creating expanded file lib/commons-beanutils.jar > 2005-09-18 12:29:11 Am processing entry lib/jgroups-2.2.7.jar > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:11 Creating expanded file lib/jgroups-2.2.7.jar > 2005-09-18 12:29:11 Am processing entry lib/ehcache-0.9.jar > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:11 Creating expanded file lib/ehcache-0.9.jar > 2005-09-18 12:29:11 Am processing entry lib/commons-validator.jar > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:11 Creating expanded file lib/commons-validator.jar > 2005-09-18 12:29:11 Am processing entry lib/commons-lang.jar > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:11 Creating expanded file lib/commons-lang.jar > 2005-09-18 12:29:11 Am processing entry lib/dom4j-1.4.jar > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:11 Creating expanded file lib/dom4j-1.4.jar > 2005-09-18 12:29:11 Am processing entry lib/jdbc2_0-stdext.jar > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:11 Creating expanded file lib/jdbc2_0-stdext.jar > 2005-09-18 12:29:11 Am processing entry lib/log4j-1.2.9.jar > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/lib > 2005-09-18 12:29:11 Creating expanded file lib/log4j-1.2.9.jar > 2005-09-18 12:29:11 Am processing entry src/ > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Am processing entry src/DatabaseRetrieval.java > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/DatabaseRetrieval.java > 2005-09-18 12:29:11 Am processing entry src/DatabaseRetrievalIF.java > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/DatabaseRetrievalIF.java > 2005-09-18 12:29:11 Am processing entry src/DatabaseRetrievalAction.java > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/DatabaseRetrievalAction.java > 2005-09-18 12:29:11 Am processing entry src/DatabaseRetrievalActionForm.java > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file > src/DatabaseRetrievalActionForm.java > 2005-09-18 12:29:11 Am processing entry src/HibernateUtil.java > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/HibernateUtil.java > 2005-09-18 12:29:11 Am processing entry src/hibernate.cfg.xml > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/hibernate.cfg.xml > 2005-09-18 12:29:11 Am processing entry src/DBUserBean.java > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/DBUserBean.java > 2005-09-18 12:29:11 Am processing entry src/log4j.properties > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/log4j.properties > 2005-09-18 12:29:11 Am processing entry src/AuditBean.java > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/AuditBean.java > 2005-09-18 12:29:11 Am processing entry src/AuditBean.hbm.xml > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/AuditBean.hbm.xml > 2005-09-18 12:29:11 Am processing entry src/DBUserBean.hbm.xml > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/DBUserBean.hbm.xml > 2005-09-18 12:29:11 Am processing entry src/build.xml > 2005-09-18 12:29:11 Creating parent directory > /usr/local/tomcat/webapps/DatabaseRetrieval/src > 2005-09-18 12:29:11 Creating expanded file src/build.xml > 2005-09-18 12:29:11 Am processing entry struts-config.xml > 2005-09-18 12:29:11 Creating expanded file struts-config.xml > 2005-09-18 12:29:11 Am processing entry struts-html.tld > 2005-09-18 12:29:11 Creating expanded file struts-html.tld > 2005-09-18 12:29:11 Am processing entry war.sh > 2005-09-18 12:29:11 Creating expanded file war.sh > 2005-09-18 12:29:11 Am processing entry web.xml > 2005-09-18 12:29:11 Creating expanded file web.xml > > > > ---------- Forwarded message ---------- > > From: Laurie Harper <[EMAIL PROTECTED]> > > To: user@struts.apache.org > > Date: Sat, 17 Sep 2005 02:54:47 -0400 > > Subject: Re: Cannot find ActionMappings or ActionFormBeans > > Those aren't startup errors, they're from attempting to access and > > index.jsp. The root of the problem is probably something going wrong on > > startup. What's in your Tomcat log files immediately after Tomcat starts > > (before you try to access the web application)? > > > > L. > > > > T West wrote: > > > I'm developing a Struts application that lets a user query a database > > > using a JSP page and then returns it in a JSP page. I'm using Struts > > > 1.2.4 on Tomcat 5.0.28. Whenever I try to start the Struts program, > > > however, I receive this error: > > > javax.servlet.ServletException: Cannot find ActionMappings or > > > ActionFormBeans collection > > > > > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825) > > > > > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758) > > > org.apache.jsp.index_jsp._jspService(index_jsp.java:78) > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) > > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > > > > > > > > root cause javax.servlet.jsp.JspException: Cannot find ActionMappings > > > or ActionFormBeans collection > > > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:711) > > > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:419) > > > org.apache.jsp.index_jsp._jspx_meth_html_form_0(index_jsp.java:94) > > > org.apache.jsp.index_jsp._jspService(index_jsp.java:67) > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) > > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > > I've searched Google for any information about this error, and I've > > > found some documentation on this error. I've followed the suggestions > > > (such as validating that web.xml and struts-config.xml are correct), > > > and I still get the error. Is there something I'm doing wrong, and if > > > so, could someone point me to where I should look. > > > My web.xml file is: > > > <?xml version="1.0" encoding="UTF-8"?> > > > <web-app xmlns="http://java.sun.com/xml/ns/j2ee" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> > > > <servlet> > > > <servlet-name>action</servlet-name> > > > <servlet-class> > > > org.apache.struts.action.ActionServlet > > > </servlet-class> > > > <init-param> > > > <param-name>config</param-name> > > > > > > <param-value>/struts-config.xml</param-value> > > > </init-param> > > > <init-param> > > > <param-name>host</param-name> > > > <param-value>localhost</param-value> > > > </init-param> > > > <init-param> > > > > > > <param-name>port</param-name> > > > <param-value>8080</param-value> > > > </init-param> > > > <load-on-startup>2</load-on-startup> > > > </servlet> > > > <servlet> > > > <servlet-name>freemarker</servlet-name> > > > > > > <servlet-class>freemarker.ext.servlet.FreemarkerServlet</servlet-class> > > > <!-- FreemarkerServlet settings: --> > > > <init-param> > > > <param-name>TemplatePath</param-name> > > > <param-value>/</param-value> > > > </init-param> > > > <init-param> > > > > > > <param-name>NoCache</param-name> > > > <param-value>true</param-value> > > > </init-param> > > > <init-param> > > > <param-name>ContentType</param-name> > > > <param-value>text/html</param-value> > > > </init-param> > > > > > > > > > <!-- FreeMarker settings: --> > > > <init-param> > > > <param-name>template_update_delay</param-name> > > > <param-value>0</param-value> <!-- 0 is for development only! Use > > > higher value otherwise. --> > > > </init-param> > > > <init-param> > > > <param-name>default_encoding</param-name> > > > > > > <param-value>ISO-8859-1</param-value> > > > </init-param> > > > <init-param> > > > <param-name>number_format</param-name> > > > <param-value>0.##########</param-value> > > > </init-param> > > > <load-on-startup>1</load-on-startup> > > > > > > </servlet> > > > <servlet-mapping> > > > <servlet-name>action</servlet-name> > > > <url-pattern>*.do</url-pattern> > > > </servlet-mapping> > > > <servlet-mapping> > > > <servlet-name>freemarker</servlet-name> > > > <url-pattern>*.ftl</url-pattern> > > > </servlet-mapping> > > > > > > <taglib> > > > <taglib-uri>struts-logic.tld</taglib-uri> > > > <taglib-location> > > > struts-logic.tld</taglib-location> > > > </taglib> > > > <taglib> > > > <taglib-uri>struts-html.tld</taglib-uri> > > > <taglib-location> > > > struts-html.tld</taglib-location> > > > </taglib> > > > > > > <session-config> > > > <session-timeout> > > > 30 > > > </session-timeout> > > > </session-config> > > > <welcome-file-list> > > > <welcome-file> > > > index2.jsp > > > </welcome-file> > > > </welcome-file-list> > > > > > > </web-app> > > > > > > and my struts-config.xml file is: > > > <?xml version="1.0" encoding="ISO-8859-1" ?> > > > <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD > > > Struts Configuration 1.1//EN" > > > "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> > > > > > > <struts-config> > > > > > > <form-beans> > > > <form-bean name="DatabaseRetrievalActionForm" > > > type="DatabaseRetrievalActionForm"/> > > > </form-beans> > > > > > > <global-forwards> > > > <forward name="intro" path="/index.jsp"/> > > > </global-forwards> > > > > > > <action-mappings> > > > > > > <action path="/DatabaseRetrievalAction" > > > type="DatabaseRetrievalAction" input="/index2.jsp" > > > name="DatabaseRetrievalActionForm" scope="request"> > > > <forward name="success" path="/DatabaseRetrievalResults.ftl"/> > > > </action> > > > </action-mappings> > > > </struts-config> > > > > > > Thanks for your time. >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]