You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hans Kind <ha...@kindserver.com> on 2001/03/08 11:13:29 UTC
Re: Tomcat/Apache port number use
Hi Chris,
We run on a Solaris 2.7 server, with Apache DSO 1.3.14.
The workers.properties file has been updated so that workers.tomcat_home,
workers.java_home point to the correct location on the server. Changed ps
to the correct syntax on Unix, ps=/.
Used apxs to install mod_jk from source
Included the following line in httpd.conf file:
Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto
http://www.kindserver.com:8080/examples/jsp/dates/date.jsp
is working as expected
http://www.kindserver.com/examples/jsp/dates/date.jsp
results in a server error with the following in the mod_jk.log
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
rgds
Hans
At 15:47 7-3-01 +0100, you wrote:
>Hans Kind wrote:
> >
> > Hi,
> >
> > We got Apache running on port 80, and Tomcat on port 8080.
> >
> > Running http://www.kindserver.com:8080 takes me to the Tomcat example page,
> > and the JSP and JServ pages work ok.
> >
> > When I go to
> >
> > http://www.kindserver.com/examples/servlets/
> > http://www.kindserver.com/examples/jsp/
> >
> > all the examples return a document contains no data error.
> >
> > How do I setup Apache so that without the need of the port number in the
> > url, the JServ and JSP pages are handled bij Tomcat corecty.
> >
> > I went trough the install instructions, mailing lists and other
> > documentation, but couldn't find a slid answe:~(
> >
> > rgds
> >
> > Hans Kind
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, email: tomcat-user-help@jakarta.apache.org
>
>Hans,
>You need to get and install the appropriate apache module;
>porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
>Cant really tell you more without details about you apache, tomcat
>versions
>and your system.
>
>Chris
>
>
>---------------------------------------------------------------------
>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
Re: Tomcat/Apache port number use
Posted by Hans Kind <ha...@kindserver.com>.
This is what I had to use to get mod_jk installed. Based on the information
found in this mailing list:
apxs -o mod_jk.so -lposix4 -DSOLARIS -I../jk -I/usr/java/include
-I/usr/java/include/solaris -c *.c ../jk/*.c
The one mentioned in the documentation, returns a error when you start
Apache/Tomcat
Maybe someone else might have some experience with this on Solaris 2.7
Thanks for the help:~)
rgds
Hans
At 16:49 8-3-01 +0100, you wrote:
>Well Hans,
>I tried to ask all the simple, obvious questions.
>TOmcat is working fine(8080), Apache is working fine
>and seems properly configured. I can't give you any
>other advice but to go back, get the src for mod_jk
>and recompile and install it (using apxs if you can)
>with the right solaris parameters. There have been some
>postings on this list for those.
>Good luck,
>Chris
>
>
>
>
>Hans Kind wrote:
> >
> > Hi Chris,
> >
> > Yes it does:~(
> >
> > rgds
> >
> > hans
> >
> > At 14:48 8-3-01 +0100, you wrote:
> > >Hans,
> > >I'm running out of ideas too.
> > >One last: does your server.xml file contain the lines
> > >
> > > <!-- Apache AJP12 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.Ajp12ConnectionHandler"/>
> > > <Parameter name="port" value="8007"/>
> > > </Connector>
> > >
> > >Chris
> > >
> > >
> > >
> > >
> > >Hans Kind wrote:
> > > >
> > > > Hi Chris,
> > > >
> > > > workers.properties
> > > >
> > > > worker.ajp12.port=8007
> > > > worker.ajp12.host=localhost
> > > > worker.ajp12.type=ajp12
> > > >
> > > > mod_jk_conf-auto
> > > >
> > > > JkMount /*.jsp ajp12
> > > > JkMount /servlet/* ajp12
> > > > ...
> > > > JkMount /examples/servlet/* ajp12
> > > > JkMount /examples/*.jsp ajp12
> > > >
> > > > Staring Tomcate generates these file, and httpd.conf include the
> > > > mod_jk_conf-auto file.
> > > >
> > > > There is nothing else running on port 8007.
> > > >
> > > > I'm very very lost:~(
> > > >
> > > > rgds
> > > >
> > > > Hans
> > > >
> > > > At 13:35 8-3-01 +0100, you wrote:
> > > > >Hans Kind wrote:
> > > > >
> > > > > > Hi Chris,
> > > > > >
> > > > > > We run on a Solaris 2.7 server, with Apache DSO 1.3.14.
> > > > > >
> > > > > > The workers.properties file has been updated so that
> > > workers.tomcat_home,
> > > > > > workers.java_home point to the correct location on the server.
> > > Changed ps
> > > > > > to the correct syntax on Unix, ps=/.
> > > > > >
> > > > > > Used apxs to install mod_jk from source
> > > > > >
> > > > > > Included the following line in httpd.conf file:
> > > > > >
> > > > > > Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto
> > > > > >
> > > > > > http://www.kindserver.com:8080/examples/jsp/dates/date.jsp
> > > > > >
> > > > > > is working as expected
> > > > > >
> > > > > > http://www.kindserver.com/examples/jsp/dates/date.jsp
> > > > > >
> > > > > > results in a server error with the following in the mod_jk.log
> > > > > >
> > > > > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> > > > > > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> > > > > >
> > > > > > rgds
> > > > > >
> > > > > > Hans
> > > > > >
> > > > > > At 15:47 7-3-01 +0100, you wrote:
> > > > > > >Hans Kind wrote:
> > > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > We got Apache running on port 80, and Tomcat on port 8080.
> > > > > > > >
> > > > > > > > Running http://www.kindserver.com:8080 takes me to the Tomcat
> > > > > example page,
> > > > > > > > and the JSP and JServ pages work ok.
> > > > > > > >
> > > > > > > > When I go to
> > > > > > > >
> > > > > > > > http://www.kindserver.com/examples/servlets/
> > > > > > > > http://www.kindserver.com/examples/jsp/
> > > > > > > >
> > > > > > > > all the examples return a document contains no data error.
> > > > > > > >
> > > > > > > > How do I setup Apache so that without the need of the port
> number
> > > > > in the
> > > > > > > > url, the JServ and JSP pages are handled bij Tomcat corecty.
> > > > > > > >
> > > > > > > > I went trough the install instructions, mailing lists and other
> > > > > > > > documentation, but couldn't find a slid answe:~(
> > > > > > > >
> > > > > > > > rgds
> > > > > > > >
> > > > > > > > Hans Kind
> > > > > > > >
> > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> > > > > > > > For additional commands, email:
> tomcat-user-help@jakarta.apache.org
> > > > > > >
> > > > > > >Hans,
> > > > > > >You need to get and install the appropriate apache module;
> > > > > > >porbably mod_jk . There are Mod_jk faqs available on the
> jakarta site.
> > > > > > >Cant really tell you more without details about you apache, tomcat
> > > > > > >versions
> > > > > > >and your system.
> > > > > > >
> > > > > > >Chris
> > > > > > >
> > > > > > >
> > > > > > >---------------------------------------------------------------
> ------
> > > > > > >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
> > > > >
> > > > >Hans,
> > > > >
> > > > >You are getting a connection refused error,
> > > > >http://www.linuxos.net/docs/solaris/common_err.html#korea146
> > > > >
> > > > >Since I can get the source files of the jsp dislayed
> > > > >on your site, it seems like the basic apache config is good;
> > > > >Do you have some lines like the folloing in "workers.properties"
> > > > >
> > > > >worker.ajp12.port=8007
> > > > >worker.ajp12.host=localhost
> > > > >worker.ajp12.type=ajp12
> > > > >
> > > > >and like the following in mod_jk.conf
> > > > >
> > > > >JkMount /*.jsp ajp12
> > > > >JkMount /servlet/* ajp12
> > > > >
> > > > >...
> > > > >JkMount /examples/servlet/* ajp12
> > > > >JkMount /examples/*.jsp ajp12
> > > > >
> > > > >Is there some other service running on
> > > > >the port 8007, or another reason why
> > > > >you cant connect there?
> > > > >
> > > > >Chris
> > > > >
> > > > >
> > > > >
> > > > >---------------------------------------------------------------------
> > > > >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
> > >
> > >
> > >---------------------------------------------------------------------
> > >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
>
>
>---------------------------------------------------------------------
>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
Re: Tomcat/Apache port number use
Posted by Christopher Albert <ca...@selftrade.com>.
Well Hans,
I tried to ask all the simple, obvious questions.
TOmcat is working fine(8080), Apache is working fine
and seems properly configured. I can't give you any
other advice but to go back, get the src for mod_jk
and recompile and install it (using apxs if you can)
with the right solaris parameters. There have been some
postings on this list for those.
Good luck,
Chris
Hans Kind wrote:
>
> Hi Chris,
>
> Yes it does:~(
>
> rgds
>
> hans
>
> At 14:48 8-3-01 +0100, you wrote:
> >Hans,
> >I'm running out of ideas too.
> >One last: does your server.xml file contain the lines
> >
> > <!-- Apache AJP12 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.Ajp12ConnectionHandler"/>
> > <Parameter name="port" value="8007"/>
> > </Connector>
> >
> >Chris
> >
> >
> >
> >
> >Hans Kind wrote:
> > >
> > > Hi Chris,
> > >
> > > workers.properties
> > >
> > > worker.ajp12.port=8007
> > > worker.ajp12.host=localhost
> > > worker.ajp12.type=ajp12
> > >
> > > mod_jk_conf-auto
> > >
> > > JkMount /*.jsp ajp12
> > > JkMount /servlet/* ajp12
> > > ...
> > > JkMount /examples/servlet/* ajp12
> > > JkMount /examples/*.jsp ajp12
> > >
> > > Staring Tomcate generates these file, and httpd.conf include the
> > > mod_jk_conf-auto file.
> > >
> > > There is nothing else running on port 8007.
> > >
> > > I'm very very lost:~(
> > >
> > > rgds
> > >
> > > Hans
> > >
> > > At 13:35 8-3-01 +0100, you wrote:
> > > >Hans Kind wrote:
> > > >
> > > > > Hi Chris,
> > > > >
> > > > > We run on a Solaris 2.7 server, with Apache DSO 1.3.14.
> > > > >
> > > > > The workers.properties file has been updated so that
> > workers.tomcat_home,
> > > > > workers.java_home point to the correct location on the server.
> > Changed ps
> > > > > to the correct syntax on Unix, ps=/.
> > > > >
> > > > > Used apxs to install mod_jk from source
> > > > >
> > > > > Included the following line in httpd.conf file:
> > > > >
> > > > > Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto
> > > > >
> > > > > http://www.kindserver.com:8080/examples/jsp/dates/date.jsp
> > > > >
> > > > > is working as expected
> > > > >
> > > > > http://www.kindserver.com/examples/jsp/dates/date.jsp
> > > > >
> > > > > results in a server error with the following in the mod_jk.log
> > > > >
> > > > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> > > > > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> > > > >
> > > > > rgds
> > > > >
> > > > > Hans
> > > > >
> > > > > At 15:47 7-3-01 +0100, you wrote:
> > > > > >Hans Kind wrote:
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > We got Apache running on port 80, and Tomcat on port 8080.
> > > > > > >
> > > > > > > Running http://www.kindserver.com:8080 takes me to the Tomcat
> > > > example page,
> > > > > > > and the JSP and JServ pages work ok.
> > > > > > >
> > > > > > > When I go to
> > > > > > >
> > > > > > > http://www.kindserver.com/examples/servlets/
> > > > > > > http://www.kindserver.com/examples/jsp/
> > > > > > >
> > > > > > > all the examples return a document contains no data error.
> > > > > > >
> > > > > > > How do I setup Apache so that without the need of the port number
> > > > in the
> > > > > > > url, the JServ and JSP pages are handled bij Tomcat corecty.
> > > > > > >
> > > > > > > I went trough the install instructions, mailing lists and other
> > > > > > > documentation, but couldn't find a slid answe:~(
> > > > > > >
> > > > > > > rgds
> > > > > > >
> > > > > > > Hans Kind
> > > > > > >
> > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > > > > For additional commands, email: tomcat-user-help@jakarta.apache.org
> > > > > >
> > > > > >Hans,
> > > > > >You need to get and install the appropriate apache module;
> > > > > >porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
> > > > > >Cant really tell you more without details about you apache, tomcat
> > > > > >versions
> > > > > >and your system.
> > > > > >
> > > > > >Chris
> > > > > >
> > > > > >
> > > > > >---------------------------------------------------------------------
> > > > > >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
> > > >
> > > >Hans,
> > > >
> > > >You are getting a connection refused error,
> > > >http://www.linuxos.net/docs/solaris/common_err.html#korea146
> > > >
> > > >Since I can get the source files of the jsp dislayed
> > > >on your site, it seems like the basic apache config is good;
> > > >Do you have some lines like the folloing in "workers.properties"
> > > >
> > > >worker.ajp12.port=8007
> > > >worker.ajp12.host=localhost
> > > >worker.ajp12.type=ajp12
> > > >
> > > >and like the following in mod_jk.conf
> > > >
> > > >JkMount /*.jsp ajp12
> > > >JkMount /servlet/* ajp12
> > > >
> > > >...
> > > >JkMount /examples/servlet/* ajp12
> > > >JkMount /examples/*.jsp ajp12
> > > >
> > > >Is there some other service running on
> > > >the port 8007, or another reason why
> > > >you cant connect there?
> > > >
> > > >Chris
> > > >
> > > >
> > > >
> > > >---------------------------------------------------------------------
> > > >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
> >
> >
> >---------------------------------------------------------------------
> >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
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org
Re: Tomcat/Apache port number use
Posted by Hans Kind <ha...@kindserver.com>.
Hi Chris,
Yes it does:~(
rgds
hans
At 14:48 8-3-01 +0100, you wrote:
>Hans,
>I'm running out of ideas too.
>One last: does your server.xml file contain the lines
>
> <!-- Apache AJP12 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.Ajp12ConnectionHandler"/>
> <Parameter name="port" value="8007"/>
> </Connector>
>
>Chris
>
>
>
>
>Hans Kind wrote:
> >
> > Hi Chris,
> >
> > workers.properties
> >
> > worker.ajp12.port=8007
> > worker.ajp12.host=localhost
> > worker.ajp12.type=ajp12
> >
> > mod_jk_conf-auto
> >
> > JkMount /*.jsp ajp12
> > JkMount /servlet/* ajp12
> > ...
> > JkMount /examples/servlet/* ajp12
> > JkMount /examples/*.jsp ajp12
> >
> > Staring Tomcate generates these file, and httpd.conf include the
> > mod_jk_conf-auto file.
> >
> > There is nothing else running on port 8007.
> >
> > I'm very very lost:~(
> >
> > rgds
> >
> > Hans
> >
> > At 13:35 8-3-01 +0100, you wrote:
> > >Hans Kind wrote:
> > >
> > > > Hi Chris,
> > > >
> > > > We run on a Solaris 2.7 server, with Apache DSO 1.3.14.
> > > >
> > > > The workers.properties file has been updated so that
> workers.tomcat_home,
> > > > workers.java_home point to the correct location on the server.
> Changed ps
> > > > to the correct syntax on Unix, ps=/.
> > > >
> > > > Used apxs to install mod_jk from source
> > > >
> > > > Included the following line in httpd.conf file:
> > > >
> > > > Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto
> > > >
> > > > http://www.kindserver.com:8080/examples/jsp/dates/date.jsp
> > > >
> > > > is working as expected
> > > >
> > > > http://www.kindserver.com/examples/jsp/dates/date.jsp
> > > >
> > > > results in a server error with the following in the mod_jk.log
> > > >
> > > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> > > > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> > > >
> > > > rgds
> > > >
> > > > Hans
> > > >
> > > > At 15:47 7-3-01 +0100, you wrote:
> > > > >Hans Kind wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > We got Apache running on port 80, and Tomcat on port 8080.
> > > > > >
> > > > > > Running http://www.kindserver.com:8080 takes me to the Tomcat
> > > example page,
> > > > > > and the JSP and JServ pages work ok.
> > > > > >
> > > > > > When I go to
> > > > > >
> > > > > > http://www.kindserver.com/examples/servlets/
> > > > > > http://www.kindserver.com/examples/jsp/
> > > > > >
> > > > > > all the examples return a document contains no data error.
> > > > > >
> > > > > > How do I setup Apache so that without the need of the port number
> > > in the
> > > > > > url, the JServ and JSP pages are handled bij Tomcat corecty.
> > > > > >
> > > > > > I went trough the install instructions, mailing lists and other
> > > > > > documentation, but couldn't find a slid answe:~(
> > > > > >
> > > > > > rgds
> > > > > >
> > > > > > Hans Kind
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > > > For additional commands, email: tomcat-user-help@jakarta.apache.org
> > > > >
> > > > >Hans,
> > > > >You need to get and install the appropriate apache module;
> > > > >porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
> > > > >Cant really tell you more without details about you apache, tomcat
> > > > >versions
> > > > >and your system.
> > > > >
> > > > >Chris
> > > > >
> > > > >
> > > > >---------------------------------------------------------------------
> > > > >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
> > >
> > >Hans,
> > >
> > >You are getting a connection refused error,
> > >http://www.linuxos.net/docs/solaris/common_err.html#korea146
> > >
> > >Since I can get the source files of the jsp dislayed
> > >on your site, it seems like the basic apache config is good;
> > >Do you have some lines like the folloing in "workers.properties"
> > >
> > >worker.ajp12.port=8007
> > >worker.ajp12.host=localhost
> > >worker.ajp12.type=ajp12
> > >
> > >and like the following in mod_jk.conf
> > >
> > >JkMount /*.jsp ajp12
> > >JkMount /servlet/* ajp12
> > >
> > >...
> > >JkMount /examples/servlet/* ajp12
> > >JkMount /examples/*.jsp ajp12
> > >
> > >Is there some other service running on
> > >the port 8007, or another reason why
> > >you cant connect there?
> > >
> > >Chris
> > >
> > >
> > >
> > >---------------------------------------------------------------------
> > >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
>
>
>---------------------------------------------------------------------
>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
Re: Tomcat/Apache port number use
Posted by Christopher Albert <ca...@selftrade.com>.
Hans,
I'm running out of ideas too.
One last: does your server.xml file contain the lines
<!-- Apache AJP12 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.Ajp12ConnectionHandler"/>
<Parameter name="port" value="8007"/>
</Connector>
Chris
Hans Kind wrote:
>
> Hi Chris,
>
> workers.properties
>
> worker.ajp12.port=8007
> worker.ajp12.host=localhost
> worker.ajp12.type=ajp12
>
> mod_jk_conf-auto
>
> JkMount /*.jsp ajp12
> JkMount /servlet/* ajp12
> ...
> JkMount /examples/servlet/* ajp12
> JkMount /examples/*.jsp ajp12
>
> Staring Tomcate generates these file, and httpd.conf include the
> mod_jk_conf-auto file.
>
> There is nothing else running on port 8007.
>
> I'm very very lost:~(
>
> rgds
>
> Hans
>
> At 13:35 8-3-01 +0100, you wrote:
> >Hans Kind wrote:
> >
> > > Hi Chris,
> > >
> > > We run on a Solaris 2.7 server, with Apache DSO 1.3.14.
> > >
> > > The workers.properties file has been updated so that workers.tomcat_home,
> > > workers.java_home point to the correct location on the server. Changed ps
> > > to the correct syntax on Unix, ps=/.
> > >
> > > Used apxs to install mod_jk from source
> > >
> > > Included the following line in httpd.conf file:
> > >
> > > Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto
> > >
> > > http://www.kindserver.com:8080/examples/jsp/dates/date.jsp
> > >
> > > is working as expected
> > >
> > > http://www.kindserver.com/examples/jsp/dates/date.jsp
> > >
> > > results in a server error with the following in the mod_jk.log
> > >
> > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> > > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> > >
> > > rgds
> > >
> > > Hans
> > >
> > > At 15:47 7-3-01 +0100, you wrote:
> > > >Hans Kind wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > We got Apache running on port 80, and Tomcat on port 8080.
> > > > >
> > > > > Running http://www.kindserver.com:8080 takes me to the Tomcat
> > example page,
> > > > > and the JSP and JServ pages work ok.
> > > > >
> > > > > When I go to
> > > > >
> > > > > http://www.kindserver.com/examples/servlets/
> > > > > http://www.kindserver.com/examples/jsp/
> > > > >
> > > > > all the examples return a document contains no data error.
> > > > >
> > > > > How do I setup Apache so that without the need of the port number
> > in the
> > > > > url, the JServ and JSP pages are handled bij Tomcat corecty.
> > > > >
> > > > > I went trough the install instructions, mailing lists and other
> > > > > documentation, but couldn't find a slid answe:~(
> > > > >
> > > > > rgds
> > > > >
> > > > > Hans Kind
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, email: tomcat-user-help@jakarta.apache.org
> > > >
> > > >Hans,
> > > >You need to get and install the appropriate apache module;
> > > >porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
> > > >Cant really tell you more without details about you apache, tomcat
> > > >versions
> > > >and your system.
> > > >
> > > >Chris
> > > >
> > > >
> > > >---------------------------------------------------------------------
> > > >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
> >
> >Hans,
> >
> >You are getting a connection refused error,
> >http://www.linuxos.net/docs/solaris/common_err.html#korea146
> >
> >Since I can get the source files of the jsp dislayed
> >on your site, it seems like the basic apache config is good;
> >Do you have some lines like the folloing in "workers.properties"
> >
> >worker.ajp12.port=8007
> >worker.ajp12.host=localhost
> >worker.ajp12.type=ajp12
> >
> >and like the following in mod_jk.conf
> >
> >JkMount /*.jsp ajp12
> >JkMount /servlet/* ajp12
> >
> >...
> >JkMount /examples/servlet/* ajp12
> >JkMount /examples/*.jsp ajp12
> >
> >Is there some other service running on
> >the port 8007, or another reason why
> >you cant connect there?
> >
> >Chris
> >
> >
> >
> >---------------------------------------------------------------------
> >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
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org
Re: Tomcat/Apache port number use
Posted by Hans Kind <ha...@kindserver.com>.
Hi Chris,
workers.properties
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
mod_jk_conf-auto
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
...
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12
Staring Tomcate generates these file, and httpd.conf include the
mod_jk_conf-auto file.
There is nothing else running on port 8007.
I'm very very lost:~(
rgds
Hans
At 13:35 8-3-01 +0100, you wrote:
>Hans Kind wrote:
>
> > Hi Chris,
> >
> > We run on a Solaris 2.7 server, with Apache DSO 1.3.14.
> >
> > The workers.properties file has been updated so that workers.tomcat_home,
> > workers.java_home point to the correct location on the server. Changed ps
> > to the correct syntax on Unix, ps=/.
> >
> > Used apxs to install mod_jk from source
> >
> > Included the following line in httpd.conf file:
> >
> > Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto
> >
> > http://www.kindserver.com:8080/examples/jsp/dates/date.jsp
> >
> > is working as expected
> >
> > http://www.kindserver.com/examples/jsp/dates/date.jsp
> >
> > results in a server error with the following in the mod_jk.log
> >
> > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> >
> > rgds
> >
> > Hans
> >
> > At 15:47 7-3-01 +0100, you wrote:
> > >Hans Kind wrote:
> > > >
> > > > Hi,
> > > >
> > > > We got Apache running on port 80, and Tomcat on port 8080.
> > > >
> > > > Running http://www.kindserver.com:8080 takes me to the Tomcat
> example page,
> > > > and the JSP and JServ pages work ok.
> > > >
> > > > When I go to
> > > >
> > > > http://www.kindserver.com/examples/servlets/
> > > > http://www.kindserver.com/examples/jsp/
> > > >
> > > > all the examples return a document contains no data error.
> > > >
> > > > How do I setup Apache so that without the need of the port number
> in the
> > > > url, the JServ and JSP pages are handled bij Tomcat corecty.
> > > >
> > > > I went trough the install instructions, mailing lists and other
> > > > documentation, but couldn't find a slid answe:~(
> > > >
> > > > rgds
> > > >
> > > > Hans Kind
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, email: tomcat-user-help@jakarta.apache.org
> > >
> > >Hans,
> > >You need to get and install the appropriate apache module;
> > >porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
> > >Cant really tell you more without details about you apache, tomcat
> > >versions
> > >and your system.
> > >
> > >Chris
> > >
> > >
> > >---------------------------------------------------------------------
> > >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
>
>Hans,
>
>You are getting a connection refused error,
>http://www.linuxos.net/docs/solaris/common_err.html#korea146
>
>Since I can get the source files of the jsp dislayed
>on your site, it seems like the basic apache config is good;
>Do you have some lines like the folloing in "workers.properties"
>
>worker.ajp12.port=8007
>worker.ajp12.host=localhost
>worker.ajp12.type=ajp12
>
>and like the following in mod_jk.conf
>
>JkMount /*.jsp ajp12
>JkMount /servlet/* ajp12
>
>...
>JkMount /examples/servlet/* ajp12
>JkMount /examples/*.jsp ajp12
>
>Is there some other service running on
>the port 8007, or another reason why
>you cant connect there?
>
>Chris
>
>
>
>---------------------------------------------------------------------
>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
Re: Tomcat/Apache port number use
Posted by Christopher Albert <ca...@selftrade.com>.
Hans Kind wrote:
> Hi Chris,
>
> We run on a Solaris 2.7 server, with Apache DSO 1.3.14.
>
> The workers.properties file has been updated so that workers.tomcat_home,
> workers.java_home point to the correct location on the server. Changed ps
> to the correct syntax on Unix, ps=/.
>
> Used apxs to install mod_jk from source
>
> Included the following line in httpd.conf file:
>
> Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto
>
> http://www.kindserver.com:8080/examples/jsp/dates/date.jsp
>
> is working as expected
>
> http://www.kindserver.com/examples/jsp/dates/date.jsp
>
> results in a server error with the following in the mod_jk.log
>
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
>
> rgds
>
> Hans
>
> At 15:47 7-3-01 +0100, you wrote:
> >Hans Kind wrote:
> > >
> > > Hi,
> > >
> > > We got Apache running on port 80, and Tomcat on port 8080.
> > >
> > > Running http://www.kindserver.com:8080 takes me to the Tomcat example page,
> > > and the JSP and JServ pages work ok.
> > >
> > > When I go to
> > >
> > > http://www.kindserver.com/examples/servlets/
> > > http://www.kindserver.com/examples/jsp/
> > >
> > > all the examples return a document contains no data error.
> > >
> > > How do I setup Apache so that without the need of the port number in the
> > > url, the JServ and JSP pages are handled bij Tomcat corecty.
> > >
> > > I went trough the install instructions, mailing lists and other
> > > documentation, but couldn't find a slid answe:~(
> > >
> > > rgds
> > >
> > > Hans Kind
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, email: tomcat-user-help@jakarta.apache.org
> >
> >Hans,
> >You need to get and install the appropriate apache module;
> >porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
> >Cant really tell you more without details about you apache, tomcat
> >versions
> >and your system.
> >
> >Chris
> >
> >
> >---------------------------------------------------------------------
> >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
Hans,
You are getting a connection refused error,
http://www.linuxos.net/docs/solaris/common_err.html#korea146
Since I can get the source files of the jsp dislayed
on your site, it seems like the basic apache config is good;
Do you have some lines like the folloing in "workers.properties"
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
and like the following in mod_jk.conf
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
...
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12
Is there some other service running on
the port 8007, or another reason why
you cant connect there?
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org