Search for error messages in the log files.

This kind of errors typically show themselves in the log.

One thing that may happen is, that your first request was
to short after the startup. Tomcat takes some time to be 
ready for serving requests. Until then you may get 500 
errors.

> -----Original Message-----
> From: Anderson, M. Paul [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 7:16 PM
> To: 'Tomcat Users List'
> Subject: RE: Help!!
> 
> 
> Ok...I added the JkMount for /MyServletName/* and it is working
> "better"...Now if I request either the MyServlet or the 
> Hello.jsp page the
> first time I start up the server I get an "internal server 
> error...possible
> misconfiguration" message.  After I get this message I can 
> then go ahead and
> access either page without difficulty.  Any ideas on what I might have
> misconfigured?
> 
> -----Original Message-----
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 10:56 AM
> To: 'Tomcat Users List'
> Subject: RE: Help!!
> 
> 
> 
> Apache has no idea that 
> http://localhost/MyServletName/ServletMappedName is
> supposed to go to Tomcat.  How could it?  The only JkMount 
> wildcard you have
> is /*.jsp, which doesn't match.
> 
> Add a JkMount for /MyServletName/* and you should be OK.
> 
> John
> 
> 
> > -----Original Message-----
> > From: Anderson, M. Paul [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 19, 2002 10:53 AM
> > To: 'Tomcat Users List'
> > Subject: Help!!
> > 
> > 
> > Thanks to everyone who has helped me thus far...I think I am 
> > almost there...
> > 
> > My current setup allows me to enter
> > http://localhost:8080:/MyServletName/ServletMappedName and 
> the servlet
> > displays and works as designed.  I can also type
> > http://localhost:8080/Hello.jsp to test a jsp page and this 
> > works fine.
> > This is all when I start Tomcat as standalone.
> > 
> > I then say "cool" and start up apache and enter 
> > http://localhost/Hello.jsp
> > and I can once again see my Hello.jsp test page!  I am 
> > excited!  I then type
> > in http://localhost/MyServletName/ServletMappedName believing 
> > that I will
> > now see my Servlet and what happens to my surprise???  I get 
> > a page not
> > found error!  If I type in the original
> > http://localhost:8080/MyServletName/ServletMappedName my 
> > servlet runs as
> > expected which makes sense since Tomcat is listening on that 
> > port.  I have
> > changed the port that tomcat listens on to 80 but this makes 
> > no difference -
> > the pages display properly for standalone but only the jsp 
> > page displays
> > when apache is running. 
> > 
> > I don't understand why I can see my jsp pages fine when 
> > Apache is running
> > but not the servlet?????  Can someone PLEASSSSSSEEEE  HELP 
> > ME!!!!! (Again)
> > 
> > Also, mod_jk.log is recording these messages which might have 
> > something to
> > do with it but I don't know how to interpret them:
> > 
> > [Tue Nov 19 10:23:28 2002]  [jk_ajp13_worker.c (848)]: In
> > jk_endpoint_t::service, send_request failed in send loop 0
> > [Tue Nov 19 10:23:29 2002]  [jk_connect.c (143)]: 
> > jk_open_socket, connect()
> > failed errno = 61
> > [Tue Nov 19 10:23:29 2002]  [jk_ajp13_worker.c (196)]: In
> > jk_endpoint_t::connect_to_tomcat, failed errno = 61
> > [Tue Nov 19 10:23:29 2002]  [jk_ajp13_worker.c (635)]: Error 
> > connecting to
> > the Tomcat process.
> > [Tue Nov 19 10:23:29 2002]  [jk_ajp13_worker.c (848)]: In
> > jk_endpoint_t::service, send_request failed in send loop 1
> > [Tue Nov 19 10:23:30 2002]  [jk_connect.c (143)]: 
> > jk_open_socket, connect()
> > failed errno = 61
> > [Tue Nov 19 10:23:30 2002]  [jk_ajp13_worker.c (196)]: In
> > jk_endpoint_t::connect_to_tomcat, failed errno = 61
> > [Tue Nov 19 10:23:30 2002]  [jk_ajp13_worker.c (635)]: Error 
> > connecting to
> > the Tomcat process.
> > [Tue Nov 19 10:23:30 2002]  [jk_ajp13_worker.c (848)]: In
> > jk_endpoint_t::service, send_request failed in send loop 2
> > 
> > Here are my setup files:
> > 
> > httpd.conf:
> > 
> > Added these lines to the bottom of the file:
> > 
> > 
> > <IfModule !mod_jk.c>
> >   LoadModule jk_module c:/WINNT/system32/mod_jk.dll
> > </IfModule>
> > 
> > JkWorkersFile "D:/Apache Group/Tomcat 4.1/conf/workers.properties"
> > JkLogFile "D:/Apache Group/Tomcat 4.1/logs/mod_jk.log"
> > 
> > JkLogLevel info
> > 
> > JkMount /manager ajp13
> > JkMount /manager/* ajp13
> > 
> > JkMount /examples ajp13
> > JkMount /examples/* ajp13
> > 
> > JkMount /tomcat-docs ajp13
> > JkMount /tomcat-docs/* ajp13
> > 
> > JkMount /webdav ajp13
> > JkMount /webdav/* ajp13
> > 
> > JkMount /*.jsp ajp13
> > 
> > *********************************************
> > Added this line to server.xml after <server port=8005...> 
> > (Yes the drive
> > letters are correct):
> >   <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > modJk="C:/WINNT/system32/mod_jk.dll" jkDebug="info" 
> > workersConfig="D:/Apache
> > Group/Tomcat 4.1/conf/workers.properties" jkLog="D:/Apache 
> > Group/Tomcat
> > 4.1/logs/mod_jk.log" /> 
> > 
> > **********************************************
> > I am using this connector in server.xml:::
> > 
> >   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> > port="8009" minProcessors="5" maxProcessors="75" 
> enableLookups="true"
> > redirectPort="8443" acceptCount="10" debug="0" 
> > connectionTimeout="20000"
> > useURIValidationHack="false"
> > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" /> 
> > 
> > **********************************************************
> > Added this line after <host name = localhost...>
> > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > append="true" /> 
> > 
> > --
> > 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