Hi All,

Big thanks to Geoff Howard for his swift and fruitful reply to my last post.

I am just starting with Cocoon and I'm sorry to ask yet more what I'm sure
are stupid questions but...

Following Geoff's advice I have read the enclosed documentation and looked
on http://wiki.cocoondev.org. However both sources seem to concentrate on
the concepts and skip the more basic set-up procedures... Using these two
sources I have set up "work" as a sub-dir of mount and put in it two files:
sitemap.xmap and home.html, the source for which is shown below. When I
browse to http://localhost:8080/cocoon/mount/work/ I receive the following
message:

Cocoon 2 - Resource not found
----------------------------------------------------------------------------
----
type resource-not-found
message Resource not found
description The requested URI "/cocoon/mount/work/home.html" was not found.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/mount/work/home.html
path-info
mount/work/home.html

I can see that it clearly is getting as far as looking for the file
home.html in the root folder of the app but I don't understand why it
doesn't find it: it is there! Clearly I'm missing a point somewhere...

I am running:
Win 98
JDK 1.3.1
Tomcat 4.1.24
Cocoon 2.0.4

Cocoon runs ok: the examples work just fine.

Thanks in advance,

Kind Regards,

Phil Coultard



----------------------------------------------------------------------------
----
sitemap.xmap
----------------------------------------------------------------------------
----
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>

  <map:components>
    <map:generators   default="file"/>
    <map:transformers default="xslt"/>
    <map:readers      default="resource"/>
    <map:serializers  default="html"/>
    <map:matchers default="wildcard"/>
  </map:components>

  <map:pipelines>
  <map:pipeline>
   <map:match pattern="">
     <map:redirect-to uri="home.html"/>
   </map:match>

</map:pipeline>

  </map:pipelines>
</map:sitemap>

----------------------------------------------------------------------------
----
home.html
----------------------------------------------------------------------------
----
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
        <title>Untitled</title>
</head>

<body>
Hi There!


</body>
</html>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/03


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to