On 19/04/02 2:00, "[EMAIL PROTECTED]" Randy Phillips <[EMAIL PROTECTED]> wrote: > > I am running Tomcat as a standalone service on MacOSX. I can reach the > default page at http://localhost:8080/ and I have compiled my first hello > world servlet so everything appears to be working. > > However, there are jsp and servlet examples at > http://localhost:8080/examples/jsp and > http://localhost:8080/examples/servlet/ but when I click on either I get 404 > errors. I checked the directories and the index.html files are there. The > url is valid. Anybody have this problem? > > Other links on the default page to other directories are fine. It just seems > to be the examples. > > -- > Rp
There are two well known problems with Mac OSX. (1) You did not use gnutar to unpack the distribution. The result is some file names are truncated and the installation has partially failed. I believe the error in this case is "NoClassDefFoundError" which is probably not your case. Solution: Unpack the distribution again this time using gnutar which is included in the dev tools distribution. (2) There exists an encoding filter (EUC_JP) in the examples which causes a problem. As a result the context is not loaded and any attempt to get the /examples/* context will result in a 404 which sounds like your problem. You can tell for sure by looking at the localhost_log to see if the context failed to load. Solution: Comment out the encoding filter in the $CATALINA_HOME/webapps/examples/WEB-INF/web.xml. I just commented out the filter mapping around lines 68-72. <filter-mapping> <filter-name>Set Character Encoding</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> The actual filter declaration is above around lines 22-39 <filter> <filter-name>Set Character Encoding</filter-name> <filter-class>filters.SetCharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>EUC_JP</param-value> </init-param> </filter> HTH Steven -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>