tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benedikt Eric Heinen <...@icemark.ch>
Subject tomcat via mod_jk & cocoon2
Date Thu, 16 Nov 2000 16:30:04 GMT

Probably a beginners question - but I couldn't find much help in the FAQ
on this problem.

Well, this is my setup:

  [within httpd.conf]

	LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so 

	<IfModule mod_jk.c> 
	  JkWorkersFile /icemark/opt/tools/conf/workers.properties 
	  JkLogFile  /var/log/tomcat/jk.log 
	  JkLogLevel warn 
	  JkMount /*.jsp ajp12 
	  JkMount /*.xml ajp12          # for cocoon files 
	  JkMount /servlet/* ajp12 
	  JkMount /examples/* ajp12 
	</IfModule> 



  [web.xml]
	<web-app> 
	  <servlet> 
	    <servlet-name>cocoon</servlet-name> 
	    <servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class> 
	    <init-param> 
	      <param-name>configurations</param-name> 
	      <param-value>/icemark/opt/tools/webapps/cocoon/cocoon.xconf</param-value>

	    </init-param> 
	  </servlet> 
	  <servlet-mapping> 
	    <servlet-name>cocoon</servlet-name> 
	    <url-pattern>*.xml</url-pattern> 
	  </servlet-mapping> 
	</web-app> 




If I want to look at a page, I get:


	Status: 200 OK
	Content-Type: text/html
	Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )
	
	Status: 200 OK
	Content-Type: text/html
	Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )
	
	Status: 200 OK
	Content-Type: text/html
	Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )
	
	Status: 200 OK
	Content-Type: text/html
	Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )
	
	Status: 404 Not Found
	Content-Type: text/html
	Content-Length: 125
	Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )
	
	Status: 404 Not Found
	Content-Type: text/html
	Content-Length: 125
	Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )
	
	Status: 404 Not Found
	Content-Type: text/html
	Content-Length: 125
	Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )
	
	<head><title>Not Found (404)</title></head>
	<body><h1>Not Found (404)</h1>
	Original request/tomcat.notFoundHandler</body>


accessing http://localhost:8080/cocoon/	works, just accessing 
http://localhost/ng/index.xml doesn't work... :(


Note - this is on accessing ONE page, not several pages.


Why do I get multiple html page headers but not the desired page?

What's wrong in the setup?



If you need further information, don't hesitate to contact me.




  Benedikt

              "Study as if you were going to live forever;
               live as if you were going to die tomorrow."
                                         -- Maria Mitchell


Mime
View raw message