OK,

I made the changes you and John suggested. I had put in a connector for port
8007 because I had it before with Apache 1.3.23, but now realise it was
associated with ajp12 and is not needed. And yes the rest was the standard
workers.properties.

I have very simple requirements. I need Apache so I can run Webmin to
administer my Linux services easily. I have no static content on my website
it is all served up by my Turbine servlet application. I need Tomcat on port
8080 so I can run my web site which is a Servlet application.

After making the changes I am in exactly the same position. The same errors
appear in the mod_jk.log. and I ge tthe same results when hitting the site.
So there must be something more fundemental wrong. I discovered that I get
an exception when I service tomcat4 stop here it is:

Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:       /usr/java/j2sdk1.4.1
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:426)
        at java.net.Socket.connect(Socket.java:376)
        at java.net.Socket.<init>(Socket.java:291)
        at java.net.Socket.<init>(Socket.java:119)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:579)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203

It seems to start without error so not sure what this is?

workers.properties is now reduced to this:

workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/j2sdk1.4.1
ps=/woker.list=ajp13
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=www.roamware.com
worker.ajp13.type=ajp13

I removed the 8007 connector from server.xml and changed the host name to
www.roamware.com from localhost. Ditto for httpd.conf for ServerName

I assume the "Jkmount /rwsite/servlet/* ajp13" in httpd.conf should cause
any Gets with that in the URL to route via the connector?

Should I re install Tomcat or do you think the socket problem has somethign
to do with the connector?

David

-----Original Message-----
From: Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 18:34
To: Tomcat Users List
Subject: RE: New Release JK 1.2.0 not installing


David,

You are all over the place...do you have a specific idea of what you are
trying to do?

Are you trying to integrate apache and tomcat? Do you want to send http
requests directly to tomcat?

Why are you using both ajp12 and ajp13, and load balancing?  And your tomcat
subsystem is configured to run in-process with apache?  Is this really how
you want it to run?

I don't believe this is a default configuration, at least, not one that I
have seen.

You need to simplify...simplify...simplify.

Let's assume that you want a (relatively) simple apache-tomcat
configuration.

That means http requests will ONLY arrive on port 80 - forget about port
8080, that is for running tomcat without apache.

Get rid of the loadbalancing and ajp12 references in your workers.properties
file.

Since tomcat will only be listening for ajp13 requests from apache, you
should remove *ALL* connectors from your tomcat server.xml file except the
ajp13 connector listening on port 8009.

Once you have made all those changes, perhaps we can have some sanity in
terms of trying to figure out what is going wrong.  Please post only your
workers.properties and server.xml files.

-Mike



-----Original Message-----
From: David Wynter [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 12:06 PM
To: Tomcat Users List
Subject: RE: New Release JK 1.2.0 not installing


OK, they are all reproduced here, I have not tried to change them because I
am stumped. Based on what I have read the config file s'look' right.

I have Apache running on port 80 but when I try to use www.roamware.com:8080
I get connection refused now.

I successfully built the connectors, followed the tutorial at yolinux but
still cannot get Apache to redirect gets to port 8080 to Tomcat.

Here are the contents of my logs and key config files, I've cut the comments
out to reduce the bulk. Can you see what is
wrong, 'cause I cannot.



--
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