RE: Problems installing Cocoon 2.1-dev: NoSuchMethodError - SOLVED

2002-06-21 Thread Albertsen, Juergen

Hi everbody,

yesterday evening I spent some time reubuilding the whole Avalon framework.
Because the access to my FreeBSD box is fairly slow I did it on a Linux box,
but because of Write Once, Run Anywhere this shouldn't be a difference,
no? ;-) However, after uploading the updated JARs to my FreeBSD machine
everything is working perfectly! I have no explanation for this phenomenon,
but I would be very interested in learning what the hell was going on here?

Jürgen

 -Original Message-
 From: Albertsen, Juergen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 19, 2002 2:09 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Problems installing Cocoon 2.1-dev: NoSuchMethodError
 
 
 That's interesting. I could not believe that this is a FreeBSD related
 issue. Very strange. I also thought of using a different version of
 Excalibur but did not get around building it. I will contact 
 Stuart, but if
 somebody comes up with a solution in the meantime I would 
 appreciate to be
 informed.
 
  -Original Message-
  From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 19, 2002 2:17 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Problems installing Cocoon 2.1-dev: NoSuchMethodError
  
  
   From: Albertsen, Juergen [mailto:[EMAIL PROTECTED]]
   
   Hi,
   
   I'm running Cocoon under Resin 2.1.1. Under Windows 2000 
 everything
  works
   perfectly, but under FreeBSD I get the follwoing stack trace when
  starting
   up Cocoon:
   
   java.lang.NoSuchMethodError:
   org.apache.avalon.excalibur.component.ComponentHandler:
   method initialize()V not found
  
  Stuart reported today problem with similar description
  (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9701). Why 
  don't you
  two team up (as owners of FreeBSD systems) to solve this?
  
  PS Stuart's report suggests that switching to older version 
  of exclaibur
  or Avalon jar may solve the problem
  
  Vadim
  
  
  
 at
  
  org.apache.avalon.excalibur.component.ExcaliburComponentManage
  r.initiali
  ze(E
   xcaliburComponentManager.java:152)
 at org.apache.cocoon.Cocoon.initialize(Cocoon.java:269)
 at
  
  org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonSer
  vlet.java:
  1237
   )
 at
   
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
 at
  
  com.caucho.server.http.Application.createServlet(Application.j
  ava:2868)
 at
   
  
 com.caucho.server.http.Application.loadServlet(Application.java:2827)
 at
  
  com.caucho.server.http.QServletConfig.loadServlet(QServletConf
  ig.java:42
  8)
 at
  
  com.caucho.server.http.Application.getFilterChainServlet(Appli
  cation.jav
  a:25
   86)
 at
  
  com.caucho.server.http.Application.buildFilterChain(Applicatio
  n.java:254
  2)
 at
  com.caucho.server.http.Invocation.service(Invocation.java:309)
 at
  
  com.caucho.server.http.CacheInvocation.service(CacheInvocation
  .java:135)
 at
   
  
 com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:218)
 at
  
  com.caucho.server.http.HttpRequest.handleConnection(HttpReques
  t.java:160
  )
 at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
 at java.lang.Thread.run(Thread.java:484)
   
   I checked my classpath to ensure that there are no conflicting
  versions of
   Avalon Excalibur. I attached the core.log, but when 
 looking at it I
  cannot
   see anything unusual. In the end I kind of doubt that it is a
  Windows/UNIX
   problem and I rather believe that I screwed something up on 
  my FreeSDB
  box.
   Any idea?
   
   Thanks in advance,
   
   Jürgen
  
  
  
  
 -
  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]

-
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: Problems installing Cocoon 2.1-dev: NoSuchMethodError - SOLVE D

2002-06-21 Thread Stuart Roebuck

Jürgen,

Congratulations on building Avalon!

Your experience seems to confirm that Avalon is the heart of the 
matter.  One test I carried out when I was having problems was to unpack 
the avalon JAR files and put the classes directly into the WEB-
INF/classes directory on the off-chance that the problem was something 
to do with how the JAR was put together.  This didn't help.  So it looks 
like it is something in the compilation of the classes.

How about unpacking your working Avalon JAR files and doing the same 
with the 'faulty' ones and doing a directory diff on the two directory 
hierarchies to see what's changed?

Stuart.

On Friday, June 21, 2002, at 07:19 am, Albertsen, Juergen wrote:

 Hi everbody,

 yesterday evening I spent some time reubuilding the whole Avalon 
 framework.
 Because the access to my FreeBSD box is fairly slow I did it on a Linux 
 box,
 but because of Write Once, Run Anywhere this shouldn't be a 
 difference,
 no? ;-) However, after uploading the updated JARs to my FreeBSD machine
 everything is working perfectly! I have no explanation for this 
 phenomenon,
 but I would be very interested in learning what the hell was going on 
 here?

 Jürgen

 -Original Message-
 From: Albertsen, Juergen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 19, 2002 2:09 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Problems installing Cocoon 2.1-dev: NoSuchMethodError


 That's interesting. I could not believe that this is a FreeBSD related
 issue. Very strange. I also thought of using a different version of
 Excalibur but did not get around building it. I will contact
 Stuart, but if
 somebody comes up with a solution in the meantime I would
 appreciate to be
 informed.

 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 19, 2002 2:17 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Problems installing Cocoon 2.1-dev: NoSuchMethodError


 From: Albertsen, Juergen [mailto:[EMAIL PROTECTED]]

 Hi,

 I'm running Cocoon under Resin 2.1.1. Under Windows 2000
 everything
 works
 perfectly, but under FreeBSD I get the follwoing stack trace when
 starting
 up Cocoon:

 java.lang.NoSuchMethodError:
 org.apache.avalon.excalibur.component.ComponentHandler:
 method initialize()V not found

 Stuart reported today problem with similar description
 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9701). Why
 don't you
 two team up (as owners of FreeBSD systems) to solve this?

 PS Stuart's report suggests that switching to older version
 of exclaibur
 or Avalon jar may solve the problem

 Vadim



at

 org.apache.avalon.excalibur.component.ExcaliburComponentManage
 r.initiali
 ze(E
 xcaliburComponentManager.java:152)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:269)
at

 org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonSer
 vlet.java:
 1237
 )
at

 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
at

 com.caucho.server.http.Application.createServlet(Application.j
 ava:2868)
at


 com.caucho.server.http.Application.loadServlet(Application.java:2827)
at

 com.caucho.server.http.QServletConfig.loadServlet(QServletConf
 ig.java:42
 8)
at

 com.caucho.server.http.Application.getFilterChainServlet(Appli
 cation.jav
 a:25
 86)
at

 com.caucho.server.http.Application.buildFilterChain(Applicatio
 n.java:254
 2)
at
 com.caucho.server.http.Invocation.service(Invocation.java:309)
at

 com.caucho.server.http.CacheInvocation.service(CacheInvocation
 .java:135)
at


 com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:218)
at

 com.caucho.server.http.HttpRequest.handleConnection(HttpReques
 t.java:160
 )
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:484)

 I checked my classpath to ensure that there are no conflicting
 versions of
 Avalon Excalibur. I attached the core.log, but when
 looking at it I
 cannot
 see anything unusual. In the end I kind of doubt that it is a
 Windows/UNIX
 problem and I rather believe that I screwed something up on
 my FreeSDB
 box.
 Any idea?

 Thanks in advance,

 Jürgen




 -
 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]

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. 

RE: Problems installing Cocoon 2.1-dev: NoSuchMethodError - SOLVE D

2002-06-21 Thread Albertsen, Juergen

Stuart,

doing a diff is a very good idea but I'm afraid the result might not lead us
to the reason for all this hassle because I used the latest CVS version and
a diff would also reveal normal code changes. When time permits I wil have
a closer look at at all this, but the weather might be too good over the
weekend ;-)

Jürgen

 -Original Message-
 From: Stuart Roebuck [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 10:10 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Problems installing Cocoon 2.1-dev: NoSuchMethodError -
 SOLVE D
 
 
 Jürgen,
 
 Congratulations on building Avalon!
 
 Your experience seems to confirm that Avalon is the heart of the 
 matter.  One test I carried out when I was having problems 
 was to unpack 
 the avalon JAR files and put the classes directly into the WEB-
 INF/classes directory on the off-chance that the problem was 
 something 
 to do with how the JAR was put together.  This didn't help.  
 So it looks 
 like it is something in the compilation of the classes.
 
 How about unpacking your working Avalon JAR files and doing the same 
 with the 'faulty' ones and doing a directory diff on the two 
 directory 
 hierarchies to see what's changed?
 
 Stuart.

-
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]




requests with document function

2002-06-21 Thread Johannes Koch

