File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes tomcat included examples not working? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat included examples not working?" Watch "tomcat included examples not working?" New topic

tomcat included examples not working?

Eli Lorimer

Joined: Oct 13, 2002
Posts: 4
Hello All,
I've recently installed tomcat and have zero problems getting it up and running and can access the main index page at localhost:8080 but when I click on the jsp or servelt examples link off the main page I get this error:
Apache Tomcat/4.0.6 - HTTP Status 404 - /examples/jsp/
type Status report
message /examples/jsp/
description The requested resource (/examples/jsp/) is not available.
in my access log there's something about the context. I"m frustrated becasue this is a fresh install where I've messed with nothing. I'm running os x 10.2 (Jaguar) but am doing everything via command line. I really would love some help as I've wasted loads of time just trying to get the defaul examples working. Thanks in advance,
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Does the servlet examples work?
If they work. Did you set up the CATALINA_HOME variable?
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Moving to tomcat forum.
Eli Lorimer

Joined: Oct 13, 2002
Posts: 4
neither the servlet nor jsp examples work. I'm still stuck trying to figure this out. Here's what's in my log file:
2002-10-13 23:26:11 WebappLoader[/examples]: Deploying class repositories to work directory /usr/local/jakarta-tomcat-4.0.6/work/Standalone/loc
2002-10-13 23:26:11 WebappLoader[/examples]: Reloading checks are enabled for this Context
2002-10-13 23:26:11 StandardManager[/examples]: Seeding random number generator class
2002-10-13 23:26:11 StandardManager[/examples]: Seeding of random number generator has been completed
2002-10-13 23:26:15 ContextConfig[/examples]: Added certificates -> request attribute Valve
2002-10-13 23:26:15 ContextConfig[/examples]: Configured an authenticator for method FORM
2002-10-13 23:26:15 ContextListener: contextInitialized()
2002-10-13 23:26:15 SessionListener: contextInitialized()
2002-10-13 23:26:15 StandardContext[/examples]: Exception starting filter Set Character Encoding
java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
at org.apache.catalina.core.ApplicationFilterConfig.<init>(
at org.apache.catalina.core.StandardContext.filterStart(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at org.apache.catalina.startup.Catalina.execute(
at org.apache.catalina.startup.Catalina.process(
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(
2002-10-13 23:26:15 StandardContext[/examples]: Context startup failed due to previous errors
2002-10-13 23:26:15 SessionListener: contextDestroyed()
2002-10-13 23:26:15 ContextListener: contextDestroyed()
Eli Lorimer

Joined: Oct 13, 2002
Posts: 4
yes, I did set up the CATALINA_HOME and have double checked it's the correct value.
I agree. Here's the link:
subject: tomcat included examples not working?
It's not a secret anymore!