You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by rong <ry...@cs.umbc.edu> on 2000/03/15 18:23:35 UTC

problem of browsing xml files on Cocoon

I have installed Cocoon1.7 + Tomcat3.1M1 on linux. I can see the page
http://host:port/Cocoon.xml. However, i still don't know where the
file(Cocoon.xml) is located. And i can not see other XML examples in
Cocoon1.7/samples directory through my server.  Is there any specific
location that all XML, XSL files should be put? I read the documents
coming with Cocoon package, but still couldn't find the answers. 

Can anyone help me? Thanks.

Rong


Re: problem of browsing xml files on Cocoon

Posted by rong <ry...@cs.umbc.edu>.
Hi, Steve:

I included the following parameter in server.xml, but it still don't work.
I still can not browse /host:port/samples even if i can see it in Context
Administration.

 <Context path="/samples" docBase="../Cocoon-1.7/samples" debug="0" 
  reloadable="true" > </Context>

I could not find the node you mentioned in server.xml. Right now i have to
copy all related xml,xsl files to webapps/ROOT/ directory. Please help. 
Thanks. 

Rong
 

On Wed, 15 Mar 2000, Steve Belt wrote:

> (Disclaimer: I had to struggle through the installation of servlets in
> Tomcat, so this is what my experience has taught me.)
> 
> If you have not modified the server.xml included with Tomcat, the Url
> http://host:port/ will point to [tomcat install dir]/Webpages. If your
> interested, this is because in server.xml you will see a node which looks
> like this:
> 
>         <Context path="/" docBase="webpages"
>             defaultSessionTimeOut="30" isWARExpanded="true"
>             isWARValidated="false" isInvokerEnabled="true"
>             isWorkDirPersistent="false"/>
> 
> The "docBase=" indicates the folder starting from the Tomcat directory. This
> also means that there should be a webpages/web-inf/web.xml file where the
> servlets are configured.
> 
> HTH
> Steve B.
> 
> ----- Original Message -----
> From: rong <ry...@cs.umbc.edu>
> To: <co...@xml.apache.org>
> Sent: Wednesday, March 15, 2000 9:23 AM
> Subject: problem of browsing xml files on Cocoon
> 
> 
> >
> > I have installed Cocoon1.7 + Tomcat3.1M1 on linux. I can see the page
> > http://host:port/Cocoon.xml. However, i still don't know where the
> > file(Cocoon.xml) is located. And i can not see other XML examples in
> > Cocoon1.7/samples directory through my server.  Is there any specific
> > location that all XML, XSL files should be put? I read the documents
> > coming with Cocoon package, but still couldn't find the answers.
> >
> > Can anyone help me? Thanks.
> >
> > Rong
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 





Re: problem of browsing xml files on Cocoon

Posted by rong <ry...@cs.umbc.edu>.
Hi, Steve:

I included the following parameter in server.xml, but it still don't work.
I still can not browse /host:port/samples even if i can see it in Context
Administration.

 <Context path="/samples" docBase="../Cocoon-1.7/samples" debug="0" 
  reloadable="true" > </Context>

I could not find the node you mentioned in server.xml. Right now i have to
copy all related xml,xsl files to webapps/ROOT/ directory. Please help. 
Thanks. 

Rong
 

On Wed, 15 Mar 2000, Steve Belt wrote:

> (Disclaimer: I had to struggle through the installation of servlets in
> Tomcat, so this is what my experience has taught me.)
> 
> If you have not modified the server.xml included with Tomcat, the Url
> http://host:port/ will point to [tomcat install dir]/Webpages. If your
> interested, this is because in server.xml you will see a node which looks
> like this:
> 
>         <Context path="/" docBase="webpages"
>             defaultSessionTimeOut="30" isWARExpanded="true"
>             isWARValidated="false" isInvokerEnabled="true"
>             isWorkDirPersistent="false"/>
> 
> The "docBase=" indicates the folder starting from the Tomcat directory. This
> also means that there should be a webpages/web-inf/web.xml file where the
> servlets are configured.
> 
> HTH
> Steve B.
> 
> ----- Original Message -----
> From: rong <ry...@cs.umbc.edu>
> To: <co...@xml.apache.org>
> Sent: Wednesday, March 15, 2000 9:23 AM
> Subject: problem of browsing xml files on Cocoon
> 
> 
> >
> > I have installed Cocoon1.7 + Tomcat3.1M1 on linux. I can see the page
> > http://host:port/Cocoon.xml. However, i still don't know where the
> > file(Cocoon.xml) is located. And i can not see other XML examples in
> > Cocoon1.7/samples directory through my server.  Is there any specific
> > location that all XML, XSL files should be put? I read the documents
> > coming with Cocoon package, but still couldn't find the answers.
> >
> > Can anyone help me? Thanks.
> >
> > Rong
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 





Re: problem of browsing xml files on Cocoon

Posted by Steve Belt <sb...@velos.com>.
(Disclaimer: I had to struggle through the installation of servlets in
Tomcat, so this is what my experience has taught me.)

If you have not modified the server.xml included with Tomcat, the Url
http://host:port/ will point to [tomcat install dir]/Webpages. If your
interested, this is because in server.xml you will see a node which looks
like this:

        <Context path="/" docBase="webpages"
            defaultSessionTimeOut="30" isWARExpanded="true"
            isWARValidated="false" isInvokerEnabled="true"
            isWorkDirPersistent="false"/>

The "docBase=" indicates the folder starting from the Tomcat directory. This
also means that there should be a webpages/web-inf/web.xml file where the
servlets are configured.

HTH
Steve B.

----- Original Message -----
From: rong <ry...@cs.umbc.edu>
To: <co...@xml.apache.org>
Sent: Wednesday, March 15, 2000 9:23 AM
Subject: problem of browsing xml files on Cocoon


>
> I have installed Cocoon1.7 + Tomcat3.1M1 on linux. I can see the page
> http://host:port/Cocoon.xml. However, i still don't know where the
> file(Cocoon.xml) is located. And i can not see other XML examples in
> Cocoon1.7/samples directory through my server.  Is there any specific
> location that all XML, XSL files should be put? I read the documents
> coming with Cocoon package, but still couldn't find the answers.
>
> Can anyone help me? Thanks.
>
> Rong
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: problem of browsing xml files on Cocoon

Posted by Reinout van Rees <rr...@cti036.citg.tudelft.nl>.
On Wed, 15 Mar 2000, rong wrote:

> I have installed Cocoon1.7 + Tomcat3.1M1 on linux. I can see the page
> http://host:port/Cocoon.xml. However, i still don't know where the
> file(Cocoon.xml) is located. 

In the cocoon config file there is a line that tells cocoon wether or
not to display status information when called with /Cocoon.xml
So it's not an existing file, just a build-in cocoon response.

> And i can not see other XML examples in
> Cocoon1.7/samples directory through my server.  Is there any specific
> location that all XML, XSL files should be put? I read the documents
> coming with Cocoon package, but still couldn't find the answers. 

Don't know about tomcat, but in apache you had to bind the .xml
extension to a specific module/program, in this case Cocoon. I bet the
problem lies with tomcat who doesn't shuffle the .xml pages through to
cocoon. Could be wrong, though.

greetings,

Reinout

--
Reinout van Rees => R.vanRees@ct.tudelft.nl  +31-15-278-5456
"There's good and evil in all of us.
 It's up to you alone which to follow" - Geoff Mann