Cocoon 2.0.2/Tomcat 4.0.1/Java1.3.1_01
In an XSLT stylesheet I have the following template:

xsl:template match=foo
   xsl:variable name=bar 
select=document('http://www.xyz.org/bla.xml')/fasel/
   xsl:variable name=hasGrmpf select=boolean($bar/grmpf)/
   xsl:apply-templates select=$bar/grmpf/
   ...
/xsl:template

The template is called only once.

According to the server log, this results in 5 GET requests for 'bla.xml':
2 for $bar, 2 for $hasGrmpf and 1 for apply-templates.

If I change the template to
   xsl:variable name=bar 
select=document('http://www.xyz.org/bla.xml')/
(without root element at the end of the XPath expression), I have 4 
requests.
If, additionally, I change it to
   xsl:variable name=hasGrmpf select=boolean($bar)/
(without the '/grmpf'), I have 3 requests.

I would have expected to have only one request (for the document 
function). Can somebody explain the five requests?
-- 
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355


-
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: Lucene and cocoon-view

2002-06-21 Thread M Al-yahya

Hi Lajos,

Thanks for your reply.
1. I can not find a SimpleLuceneXMLIndexerImpl in the core.log
2. The view is not working. When I request 
http://localhost:8080/cocoon/myapps?cocoon-view=content
   I see the transformed page which I could see using :
http://localhost:8080/cocoon/myapps
   and not the actual xml content.

I think I'm having a problem with views, I've read the documentations
and looked at examples but could not figure out what is wrong here.

Cheers,
Maha

Lajos Moczar wrote:
 
 Hi Maha -
 
 Do you have a message in core.log from SimpleLuceneXMLIndexerImpl saying
 something about Ignoring ... ? Check that the view is working
 correctly: call http://localhost:8080/cocoon/myapps?cocoon-view=content
 and make sure it is returning XML with a mime-type of text/xml. If not,
 Lucene will ignore it. Of course, http://localhost:8080/cocoon/myapps
 has to be a real URI.
 
 Regards,
 
 Lajos
 galatea.com
 Cocoon training, consulting  support
 
 Maha Al-Yahya wrote:
 
  Hi Lajos,
  Good for you, but unfourtunately I'm still having a problem running the
  search on my webapp. I use the sample search with cocoon and input the
  base URL as:
  http://localhost:8080/cocoon/myapps
  (Iwant cocoon to search all documents in myapps directory)
 
  in myapps sub-sitemap I put the following within components:
  map:views
   map:view name=content from-label=content
   map:serialize type=xml/
  /map:view
  map:view name=links from-position=last
   map:serialize type=links/
 
  and in the pipeline section of myapps sitemap like this:
  map:match pattern=*.*
map:generate src=documents/{1}.{2}.xml/
map transform src=stylesheets/{2}.xsl label=content/
map:serialize/
  /map:match
 
  However when I click on create button, the created false value turns to
  true and when I see the statistics page everthing is zero and If I search
  for any word nothing appears. I checked the log files but nothing helped.
 
  Any advice or suggestions?
 
  Cheers,
  Maha
 
  On Thu, 20 Jun 2002, Lajos Moczar wrote:
 
 
 I found my problem; just an oopsee (yes, this is a technical term ;) ),
 nothing wrong with Cocoon 2.0.2. I had defined a view called content
 but fat-fingered the map:views section into the map:components section.
 Once I fixed that, Lucene worked like a charm.
 
 Lajos
 
 
 leo leonid wrote:
 
 
 On Thursday, June 20, 2002, at 04:12  Uhr, M Al-yahya wrote:
 
 
 Hi Leo,
 
 I'm using Cocoon's latest release cocoon 2.0.2 and Tomcat 4.0.4-b3
 
 Cheers,
 Maha
 
 
 hmm... I never used the 2.0.2 release, I always used the CVS version,
 and everything was fine till beginning of may
 (long after the 2.0.2 release) (On may 8 I sent my first mail about this
 problem to this list.) Thats why I connected this problem with 2.1-dev.
 
 Anyway, I now use the 2.0.3 branch and where view-labels within
 aggregation and indexing the docs is possible.
 But the problem exits (still or again) in the CVS HEAD branch.
 /Leo
 
 
 
 
 
 
 
 leo leonid wrote:
 
 
 On Thursday, June 20, 2002, at 02:57  Uhr, M Al-yahya wrote:
 
 
 Hello,
 
 I'm experimenting with cocoon XML search using lucene.
 
 
 You are using the the 2.1-dev version of cocoon, right?
 
 
 At
 http://localhost:8080/cocoon/search/create if I input the base URL
 as it
 is :
 http://localhost:8080/cocoon/documents/index.html the creation goes on
 well and the search is good. However, if I input the base URL:
 http://localhost:8080/cocoon/mywebapp/index.html
 the index statistics shows everything 0 and I don't see anything
 helpful
 in the logs. I think it has to do with the statement The base url
 should be cocoon-view aware of content-labels links, and content. I've
 read the concepts/view section of the documentation but could not
 figure
 out what must I do to make my XML files cocoon-view aware.
 
 
 everything right, only something prevents the 2.1-dev version from
 interpreting labels within an aggregation
 
 
 Any suggestions?
 
 
 writing a patch or waiting for the bug fix or using cocoon 2.03 :-(
 /Leo
 
 
 Cheers,
 Maha
 
 -
 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]
 
 
 -
 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 

XMLizable from DOM example needed

2002-06-21 Thread KOZLOV Roman

Hi,

Could somebody share an example of XMLizable object implementation
initialized by org.w3c.dom.Document for xsp.

Thank you in advance.

Roman


-
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]




Entity resolver problem ....

2002-06-21 Thread Guy Bobenrieth



Hello,

This time I've tried to set cocoon (2.1-dev) to 
handle the entity resolution nicely for my XML files.

I've set the "CatalogManager.properties" file so 
that my own catalog is red : I can see it in the std output that it is the case 
!

This catalog is about rewritting SYSTEM identifier 
for DOCTYPE declaration.

Inside my xml files, I have a DOCTYPE like this one 
:

!DOCTYPE DOCUMENT SYSTEM 
"mydocument.dtd"
DOCUMENT
!--  --
/DOCUMENT

And inside the catalog, I've put :
SYSTEM "mydocument.dtd"
  
"/my/path/mydocument.dtd"


Well,it doesn't work 

I don't undestand what is the problem here  Any 
idea ???

But the entity resolution works good for PUBLIC 
identifier inside DOCTYPE declaration and for SYSTEM identifier inside ENTITY 
declaration.

Thanks for your help 

Guy




Re: Lucene, xml files and dtds.

2002-06-21 Thread Guy Bobenrieth

Hello Vladim,

You are right ! It works now ... but only if I use a PUBLIC identifer in my
xml files instead of a SYSTEM one.

Thanks again.

Guy

- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 20, 2002 6:29 PM
Subject: RE: Lucene, xml files and dtds.


  From: Guy Bobenrieth [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 20, 2002 12:11 PM
  To: [EMAIL PROTECTED]
  Subject: Lucene, xml files and dtds.
 
  Hello,
 
  ( Finally, to make cocoon run I  went back to the jdk1.3 !)
 
  Now I want to play a little with Lucene over some xml files. I
 encounter a
  little problem related to  where the dtd associated to my xml files
 should
  be found on the server.
 
  My xml files contain a doctype declaration like this one !DOCTYPE
 DOCUMENT
  SYSTEM myschema.dtd. With this, Lucene is looking for the dtds
 inside
  %TOMCAT_HOME%/bin !!!
 
  It is possible to drive an xml parser so that the doctype would be
 handled
  like we want it, for example here to have the dtds found elsewhere ...
 But I
  don't know how to get this done with Lucene inside Cocoon.
 
  Any idea how to do that 

 Try entity resolver.

 Vadim


  Thanks in advance !!!
 
  Guy
 


 -
 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: Lucene and cocoon-view

2002-06-21 Thread M Al-yahya

Hi Lajos,

At Last... problem solved :)

Well here's  what I did :

1. I realized that I was having the same problem as you the views
should be inside the components and not after it.
2. Made sure that in the pipeline the map:transform... where the view
label is inserted was returning a mime-type text/xml -as you
suggested-
map:transform src=stylesheets/q.xsl mime-type=text/xml
label=content/

3. when creating the index I inserted in the base URL :
http://localhost:8080/cocoon/myapps/home.section 
   and not
http://localhost:8080/cocoon/myapps
4. The index was successfully created.

Thanks for your suggestions Lajos,
Maha

M Al-yahya wrote:
 
 Hi Lajos,
 
 Thanks for your reply.
 1. I can not find a SimpleLuceneXMLIndexerImpl in the core.log
 2. The view is not working. When I request
 http://localhost:8080/cocoon/myapps?cocoon-view=content
