You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andre Juffer <aj...@sun3.oulu.fi> on 2001/07/11 21:18:50 UTC
C1 to C2
Hi,
just recently I have posted a question about having cocoon2 recognizing
my own context under tomcat/webapp. This may be a tomcat problem, still
I had cocoon1.8.2, together with the apache web server and tomcat,
working just fine with my own context. Obviously, I would like to be
able to do the same with cocoon2, but I could not get it going.
I have removed everything that had something to do with cocoon1 and got
cocoon2 installed. No problem, I could read cocoon/welcome and try some
of the examples. I did not make any modifications in the existing
configuration files. So, I continued and made a very simple sitemap in
webapps/cocoon that simply transforms foo.xml into some html. Worked
without problem in webapps/cocoon, but, after transferring the relevant
files to webapps/Foo and restarting tomcat and apache, I got error
messages. If I request localhost/Foo, the content of my context is
displayed, but it fails to start the pipeline associated with the
transformation (localhost/Foo/foo). I get the following error:
----
type resource-not-found
message Resource not found
description The requested URI "/Foo/foo" was not found.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/Foo/foo
path-info
foo
----
foo is the pattern that should start the pipeline. This works perfectly
all right when carried out in the cocoon context
(http://localhost/cocoon/foo). So, it must be a context setup problem.
It seems that tomcat properly sees my context:
----
2001-07-11 07:50:34 - ContextManager: Adding context Ctx( /Foo )
----
Is there anything special that I may need to do so that
tomcat/apache/cocoon2 work nicely together?
This is the content of a configuation file that is included into the
apache httpd.conf file (the same I have used before with cocoon1):
----
LoadModule jserv_module libexec/mod_jserv.so
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultHost localhost
ApJServDefaultPort 8007
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
AddType text/xml .xml
AddHandler jserv-servlet .xml
Alias /cocoon /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon
<Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/cocoon">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /cocoon /cocoon
<Location /cocoon/WEB-INF/ >
AllowOverride None
deny from all
</Location>
Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/Foo
<Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/Foo">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /Foo /Foo
<Location /Foo/WEB-INF/ >
AllowOverride None
deny from all
</Location>
----
Thank you for any suggestion you may have to resolve this matter,
--
Andre H. Juffer | Phone: +358-8-553 1683
The Biocenter and | Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
University of Oulu, Finland | WWW:
http://www.biochem.oulu.fi/tutkimus/Biocomputing/
---------------------------------------------------------------------
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: C1 to C2
Posted by Luca Morandini <l....@tin.it>.
> -----Original Message-----
> From: juffer@sun3.oulu.fi [mailto:juffer@sun3.oulu.fi]On Behalf Of Andre
> Juffer
> Sent: giovedì 12 luglio 2001 13.35
> To: cocoon-users@xml.apache.org
> Subject: Re: C1 to C2
>
> Let me see if I understand you correctly. The GENERAL sitemap is the
> sitemap located in the cocoon subdirectory (webapps/cocoon) <..> ?
Yes, I added "general" to be sure you didn't mistake it with sub-sitemap.
> The idea of a sub-sitemap below is clear to me. Still, the request
> localhost/Foo/foo goes through the Apache webserver, which passes it on
> to Tomcat. But Tomcat will try to read webapps/Foo and not
> webapps/cocoon, because the configuration of Tomcat was set up like
> that. Should I possibly include in the configuration file of tomcat
> something like
>
> ---
>
> Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon
>
>
> so that /Foo would correspond to /cocoon as well? In combination with
> the sub-sitemap as you suggested, the correct pipeline would start.
>
> Is the above correct?
Hmmm... why you would like to start a different context ?
I assumed you wanted just to put you application in a directory other than
\webapps\cocoon... am I wrong ?
Best regards,
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
+39 0744 59 85 1 Office
+39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
---------------------------------------------------------------------
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: C1 to C2
Posted by Andre Juffer <aj...@sun3.oulu.fi>.
Hi Luca,
thank you for your response.
Let me see if I understand you correctly. The GENERAL sitemap is the
sitemap located in the cocoon subdirectory (webapps/cocoon), or are you
referring to another sitemap?
The idea of a sub-sitemap below is clear to me. Still, the request
localhost/Foo/foo goes through the Apache webserver, which passes it on
to Tomcat. But Tomcat will try to read webapps/Foo and not
webapps/cocoon, because the configuration of Tomcat was set up like
that. Should I possibly include in the configuration file of tomcat
something like
---
Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon
---
so that /Foo would correspond to /cocoon as well? In combination with
the sub-sitemap as you suggested, the correct pipeline would start.
Is the above correct?
Thanks you again,
Andre.
Luca Morandini wrote:
>
> Andre,
>
> have you modifed the general sitemap to tell Cocoon you're not under the
> cocoon context ?
>
> For instance, when I wanted a sub-sitemap of mine to be relocated to the
> c:\cru directory, I modified the general sitemap as follows:
>
> <map:pipeline>
> <map:match pattern="cru/**">
> <map:mount uri-prefix="cru" src="file:///c:/cru/"
> check-reload="yes"
> reload-method="synchron"/>
> </map:match>
> </map:pipeline>
>
> I hope this helps...
>
> ---------------------------------------------
> Luca Morandini
> GIS Consultant
> lmorandini@ieee.org
> +39 0744 59 85 1 Office
> +39 0335 681 02 12 Mobile
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
>
> > -----Original Message-----
> > From: Andre Juffer [mailto:ajuffer@sun3.oulu.fi]
> > Sent: mercoledì 11 luglio 2001 21.19
> > To: cocoon-users@xml.apache.org
> > Subject: C1 to C2
> >
> >
> > Hi,
> >
> > just recently I have posted a question about having cocoon2 recognizing
> > my own context under tomcat/webapp. This may be a tomcat problem, still
> > I had cocoon1.8.2, together with the apache web server and tomcat,
> > working just fine with my own context. Obviously, I would like to be
> > able to do the same with cocoon2, but I could not get it going.
> >
> > I have removed everything that had something to do with cocoon1 and got
> > cocoon2 installed. No problem, I could read cocoon/welcome and try some
> > of the examples. I did not make any modifications in the existing
> > configuration files. So, I continued and made a very simple sitemap in
> > webapps/cocoon that simply transforms foo.xml into some html. Worked
> > without problem in webapps/cocoon, but, after transferring the relevant
> > files to webapps/Foo and restarting tomcat and apache, I got error
> > messages. If I request localhost/Foo, the content of my context is
> > displayed, but it fails to start the pipeline associated with the
> > transformation (localhost/Foo/foo). I get the following error:
> >
> > ----
> > type resource-not-found
> >
> > message Resource not found
> >
> > description The requested URI "/Foo/foo" was not found.
> >
> > sender org.apache.cocoon.servlet.CocoonServlet
> >
> > source Cocoon servlet
> >
> > request-uri
> >
> > /Foo/foo
> >
> > path-info
> >
> > foo
> >
> > ----
> >
> > foo is the pattern that should start the pipeline. This works perfectly
> > all right when carried out in the cocoon context
> > (http://localhost/cocoon/foo). So, it must be a context setup problem.
> >
> > It seems that tomcat properly sees my context:
> >
> > ----
> >
> > 2001-07-11 07:50:34 - ContextManager: Adding context Ctx( /Foo )
> >
> > ----
> >
> > Is there anything special that I may need to do so that
> > tomcat/apache/cocoon2 work nicely together?
> >
> > This is the content of a configuation file that is included into the
> > apache httpd.conf file (the same I have used before with cocoon1):
> >
> > ----
> >
> > LoadModule jserv_module libexec/mod_jserv.so
> > ApJServManual on
> > ApJServDefaultProtocol ajpv12
> > ApJServSecretKey DISABLED
> > ApJServMountCopy on
> > ApJServLogLevel notice
> >
> > ApJServDefaultHost localhost
> > ApJServDefaultPort 8007
> >
> > AddType test/jsp .jsp
> > AddHandler jserv-servlet .jsp
> > AddType text/xml .xml
> > AddHandler jserv-servlet .xml
> >
> > Alias /cocoon /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon
> > <Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/cocoon">
> > Options Indexes FollowSymLinks
> > </Directory>
> > ApJServMount /cocoon /cocoon
> > <Location /cocoon/WEB-INF/ >
> > AllowOverride None
> > deny from all
> > </Location>
> >
> > Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/Foo
> > <Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/Foo">
> > Options Indexes FollowSymLinks
> > </Directory>
> > ApJServMount /Foo /Foo
> > <Location /Foo/WEB-INF/ >
> > AllowOverride None
> > deny from all
> > </Location>
> >
> > ----
> >
> >
> > Thank you for any suggestion you may have to resolve this matter,
> >
> > --
> > Andre H. Juffer | Phone: +358-8-553 1683
> > The Biocenter and | Fax: +358-8-553-1141
> > the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
> > University of Oulu, Finland | WWW:
> > http://www.biochem.oulu.fi/tutkimus/Biocomputing/
> >
> >
> > ---------------------------------------------------------------------
> > 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>
--
Andre H. Juffer | Phone: +358-8-553 1683
The Biocenter and | Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
University of Oulu, Finland | WWW:
http://www.biochem.oulu.fi/research.html
---------------------------------------------------------------------
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: C1 to C2
Posted by Luca Morandini <l....@tin.it>.
Andre,
have you modifed the general sitemap to tell Cocoon you're not under the
cocoon context ?
For instance, when I wanted a sub-sitemap of mine to be relocated to the
c:\cru directory, I modified the general sitemap as follows:
<map:pipeline>
<map:match pattern="cru/**">
<map:mount uri-prefix="cru" src="file:///c:/cru/"
check-reload="yes"
reload-method="synchron"/>
</map:match>
</map:pipeline>
I hope this helps...
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
+39 0744 59 85 1 Office
+39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
> -----Original Message-----
> From: Andre Juffer [mailto:ajuffer@sun3.oulu.fi]
> Sent: mercoledì 11 luglio 2001 21.19
> To: cocoon-users@xml.apache.org
> Subject: C1 to C2
>
>
> Hi,
>
> just recently I have posted a question about having cocoon2 recognizing
> my own context under tomcat/webapp. This may be a tomcat problem, still
> I had cocoon1.8.2, together with the apache web server and tomcat,
> working just fine with my own context. Obviously, I would like to be
> able to do the same with cocoon2, but I could not get it going.
>
> I have removed everything that had something to do with cocoon1 and got
> cocoon2 installed. No problem, I could read cocoon/welcome and try some
> of the examples. I did not make any modifications in the existing
> configuration files. So, I continued and made a very simple sitemap in
> webapps/cocoon that simply transforms foo.xml into some html. Worked
> without problem in webapps/cocoon, but, after transferring the relevant
> files to webapps/Foo and restarting tomcat and apache, I got error
> messages. If I request localhost/Foo, the content of my context is
> displayed, but it fails to start the pipeline associated with the
> transformation (localhost/Foo/foo). I get the following error:
>
> ----
> type resource-not-found
>
> message Resource not found
>
> description The requested URI "/Foo/foo" was not found.
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> request-uri
>
> /Foo/foo
>
> path-info
>
> foo
>
> ----
>
> foo is the pattern that should start the pipeline. This works perfectly
> all right when carried out in the cocoon context
> (http://localhost/cocoon/foo). So, it must be a context setup problem.
>
> It seems that tomcat properly sees my context:
>
> ----
>
> 2001-07-11 07:50:34 - ContextManager: Adding context Ctx( /Foo )
>
> ----
>
> Is there anything special that I may need to do so that
> tomcat/apache/cocoon2 work nicely together?
>
> This is the content of a configuation file that is included into the
> apache httpd.conf file (the same I have used before with cocoon1):
>
> ----
>
> LoadModule jserv_module libexec/mod_jserv.so
> ApJServManual on
> ApJServDefaultProtocol ajpv12
> ApJServSecretKey DISABLED
> ApJServMountCopy on
> ApJServLogLevel notice
>
> ApJServDefaultHost localhost
> ApJServDefaultPort 8007
>
> AddType test/jsp .jsp
> AddHandler jserv-servlet .jsp
> AddType text/xml .xml
> AddHandler jserv-servlet .xml
>
> Alias /cocoon /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon
> <Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/cocoon">
> Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /cocoon /cocoon
> <Location /cocoon/WEB-INF/ >
> AllowOverride None
> deny from all
> </Location>
>
> Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/Foo
> <Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/Foo">
> Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /Foo /Foo
> <Location /Foo/WEB-INF/ >
> AllowOverride None
> deny from all
> </Location>
>
> ----
>
>
> Thank you for any suggestion you may have to resolve this matter,
>
> --
> Andre H. Juffer | Phone: +358-8-553 1683
> The Biocenter and | Fax: +358-8-553-1141
> the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
> University of Oulu, Finland | WWW:
> http://www.biochem.oulu.fi/tutkimus/Biocomputing/
>
>
> ---------------------------------------------------------------------
> 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>