Is this question too simple to be answered ?

2003-02-20 Thread Laurent Comte
Hi,

is this question too simple to be answered ?

-Message d'origine-
De : Laurent Comte [mailto:[EMAIL PROTECTED]]
Envoy : mercredi 19 fvrier 2003 13:25
A : [EMAIL PROTECTED]
Objet : Simple pb with subsitemap mount



Hi,

I just try to create subsitemap as written in docs.

I have :

[sitemap.xmap]
...
  map:pipelines
!-- very simple test --
map:pipeline
map:match pattern=view/**
map:mount uri-prefix=view check-reload=true
src=file:///D:\work\web.xmap /
/map:match
/map:pipeline
  /map:pipelines
...


[D:\work\web.xmap]
...
map:pipelines
map:pipeline
  map:match pattern=**/index.xml
map:generate src=index.xml/
map:transform src=index.xsl/
map:serialize/
  /map:match
/map:pipeline
  /map:pipelines
...


So, when I type http://localhost:8080/cocon/view/index.xml, i've got this
beautiful thing :



description org.apache.cocoon.ProcessingException: Exception during
processing of file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl
(The system cannot find the file specified)

sender org.apache.cocoon.servlet.ParanoidCocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl (The system
cannot find the file specified)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:211)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:268)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:239)
at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
298)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:141)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:317)
at
org.apache.cocoon.www.file_.D_.work.web_xmap.matchN10224(D:\Java\Oodrive\Tom
cat\work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1530
)
at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1439)
at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1385)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.www.sitemap_xmap.matchN1020C(D:\Java\Oodrive\Tomcat\work\c
ocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1447)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1394)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline

Re: Is this question too simple to be answered ?

2003-02-20 Thread Lionel Crine
here is what I did  :

In the main sitemap :
!-- === mount sub sitemap 
=== --
map:pipeline
  map:match pattern=request/*
map:mount uri-prefix=request check-reload=true 
src=demo/sitemap.xmap method-reload=synchron/
  /map:match
/map:pipeline
!-- == --

In the subsitemap :

map:match pattern=request
  map:generate type=serverpages src=request.xsp/
  map:transform type=xslt src=request.xsl/--
  map:transform type=xslt src=documents.xsl/
  map:serialize type=html/
/map:match

Try relative location for your files.



Hope this help


At 10:27 20/02/2003 +0100, you wrote:
Hi,

is this question too simple to be answered ?

-Message d'origine-
De : Laurent Comte [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 19 février 2003 13:25
A : [EMAIL PROTECTED]
Objet : Simple pb with subsitemap mount



Hi,

I just try to create subsitemap as written in docs.

I have :

[sitemap.xmap]
...
  map:pipelines
!-- very simple test --
map:pipeline
map:match pattern=view/**
map:mount uri-prefix=view check-reload=true
src=file:///D:\work\web.xmap /
/map:match
/map:pipeline
  /map:pipelines
...


[D:\work\web.xmap]
...
map:pipelines
map:pipeline
  map:match pattern=**/index.xml
map:generate src=index.xml/
map:transform src=index.xsl/
map:serialize/
  /map:match
/map:pipeline
  /map:pipelines
...


So, when I type http://localhost:8080/cocon/view/index.xml, i've got this
beautiful thing :



description org.apache.cocoon.ProcessingException: Exception during
processing of file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl
(The system cannot find the file specified)

sender org.apache.cocoon.servlet.ParanoidCocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl (The system
cannot find the file specified)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:211)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:268)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:239)
at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
298)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:141)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:317)
at
org.apache.cocoon.www.file_.D_.work.web_xmap.matchN10224(D:\Java\Oodrive\Tom
cat\work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1530
)
at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1439)
at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1385)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.www.sitemap_xmap.matchN1020C(D:\Java\Oodrive\Tomcat\work\c
ocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1447)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1394)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke

RE: Is this question too simple to be answered ?

2003-02-20 Thread Laurent Comte
Hi, and thanks for your reply :)

quote
Try relative location for your files.
/quote

The problem is that my subsitemap is not located in a subfolder
under the main sitemap. So I must specify as src something like
../../../Apache/htdocs/myFolder/itsHere. Humf!

== BUT, finally I found 2 interesting things :

1/ Even in Windows, if I specify the path as file:///D:/work/web.xmap
   instead file:///D:\work\web.xmap, it works ! Not really logic.

2/ When I change something in the main sitemap without updating the
subsitemap
   file, it fails ! I must make a fake modification in the subsitemap file
to
   make things working ...


A little bit confusing, isn't it ?

BTW, do you have the same behaviours (I use 2.0.4) ???

Laurent.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Is this question too simple to be answered ?

2003-02-20 Thread Derek Hohls



Not sure about (1) - as I have not done this before,
but for (2) look at the documnentation for the
reload-method="synchron" attribute/value.