I see the transformed page which I could see using :
 http://localhost:8080/cocoon/myapps
and not the actual xml content.
 
 I think I'm having a problem with views, I've read the documentations
 and looked at examples but could not figure out what is wrong here.
 
 Cheers,
 Maha
 
 Lajos Moczar wrote:
 
  Hi Maha -
 
  Do you have a message in core.log from SimpleLuceneXMLIndexerImpl saying
  something about Ignoring ... ? Check that the view is working
  correctly: call http://localhost:8080/cocoon/myapps?cocoon-view=content
  and make sure it is returning XML with a mime-type of text/xml. If not,
  Lucene will ignore it. Of course, http://localhost:8080/cocoon/myapps
  has to be a real URI.
 
  Regards,
 
  Lajos
  galatea.com
  Cocoon training, consulting  support
 
  Maha Al-Yahya wrote:
 
   Hi Lajos,
   Good for you, but unfourtunately I'm still having a problem running the
   search on my webapp. I use the sample search with cocoon and input the
   base URL as:
   http://localhost:8080/cocoon/myapps
   (Iwant cocoon to search all documents in myapps directory)
  
   in myapps sub-sitemap I put the following within components:
   map:views
map:view name=content from-label=content
map:serialize type=xml/
   /map:view
   map:view name=links from-position=last
map:serialize type=links/
  
   and in the pipeline section of myapps sitemap like this:
   map:match pattern=*.*
 map:generate src=documents/{1}.{2}.xml/
 map transform src=stylesheets/{2}.xsl label=content/
 map:serialize/
   /map:match
  
   However when I click on create button, the created false value turns to
   true and when I see the statistics page everthing is zero and If I search
   for any word nothing appears. I checked the log files but nothing helped.
  
   Any advice or suggestions?
  
   Cheers,
   Maha
  
   On Thu, 20 Jun 2002, Lajos Moczar wrote:
  
  
  I found my problem; just an oopsee (yes, this is a technical term ;) ),
  nothing wrong with Cocoon 2.0.2. I had defined a view called content
  but fat-fingered the map:views section into the map:components section.
  Once I fixed that, Lucene worked like a charm.
  
  Lajos
  
  
  leo leonid wrote:
  
  
  On Thursday, June 20, 2002, at 04:12  Uhr, M Al-yahya wrote:
  
  
  Hi Leo,
  
  I'm using Cocoon's latest release cocoon 2.0.2 and Tomcat 4.0.4-b3
  
  Cheers,
  Maha
  
  
  hmm... I never used the 2.0.2 release, I always used the CVS version,
  and everything was fine till beginning of may
  (long after the 2.0.2 release) (On may 8 I sent my first mail about this
  problem to this list.) Thats why I connected this problem with 2.1-dev.
  
  Anyway, I now use the 2.0.3 branch and where view-labels within
  aggregation and indexing the docs is possible.
  But the problem exits (still or again) in the CVS HEAD branch.
  /Leo
  
  
  
  
  
  
  
  leo leonid wrote:
  
  
  On Thursday, June 20, 2002, at 02:57  Uhr, M Al-yahya wrote:
  
  
  Hello,
  
  I'm experimenting with cocoon XML search using lucene.
  
  
  You are using the the 2.1-dev version of cocoon, right?
  
  
  At
  http://localhost:8080/cocoon/search/create if I input the base URL
  as it
  is :
  http://localhost:8080/cocoon/documents/index.html the creation goes on
  well and the search is good. However, if I input the base URL:
  http://localhost:8080/cocoon/mywebapp/index.html
  the index statistics shows everything 0 and I don't see anything
  helpful
  in the logs. I think it has to do with the statement The base url
  should be cocoon-view aware of content-labels links, and content. I've
  read the concepts/view section of the documentation but could not
  figure
  out what must I do to make my XML files cocoon-view aware.
  
  
  everything right, only something prevents the 2.1-dev version from
  interpreting labels within an aggregation
  
  
  Any suggestions?
  
  
  writing a patch or waiting for the bug fix or using cocoon 2.03 :-(
  /Leo
  
  
  Cheers,
  Maha
  
  -
  Please check that your question  has not already been 

[doc] draft FAQ xinclude/cinclude

2002-06-21 Thread Diana Shannon

Q.
What are the similarities and differences of xinclude and cinclude?

A.

Similarities
- Both provides mechanisms to include content from other documents
- Both support cocoon:/ protocol (i.e. they both use Cocoon's resolver).

xinclude transformer
- implements the W3C XInclude spec.
- allows you to include text or xml content (via parse=text|xml )
- allows you to use xpointer syntax(via '#' or xpointer() syntax) within 
href attribute
- does *not* support Cocoon's caching mechanism

cinclude transformer
- helps you serve documents with inclusions and tags in xinclude 
namespace. Thus, you can create document
with xinclude *and* cinclude tags, process it through cinclude, and 
xinclude tags will remain intact.
- allows you to specify the wrapper element of the included content, 
i.e. element=wrapper,
- allows you to wrap included content in a particular namespace: 
ns=wrapper_ns
- allows you to add prefixes to included content element tags: 
prefix=wrapper_prefix
- supports Cocoon's caching mechanism

Please cross check. Did I overlook any important points?

-- Diana


-
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: Lucene and cocoon-view

2002-06-21 Thread Piroumian Konstantin

 From: M Al-yahya [mailto:[EMAIL PROTECTED]] 
 
 Hi Lajos,
 
 At Last... problem solved :)
 
 Well here's  what I did :
 
 1. I realized that I was having the same problem as you the views
 should be inside the components and not after it.

views should be after components. Never heard of the opposite.

 2. Made sure that in the pipeline the map:transform... 
 where the view
 label is inserted was returning a mime-type text/xml -as you
 suggested-
 map:transform src=stylesheets/q.xsl mime-type=text/xml
 label=content/

The mime-type attribute is ignored in map:transform /.

 
 3. when creating the index I inserted in the base URL :
   http://localhost:8080/cocoon/myapps/home.section 
and not
   http://localhost:8080/cocoon/myapps
 4. The index was successfully created.

Maybe only the 3rd step was needed?
Can abybody from developers confirm my assumtions? Otherwise the sitemap
schema should be corrected.

Konstantin

 
 Thanks for your suggestions Lajos,
 Maha
 
 M Al-yahya wrote:
  
  Hi Lajos,
  
  Thanks for your reply.
  1. I can not find a SimpleLuceneXMLIndexerImpl in the core.log
  2. The view is not working. When I request
  http://localhost:8080/cocoon/myapps?cocoon-view=content
 I see the transformed page which I could see using :
  http://localhost:8080/cocoon/myapps
 and not the actual xml content.
  
  I think I'm having a problem with views, I've read the 
 documentations
  and looked at examples but could not figure out what is wrong here.
  
  Cheers,
  Maha
  
  Lajos Moczar wrote:
  
   Hi Maha -
  
   Do you have a message in core.log from 
 SimpleLuceneXMLIndexerImpl saying
   something about Ignoring ... ? Check that the view is working
   correctly: call 
 http://localhost:8080/cocoon/myapps?cocoon-view=content
   and make sure it is returning XML with a mime-type of 
 text/xml. If not,
   Lucene will ignore it. Of course, 
 http://localhost:8080/cocoon/myapps
   has to be a real URI.
  
   Regards,
  
   Lajos
   galatea.com
   Cocoon training, consulting  support
  
   Maha Al-Yahya wrote:
  
Hi Lajos,
Good for you, but unfourtunately I'm still having a 
 problem running the
search on my webapp. I use the sample search with 
 cocoon and input the
base URL as:
http://localhost:8080/cocoon/myapps
(Iwant cocoon to search all documents in myapps directory)
   
in myapps sub-sitemap I put the following within components:
map:views
 map:view name=content from-label=content
 map:serialize type=xml/
/map:view
map:view name=links from-position=last
 map:serialize type=links/
   
and in the pipeline section of myapps sitemap like this:
map:match pattern=*.*
  map:generate src=documents/{1}.{2}.xml/
  map transform src=stylesheets/{2}.xsl label=content/
  map:serialize/
/map:match
   
However when I click on create button, the created 
 false value turns to
true and when I see the statistics page everthing is 
 zero and If I search
for any word nothing appears. I checked the log files 
 but nothing helped.
   
Any advice or suggestions?
   
Cheers,
Maha
   
On Thu, 20 Jun 2002, Lajos Moczar wrote:
   
   
   I found my problem; just an oopsee (yes, this is a 
 technical term ;) ),
   nothing wrong with Cocoon 2.0.2. I had defined a view 
 called content
   but fat-fingered the map:views section into the 
 map:components section.
   Once I fixed that, Lucene worked like a charm.
   
   Lajos
   
   
   leo leonid wrote:
   
   
   On Thursday, June 20, 2002, at 04:12  Uhr, M Al-yahya wrote:
   
   
   Hi Leo,
   
   I'm using Cocoon's latest release cocoon 2.0.2 and 
 Tomcat 4.0.4-b3
   
   Cheers,
   Maha
   
   
   hmm... I never used the 2.0.2 release, I always used 
 the CVS version,
   and everything was fine till beginning of may
   (long after the 2.0.2 release) (On may 8 I sent my 
 first mail about this
   problem to this list.) Thats why I connected this 
 problem with 2.1-dev.
   
   Anyway, I now use the 2.0.3 branch and where view-labels within
   aggregation and indexing the docs is possible.
   But the problem exits (still or again) in the CVS HEAD branch.
   /Leo
   
   
   
   
   
   
   
   leo leonid wrote:
   
   
   On Thursday, June 20, 2002, at 02:57  Uhr, M Al-yahya wrote:
   
   
   Hello,
   
   I'm experimenting with cocoon XML search using lucene.
   
   
   You are using the the 2.1-dev version of cocoon, right?
   
   
   At
   http://localhost:8080/cocoon/search/create if I 
 input the base URL
   as it
   is :
   http://localhost:8080/cocoon/documents/index.html 
 the creation goes on
   well and the search is good. However, if I input 
 the base URL:
   http://localhost:8080/cocoon/mywebapp/index.html
   the index statistics shows everything 0 and I don't 
 see anything
   helpful
   in the logs. I think it has to do with the 
 statement The base url
   should be cocoon-view aware of content-labels 
 links, and content. 

