Replace the ROOT of tomcat with the cocoon stuff then you will be ok.

...or change tomcat making the root cocoon.

Also port 8080 is not much good for internet solutions as the standard 
is 80 and you want apache say to run
all your static documents and cocoon to publish the XML.

So you could connect apache to tomcat and hence cocoon using the webapp 
connector or if you can't change
your apache configuration too much, like me, and you are not too worried 
about performance you could
setup the proxy for apache.

------------------ apache htttp.conf -----------------------------------

# Proxy for cocoon
ProxyPass         /cocoon  http://www.oyap.net:8081/cocoon
ProxyPassReverse  /cocoon  http://www.oyap.net:8081/cocoon

------------------ $CATALINA_HOME/conf/server.xml -------------

    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8081" minProcessors="5" maxProcessors="75"
               enableLookups="true"
               acceptCount="10" debug="0" connectionTimeout="60000"
               proxyName="www.oyap.net"
               proxyPort="80"/>
 
So http://www.oyap.net/cocoon/ for example works.

Paul


Stephen Smithstone wrote:

>Seems its all workin now :-) i went back to cocoon 2 
>
>the next stage is to get so i can do 
>
>http://localhost:8080/lnxserv
>
>instead of the 
>
>http://localhost:8080/cocoon/lnxserv
>
>i read in the FAQ about the apache rewrite mod i have  it loaded and my
>apache has some perl stuff in it for redirect do i add the cocoon
>redirect stuff in with the perl stuff ??
>
>or where do i add it
>
>the perl stuff is
>
><IfDefine PERLPROXIED>
>       RewriteEngine on
>       RewriteRule ^proxy:.* - [F]
>       RewriteRule ^(.*\/perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
>       RewriteRule ^(.*\/cgi-perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
></IfDefine>
>
>
>so where would i add the code for the cocoon stuff i know the rewrite
>module is loaded cos its at the top of the httpd.conf
> 
>and what would be the code to redirect the http://localhost:8080/lnxserv
>so i went to the http://localhost:8080/cocoon/lnxserv ?? as i tried the
>exmaple in the faq and it didnt work
>
>Ta
>
>
>
>On Tue, 2002-05-21 at 09:30, Graaf, Edgar de (fin) wrote:
>
>>try:
>><map:pipeline>
>>      <map:match pattern="lnxserv/**">
>>              <map:mount uri-prefix="lnxserv" src="lnxserv/"
>>check-reload="yes" />
>>      </map:match>
>>
>>      <map:match pattern="lnxserv">
>>              <map:redirect-to uri="lnxserv/index.html" />
>>      </map:match>
>></map:pipeline>
>><!--</map:match>-->
>>
>>
>>
>>by the way this should work:
>>Instead of:
>><map:match pattern="index.html">
>>      <map:read src="static/index.html" />
>></map:match>
>>
>><map:match pattern="*.html">
>>      <map:read src="static/{../1}.html" />
>></map:match>
>>
>>-----Oorspronkelijk bericht-----
>>Van: Stephen Smithstone [mailto:[EMAIL PROTECTED]]
>>Verzonden: dinsdag 21 mei 2002 9:32
>>Aan: [EMAIL PROTECTED]
>>Onderwerp: Cocoon one step closer
>>
>>
>>Ok seems i have cocoon workin in some respects now :-)
>>
>>I just downloaded the cocoon2 and not 2.0.2 and now i can get to
>>transform
>>
>>however it only picks up on
>>
>>localhost:8080/cocoon/lnxserv/
>>
>>and not
>>
>>localhost:8080/cocoon/lnxserv
>>
>>heres my cocoon sitemap entry for the lnxserv
>>
>><map:pipeline>
>>      <map:match pattern="lnxserv/**">
>>              <map:mount uri-prefix="lnxserv" src="lnxserv/"
>>check-reload="yes" />
>>      </map:match>
>></map:match>
>>
>>my site map is working in the lnxserv/ cos once u go to lnserv/ it loads
>>up the index.html file how ever i will add it to the end here
>>
>>
>><map:match pattern="">
>>      <map:redirect-to uri="index.html" />
>></map:match>
>>
>><map:match pattern="index.html">
>>      <map:read src="static/index.html" />
>></map:match>
>>
>>
>>Any help would help as im nearly there now :-)
>>
>>Ta
>>
>>Stephen
>>
>>
>>
>>
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>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: <[EMAIL PROTECTED]>
>>For additional commands, e-mail: <[EMAIL PROTECTED]>
>>
>>---------------------------------------------------------------------
>>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: <[EMAIL PROTECTED]>
>>For additional commands, e-mail: <[EMAIL PROTECTED]>
>>
>
>
>
>---------------------------------------------------------------------
>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: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>
>



---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to