> -----Original Message----- > From: Phyl [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 13, 2004 3:25 PM > To: Struts Users Mailing List > Subject: Re: webapp deployment > > > > > I'm using Tomcat 4.1.29 in the development machine and Tomcat > 4.0.3 in > the webserver. > > I wonder if this problem might have to be with the way <context> is > declared in server.xml. This is the way I have it in the development > machine: > --------------------- server.xml --------------------------------- > [...] > <Context path="/tyriatis" reloadable="true" > docBase="D:\Project1\www" workDir="D:\Project1\work\org\apache\jsp" /> > [...] > ------------------------------------------------------------------ > > and this is the way my hosting company configured it for me: > --------------------- server.xml --------------------------------- > [...] > docBase="/home/virtual/sitexyz/fst/var/www/html" > crossContext="false" > reloadable="true" /> > [...]
Pardon the obvious, but just in case you're WEB-INF should be: /home/virtual/sitexyz/fst/var/www/html/WEB-INF/struts-config.xml If that's it.... again, pardon the obvious, but how is the struts-config.xml coded in the web.xml? > ------------------------------------------------------------------ > > > The following global-forward is the one i'm calling: > ----------------------- struts-config.xml ------------------------- > [...] > <global-forwards> > <forward name="welcome" path="/catalog.do" redirect="false" /> > </global-forwards> > [...] > ------------------------------------------------------------------ > > I'm trying to call it from index.jsp: > -------------------------- index.jsp ------------------------------ > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > <html> > <body> > <logic:forward name="welcome"/> > </body> > </html> > ------------------------------------------------------------------- > > > Cheers, > Phyl > > > > Can you provide a bit more information and code? What do > you have for > > global forwards in your struts-config.xml? Where is the "welcome" > > forward called? Etc. > > > > At 04:08 PM 7/12/2004, you wrote: > > > >> Hi, > >> > >> I've been developing a struts webapp using tomcat and am > now trying > >> to deploy it to my webserver. I copied every class and jsp > manually > >> since there is no .war deployment available on the server. > >> Invoking a simple jsp directly works fine, however, when > invoking a > >> *struts' jsp* this exception is being thrown: > >> > >> javax.servlet.jsp.JspException: Cannot find global > ActionForward for > >> name welcome > >> at > >> > org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag. > java:142) > >> at org.apache.jsp.index$jsp._jspService(index$jsp.java:73) > >> at > >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > >> ... > >> > >> this is the associated .jsp: > >> > >> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > >> > >> It seems the "welcome" global forward isn't being found in > >> struts-config, but I'm sure it exists. > >> When calling an action directly I get a "Not Found" error. > I'm beginning > >> to doubt that struts-config.xml is even being loaded. > >> What do you think might be the problem? > >> > >> > >> thanks in advance, > >> Phyl > >> > >> > >> > >> > >> > >> > >> > --------------------------------------------------------------------- > >> 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] > > > > > --------------------------------------------------------------------- > 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]