Re: requests with document function

2002-06-21 Thread Johannes Koch

Johannes Koch wrote:
 Cocoon 2.0.2/Tomcat 4.0.1/Java1.3.1_01
 In an XSLT stylesheet I have the following template:
 
 xsl:template match=foo
   xsl:variable name=bar 
 select=document('http://www.xyz.org/bla.xml')/fasel/
   xsl:variable name=hasGrmpf select=boolean($bar/grmpf)/
   xsl:apply-templates select=$bar/grmpf/
   ...
 /xsl:template
 
 The template is called only once.
 
 According to the server log, this results in 5 GET requests for 'bla.xml':
 2 for $bar, 2 for $hasGrmpf and 1 for apply-templates.

Correction: 6 GET requests:
2 for $bar, 3 for $hasGrmpf and 1 for apply-templates.

If I change the template to
   xsl:variable name=hasGrmpf select=boolean($bar)/
(without the '/grmpf'), I have 4 requests.

I would have expected to have only one request (for the document
function). Can somebody explain the six requests?

-- 
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355


-
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: [doc] draft FAQ xinclude/cinclude

2002-06-21 Thread Vadim Gritsenko

 From: Diana Shannon [mailto:[EMAIL PROTECTED]]
 
 Q.
 What are the similarities and differences of xinclude and cinclude?
 
 A.
 
 Similarities
 - Both provides mechanisms to include content from other documents
 - Both support cocoon:/ protocol (i.e. they both use Cocoon's
resolver).
 
 xinclude transformer
 - implements the W3C XInclude spec.
 - allows you to include text or xml content (via parse=text|xml )
 - allows you to use xpointer syntax(via '#' or xpointer() syntax)
within
 href attribute
 - does *not* support Cocoon's caching mechanism

There are two implementations of cinclude:

 - CIncludeTransformer (used in samples)
 - CachingCIncludeTransformer (not used!)

xinclude has only one implementation.


Hence, better statement would be:
Cinclude does have cacheable implementation (see
CachingCIncludeTransformer), while xinclude has only non-cacheable.


 cinclude transformer
 - helps you serve documents with inclusions and tags in xinclude
 namespace. Thus, you can create document
 with xinclude *and* cinclude tags, process it through cinclude, and
 xinclude tags will remain intact.
 - allows you to specify the wrapper element of the included content,
 i.e. element=wrapper,

 - allows you to (optionally) specify namespace and prefix for the
wrapper element:
 ns=wrapper_ns prefix=wrapper_prefix

 - Has cacheable implementation.



PS In some future, we should have one IncludeTransformer with support of
both cinclude and xinclude, and configurable namespace.


Vadim


 Please cross check. Did I overlook any important points?
 
 -- Diana


-
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: Lucene and cocoon-view

2002-06-21 Thread Vadim Gritsenko

 From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
 
  From: M Al-yahya [mailto:[EMAIL PROTECTED]]
 
  Hi Lajos,
 
  At Last... problem solved :)
 
  Well here's  what I did :
 
  1. I realized that I was having the same problem as you the views
  should be inside the components and not after it.
 
 views should be after components. Never heard of the opposite.

Here goes me-too :)

 
  2. Made sure that in the pipeline the map:transform...
  where the view
  label is inserted was returning a mime-type text/xml -as you
  suggested-
  map:transform src=stylesheets/q.xsl mime-type=text/xml
  label=content/
 
 The mime-type attribute is ignored in map:transform /.

And it even does not make sense to have it here.

 
Vadim


  3. when creating the index I inserted in the base URL :
  http://localhost:8080/cocoon/myapps/home.section
 and not
  http://localhost:8080/cocoon/myapps
  4. The index was successfully created.
 
 Maybe only the 3rd step was needed?
 Can abybody from developers confirm my assumtions? Otherwise the
sitemap
 schema should be corrected.
 
 Konstantin
 
...


-
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: Lucene and cocoon-view

2002-06-21 Thread Ugo Cei

Unfortunately, it looks like views are broken when using aggregations, 
even in 2.0.3-dev. Can anyone confirm this?

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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: Lucene and cocoon-view

2002-06-21 Thread Vadim Gritsenko

 From: Ugo Cei [mailto:[EMAIL PROTECTED]]
 
 Unfortunately, it looks like views are broken when using aggregations,
 even in 2.0.3-dev. Can anyone confirm this?

Huh?

I mean, what's broken in 2.0.3? Short test case, please.

Vadim


   Ugo
 
 --
 Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
 P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
 Phone: +39.0382.525100 - 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]




SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Bertrand Delacretaz

Hi SQLers,

If I understand the SQLTransformer code correctly, this construct is not 
supported:

execute-query

  queryselect A/query

  execute-query
queryselect B using values from select A in where clause/query
  execute-query

  !-- is a second one here supported? --
  execute-query
queryselect C using values from select A in where clause/query
  execute-query

execute-query

Can someone confirm this, and is there a workaround other than chaining 
multiple SQLTransformers with XSLT to generate sub-queries?

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.






-
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]




How can I configure Cocoon2 to run my JSP's ?

2002-06-21 Thread tolga tunca

I am using  Tomcat4.0.1 , Cocoon 2.0.2 . I have my
JSP's, they generate valid XML's. But I couldn't see
them working with C2.
I tried the JSP Generator and JSP Reader examples of
C2 but they didn't work too.
I put the error message below, maybe it will be
helpful.
Any help would be appreciated.
 
 
--
--
An error occurred
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:
Exception JspGenerator.generate()
More precisely:
org.apache.cocoon.ProcessingException: Exception
JspGenerator.generate(): java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl 3 P 
--
 
extra info
 
Original exception : java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:103)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:138)
at
org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:324)
at
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineImpl.java:121)
at
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:116)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
at
org.apache.cocoon.www.sitemap_xmap.matchN10790(/usr/local/tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:9472)
at
org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3667)
at
org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3097)
at
org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
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:998)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
--
 
stacktrace
 
org.apache.cocoon.ProcessingException: Exception

RE: How can I configure Cocoon2 to run my JSP's ?

2002-06-21 Thread Piroumian Konstantin

I don't have problems with the examples in 2.0.3 and Tomcat 4.0.1. They work
OOTB.

Something's wrong with your JAXP libs. Check, that you don't have one more
xml-api packages somewhere in your classpath before xml-apis.jar from
Cocoon. (A hint: check batik-**.jar).

I can check if your JSPs work here if you send me one of them.

(I can check with the 2.0.3 version only)

