tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: Unable to execute/see JSP pages
Date Tue, 21 Jan 2003 15:40:29 GMT

Where is the JSP located in your directory structure?

Do the examples work?

John


> -----Original Message-----
> From: Curt LeCaptain [mailto:lecaptainc@itol.com]
> Sent: Tuesday, January 21, 2003 10:37 AM
> To: tomcat-user@jakarta.apache.org
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message