Ken,
  Only ever tried with mod_jserv.so but probably you should use
mod_jk. There are many, many posts about building mod_jk on this 
list so if you go this way look at the archives. Was your apache built
with DSO support? If so then command in the minimilist guide
   apxs -c -o mod_jserv.so *.c
should work. It did for me. I don't think you have to edit the tomcat.conf file
Tomcat generates a tomcat-apache.conf file when it is run which should have the
configuration you need. Take a copy of this file. You will probably need to edit
it at some point as it contains the Ajpserv mount directives. I had to right at
the start becasue redhat seems to do a non-standard install of apache and I had
to edit the file so that the jserv module could be found. You need to
include your copy of the file in httpd.conf  (tomcat will over-write the
original each time it is run)

Hope this gives you something to go on.
Andrew

On Thu, 15 Mar 2001, you wrote:
> Andrew,
>       I checked it out using fuser 8007/tcp with tomcat shutdown and
> started and I only get the pid's of the processes associated with tomcat
> when it is started.  I get nothing when it is shutdown.  So I am confident
> that there is no other process running on 8007.  I must believe that the
> problem lies in Apache.  I used a mod_jserv.so that I downloaded.  Should I
> use mod_jk instead?  I may try this but wouldn't know how to edit
> tomcat.conf to reflect the change.  I could not get mod_jserv.so or
> mod_jk.so to compile on my maching using defaults.  I will try to download
> the binary of mod_jk first and then edit the tomcat.conf file.  If this does
> not work, I will try to compile once more.
> Thanks,
> Ken
> 
> -----Original Message-----
> From: andrewdrobson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 15, 2001 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: almost there
> 
> 
> Hi Ken,
>   Have you ever got rid of the initial rogue process running on
> port 8007? You'll certainly get this error until you do whether running
> tomcat standalone or not with your current config.
> I'd shutdown everything, make sure no longer have the connector
> running on 8007 before trying again.
> To get the examples to work  I don't think you should have to do
> anything beyond setting CLASSPATH, TOMCAT_HOME (etc?)
> if you are running tomcat standalone. I'd also recommend
> you get tomcat running standalone before integrating with apache.
> I can send you details about this integration if necessary.
> (at the moment I'm logged into NT and can't look over my
> tomcat config on linux)
> andrew
> -----Original Message-----
> From: Reeves, Kenneth <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: 15 March 2001 14:07
> Subject: RE: almost there
> 
> 
> >You are absolutly right.  I realized my mistake and took the edit I made
> out
> >of the script.  Restarted tomcat, restarted apache and I get the same error
> >as before.  Now I am just trying to get tomcat to answer on port 8080, and
> >it won't do that.  So again I believe that I have some configuration wrong.
> >I don't start tomcat as a user, just root for the moment.
> >Thanks,
> >Ken
> >
> >-----Original Message-----
> >From: Andrew Robson [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 14, 2001 4:50 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: almost there
> >
> >
> >Hi,
> >  Sorry don't have solution but may have hint. I've seen this error a
> couple
> >of
> >times in the last week. Thought it a bit wierd as I've been developing with
> >tomcat for last 4 months and hadn't seen it before. Following a hunch I've
> >just reproduced it. I have a user set up that I run tomcat under. I get
> this
> >error if having started under this user I carelessly shut down the server
> >while
> >root. Can sort it by doing a reboot but suppose you can do it by
> identifying
> >the process running on 8007 and killing it.
> >Don't know if this helps you much.
> >BTW, could be wrong but I would think that the Ajpv12 stuff you added
> >to server.xml would have already been there by default?
> >
> >andrew
> >
> >
> >On Wed, 14 Mar 2001, you wrote:
> >> I have the tomcat server running and I can get to the
> >> "examples/servlets" page.  When I click on "HelloServlet Execute button"
> >> I get a pop-up box that states that
> >> there was no data.  I figured that I did not have the connector set up
> >> right so, I edited the server.xml file and added;
> >>
> >>
> >>  <!-- (2) AJPV12 Connector for out-of-process operation -->
> >>          <Connector
> >> className="org.apache.tomcat.service.PoolTcpConnector">
> >>              <Parameter name="handler"
> >>
> >> value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
> >>              <Parameter name="port"
> >>                  value="8007"/>
> >>          </Connector>
> >>
> >> I added this right below the other connector.  When I startup and
> >> shutdown the server I get the following message.
> >>
> >> [root@webservices bin]# ./startup.sh
> >> Using classpath:
> >>
> >/usr/jakarta-tomcat-3.2.1//lib/ant.jar:/usr/jakarta-tomcat-3.2.1//lib/jaspe
> r
> >.jar:/usr/jakarta-tomcat-3.2.1//lib/jaxp.jar:/usr/jakarta-tomcat-3.2.1//lib
> /
> >parser.jar:/usr/jakarta-tomcat-3.2.1//lib/servlet.jar:/usr/jakarta-tomcat-3
> .
> >>2.1//lib/test:/usr/jakarta-tomcat-3.2.1//lib/webserver.jar:/usr/java/jdk1.3
> .
> >>0_02/lib/tools.jar
> >>
> >> [root@webservices bin]# 2001-03-14 08:43:49 - ContextManager: Adding
> >> context Ctx( /examples )
> >> 2001-03-14 08:43:49 - ContextManager: Adding context Ctx( /admin )
> >> Starting tomcat. Check logs/tomcat.log for error messages
> >> 2001-03-14 08:43:50 - ContextManager: Adding context Ctx(  )
> >> 2001-03-14 08:43:50 - ContextManager: Adding context Ctx( /test )
> >> 2001-03-14 08:43:53 - PoolTcpConnector: Starting Ajp12ConnectionHandler
> >> on 8007
> >> FATAL:java.net.BindException: Address already in use
> >> java.net.BindException: Address already in use
> >>  at java.net.PlainSocketImpl.socketBind(Native Method)
> >>  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
> >>  at java.net.ServerSocket.<init>(ServerSocket.java:170)
> >>  at java.net.ServerSocket.<init>(ServerSocket.java:121)
> >>  at
> >>
> >org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServer
> S
> >ocketFactory.java:97)
> >>
> >>  at
> >>
> >org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.jav
> a
> >:239)
> >>
> >>  at
> >>
> >org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
> >>
> >>  at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> >>
> >>  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> >>  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> >>
> >> [root@webservices bin]# ./shutdown.sh
> >> Using classpath:
> >>
> >/usr/jakarta-tomcat-3.2.1//lib/ant.jar:/usr/jakarta-tomcat-3.2.1//lib/jaspe
> r
> >.jar:/usr/jakarta-tomcat-3.2.1//lib/jaxp.jar:/usr/jakarta-tomcat-3.2.1//lib
> /
> >parser.jar:/usr/jakarta-tomcat-3.2.1//lib/servlet.jar:/usr/jakarta-tomcat-3
> .
> >>2.1//lib/test:/usr/jakarta-tomcat-3.2.1//lib/webserver.jar:/usr/java/jdk1.3
> .
> >>0_02/lib/tools.jar
> >>
> >> Stop tomcat
> >> java.lang.NullPointerException
> >> Signal ignored: 15
> >> 2001-03-14 08:44:32 - Ctx(  ): IOException in: R(  + / + null) Bad file
> >> descriptor
> >> [root@webservices bin]#
> >>
> >>
> >>
> >> Any ideas.  I haven't tried to re-start the webserver at this point.
> >>
> >> Thanks,
> >> Ken Reeves
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, email: [EMAIL PROTECTED]
> >--
> >
> >
> >
-- 
===========================================
Andrew Robson         
2/1 
723 Pollockshaws Road
Glasgow G44 2AA
 
Tel:     (0141) 424 0607
Mobile:  07759 430234 

Reply via email to