--
Konstantin Piroumian 
[EMAIL PROTECTED]


 -Original Message-
 From: tolga tunca [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, June 21, 2002 5:50 PM
 To: [EMAIL PROTECTED]
 Subject: How can I configure Cocoon2 to run my JSP's ?
 
 
 I am using  Tomcat4.0.1 , Cocoon 2.0.2 . I have my
 JSP's, they generate valid XML's. But I couldn't see
 them working with C2.
 I tried the JSP Generator and JSP Reader examples of
 C2 but they didn't work too.
 I put the error message below, maybe it will be
 helpful.
 Any help would be appreciated.
  
  
 --
 --
 An error occurred
 The org.apache.cocoon.www.sitemap_xmap notifies that
 org.apache.cocoon.ProcessingException says:
 Exception JspGenerator.generate()
 More precisely:
 org.apache.cocoon.ProcessingException: Exception
 JspGenerator.generate(): java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl 3 P 
 --
  
 extra info
  
 Original exception : java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
 at
 javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentB
 uilderFactory.java:103)
 at
 org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUt
 ils.java:183)
 at
 org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(
 TldLocationsCache.java:165)
 at
 org.apache.jasper.compiler.TldLocationsCache.init(TldLocatio
 nsCache.java:138)
 at
 org.apache.jasper.EmbededServletOptions.init(EmbededServletO
 ptions.java:324)
 at
 org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
 at
 org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPE
 ngineImpl.java:121)
 at
 org.apache.cocoon.generation.JspGenerator.generate(JspGenerato
 r.java:116)
 at
 org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
 cess(CachingEventPipeline.java:251)
 at
 org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
 ocess(CachingStreamPipeline.java:399)
 at
 org.apache.cocoon.www.sitemap_xmap.matchN10790(/usr/local/tomc
 at/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/si
 temap_xmap.java:9472)
 at
 org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/w
 ork/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitema
 p_xmap.java:3667)
 at
 org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/w
 ork/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitema
 p_xmap.java:3097)
 at
 org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
 at
 org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
 org.apache.cocoon.sitemap.SitemapManager.process(SitemapManage
 r.java:154)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at
 org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
 java:998)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:201)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
 at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2344)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:164)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:462)
 at
 

Re: Lucene and cocoon-view

2002-06-21 Thread leo leonid


On Friday, June 21, 2002, at 03:46  Uhr, Vadim Gritsenko wrote:

 From: Ugo Cei [mailto:[EMAIL PROTECTED]]

 Unfortunately, it looks like views are broken when using aggregations,
 even in 2.0.3-dev. Can anyone confirm this?


no, works in 2.0.3. but doesn't in 2.1.
/Leo



 Huh?

 I mean, what's broken in 2.0.3? Short test case, please.

 Vadim


  Ugo

 --
 Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
 P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
 Phone: +39.0382.525100 - 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]




-
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: [doc] draft FAQ xinclude/cinclude

2002-06-21 Thread Lai, Harry

Hi Diana,

This looks like a great summary to me!  Just FYI, I also found an older post
indicating that CInclude has better performance than XInclude (mentioned
near the bottom of the post).

http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=100339923211176w=2

If this is true, it'd probably also be worth adding to the FAQ.  Thanks!

Harry

-Original Message-
From: Diana Shannon [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 7:13 AM
To: [EMAIL PROTECTED]
Subject: [doc] draft FAQ xinclude/cinclude


Q.
What are the similarities and differences of xinclude and cinclude?

A.

Similarities
- Both provides mechanisms to include content from other documents
- Both support cocoon:/ protocol (i.e. they both use Cocoon's resolver).

xinclude transformer
- implements the W3C XInclude spec.
- allows you to include text or xml content (via parse=text|xml )
- allows you to use xpointer syntax(via '#' or xpointer() syntax) within 
href attribute
- does *not* support Cocoon's caching mechanism

cinclude transformer
- helps you serve documents with inclusions and tags in xinclude 
namespace. Thus, you can create document
with xinclude *and* cinclude tags, process it through cinclude, and 
xinclude tags will remain intact.
- allows you to specify the wrapper element of the included content, 
i.e. element=wrapper,
- allows you to wrap included content in a particular namespace: 
ns=wrapper_ns
- allows you to add prefixes to included content element tags: 
prefix=wrapper_prefix
- supports Cocoon's caching mechanism

Please cross check. Did I overlook any important points?

-- Diana


-
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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Argyn Kuketayev

it doesn't support two nested queries on the same level of nesting, as far
as I remember after looking at C2.0.1 sources. I don't think it's fixed.

Workaround is:
1. modify source codes
2. use XSP

I use XSP with ESQL

 Can someone confirm this, and is there a workaround other 
 than chaining 
 multiple SQLTransformers with XSLT to generate sub-queries?

-
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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Stephen Ng

After flirting briefly with SQLTransformer, I'm using XSP/ESQL--they
work great.

A couple alternatives might be to create separate pipelines with
SQLTransformer and aggregate them in your sitemap, or to build a single
large union query.

 -Original Message-
 From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, June 21, 2002 10:28 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: SQLTransformer, multiple execute-query siblings?
 
 
 it doesn't support two nested queries on the same level of 
 nesting, as far as I remember after looking at C2.0.1 
 sources. I don't think it's fixed.
 
 Workaround is:
 1. modify source codes
 2. use XSP
 
 I use XSP with ESQL
 
  Can someone confirm this, and is there a workaround other
  than chaining 
  multiple SQLTransformers with XSLT to generate sub-queries?
 
 -
 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: Lucene and cocoon-view

2002-06-21 Thread Ugo Cei

Vadim Gritsenko wrote:
From: Ugo Cei [mailto:[EMAIL PROTECTED]]

Unfortunately, it looks like views are broken when using aggregations,
even in 2.0.3-dev. Can anyone confirm this?
 
 
 Huh?
 
 I mean, what's broken in 2.0.3? Short test case, please.

  map:views
   map:view from-label=content name=content
map:serialize type=xml/
   /map:view
  /map:views

  ...

 map:match pattern=index
   map:aggregate element=whatever
 map:part src=somepart/
 map:part src=anotherpart/
   /map:aggregate
   map:transform src=stylesheets/sheet.xsl/
   map:serialize/
 /map:match

  ...

When I request index?cocoon-view=content I should get the result of 
the aggregation before the transformation, right? What I get instead is 
something that looks like a partial aggregation, but transformed.

This is using today's 2.0.3 CVS branch.

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Jens Lorenz

- Original Message -
From: Argyn Kuketayev [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 4:27 PM
Subject: RE: SQLTransformer, multiple execute-query siblings?


 it doesn't support two nested queries on the same level of nesting, as
far
 as I remember after looking at C2.0.1 sources. I don't think it's fixed.

 Workaround is:
 1. modify source codes

The problem is, that it's not that easy. Transformer gets fed
SAX events and according to this spits out SAX events.

If you want to reference the produced output you would have to
remember the output somehow which would make this beast far
more complex than it already is.

If you really wanna do this, go ahead, but expect some work
ahead (SQLTransformer is kind of an orphaned anyway).
Otherwise go for XSP/ESQL.

 2. use XSP

 I use XSP with ESQL

  Can someone confirm this, and is there a workaround other
  than chaining
  multiple SQLTransformers with XSLT to generate sub-queries?

Regards,


Jens

--

jens.lorenz at interface-projects dot de

interface:projects GmbH \\|//
Tolkewitzer Strasse 49  (o o)
01277 Dresden   oOOo~(_)~oOOo
Germany


-
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: Lucene and cocoon-view

2002-06-21 Thread leo leonid


On Friday, June 21, 2002, at 04:34  Uhr, Ugo Cei wrote:

 Vadim Gritsenko wrote:
 From: Ugo Cei [mailto:[EMAIL PROTECTED]]

 Unfortunately, it looks like views are broken when using aggregations,
 even in 2.0.3-dev. Can anyone confirm this?
 Huh?
 I mean, what's broken in 2.0.3? Short test case, please.

  map:views
   map:view from-label=content name=content
map:serialize type=xml/
   /map:view
  /map:views

  ...

 map:match pattern=index
   map:aggregate element=whatever
 map:part src=somepart/
 map:part src=anotherpart/
   /map:aggregate
   map:transform src=stylesheets/sheet.xsl/
   map:serialize/
 /map:match

  ...

 When I request index?cocoon-view=content I should get the result of 
 the aggregation before the transformation, right?

no, you missed to add a label=content to somepart or anotherpart.
/Leo


 What I get instead is something that looks like a partial aggregation, 
 but transformed.

 This is using today's 2.0.3 CVS branch.

   Ugo

 -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
 P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
 Phone: +39.0382.525100 - 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]




-
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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Argyn Kuketayev

maybe I'm wrong, but it didn't look very difficult to me at that time (two
months ago). The issue was with stack of queries: whenever the new
/esql:execute-query tag was ended, transformer would go up in the stack.
So, if there was a second nested query, then the tranformer would mess up
the stack. I don't remember all the details though

 -Original Message-
 From: Jens Lorenz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 10:40 AM
 To: [EMAIL PROTECTED]
 Subject: Re: SQLTransformer, multiple execute-query siblings?
 
 The problem is, that it's not that easy. Transformer gets fed
 SAX events and according to this spits out SAX events.
 
 If you want to reference the produced output you would have to
 remember the output somehow which would make this beast far
 more complex than it already is.
 
 If you really wanna do this, go ahead, but expect some work
 ahead (SQLTransformer is kind of an orphaned anyway).
 Otherwise go for XSP/ESQL.

-
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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Luca Morandini

Bertrand,

could, just possibly, a sub-select fit the bill ?

something like:

SELECT Name
FROM Employee
WHERE Ssn IN (
SELECT DISTINCT PMSsn
FROM Projects
WHERE Status = 'open'
)

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 3:48 PM
 To: [EMAIL PROTECTED]
 Subject: SQLTransformer, multiple execute-query siblings?


 Hi SQLers,

 If I understand the SQLTransformer code correctly, this construct is not
 supported:

 execute-query

   queryselect A/query

   execute-query
 queryselect B using values from select A in where clause/query
   execute-query

   !-- is a second one here supported? --
   execute-query
 queryselect C using values from select A in where clause/query
   execute-query

 execute-query

 Can someone confirm this, and is there a workaround other than chaining
 multiple SQLTransformers with XSLT to generate sub-queries?

 --
  Bertrand Delacrétaz (codeconsult.ch, jfor.org)

  buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
  disclaimer: eternity is very long. mostly towards the end. get ready.






 -
 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: Lucene and cocoon-view

2002-06-21 Thread Ugo Cei

leo leonid wrote:

 When I request index?cocoon-view=content I should get the result of 
 the aggregation before the transformation, right?
 
 
 no, you missed to add a label=content to somepart or anotherpart.
 /Leo

The label is associated with all of the generators in the map:components 
section:

   map:generator label=content,data ...

And it works if I don't use aggregation. Do you mean that I must 
manually declare the label if using map:part ?

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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: [doc] draft FAQ xinclude/cinclude

2002-06-21 Thread Diana Shannon


On Friday, June 21, 2002, at 10:25  AM, Lai, Harry wrote:

Thanks Harry.

 Hi Diana,

 This looks like a great summary to me!  Just FYI, I also found an older 
 post
 indicating that CInclude has better performance than XInclude (mentioned
 near the bottom of the post).

 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=100339923211176w=2

 If this is true, it'd probably also be worth adding to the FAQ.  Thanks!

This email (dated 2001-10-18) suggests using cinclude -- not xinclude -- 
when you are including an entire document because it is faster.

Question: Is this performance gain a result of cinclude's caching 
capability? If so, then it's only faster if you use 
CachingCIncludeTransformer, correct?

Diana



-
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: Lucene and cocoon-view

2002-06-21 Thread leo leonid


On Friday, June 21, 2002, at 04:57  Uhr, Ugo Cei wrote:

 leo leonid wrote:

 When I request index?cocoon-view=content I should get the result of 
 the aggregation before the transformation, right?
 no, you missed to add a label=content to somepart or anotherpart.
 /Leo

 The label is associated with all of the generators in the 
 map:components section:

   map:generator label=content,data ...

 And it works if I don't use aggregation. Do you mean that I must 
 manually declare the label if using map:part ?


yes, or add the label to the map:aggregate element, this will work, too.
/Leo


   Ugo

 -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
 P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
 Phone: +39.0382.525100 - 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]




-
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: Cocoon 2.0.3 problems...

2002-06-21 Thread Per Kreipke

Stuart,

  I'm using 2.0.3 CVS all the time, never seen any NPE of this kind. Last
  time I ran C203 with T404 was yesterday, and still, no NPE.
 
 
  Vadim

 This sounds to me like this fault:

   http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9701

 I'm fairly convinced there is something platform / VM specific going on
 with 2.0.3, probably in the Excalibur classes.  What platforms / VMs are
 you all running on?

 Stuart.

Could be. I'd seen that note before but wasn't on the same (I'm win2k, JDK
1.3.1) platform. I agree that the problem seems to be the excalibur classes
but in my case I'm wondering if it's a JAXP problem. Perhaps I need some
system properties I don't know about.

Vadim, what JDK are you using when you say that things are running for you?

Per


-
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]




