> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, December 13, 2004 12:49 PM > To: [EMAIL PROTECTED] > Subject: Struts configuration problem on Tomcat 5.5.4 > > > Hi, > I am hoping I have selected the correct list for this > problem. I can successfully deploy a simple struts > application with 1 action and form by manually extracting the > war file into the webapps directory of the Tomcat server. I > cannot deploy the war file automatically on a running Tomcat > 5.5.4 server. I get the following error which has been very > difficult to debug: > > INFO: Missing application web.xml, using defaults only > StandardEngine[Catalina].StandardHost[lo > calhost].StandardContext[/nobs] > > I think it is a subtle struts configuration problem with > web.xml and struts-config.xml but I am at a loss to find the > root cause of the problem.
Except that struts-config.xml is read after web.xml, and tomcat is apparently not finding the web.xml file. This could be for a couple of reasons: 1) web.xml is not in the WEB-INF directory 2) read permissions on web.xml 3) read permissions on WEB-INF and/or parent directories. In essence, the web.xml file tells tomcat to load the action servlet for struts. The action servlet then reads struts-config.xml. So, in this particular case it is not likely that the problem is struts related. I suspect that the war won't work becuase the war has to have a web.xml while the exploded does not. > > All the example struts applications in the 1.2.4 bundle > deploy automatically on Tomcat 5.5.4 using JDK1.4 > > Does anybody have any ideas? > > Much appreciated. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]