I'm a little confused.  Does
/data/www/docs/linuxtest.itol.com/webapp/examples exist or not?  You've got
an appBase in your Host element, that means that CATALINA_HOME/webapps will
be ignored for that host name.  The only place that /examples exists, unless
you've copied the directory, is CATALINA_HOME/webapps/examples.

John


> -----Original Message-----
> From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 11:27 AM
> To: 'Tomcat Users List'
> Subject: RE: Unable to execute/see JSP pages
> 
> 
> Well, after looking through some error logs... A bit of 
> insight came to
> mind.
> 
> Seems that they're trying to load examples from
> /data/www/docs/linuxtest.itol.com/webapp/examples..
> 
> Something that doesn't exist, so, I've changed my server.xml a bit to
> reflect that, and receive errors.  That information follows:
> 
> Server.xml changes:
> 
>  <Context path="/" docbase="/" debug="0"/>
>           <Context path="" docBase="ROOT" debug="0"/>
>           <Context path="/examples" docBase="examples" debug="0" />
> 
> Errors:
> 
> 2003-01-21 10:03:05 StandardContext[/examples]: Error initializing
> resources: Document base /data/www/docs/linuxtes
> t.itol.com/webapps/examples does not exist or is not a readable
> directory
> 2003-01-21 10:03:06 StandardContext[/examples]: Context startup failed
> due to previous errors
> 2003-01-21 10:03:06 StandardContext[/examples]: Exception 
> during cleanup
> after start failed
> LifecycleException:  Container StandardContext[/examples] has not been
> started
>         at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
>         at
> org.apache.catalina.core.StandardContext.stop(StandardContext.
> java:3495)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3434
> )
>         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)
> 
> 2003-01-21 10:09:46 WebappLoader[/examples]: Deploying class
> repositories to work directory /usr/local/src/jakarta-
> tomcat-4.0.6/work/Standalone/linuxtest.itol.com/examples
> 2003-01-21 10:09:46 StandardManager[/examples]: Seeding random number
> generator class java.security.SecureRandom
> 2003-01-21 10:09:46 StandardManager[/examples]: Seeding of 
> random number
> generator has been completed
> 2003-01-21 10:09:47 ContextConfig[/examples]: No Realm has been
> configured to authenticate against
> 2003-01-21 10:09:47 ContextConfig[/examples]: Marking this application
> unavailable due to previous error(s)
> 2003-01-21 10:09:47 StandardContext[/examples]: Error initializing
> naming context for context /examples
> 2003-01-21 10:09:47 StandardContext[/examples]: Context startup failed
> due to previous errors
> 2003-01-21 10:09:47 StandardContext[/examples]: Error initializing
> naming context for context /examples
> (END) 
> 
> -----Original Message-----
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 21, 2003 9:40 AM
> To: 'Tomcat Users List'
> Subject: RE: Unable to execute/see JSP pages
> 
> 
> 
> Where is the JSP located in your directory structure?
> 
> Do the examples work?
> 
> John
> 
> 
> > -----Original Message-----
> > From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 10:37 AM
> > To: [EMAIL PROTECTED]
> > Subject: Unable to execute/see JSP pages
> > 
> > 
> > I've set-up our Java development server with my own server.xml, and 
> > added virtual hosts to my apache, both linked via mod_jk, 
> using apache
> 
> > 1.3.27 and Tomcat 4.0.6.  The following are my config 
> files.  What I'm
> 
> > wondering is, I've got a basic "this's this page..." jsp 
> created, with
> 
> > a basic output command in java.  I'm not seeing the command, so I'm
> > guessing something isn't handing off correctly.  An 
> addition... When I
> > go to linuxtest.itol.com (not world accessable, internal 
> > address only),
> > I get a 404 page created by Tomcat, saying that index.jsp isn't
> > available.  Any help would be greatly appriciated!
> > 
> > Server.xml:
> > <Server port="8005" shutdown="SHUTDOWN" debug="0">
> >   <Service name="Tomcat-Apache-modjk">
> >        
> > 
> >      <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> >                 port="8009"
> >                 minProcessors="5"
> >                 maxProcessors="75"
> >                 acceptCount="10"
> >                 debug="0" />
> > 
> >      <Engine name="Standalone" defaultHost="linuxdev01.itol.com" 
> > debug="0">
> > 
> > 
> >         <!--Virtual Host definition for linuxtest.itol.com -->
> >         <Host name="linuxtest.itol.com" debug="0"
> >                 appBase="/data/www/docs/linuxtest.itol.com/webapps"
> >                 unpackWARs="true">
> >           <Valve 
> className="org.apache.catalina.valves.AccessLogValve"
> >                  directory="/data/www/docs/linuxtest.itol.com/logs"
> >                  prefix="linuxtest_access."
> >                  suffix=".log"
> >                  pattern="common"/>
> >         
> >           <Logger className="org.apache.catalina.logger.FileLogger"
> >                   directory="/data/www/docs/linuxtest.itol.com/logs"
> >                   prefix="linuxtest_catalina."
> >                   suffix=".log"
> >                   timestamp="true"/>
> >           <Context path="" docBase="ROOT" debug="0"/>
> >           <Context path="/examples" docBase="examples" debug="0" />
> >         </Host>
> >       </Engine>
> >   </Service>
> > </Server>
> > 
> > Apache Configs (the important parts)
> > 
> > 
> > #Tomcat Settings
> > 
> > JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> > JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> > 
> > JkLogLevel error
> > 
> > <VirtualHost 192.168.7.230>
> >     ServerName linuxtest.itol.com
> >     DocumentRoot /data/www/docs/linuxtest.itol.com
> > 
> >     #################### linuxdev01.itol.com:/examples 
> > ####################
> > 
> >     # Static files
> > 
> >     <Directory "/data/www/docs/linuxtest.itol.com">
> >         Options Indexes FollowSymLinks
> >         DirectoryIndex index.html index.htm index.jsp
> >     </Directory>
> > 
> > 
> > # Deny direct access to WEB-INF and META-INF
> >     #
> >     <Location "/examples/WEB-INF/*">
> >         AllowOverride None
> >         deny from all
> >     </Location>
> > 
> >     <Location "/examples/META-INF/*">
> >         AllowOverride None
> >         deny from all
> >     </Location>
> >     JkMount /*.jsp ajp13
> >     JkMount /* ajp13
> >     JkMount /examples/jsp/num/*.jsp ajp13
> >     JkMount /examples/jsp/*.jsp ajp13
> >     JkMount /examples/*.jsp  ajp13
> >     JkMount /examples/servlet/*  ajp13
> >     JkMount /examples/servletToJsp  ajp13
> >     JkMount /examples/SendMailServlet  ajp13
> > </VirtualHost>
> > 
> > Sample JSP:
> > 
> > <html>
> >   <head>
> >      <title>Welcome to linuxtest!</title>
> >   </head>
> > <body>
> >         <%
> >            out.println("You are currently viewing the contents of "
> >                       +"the linuxtest web server");
> >         %>
> > </body>
> > </html>
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to