where can i download cocoon2.0.3 ?

2002-06-21 Thread tolga tunca

i can't find cocoon2.0.3 in the cocoon web site.
latest distribution is cocoon2.0.2 in the downloads section.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-
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: Lucene and cocoon-view

2002-06-21 Thread Vadim Gritsenko

 From: Ugo Cei [mailto:[EMAIL PROTECTED]]
 
 leo leonid wrote:
 
  When I request index?cocoon-view=content I should get the result
of
  the aggregation before the transformation, right?
 
  no, you missed to add a label=content to somepart or anotherpart.

Or map:aggregate itself.


  /Leo
 
 The label is associated with all of the generators in the
map:components
 section:

Labels are *not* assigned automagically, thus, Aggregator generator does
*not* have *any* label by default.

Use either:

map:aggregate element=site
 map:part src=cocoon:/{1}/book-{1}/{2}.xml/
 map:part src=cocoon:/body-{1}/{2}.xml label=content/
/map:aggregate

Or:

map:aggregate element=site label=content
 map:part src=cocoon:/{1}/book-{1}/{2}.xml/
 map:part src=cocoon:/body-{1}/{2}.xml/
/map:aggregate


Vadim



map:generator label=content,data ...
 
 And it works if I don't use aggregation. Do you mean that I must
 manually declare the label if using map:part ?
 
   Ugo
 
 --
 Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
 P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
 Phone: +39.0382.525100 - 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: Cocoon 2.0.3 problems...

2002-06-21 Thread Vadim Gritsenko

 From: Per Kreipke [mailto:[EMAIL PROTECTED]]
 
 Stuart,
 
   I'm using 2.0.3 CVS all the time, never seen any NPE of this kind.
Last
   time I ran C203 with T404 was yesterday, and still, no NPE.
  
  
   Vadim
 
  This sounds to me like this fault:
 
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9701
 
  I'm fairly convinced there is something platform / VM specific going
on
  with 2.0.3, probably in the Excalibur classes.  What platforms / VMs
are
  you all running on?
 
  Stuart.
 
 Could be. I'd seen that note before but wasn't on the same (I'm win2k,
JDK
 1.3.1) platform. I agree that the problem seems to be the excalibur
classes
 but in my case I'm wondering if it's a JAXP problem. Perhaps I need
some
 system properties I don't know about.
 
 Vadim, what JDK are you using when you say that things are running for
you?


java version 1.3.1
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)


Win2k.

Vadim

 Per


-
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: Cocoon 2.0.3 problems...

2002-06-21 Thread Per Kreipke

Or, is this a problem with the classloader and JAXP (the same problem that
was fixed in 2.1)? Details:

http://marc.theaimsgroup.com/?l=xml-cocoon-devm=102380326124346w=2

Should this be moved back into 2.0.3?


 Stuart,

   I'm using 2.0.3 CVS all the time, never seen any NPE of this
 kind. Last
   time I ran C203 with T404 was yesterday, and still, no NPE.
  
  
   Vadim
 
  This sounds to me like this fault:
 
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9701
 
  I'm fairly convinced there is something platform / VM specific going on
  with 2.0.3, probably in the Excalibur classes.  What platforms / VMs are
  you all running on?
 
  Stuart.

 Could be. I'd seen that note before but wasn't on the same (I'm win2k, JDK
 1.3.1) platform. I agree that the problem seems to be the
 excalibur classes
 but in my case I'm wondering if it's a JAXP problem. Perhaps I need some
 system properties I don't know about.

 Vadim, what JDK are you using when you say that things are
 running for you?

 Per


 -
 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: Cocoon 2.0.3 problems...

2002-06-21 Thread Per Kreipke

Vadim,

Thanks.

 java version 1.3.1
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
 Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)


 Win2k.

Did you have to do anything to make Excalibur pick up the JAXP parser?
E.g. -Dblahblah on the execution line or somesuch?

Here's what I think you've told me so far:

- you've built 2.0.3 as it is in CVS (any options?)
- you're using 2.0.3 with the JARs from CVS
- you're using TC4.0.4 as is
- you're on win2k

We couldn't be more similar :-) I'm stuck and have no idea which direction
to go from here. I'm not really interested in figuring out how to build my
own Excalibur, etc.

Per


-
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: where can i download cocoon2.0.3 ?

2002-06-21 Thread Ricardo Trindade

They are refering to CVS or daily snapshot.