(example under:
http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerSWTutorial_01
and
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html
 - in the section 'Reloading'_

 [EMAIL PROTECTED] 20/02/2003 12:23:23 Hi, 
and thanks for your reply :)quoteTry relative location for 
your files./quoteThe problem is that my subsitemap is not 
located in a subfolderunder the main sitemap. So I must specify as "src" 
something like"../../../Apache/htdocs/myFolder/itsHere". Humf!== 
BUT, finally I found 2 interesting things :1/ Even in Windows, if I 
specify the path as "file:///D:/work/web.xmap" instead 
"file:///D:\work\web.xmap", it works ! Not really logic.2/ When I change 
something in the main sitemap without updating thesubsitemap 
file, it fails ! I must make a "fake" modification in the subsitemap 
fileto make things working ...A little bit 
confusing, isn't it ?BTW, do you have the same behaviours (I use 2.0.4) 
???Laurent.-Please 
check that your question has not already been answered in theFAQ 
before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, 
e-mail: 
[EMAIL PROTECTED]-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



RE: Is this question too simple to be answered ?

2003-02-20 Thread Lionel Crine
i''m using cocoon 2.0.4 and tomcat 3.3.1. I didn't encounter this trouble.
It's working fine for me.
If your subsitemap is not reloaded you should look at te different option 
in map:mount ...




At 11:23 20/02/2003 +0100, you wrote:
Hi, and thanks for your reply :)

quote
Try relative location for your files.
/quote

The problem is that my subsitemap is not located in a subfolder
under the main sitemap. So I must specify as src something like
../../../Apache/htdocs/myFolder/itsHere. Humf!

== BUT, finally I found 2 interesting things :

1/ Even in Windows, if I specify the path as file:///D:/work/web.xmap
   instead file:///D:\work\web.xmap, it works ! Not really logic.

2/ When I change something in the main sitemap without updating the
subsitemap
   file, it fails ! I must make a fake modification in the subsitemap file
to
   make things working ...


A little bit confusing, isn't it ?

BTW, do you have the same behaviours (I use 2.0.4) ???

Laurent.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html

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




RE: Is this question too simple to be answered ?

2003-02-20 Thread Laurent Comte




Yes, I read it already.

So I have check-reload="yes"and 
reload-method="synchron",
BUT the problem is :

If I update the main sitemap file without 
updating the subsitemap file,
I obtain a NullPointerException during 
parsing of the subsitemap file.

If I make a fake update in the subsitemap 
file, it works.

Even If I make a fake update in the MAIN 
sitemap file, I've got the Exception.


Regards.
Laurent



===
but for (2) look at the documnentation for the

  reload-method="synchron" attribute/value.
  
  (example under:
  http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerSWTutorial_01
  and
  http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html
   - in the section 'Reloading'_
  


RE: Is this question too simple to be answered ?

2003-02-20 Thread Derek Hohls



Null Pointer exceptions are my worst ;-( but often
the root problem is a simple one - it sounds like
something is wrong with the subsitemap 
[EMAIL PROTECTED] 20/02/2003 01:07:19 

Yes, I read it already.

So I have check-reload="yes"and 
reload-method="synchron",
BUT the problem is :

If I update the main sitemap file without 
updating the subsitemap file,
I obtain a NullPointerException during 
parsing of the subsitemap file.

If I make a fake update in the subsitemap 
file, it works.

Even If I make a fake update in the MAIN 
sitemap file, I've got the Exception.


Regards.
Laurent



===
but for (2) look at the documnentation for the

  reload-method="synchron" attribute/value.
  
  (example under:
  http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerSWTutorial_01
  and
  http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html
   - in the section 'Reloading'_
  -- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



RE: Is this question too simple to be answered ?

2003-02-20 Thread Derek Hohls



Well, Cocoon is not going to recognize the need
to reload *unless* there is a change; but you should
not be getting null pointer - for debugging its usually easier
to make one change at a time to try and pin down the 
source. Alternativelty, try with a new sitemap OR move the
existing one somewhere else...?

And, yes, Cocoon is very difficult *in the beginning*
when you don't know what youare doing (or fail to
understand how it is carrying your instructions) - and
quite unforgiving of careless mistakes.

(Last night, for example, I found I needed to add a **
to the start of a match so I could call an 'internal' pipeline
from anywhere in the sitemap - its taken me_one week__
of working nights to try all sorts of changes and combos 
because of not understanding or knowing one small thing 
;-( [EMAIL PROTECTED] 20/02/2003 01:38:43 

I don't think so because just a "fake" 
modification in the subsitemap
file (just to change the date of the file) 
makes things go right.

I think the problem is a Cocoon's reload 
problem or the problem is ME.

Laurent.

nb : from the beginning, Cocoon is very 
horrible with me ...

  =
  Null Pointer exceptions are my worst ;-( but often
  the root problem is a simple one - it sounds like
  something is wrong with the 
subsitemap-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."