D'oh! I'm supposed to be smarter than that!
(Sheepish grin) Thanks, that did the trick. Mike Steigerwald 9237 Pinehurst Road Woodbury, MN 55125-8642 [EMAIL PROTECTED] Phone: 651.261.2098 Fax: 206-237-6597 http://home.comcast.net/~michaels23/ -----Original Message----- From: Benjamin Cox [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2003 6:46 PM To: [EMAIL PROTECTED] Subject: Re: Newbie struggling with struts-example Hmmm... did you expand the .war file? From in the webapps directory, try: jar -xf struts-example.war then hit your page again. If that doesn't work, there may be a configuration setting in Tomcat that has turned off automatic creation of contexts when they are placed in the webapps directory, though it's not very likely. Oh, one other thing: if you are using Apache as the bridge then, depending how it is configured, you may possibly have to put another entry in the configuration file for the connector (like mod_jk.conf), since Tomcat is not handling the URLs by itself when attached to Apache. Good luck, Ben Mike Steigerwald wrote: Thanks, but I get the same error. (Except that it now refers to struts-example/tour.htm Mike Steigerwald 9237 Pinehurst Road Woodbury, MN 55125-8642 [EMAIL PROTECTED] Phone: 651.261.2098 Fax: 206-237-6597 http://home.comcast.net/~michaels23/ -----Original Message----- From: Benjamin Cox [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2003 4:28 PM To: Struts Developers List Subject: Re: Newbie struggling with struts-example Each of the applications you install into tomcat (i.e. with a .war file) is, by default, deployed into its own context, which allows different applications to co-exist in one server happily. Each context is accessed from a url like: http://yourHost/warFilenameWithoutTheDotWar/. In tomcat, the application at / is typically called ROOT, a directory for which should be in your webapps directory. However, you can configure any application to be the root application. So, in your case, if your .war file is called struts-example.war, and your host is localhost, you'd access your tour.htm file via the URL: http://localhost/struts-example/tour.htm rather than: http://localhost/tour.htm Give that a shot, since, based on your posting, I doubt you've configured struts-example to be the root context. P.S. I'm pretty sure that users _would_ be a more appropriate place, but not 100%. Hope it helps, Ben Mike Steigerwald wrote: Hi, all, I'm trying to teach myself struts using the example. I'm already stuck. I don't know if this is a struts issue or a tomcat issue. Not wanting to cross-post, I'll start here. I've downloaded the struts-example from the 1.1 stable release. I mounted the .war file into the NetBeans project. When I try to execute tour.htm, I get this error from tomcat: Apache Tomcat/4.0.6 - HTTP Status 404 - /tour.htm --------------------------------------------------------------------------- - ---- type Status report message /tour.htm description The requested resource (/tour.htm) is not available. --------------------------------------------------------------------------- - ---- I'm sure I've missed a step in the installation and deployment, but re-tracing my steps hasn't helped. Can anyone help me fill in the blanks? PS - Would the struts-user list be a more appropriate place to post questions like this? Thanks, in advance. Mike Steigerwald 9237 Pinehurst Road Woodbury, MN 55125-8642 [EMAIL PROTECTED] Phone: 651.261.2098 Fax: 206-237-6597 http://home.comcast.net/~michaels23/ --------------------------------------------------------------------- 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]