-Original Message-
From: tolga tunca [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 21 de Junho de 2002 16:25
To: [EMAIL PROTECTED]
Subject: where can i download cocoon2.0.3 ?


i can't find cocoon2.0.3 in the cocoon web site.
latest distribution is cocoon2.0.2 in the downloads section.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-
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: Cocoon 2.0.3 problems...

2002-06-21 Thread Vadim Gritsenko

 From: Per Kreipke [mailto:[EMAIL PROTECTED]]
 
 Did you have to do anything to make Excalibur pick up the JAXP parser?
 E.g. -Dblahblah on the execution line or somesuch?

No, never, see install doc.

 Here's what I think you've told me so far:
 
 - you've built 2.0.3 as it is in CVS (any options?)

cvs -q -d :pserver:[EMAIL PROTECTED]:/home/cvspublic -z9 checkout
-r cocoon_2_0_3_branch -d xml-cocoon203 xml-cocoon2

build -Dinclude.webapp.libs=yes webapp


 - you're using 2.0.3 with the JARs from CVS

See line above.

 - you're using TC4.0.4 as is

Context path=/cocoon
docBase=C:/Apache/xml-cocoon203/build/cocoon/webapp debug=0
reloadable=true/

 - you're on win2k

server edition, but it does not matter.


 We couldn't be more similar :-) I'm stuck and have no idea which
direction
 to go from here.

rm -rf /
:)

If you follow the letter of install doc everything should go ok.

Vadim

 I'm not really interested in figuring out how to build my
 own Excalibur, etc.
 
 Per


-
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: where can i download cocoon2.0.3 ?

2002-06-21 Thread Vadim Gritsenko

 From: Ricardo Trindade [mailto:[EMAIL PROTECTED]]
 
 They are refering to CVS 

*branch*.

See http://cvs.apache.org/


 or daily snapshot.

Snapshot is a 2.1-alpha.

Vadim


 -Original Message-
 From: tolga tunca [mailto:[EMAIL PROTECTED]]
 Sent: sexta-feira, 21 de Junho de 2002 16:25
 To: [EMAIL PROTECTED]
 Subject: where can i download cocoon2.0.3 ?
 
 
 i can't find cocoon2.0.3 in the cocoon web site.
 latest distribution is cocoon2.0.2 in the downloads section.
 


-
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: Cocoon 2.0.3 problems...

2002-06-21 Thread Vadim Gritsenko

Per,

Forgot to tell you one thing every newbie should do...

   DO THIS EVERY TIME YOU GET NEW VERSION OR UPDATE CVS

1) rm -rf $COCOON_HOME/build/cocoon
2) rm -rf $TOMCAT_HOME/work/cocoon


Vadim

 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 
  From: Per Kreipke [mailto:[EMAIL PROTECTED]]
 
  Did you have to do anything to make Excalibur pick up the JAXP
parser?
  E.g. -Dblahblah on the execution line or somesuch?
 
 No, never, see install doc.
 
  Here's what I think you've told me so far:
 
  - you've built 2.0.3 as it is in CVS (any options?)
 
 cvs -q -d :pserver:[EMAIL PROTECTED]:/home/cvspublic -z9 checkout
 -r cocoon_2_0_3_branch -d xml-cocoon203 xml-cocoon2
 
 build -Dinclude.webapp.libs=yes webapp
 
 
  - you're using 2.0.3 with the JARs from CVS
 
 See line above.
 
  - you're using TC4.0.4 as is
 
 Context path=/cocoon
 docBase=C:/Apache/xml-cocoon203/build/cocoon/webapp debug=0
 reloadable=true/
 
  - you're on win2k
 
 server edition, but it does not matter.
 
 
  We couldn't be more similar :-) I'm stuck and have no idea which
 direction
  to go from here.
 
 rm -rf /
 :)
 
 If you follow the letter of install doc everything should go ok.
 
 Vadim
 
  I'm not really interested in figuring out how to build my
  own Excalibur, etc.
 
  Per


-
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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Jens Lorenz

- Original Message -
From: Jens Lorenz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 4:40 PM
Subject: Re: SQLTransformer, multiple execute-query siblings?


 From: Argyn Kuketayev [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 21, 2002 4:27 PM
 Subject: RE: SQLTransformer, multiple execute-query siblings?


  it doesn't support two nested queries on the same level of nesting, as
 far
  as I remember after looking at C2.0.1 sources. I don't think it's
fixed.
 
  Workaround is:
  1. modify source codes

 The problem is, that it's not that easy. Transformer gets fed
 SAX events and according to this spits out SAX events.

 If you want to reference the produced output you would have to
 remember the output somehow which would make this beast far
 more complex than it already is.

 If you really wanna do this, go ahead, but expect some work
 ahead (SQLTransformer is kind of an orphaned anyway).
 Otherwise go for XSP/ESQL.


I've to correct me on this one. My short looks into the source
were obviously not enough ...

This example is taken from
http://xml.apache.org/cocoon/userdocs/transformers/sql-transformer.html

example

  page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
 query name=department 
  select id,name from department_table
 /query
 execute-query
  query name=employee
   select id,name from employee_table where department_id =
 ancestor-value  sql:name=id sql:level=1/
  /query
 /execute-query
/execute-query
  /page

/example

So according to the user docs this *is* possible. (Haven't testet it
though)


Regards,


Jens

--

jens.lorenz at interface-projects dot de

interface:projects GmbH \\|//
Tolkewitzer Strasse 49  (o o)
01277 Dresden   oOOo~(_)~oOOo
Germany


-
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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Luca Morandini

Jens,

I beg your pardon, but, what's the use of having such nested queries ?

In this sample, wouldn't:

select id, name
from employee_table
where department_id in (
select id
from department_table
)

be simpler ? Not to mention that a simple join would do this sample quite as
well (and faster too).

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: Jens Lorenz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 6:19 PM
 To: [EMAIL PROTECTED]
 Subject: Re: SQLTransformer, multiple execute-query siblings?


 - Original Message -
 From: Jens Lorenz [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 21, 2002 4:40 PM
 Subject: Re: SQLTransformer, multiple execute-query siblings?


  From: Argyn Kuketayev [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, June 21, 2002 4:27 PM
  Subject: RE: SQLTransformer, multiple execute-query siblings?
 
 
   it doesn't support two nested queries on the same level of nesting, as
  far
   as I remember after looking at C2.0.1 sources. I don't think it's
 fixed.
  
   Workaround is:
   1. modify source codes
 
  The problem is, that it's not that easy. Transformer gets fed
  SAX events and according to this spits out SAX events.
 
  If you want to reference the produced output you would have to
  remember the output somehow which would make this beast far
  more complex than it already is.
 
  If you really wanna do this, go ahead, but expect some work
  ahead (SQLTransformer is kind of an orphaned anyway).
  Otherwise go for XSP/ESQL.
 

 I've to correct me on this one. My short looks into the source
 were obviously not enough ...

 This example is taken from
 http://xml.apache.org/cocoon/userdocs/transformers/sql-transformer.html

 example

   page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
 execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
  query name=department 
   select id,name from department_table
  /query
  execute-query
   query name=employee
select id,name from employee_table where department_id =
  ancestor-value  sql:name=id sql:level=1/
   /query
  /execute-query
 /execute-query
   /page

 /example

 So according to the user docs this *is* possible. (Haven't testet it
 though)


 Regards,


 Jens

 --

 jens.lorenz at interface-projects dot de

 interface:projects GmbH \\|//
 Tolkewitzer Strasse 49  (o o)
 01277 Dresden   oOOo~(_)~oOOo
 Germany


 -
 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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Argyn Kuketayev

Your example shows that it's possible to have one nested query inside
another one. But it doesn't show that you may have sibling nested queries.

as far as I remember, you can have only one child (nested query), but that
child can have one child too and so on. you can't have this:
  page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
 query name=department 
  select id,name from department_table
 /query
 execute-query
  query name=employee
   select id,name from employee_table where department_id =
 ancestor-value  sql:name=id sql:level=1/
  /query
 /execute-query
 execute-query
  query name=employee1
   select id,name from employee_table where department_id =
 ancestor-value  sql:name=id sql:level=1/
  /query
 /execute-query
/execute-query
  /page

 I've to correct me on this one. My short looks into the source
 were obviously not enough ...
 
 This example is taken from
 http://xml.apache.org/cocoon/userdocs/transformers/sql-transfo
rmer.html

example

  page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
 query name=department 
  select id,name from department_table
 /query
 execute-query
  query name=employee
   select id,name from employee_table where department_id =
 ancestor-value  sql:name=id sql:level=1/
  /query
 /execute-query
/execute-query
  /page

/example

So according to the user docs this *is* possible. (Haven't testet it
though)


Regards,


-
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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Argyn Kuketayev

suppose you want to have this xml:

P
row1
p-name/p-address/
  c1
row1c1-name//row1
row2..
  /c1
  c2
row1c2-name//row1
row2..
  /c2
/row1
row2
.

/P


here, P-parent, c1, c2 - children
 -Original Message-
 From: Luca Morandini [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 12:49 PM
 To: [EMAIL PROTECTED]
 Subject: RE: SQLTransformer, multiple execute-query siblings?
 
 
 Jens,
 
 I beg your pardon, but, what's the use of having such nested queries ?
 

-
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: SQLTransformer, multiple execute-query siblings?

2002-06-21 Thread Luca Morandini

Argyn,

oh, I see...

In such a case I'd make a nice XSL to convert the query results to the
format I like (I've posted such an XSL some time ago).

Anyway, I can see the rationale. The point is that SQL produces rowset
(inherently  NOT hierarchycal), while XML is strongly hierarchycal.

I presume there is scope for making a Transformer, which would make
hierarchycal rowsets from flat ones... anyone interested ?

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 6:56 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: SQLTransformer, multiple execute-query siblings?


 suppose you want to have this xml:

 P
 row1
 p-name/p-address/
   c1
 row1c1-name//row1
 row2..
   /c1
   c2
 row1c2-name//row1
 row2..
   /c2
 /row1
 row2
 .

 /P


 here, P-parent, c1, c2 - children
  -Original Message-
  From: Luca Morandini [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 21, 2002 12:49 PM
  To: [EMAIL PROTECTED]
  Subject: RE: SQLTransformer, multiple execute-query siblings?
 
 
  Jens,
 
  I beg your pardon, but, what's the use of having such nested queries ?
 

 -
 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]




How can I configure Cocoon2 to run my JSP's ?

2002-06-21 Thread tolga tunca

I am using  Tomcat 4.0.1 , Cocoon 2.0.2 . 
I have my JSP's, they generate valid XML's. But I
couldn't see them working with C2.
I tried the JSP Generator and JSP Reader examples of
C2 but they didn't work too.
I put the error message below, maybe it will be
helpful.
Any help would be appreciated.
  
  
--
--
 An error occurred
 The org.apache.cocoon.www.sitemap_xmap notifies that
 org.apache.cocoon.ProcessingException says:
 Exception JspGenerator.generate()
 More precisely:
 org.apache.cocoon.ProcessingException: Exception
 JspGenerator.generate():
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl 3
 
 --
  
 extra info
  
 Original exception : java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
 at

javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:103)
 at

org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
 at

org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165)
 at

org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:138)
 at

org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:324)
 at

org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
 at

org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineImpl.java:121)
 at

