This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat included examples not working?" Watch "tomcat included examples not working?" New topic
Author

tomcat included examples not working?

Eli Lorimer
Greenhorn

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,
/dylan
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
Greenhorn

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
alhost/examples
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 java.security.SecureRandom
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(WebappClassLoader.java:1406)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:314)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3077)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3408)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
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
Greenhorn

Joined: Oct 13, 2002
Posts: 4
yes, I did set up the CATALINA_HOME and have double checked it's the correct value.
 
wood burning stoves
 
subject: tomcat included examples not working?