tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Labanowski <...@osc.edu>
Subject RE: Please help. Going Nuts.
Date Thu, 01 Mar 2001 18:27:53 GMT
On Thu, 1 Mar 2001, mikhail malamud wrote:

> OK. I got this to work. What's the next step, Jan?

Read my message again... There were more steps there {:-)}...
Read the notes at http://www.ccl.net/cca/software/UNIX/apache/index.shtml 
and http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml

Primarily check if your web.xml is correct and in correct place, if
your server.xml has an entry:
   <!-- Apache AJP13 support. This is also used to shut down tomcat.
          -->
        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler" 
       value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
            <Parameter name="port" value="8006"/>
        </Connector>

and  you have
  <Context path="/vitamin" 
    docBase="/usr/local/apache/htdocs/vitamin" 
          crossContext="false"
          debug="0" 
          reloadable="true" > 
   </Context>
there.


And if the port is for ajp13 is the same as in worker.properties file.
Check if your worker.properties are configured correctly for apj13
and if you are including the right file in the httpd.conf

Once you corrected/cheked everything restart kill apache, kill tomcat
start tomcat, start apache.
> 
> -----Original Message-----
> From: Jan Labanowski [mailto:jkl@osc.edu]
> Sent: Thursday, March 01, 2001 12:51 PM
> To: tomcat-user@jakarta.apache.org
> Cc: Jan Labanowski
> Subject: Re: Please help. Going Nuts.
> 
> 
> One thing at a time... Do not start from most complicated stuff... Try
> to make hello world JSP to work first
> In your directory
> /usr/local/apache/htdocs/vitamin put a file:
> 
> hello.jsp
> 
> <HTML>
> <BODY>
> Hello World
> </BODY>
> <HTML>
> 
> and try to get it in the browser:
> 
> http://my.machine.com:8080/vitamin/hello.jsp
> and do it the same with your apache port, say
> http://my.machine.com/vitamin/hello.jsp
> 
> (I do not know what your ports are, so you need to change it)
> 
> 
> On Thu, 1 Mar 2001, mikhail malamud wrote:
> 
> > ################################################
> > mod_jk.conf. Apache Includes it in httpd.conf
> >
> > Alias /vitamin "/usr/local/apache/htdocs/vitamin"
> > <Directory "/usr/local/apache/htdocs/vitamin">
> >     Options Indexes FollowSymLinks
> > </Directory>
> >
> > JkMount /vitamin/servlet/* ajp13
> > JkMount /vitamin/*.jsp ajp13
> >
> >
> > <Location "/vitamin/WEB-INF/">
> >     AllowOverride None
> >     deny from all
> > </Location>
> 
> Looks OK...
> 
> 
> > ##################################################
> > <Context path="/vitamin"
> >                  docBase="/usr/local/apache/htdocs/vitamin"
> >                  crossContext="false"
> >                  debug="0"
> >                  reloadable="true" >
> >         </Context>
> 
> 
> Can you see anything on the Tomcat port 8080 (or whatever it is in your
> case).
> i.e.,
> http://my.machine.com:8080/vitamin/hello.jsp
> 
> Is your apj13 connected activated?
> 
> > ##################################################
> >
> > At last. I added following entry into web.xml.
> 
> Which web.xml? The /usr/local/apache/htdocs/vitamin/WEB-INF/web.xml ?
> 
> >
> > #################################################
> > <servlet>
> >         <servlet-name>HelloWorld</servlet-name>
> The servlet name is not HelloWorld, it is HelloWorldExample
> >
> > <servlet-class>edu.myschool.util.HelloWorldExample</servlet-class>
> > </servlet>
> > <servlet-mapping>
> >         <servlet-name>HelloWorld</servlet-name>
> The servlet name is not HelloWorld, it is HelloWorldExample
> >         </url-pattern>/*</url-pattern>
> 
> This is wrong...
>          <url-pattern>/*</url-pattern>
> 
> > </servlet-mapping>
> > #################################################
> 
> 
> Jan K. Labanowski            |    phone: 614-292-9279,  FAX:
> 614-292-7168
> Ohio Supercomputer Center    |    Internet: jkl@osc.edu
> 1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
> Columbus, OH 43212-1163      |    http://www.osc.edu/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 

Jan K. Labanowski            |    phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center    |    Internet: jkl@osc.edu 
1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163      |    http://www.osc.edu/


Mime
View raw message