• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat included examples not working?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the servlet examples work?
If they work. Did you set up the CATALINA_HOME variable?
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to tomcat forum.
 
Eli Lorimer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, I did set up the CATALINA_HOME and have double checked it's the correct value.
 
reply
    Bookmark Topic Watch Topic
  • New Topic