You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Linden <pa...@openwave.com> on 2001/04/04 01:18:11 UTC

re: install probs with mod_jk in Tomcat

I am getting exactly the same problem with exactly the same versions of
apache and tomcat, on a WinNT machine.

I have turned on all the log levels to debug and see the following when I
start Tomcat:

2001-04-03 03:10:13 - Ctx( /cocoon ): XmlReader - init  /cocoon
webapps/cocoon
2001-04-03 03:10:13 - Ctx( /cocoon ): Reading D:\Program Files\Apache
Group\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\web.xml
2001-04-03 03:10:13 - Ctx( /cocoon ): Loading -2147483646 jsp

(I don't like that "Loading -2147483646 jsp" )
After the request comes in the mod_jk.log has the following lines:

[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp13
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint
[jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
[jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 404
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
= 61
[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
[jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done

Has anyone successfully installed Apache 1.3.19 with Tomcat 3.2.1?

Paul


Maring, Steve wrote
> I'm trying to get Cocoon running with Apache 1.3.19 and Tomcat 3.2.1.  I
> followed the installation instructions verbatum, but when I try and run
any
> of the sample *.xml files I get an 'Internal Server Error' from Apache.
The
> mod_jk log is the ONLY log that shows any issues.
>
> mod_jk.log:
>
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed
errno
> = 61
> [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
>
>
> Anybody seen anything like this?





---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: install probs with mod_jk in Tomcat

Posted by Sasha <to...@home.com>.
Paul Linden wrote:

> After reinstalling and reconfiguring Tomcat I am no longer getting an ajp13
> connect error, but I still cannot read the xml pages (404 error rather than 500
> error this time) and I'm getting the "Loading -2147483646 jsp" message. That may
> be ok, but I don't have a working application to compare to.
>
> The messages at the Tomcat console are:
> 2001-04-04 01:07:46 - Ctx( /cocoon ): XmlReader - init  /cocoon webapps/cocoon
> 2001-04-04 01:07:46 - Ctx( /cocoon ): Reading D:\Program Files\Apache
> Group\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\web.xml
> 2001-04-04 01:07:46 - Ctx( /cocoon ): Loading -2147483646 jsp
> 2001-04-04 01:07:47 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
> 2001-04-04 01:07:47 - PoolTcpConnector: Starting Ajp13ConnectionHandler on 8009
> 2001-04-04 01:14:26 - Ctx( /cocoon ): 404 R( /cocoon + /Cocoon.xml + null) null
> 2001-04-04 01:14:26 - Ctx( /cocoon ): Handler tomcat.notFoundHandler(null/null)
> tomcat.notFoundHandler
>
> I suspect that it isn't accessing the cocoon.properties - changing the location
> in web.xml doesn't appear to make any difference. What is the location supposed
> to be? I know it's supposed to be a relative location, but
> "WEB-INF/cocoon.properties", "./cocoon.properties" or "cocoon.properties" and
> all other combinations I've tried don't work.
>
> Does anyone have a cocoon/WEB-INF/web.xml file so I can compare?
>
> Paul
>
> Paul Linden wrote:
>
> > I am getting exactly the same problem with exactly the same versions of
> > apache and tomcat, on a WinNT machine.
> >
> > I have turned on all the log levels to debug and see the following when I
> > start Tomcat:
> >
> > 2001-04-03 03:10:13 - Ctx( /cocoon ): XmlReader - init  /cocoon
> > webapps/cocoon
> > 2001-04-03 03:10:13 - Ctx( /cocoon ): Reading D:\Program Files\Apache
> > Group\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\web.xml
> > 2001-04-03 03:10:13 - Ctx( /cocoon ): Loading -2147483646 jsp
> >
> > (I don't like that "Loading -2147483646 jsp" )
> > After the request comes in the mod_jk.log has the following lines:
> >
> > [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
> > [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
> > match ajp13
> > [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
> > [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> > [jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint
> > [jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
> > [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
> > [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
> > [jk_connect.c (108)]: Into jk_open_socket
> > [jk_connect.c (115)]: jk_open_socket, try to connect socket = 404
> > [jk_connect.c (124)]: jk_open_socket, after connect ret = -1
> > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> > [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
> > = 61
> > [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
> > [jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done
> >
> > Has anyone successfully installed Apache 1.3.19 with Tomcat 3.2.1?
> >
> > Paul
> >
> > Maring, Steve wrote
> > > I'm trying to get Cocoon running with Apache 1.3.19 and Tomcat 3.2.1.  I
> > > followed the installation instructions verbatum, but when I try and run
> > any
> > > of the sample *.xml files I get an 'Internal Server Error' from Apache.
> > The
> > > mod_jk log is the ONLY log that shows any issues.
> > >
> > > mod_jk.log:
> > >
> > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> > > [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed
> > errno
> > > = 61
> > > [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
> > >
> > >
> > > Anybody seen anything like this?
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

here is the web.xml file you can compare

<?xml version="1.0" encoding="ISO-8859-1"?>

<!--
     This is the web-app configurations that allow Cocoon to work under
     Apache Tomcat. Please, follow the installation section of the
     documentation for more information about installing Cocoon on Tomcat
-->

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

<web-app>
 <servlet>
  <servlet-name>org.apache.cocoon.Cocoon</servlet-name>
  <servlet-class>org.apache.cocoon.Cocoon</servlet-class>
  <init-param>
   <param-name>properties</param-name>
   <param-value>WEB-INF/cocoon.properties</param-value>
  </init-param>
 </servlet>

 <servlet-mapping>



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: install probs with mod_jk in Tomcat

Posted by Paul Linden <pa...@openwave.com>.
Doh! I'm a stupid idiot - I forgot about to include cocoon.jar in the tomcat.bat
file.

Steve Maring? Who had the exactly same problem as me - I solved this by going back
and not trying to do everything at once.

Remove apache and tomcat.
Install tomcat and get it working as stand alone on port 8080
Install apache and ensure it works on port 80
Save the mod_jk.conf-auto file as e.g. mod_jk.conf-paul and include it in apache's
httpd.conf. Do all your editing with the new file.
Ensure mod_jk module info is in the new mod_jk conf file.
Change all ajp12 in this file to ajp13 (you don't have to, but I did)
Add a connector for ajp13 to tomcat's server.xml
Make sure workers.tomcat_home and workers.java_home in workers.properties are
correct.
Restart tomcat and apache - access the tomcat jsp and servlet pages through
http://host/servlet/ and check the tomcat logs to ensure that tomcat is being used
for the .jsp and servlets and uses ajp13.

Only NOW, add the cocoon installation.
Make sure all the .jar files in tomcat/lib are included - check the console on
startup. If the .jar files are added statically, add the cocoon ones by hand. Don't
forget cocoon.jar !

Paul



Paul Linden wrote:

> After reinstalling and reconfiguring Tomcat I am no longer getting an ajp13
> connect error, but I still cannot read the xml pages (404 error rather than 500
> error this time) and I'm getting the "Loading -2147483646 jsp" message. That may
> be ok, but I don't have a working application to compare to.
>
> The messages at the Tomcat console are:
> 2001-04-04 01:07:46 - Ctx( /cocoon ): XmlReader - init  /cocoon webapps/cocoon
> 2001-04-04 01:07:46 - Ctx( /cocoon ): Reading D:\Program Files\Apache
> Group\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\web.xml
> 2001-04-04 01:07:46 - Ctx( /cocoon ): Loading -2147483646 jsp
> 2001-04-04 01:07:47 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
> 2001-04-04 01:07:47 - PoolTcpConnector: Starting Ajp13ConnectionHandler on 8009
> 2001-04-04 01:14:26 - Ctx( /cocoon ): 404 R( /cocoon + /Cocoon.xml + null) null
> 2001-04-04 01:14:26 - Ctx( /cocoon ): Handler tomcat.notFoundHandler(null/null)
> tomcat.notFoundHandler
>
> I suspect that it isn't accessing the cocoon.properties - changing the location
> in web.xml doesn't appear to make any difference. What is the location supposed
> to be? I know it's supposed to be a relative location, but
> "WEB-INF/cocoon.properties", "./cocoon.properties" or "cocoon.properties" and
> all other combinations I've tried don't work.
>
> Does anyone have a cocoon/WEB-INF/web.xml file so I can compare?
>
> Paul
>
> Paul Linden wrote:
>
> > I am getting exactly the same problem with exactly the same versions of
> > apache and tomcat, on a WinNT machine.
> >
> > I have turned on all the log levels to debug and see the following when I
> > start Tomcat:
> >
> > 2001-04-03 03:10:13 - Ctx( /cocoon ): XmlReader - init  /cocoon
> > webapps/cocoon
> > 2001-04-03 03:10:13 - Ctx( /cocoon ): Reading D:\Program Files\Apache
> > Group\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\web.xml
> > 2001-04-03 03:10:13 - Ctx( /cocoon ): Loading -2147483646 jsp
> >
> > (I don't like that "Loading -2147483646 jsp" )
> > After the request comes in the mod_jk.log has the following lines:
> >
> > [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
> > [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
> > match ajp13
> > [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
> > [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> > [jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint
> > [jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
> > [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
> > [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
> > [jk_connect.c (108)]: Into jk_open_socket
> > [jk_connect.c (115)]: jk_open_socket, try to connect socket = 404
> > [jk_connect.c (124)]: jk_open_socket, after connect ret = -1
> > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> > [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
> > = 61
> > [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
> > [jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done
> >
> > Has anyone successfully installed Apache 1.3.19 with Tomcat 3.2.1?
> >
> > Paul
> >
> > Maring, Steve wrote
> > > I'm trying to get Cocoon running with Apache 1.3.19 and Tomcat 3.2.1.  I
> > > followed the installation instructions verbatum, but when I try and run
> > any
> > > of the sample *.xml files I get an 'Internal Server Error' from Apache.
> > The
> > > mod_jk log is the ONLY log that shows any issues.
> > >
> > > mod_jk.log:
> > >
> > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> > > [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed
> > errno
> > > = 61
> > > [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
> > >
> > >
> > > Anybody seen anything like this?
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: install probs with mod_jk in Tomcat

Posted by Paul Linden <pa...@openwave.com>.
After reinstalling and reconfiguring Tomcat I am no longer getting an ajp13
connect error, but I still cannot read the xml pages (404 error rather than 500
error this time) and I'm getting the "Loading -2147483646 jsp" message. That may
be ok, but I don't have a working application to compare to.

The messages at the Tomcat console are:
2001-04-04 01:07:46 - Ctx( /cocoon ): XmlReader - init  /cocoon webapps/cocoon
2001-04-04 01:07:46 - Ctx( /cocoon ): Reading D:\Program Files\Apache
Group\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\web.xml
2001-04-04 01:07:46 - Ctx( /cocoon ): Loading -2147483646 jsp
2001-04-04 01:07:47 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
2001-04-04 01:07:47 - PoolTcpConnector: Starting Ajp13ConnectionHandler on 8009
2001-04-04 01:14:26 - Ctx( /cocoon ): 404 R( /cocoon + /Cocoon.xml + null) null
2001-04-04 01:14:26 - Ctx( /cocoon ): Handler tomcat.notFoundHandler(null/null)
tomcat.notFoundHandler

I suspect that it isn't accessing the cocoon.properties - changing the location
in web.xml doesn't appear to make any difference. What is the location supposed
to be? I know it's supposed to be a relative location, but
"WEB-INF/cocoon.properties", "./cocoon.properties" or "cocoon.properties" and
all other combinations I've tried don't work.

Does anyone have a cocoon/WEB-INF/web.xml file so I can compare?

Paul



Paul Linden wrote:

> I am getting exactly the same problem with exactly the same versions of
> apache and tomcat, on a WinNT machine.
>
> I have turned on all the log levels to debug and see the following when I
> start Tomcat:
>
> 2001-04-03 03:10:13 - Ctx( /cocoon ): XmlReader - init  /cocoon
> webapps/cocoon
> 2001-04-03 03:10:13 - Ctx( /cocoon ): Reading D:\Program Files\Apache
> Group\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\web.xml
> 2001-04-03 03:10:13 - Ctx( /cocoon ): Loading -2147483646 jsp
>
> (I don't like that "Loading -2147483646 jsp" )
> After the request comes in the mod_jk.log has the following lines:
>
> [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
> match ajp13
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> [jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint
> [jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
> [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
> [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
> [jk_connect.c (108)]: Into jk_open_socket
> [jk_connect.c (115)]: jk_open_socket, try to connect socket = 404
> [jk_connect.c (124)]: jk_open_socket, after connect ret = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
> = 61
> [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
> [jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done
>
> Has anyone successfully installed Apache 1.3.19 with Tomcat 3.2.1?
>
> Paul
>
> Maring, Steve wrote
> > I'm trying to get Cocoon running with Apache 1.3.19 and Tomcat 3.2.1.  I
> > followed the installation instructions verbatum, but when I try and run
> any
> > of the sample *.xml files I get an 'Internal Server Error' from Apache.
> The
> > mod_jk log is the ONLY log that shows any issues.
> >
> > mod_jk.log:
> >
> > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> > [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed
> errno
> > = 61
> > [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
> >
> >
> > Anybody seen anything like this?
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>