org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:116)
 at

org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251)
 at

org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
 at

org.apache.cocoon.www.sitemap_xmap.matchN10790(/usr/local/tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:9472)
 at

org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3667)
 at

org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3097)
 at

org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
 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:998)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at 

xsl:message in C2

2002-06-21 Thread gorillacommunications

Hi All,

Where does the output of xsl:message go in C2/Tomcat4.0.3/Win2K?
In C1 it went to the tomcat console window.

Thanks,
Leona




-
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: Cocoon 2.0.3 problems...

2002-06-21 Thread Per Kreipke

Finally :-)

 Forgot to tell you one thing every newbie should do...

DO THIS EVERY TIME YOU GET NEW VERSION OR UPDATE CVS

 1) rm -rf $COCOON_HOME/build/cocoon
 2) rm -rf $TOMCAT_HOME/work/cocoon

Yep, did those for the Nth time.

Then I decided to get the latest 1.3.X JDK and see if that helped and that
did it. I'm now using:

- JDK 1.3.1_03
- Tomcat 4.0.4 (release)
- Cocoon 2.0.3 (branch)

After install, cleaned the dirs mentioned above, rebuilt Cocoon

build.bat -Dinclude.webapp.libs=yes webapp-local

and the startup errors are gone.

I hope that this could solve other people's problems with bug # 9701 too.

Per


-
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: Help on displaying both image and content in one output

2002-06-21 Thread Bert Van Kets

At 23:49 20/06/2002 +0200, you wrote:

Sreenivasan N. wrote:
hi all
I would like to display my output with a image and content. Basically i 
would like to give user output with a chart using svg2jpg serializer and 
html output using an XSP taking data from database.
Is it possible in cocoon..?
Can anyone help me in this

Look at the samples, there is an example of a Cocoon start page done
with svg parts.

I would just like to add this:
if you add an img tag in your html page the browser will see it and 
request the image.  This request is captured by Cocoon and the image is 
served.  Where Cocoon gets the image is up to you and teh sitemap.  You can 
use a reader to server a file from disk or a pipeline to generate an image 
using svg2jpg.  Don't use bitmap generation when it's not really 
necessary.  svg2jpg is slow.  Check out the non-cocoon xml.apache sites 
(ex. Xerxes site).  Their menu images are generated using Cocoon svg2jpg 
transformer.  These menu's appear a lot slower than the Cocoon menu.  You 
could also get hold of Cocoon v2.0.0 which still uses that menu and check 
it out.
Separating generated and read images is simply a matter of creating the 
right matchers in the right order.

example:

map:match pattern=images/genrate-*.jpg
   ...image generating generator, transformers and serializer
/map:match

map:match pattern=images/*.jpg
   map:read src=images/{1}.jpg/
/map:match

These two pipelines will generate images if you add a img 
src=images/generate-[image].jpg tag to a html page and serve from disk 
when the generate- part is omitted.  Note that the order of the pipelines 
is very important.

HTH,
Bert



--
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-



-
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: using frames

2002-06-21 Thread Bert Van Kets

If you call myhomepagemenu and myhomepagemain, do you get some content?  If 
you don't, you should check you xsl files if they are correct and give you 
any content.

Bert

At 21:02 21/06/2002 +0200, you wrote:
hi!

i want to use frames in my hompage - so i did this.

in my index.xsp --

frameset cols=200,200
 frame src=myhomepagemenu name=menu/
 frame src=myhomepagemain name=main/
/frameset




in my sitemap ---

map:match pattern=myhomepage
map:generate src=myhomepage/index.xsp type=serverpages/
map:transform src=myhomepage/xsl2html.xsl type=xslt/
  map:serialize type=html/
/map:match

map:match pattern=myhomepagemain
map:generate src=myhomepage/main.xsp type=serverpages/
map:transform src=myhomepage/xsl2html.xsl type=xslt/
  map:serialize type=html/
/map:match

   and the same for myhomepagemenu


but i think, that myhomepagemain and myhomepagemenu never loading.


what did i wrong?

regards, chris


-
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: Cocoon 2.0.3 problems...

2002-06-21 Thread Per Kreipke

P.s. Thank you, Vadim et al, for your help!

-
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:

2002-06-21 Thread Geoff Howard

Looks like you're using WebSphere?  I wonder if there is a bug/conflict with
the error handling process when run on WebSphere.  Are you testing the error
handling, or are there two problems here - one that your pipeline is
throwing an error and the other that the error handling isn't working?

Is it possible to run the same setup on Tomcat for a test?  Can you provide
the relevant sitemap portions, including the error handling pipeline?

Geoff Howard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 11:43 AM
To: [EMAIL PROTECTED]
Subject: Re: 



Can anyone enlighten me as to how I can fix the following Exception?

We are trying to run and duplicate some of the examples and are recieving
this.

Thanks,
Adam
- Forwarded by Adam Waldal/SHV/eFunds on 06/18/02 10:37 AM -
 

  K Ramesh@INEFUNDS

   To:  Adam
Waldal/SHV/eFunds@EFUNDS 
  06/18/02 10:43 AMcc:

   Fax to:

   Subject: Re: (Document link:
Adam Waldal)  
 




Here it is

Error page exception
The server cannot use the error page specified for your application to
handle the Original Exception printed below. Please see the Error Page
Exception below for a description of the problem with the specified error
page.

Original Exception:
Error Message: [Cocoon2] reported an error
Error Code: 404
Target Servlet: Cocoon2
Error Stack:
com.ibm.servlet.engine.webapp.WebAppErrorReport: [Cocoon2] reported an
error
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:85)


 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:68)


 at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1024)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)


 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.
_service(StrictLifecycleServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)


 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)


 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)


 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)


 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)


 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)


 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)


 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)


 at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:184)


 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)


 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:122)


 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)


 at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)


 at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)


 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
 at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)



Error Page Exception:
Error Message: OutputStream already obtained
Error Code: 0
Target Servlet: null
Error Stack:
java.lang.IllegalStateException: OutputStream already obtained
 at
com.ibm.servlet.engine.srt.SRTServletResponse.getWriter(SRTServletResponse.j
ava:316)


 at
com.ibm.servlet.engine.webapp.HttpServletResponseProxy.getWriter(HttpServlet
ResponseProxy.java:101)


 at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:617)
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:91)


 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:68)


 at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1024)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)


 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.
_service(StrictLifecycleServlet.java:167)
 at