Thanks for the answer. I've checked the contents of the HTTP Request and, the first time I attempt to display the Form the Request is empty (as I would expect). There is no org.apache.struts.taglib.html.BEAN object that I can see using the request.getAttributes() method.
I appear to be having different behaviour entering the same JSP page with the same Request contents (i.e. nothing) depending upon whether or not the WAR file was unpacked when Tomcat was started. I've tried explicitly creating an instance of the Form Bean in the JSP page using jsp:useBean. If I create it in the Request then I get this exception every time I visit the page regardless of whether the WAR file was unpacked or not. If I put it in the Session I get the initial behaviour. I'm sure that there must be Struts pages using FormBeans running under Tomcat 4.1.12 out there so what am I doing wrong? One route would be to upgrade to Struts 1.1b2 but I'm a bit reluctant to deploy an application using Beta version software. Any suggestions anyone? -----Original Message----- From: David Graham [mailto:dgraham1980@;hotmail.com] Sent: 28 October 2002 17:28 To: [EMAIL PROTECTED] Subject: Re: Struts 1.0.2, Tomcat 4.1.12 Web-App start-up funny I suggest you develop with tomcat 4.1.12 since you're deploying on that version. It will make your life easier with less surprises. You should check what object is stored under org.apache.struts.taglib.html.BEAN in the request. It may not be the bean you think it is. David >From: "Axtell, Neil" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >Subject: Struts 1.0.2, Tomcat 4.1.12 Web-App start-up funny >Date: Mon, 28 Oct 2002 17:23:21 -0000 > > >A plea for help to the great Struts User community. > >I'm in the process of deploying our first Struts-enabled Web-App onto a >separate Staging Server. This is running Win 2K SP3, JDK 1.4.1 & Tomcat >4.1.12. > >Everything works fine when I first deploy my WAR file and start Tomcat. It >is unpacked correctly and the Web-App runs fine. If I stop and re-start >Tomcat I get the following error message when I attempt to access an Admin >Page using an HTML form with an associated Struts Form Bean :- > >"javax.servlet.jsp.JspException: No getter method available for property >archiveServer for bean under name org.apache.struts.taglib.html.BEAN > at >org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:304) > at >org.apache.jsp.ResultArchiveAdmin_jsp._jspService(ResultArchiveAdmin_jsp.ja v >a:265)" > >The relevant part of my Struts-config.xml is :- > > <form-beans> > <form-bean name="ResultArchiveAdminFormBean" > >type="com.anritsu.eu.Expresso.Beans.ResultArchiveAdminFormBean"/> > </form-beans> > >... > > <!-- Add Result Archive --> > <action path="/AddArchive" > type="com.anritsu.eu.Expresso.ActAddResultArchive" > name="ResultArchiveAdminFormBean" > scope="request" > validate="true" > input="/ResultArchiveAdmin.jsp"> > <forward name="success" path="/ResultArchiveAdmin.jsp"/> > </action> > >I think that this exception is telling me that the Struts TagLib could not >find a matching "getArchiveServer()" method in the Form Bean. But why did >it >work the first time I ran up Tomcat? I have checked that the Bean does have >a matching method. Is it significant that the exception does not mention >the >"ResultArchiveAdminFormBean" by name? > >This is a bit frustrating as the same WAR file runs fine on my development >machine, but this is using JBuilder 6 & Tomcat 4.0.1. I would prefer to use >a later version of Tomcat for deployment. > >Obviously I must have missed something out from either the >Struts-config.xml, web.xml or in the JSP for this page. As this happens the >first time I attempt to access this page could it be a problem with an >instance of the FormBean being created? I've not explicitly added a ><jsp:useBean ...> statement into the JSP page as I thought that Struts >would >sort this all out for me. Do I need one? > >Any ideas would be gratefully received. > >Many thanks. > >Neil. > >________________________________________ > >Neil Axtell >Principal Engineer (MMI/Web Technologies) >ANRITSU LIMITED >European Measurement Division - Engineering >200 Capability Green >Luton, UK >Tel: +44 (0) 1582 433347 >Fax: +44 (0) 1582 433276 >E-Mail: [EMAIL PROTECTED] <mailto:Neil.Axtell@;eu.anritsu.com> > > > > > >--------------------- >This email message, together with any attachments, is for the exclusive and >confidential use of the addressee(s). If you have received this message in >error, please notify the sender by email immediately, then delete the >message and any copies. Any views or opinions presented herein are solely >those of the author and do not necessarily represent those of the Anritsu >group of companies. >--------------------- > > >-- >To unsubscribe, e-mail: ><mailto:struts-user-unsubscribe@;jakarta.apache.org> >For additional commands, e-mail: ><mailto:struts-user-help@;jakarta.apache.org> _________________________________________________________________ Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> --------------------- This email message, together with any attachments, is for the exclusive and confidential use of the addressee(s). If you have received this message in error, please notify the sender by email immediately, then delete the message and any copies. Any views or opinions presented herein are solely those of the author and do not necessarily represent those of the Anritsu group of companies. --------------------- -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

