Re: Processing XSL dynamically created with XSLT

2002-02-06 Thread Ruud Diterwich








One difference with the sub site-map is
that it uses only 1 pipeline. Indeed, it turns out, that when I put both map:match elements in one
pipeline, it does work. Is this correct behaviour? Should
aggregation be used to combine multiple pipelines?



Ruud Diterwich





-Original Message-
From: Ruud Diterwich
[mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 04, 2002 09:43
To: '[EMAIL PROTECTED]'
Subject: Re: Processing XSL
dynamically created with XSLT 



 Hi from a cocoon-users newbie -- Is it possible to use Cocoon to generate an XSL stylesheet with an XSLT  (not XSP), and reapply this dynamically generated stylesheet to the  source document? I'm not talking about normal stylesheet chaining; in this case, the  second stylesheet would be a virtual, dynamically generated one, and  not one residing statically in a file.





Im trying to do a similar thing. Generating the
stylesheet works, by using xsl:element.



xsl:template match=/

 xsl:element
name=xsl:stylesheet



 xsl:attribute
name=xmlns:xslhttp://www.w3.org/1999/XSL/Transform/xsl:attribute

 xsl:attribute
name=version1.0/xsl:attribute

 



However, when I use it in the sitemap, I cant get it to
be processed automatically. Sometimes it works, sometimes it doesnt.
These are the relevant entries in my sitemap:




map:pipeline

 map:match
pattern=generated_stylesheet


map:generate src="stylesheet_source.xml"
type=file/

 map:transform
src="generate_stylesheet.xsl/


map:serialize type=xml/


/map:match


/map:pipeline




map:pipeline

 map:match
pattern=test


map:generate src="source.xml" type=file/


map:transform src="cocoon:/generated_stylesheet"
type=xslt/


map:serialize type=xml/


/map:match


/map:pipeline



Any ideas?



Ruud Diterwich










Re: cocoon userdocs/xsp/esql.html

2002-02-06 Thread Christian Haul

On 05.Feb.2002 -- 11:34 PM, Conrad Wood wrote:
 you refer to a database connection
 'ConnectionName' in the Example and a
 note 'ConnectionName' is defined is
 cocoon.xconf.
 I spent the last day trying to figure out how
 to add this to cocoon.xconf. Can you add a link
 to how to do this on the sample-page?

Conrad, have a close look at the sample cocoon.xconf. There's one
database connection defined as personnel:

  !-- Datasources:
  --
  datasources
jdbc name=personnel logger=core.datasources.personnel
  !--
  If you have an Oracle database, and are using the the
  pool-controller below, you should add the attribute
  oradb and set it to true.

  pool-controller min=5 max=10 oradb=true/

  That way the test to see if the server has disconnected
  the JdbcConnection will function properly.
  --
  pool-controller min=5 max=10/
  !--
  If you need to ensure an autocommit is set to true or
  false, then create the auto-commit element below.

  auto-commitfalse/auto-commit

  The default is true.
  --
  dburljdbc:hsqldb:hsql://localhost:9002/dburl
  usersa/user
  password/password
/jdbc
  /datasources

I believe the semantics of this should be pretty obvious (to someone
familiar with jdbc, but esql doesn't free you from that). To define a
new database connection, add another jdbc/ block.

If for some reason you don't want to use these connection pools, you
may as well specify on your xsp:

 esql:connection  
!--
Pool not used:
 esql:poolpersonnel/esql:pool
--
esql:dburljdbc:hsqldb:hsql://localhost:9002/esql:dburl
esql:usernamesa/esql:username
esql:password/esql:password

 esql:execute-query
   esql:queryxsp:exprthequery/xsp:expr/esql:query
   esql:results
  esql:row-results
   esql:get-columns/
  /esql:row-results
   /esql:results
   esql:error-results
  erroresql:get-message//error
   /esql:error-results
/esql:execute-query
/esql:connection

HTH

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

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




Re: Coccon2- Internal Server Error

2002-02-06 Thread Bert Van Kets

Don't forget that Cocoon is compiled with JDK 1.3
If you are using a headless Linux system (no X installed) check out the 
past threads about Xvfb and PJA.
Bert

At 22:07 5/02/2002 -0500, you wrote:

Hi,
I installed cocoon on tomcat 3.2.1. When i go to
http://localhost:8080/cocoon i get an error The sitemap handler's sitemap
is not available. Please check logs for the exact error.

sitemap.log.01 has following exception

ERROR   (2002-02-05) 21:41.00:011   [sitemap] (/cocoon/) Thread-23/Handler:
Error compiling sitemap
java.lang.NoSuchMethodError
 at
org.apache.cocoon.components.browser.BrowserImpl.createDocumentForBrowserInf
o(BrowserImpl.java:379)
 at
org.apache.cocoon.components.browser.BrowserImpl.compose(BrowserImpl.java:15
6)
 at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:157)
 at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:290)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:255)
 at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa
nager.java:112)
 at
org.apache.cocoon.transformation.TraxTransformer.compose(TraxTransformer.jav
a:222)
 at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:157)
 at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
82)
 at
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java
:126)
 at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
imitingPool.java:91)
 at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftRes
ourceLimitingPool.java:80)
 at
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Po
olableComponentHandler.java:88)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(ExcaliburComponentSelector.java:467)
 at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:230)
 at
org.apache.cocoon.www.sitemap_xmap$Configurer.configTransformers(sitemap_xma
p.java:673)
 at 
 org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:388)
 at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
 at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
 at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:135)
 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(ProgramGeneratorImpl.java:356)
 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:334)
 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:282)
 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:196)
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
 at java.lang.Thread.run(Thread.java:484)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.319 / Virus Database: 178 - Release Date: 1/28/2002


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

To unsubscribe, e-mail: [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/faqs.html

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




Re: DOCBOOK and Cocoon2 - Example needed!

2002-02-06 Thread Yann Secq

Erik Stunkat wrote:

 Hi Yann, see the log files in: \tomcat\webapps\cocoon\WEB-INF\logs


yes, I looked at them but didn't find any errors :-(

 
 they should give you some hints or try xalan to convert your xml to pdf with
 the stylesheets to find the error.


I have tried to do that : the xml - xsl:fo translation seems
to work, but when I try to use fo2pdf to generate the PDF it fails !
(using xalan and the command line transformation)

I tried then to use cocoon to do the last transformation :

map:match pattern=docbook/testfo
  map:generate src=docs/samples/docbook/test.fo/
  map:serialize type=fo2pdf/
/map:match

Sorry for the dump : here is access.log

INFO(2002-02-06) 10:11.27:453   [access] (/cocoon/testfo) 
HttpProcessor[8080][4]/CocoonServlet: 'testfo' Processed by Apache 
Cocoon 2.1-
dev in 28 milliseconds.
DEBUG   (2002-02-06) 10:11.38:126   [access] (/cocoon/docbook/testfo) 
HttpProcessor[8080][4]/AbstractEnvironment: Changing Cocoon context(si
temap.xmap) to prefix()
DEBUG   (2002-02-06) 10:11.38:126   [access] (/cocoon/docbook/testfo) 
HttpProcessor[8080][4]/AbstractEnvironment:   from context(file:/s
hared/java/applications/jakarta-tomcat-4.0.1/bin/./../webapps/cocoon/) 
and prefix()
DEBUG   (2002-02-06) 10:11.38:126   [access] (/cocoon/docbook/testfo) 
HttpProcessor[8080][4]/AbstractEnvironment:   at URI docbook/testf
o
DEBUG   (2002-02-06) 10:11.38:127   [access] (/cocoon/docbook/testfo) 
HttpProcessor[8080][4]/AbstractEnvironment: New context is file:/share
d/java/applications/jakarta-tomcat-4.0.1/webapps/cocoon/
DEBUG   (2002-02-06) 10:11.38:160   [access] (/cocoon/docbook/testfo) 
HttpProcessor[8080][4]/AbstractEnvironment: Resolving 'docs/samples/do
cbook/test.fo' in context 
'file:/shared/java/applications/jakarta-tomcat-4.0.1/webapps/cocoon/'
DEBUG   (2002-02-06) 10:11.38:161   [access] (/cocoon/docbook/testfo) 
HttpProcessor[8080][4]/AbstractEnvironment: Resolved to 'file:/shared/
java/applications/jakarta-tomcat-4.0.1/webapps/cocoon/docs/samples/docbook/test.fo'

So everything seems to work nicely, but I never get any answers
from my HTTP request ...

 
 Do you have images in your xml?


No, I start slowly :) I have joined the document in attachment
(and the XSL:FO document generated by xalan).

Tahnks,yann.

-- 
  / Yann SECQEquipe SMAC   [EMAIL PROTECTED] \
| Multi-Agent Systems Modeling  Agent Oriented Programming |
  \ http://www.lifl.fr/SMAChttp://www.lifl.fr/~secq /


?xml version='1.0'?
!DOCTYPE book PUBLIC -//OASIS//DTD DocBook XML V4.1.2//EN
http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd;

book
titlefoo/title

chaptertitlebar/title

para
foo
/para

informaltable
tgroup cols=1
tbody
row
entryfoo/entry/row
rowentrybar/entry/row
/tbody
/tgroup
/informaltable

tabletitlebar/title
tgroup cols=1
tbody
rowentrybar/entry/row
/tbody
/tgroup
/table

/chapter

glossary
glossentryglosstermfoo/glossterm
indextermprimaryfoo/primary/indexterm
glossdef
para
Some appropriate definition goes here.
/para
/glossdef
/glossentry
/glossary

/book


?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; text-align=justify 
font-size=10pt font-family=Times Roman
fo:layout-master-set
fo:simple-page-master margin-right=1in margin-left=10pc margin-bottom=1in 
margin-top=1in page-height=11in page-width=8.5in master-name=blank
fo:region-body margin-top=24pt margin-bottom=24pt/
fo:region-before extent=12pt region-name=xsl-region-before-blank/
fo:region-after extent=12pt region-name=xsl-region-after-blank/
/fo:simple-page-master
fo:simple-page-master margin-right=1in margin-left=10pc margin-bottom=1in 
margin-top=1in page-height=11in page-width=8.5in master-name=simple1
fo:region-body margin-top=24pt margin-bottom=24pt/
fo:region-before extent=12pt/
fo:region-after extent=12pt/
/fo:simple-page-master
fo:simple-page-master margin-right=1in margin-left=10pc margin-bottom=1in 
margin-top=1in page-height=11in page-width=8.5in master-name=left1
fo:region-body margin-top=24pt margin-bottom=24pt/
fo:region-before extent=12pt region-name=xsl-region-before-left/
fo:region-after extent=12pt region-name=xsl-region-after-left/
/fo:simple-page-master
fo:simple-page-master margin-right=10pc margin-left=1in margin-bottom=1in 
margin-top=1in page-height=11in page-width=8.5in master-name=right1
fo:region-body margin-top=24pt margin-bottom=24pt/
fo:region-before extent=12pt region-name=xsl-region-before-right/
fo:region-after extent=12pt region-name=xsl-region-after-right/
/fo:simple-page-master
fo:simple-page-master margin-right=1in margin-left=1in margin-bottom=1in 
margin-top=1in page-height=11in page-width=8.5in master-name=first1
fo:region-body margin-top=24pt margin-bottom=24pt/
fo:region-before extent=12pt region-name=xsl-region-before-first/
fo:region-after extent=12pt region-name=xsl-region-after-first/
/fo:simple-page-master
fo:simple-page-master margin-right=1in margin-left=10pc 

Re: XSL-FO (Colspan)

2002-02-06 Thread Alex McLintock

At 08:59 06/02/02, Ferran wrote:
Hi,

I'm working with xsl-fo, and I've made some tables... but, Is it possible 
to do something like td colspan.. ? in xsl-fo (I'm trying to do this in 
pdf format)


Firstly I'd recommend asking straight FOP questions in the fo-user mailing 
list. (It does exist :-)

There is a higher concentration of FOP users there who can help you. 
(Cocoon uses FOP for its XSL:FO by default).

To try answering your question. Dunno I don't remember OK. If 
you download the latest release of FOP it comes with examples. One of the 
examples has a column span example in it.

Extract from tables/headfoot.fo

   fo:block space-before.optimum=2cm
   Table 4: cells spanning columns
   /fo:block

   fo:table
 fo:table-column column-width=2cm/
 fo:table-column column-width=2cm/
 fo:table-column column-width=2cm/
 fo:table-column column-width=2cm/
 fo:table-column column-width=2cm/
 fo:table-column column-width=2cm/
 fo:table-body
   fo:table-row
 fo:table-cell
 border-width=0.5pt
 border-style=solid
 border-color=black
   text-align=center vertical-align=middle
   number-columns-spanned=1 background-color=#FF6AC0
   fo:block 1 to 1/fo:block
 /fo:table-cell
 fo:table-cell
 border-width=0.5pt
 border-style=solid
 border-color=black
   text-align=center vertical-align=middle
   number-columns-spanned=5 background-color=#9BF2E9
   fo:block 2 to 6/fo:block
 /fo:table-cell
   /fo:table-row
   fo:table-row
 fo:table-cell
 border-width=0.5pt
 border-style=solid
 border-color=black
   text-align=center vertical-align=middle
   number-columns-spanned=2 background-color=#FF6AC0
   fo:block 1 to 2/fo:block
 /fo:table-cell
 fo:table-cell
 border-width=0.5pt
 border-style=solid
 border-color=black
   text-align=center vertical-align=middle
   number-columns-spanned=4 background-color=#9BF2E9
   fo:block 3 to 6/fo:block
 /fo:table-cell
   /fo:table-row
 /fo:table-body
   /fo:table




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

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




Deploying Cocoon2 within Oracle 9iAS

2002-02-06 Thread Edward Jones

Hello, 
I am trying to deploy the Cocoon2 application to run
under Oracle 9iAS/oc4j, and so far despite a trawl of
the web, not having much success. 

Following a straightforward installed - copied .war
file to /applications, added lines to application.xml
and http-web-site.xml, the .war unpacked fine. However
trying to access the default page
http://server/cocoon/ produces the following error
message in return: 

-- 
type fatal 

message SAX2 driver class
org.apache.xerces.parsers.SAXParser not found 

description java.lang.ClassNotFoundException:
org.apache.xerces.parsers.SAXParser 

sender org.apache.cocoon.servlet.CocoonServlet 

source Cocoon servlet 

request-uri 

/cocoon/ 

path-info 
-- 
Also, in the console window I get, from the first time
I run cocoon after starting the oc4j server the
following error message: 


Server.run/init: java.net.BindException: Address in
use: JVM_Bind 
java.net.BindException: Address in use: JVM_Bind 
at java.net.PlainSocketImpl.socketBind(Native Method) 
at
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)

at java.net.ServerSocket.init(ServerSocket.java:170)

at java.net.ServerSocket.init(ServerSocket.java:82) 
at org.hsqldb.Server.run(Server.java:131) 
at org.hsqldb.Server.main(Server.java:78) 
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:14

7) 
at java.lang.Thread.run(Thread.java:484) 
Sitemap location = sitemap.xmap 
Checking sitemap reload = true 
Reloading sitemap asynchron = true 
Sitemap check delay = 1 sec 
-- 

Any help/guidance would be appreciated. 

Thanks in advance 


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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

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




RE: Deploying Cocoon2 within Oracle 9iAS

2002-02-06 Thread Anil_Kandula

Hi Edward,
Cocoon2.0 requires xerces-1.4.4.jar in classpath. I think Oracle
9iAS/oc4j is already loading some other xerces in classpath. Check in
classpath of application server if any xerces is there. Make sure that only
xerces-1.4.4.jar is in classpath.
Thanks,
Anil.

 --
 From: Edward Jones[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Wednesday, February 06, 2002 3:35 PM
 To:   [EMAIL PROTECTED]
 Subject:  Deploying Cocoon2 within Oracle 9iAS
 
 Hello, 
 I am trying to deploy the Cocoon2 application to run
 under Oracle 9iAS/oc4j, and so far despite a trawl of
 the web, not having much success. 
 
 Following a straightforward installed - copied .war
 file to /applications, added lines to application.xml
 and http-web-site.xml, the .war unpacked fine. However
 trying to access the default page
 http://server/cocoon/ produces the following error
 message in return: 
 
 -- 
 type fatal 
 
 message SAX2 driver class
 org.apache.xerces.parsers.SAXParser not found 
 
 description java.lang.ClassNotFoundException:
 org.apache.xerces.parsers.SAXParser 
 
 sender org.apache.cocoon.servlet.CocoonServlet 
 
 source Cocoon servlet 
 
 request-uri 
 
 /cocoon/ 
 
 path-info 
 -- 
 Also, in the console window I get, from the first time
 I run cocoon after starting the oc4j server the
 following error message: 
 
 
 Server.run/init: java.net.BindException: Address in
 use: JVM_Bind 
 java.net.BindException: Address in use: JVM_Bind 
 at java.net.PlainSocketImpl.socketBind(Native Method) 
 at
 java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
 
 at java.net.ServerSocket.init(ServerSocket.java:170)
 
 at java.net.ServerSocket.init(ServerSocket.java:82) 
 at org.hsqldb.Server.run(Server.java:131) 
 at org.hsqldb.Server.main(Server.java:78) 
 at
 org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:14
 
 7) 
 at java.lang.Thread.run(Thread.java:484) 
 Sitemap location = sitemap.xmap 
 Checking sitemap reload = true 
 Reloading sitemap asynchron = true 
 Sitemap check delay = 1 sec 
 -- 
 
 Any help/guidance would be appreciated. 
 
 Thanks in advance 
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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

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




Re: Deploying Cocoon2 within Oracle 9iAS

2002-02-06 Thread Marcelo F. Ochoa

Edward Jones wrote:

Hello, 
I am trying to deploy the Cocoon2 application to run
under Oracle 9iAS/oc4j, and so far despite a trawl of
the web, not having much success. 

Following a straightforward installed - copied .war
file to /applications, added lines to application.xml
and http-web-site.xml, the .war unpacked fine. However
trying to access the default page
http://server/cocoon/ produces the following error
message in return: 

 DB Prism is mainly developed with OC4J, you could find an step by step 
guide to install Cocoon 2.0.0 on oc4j at
 http://www.dbprism.com.ar/dbprism/doc/docs/OC4J.html
 It includes the changes necesary for oc4j 1.0.2.x and the newest 
2.0.0.x which replaces xerces and xalan with Oracle xmlparserv2.
 Best regards, Marcelo.

PD: Note that this page is served by Cocoon 2.0.0 on line using DB Prism 
CMS on an Oracle 8i.

-- 
Marcelo F. Ochoa - [EMAIL PROTECTED]
Do you Know DB Prism? Look @ http://www.plenix.com/dbprism/
More info?
Chapter 21 of the book Professional XML Databases (Wrox Press 
http://www.wrox.com/)
Chapter 8 of the book Oracle  Open Source (O'Reilly 
http://www.oreilly.com/catalog/oracleopen/)
---
Lab. de Sistemas - Fac. de Cs. Exactas - UNICEN
Paraje Arroyo Seco - Campus Universitario
(7000) Tandil - Bs. AS. - Argentina
Te: +54-2293-30 Fax: +54-2293-31




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

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




HowTo Cocoon pages

2002-02-06 Thread DURDINA Michal

Hello Cocoon users,

I have just completed few tutorial pages along with examples about
developing applications in Cocoon2. The location is
http://durdo.miesto.sk/Cocoon2HowTo/index.html.

At the time these pages consist of only 3 articles:
* Subsitemap - creating the empty project before you move on
* Data connection - connecting to DBMS, generating XML document with data
from database
* JBuilder for Cocoon developing - overview of JBuilder in scope of Cocoon2
developing, settings, hints, web application example

These articles evolved with time, the last one is most comprehensive and
contains working example of simple Cocoon2 web application.

Tech info: All docs are written using Apache Documentation DTD and can be
easily integrated to greater documentation. If anybody has similar pages we
can merge or has better repository (domain) for these pages, please contact
me.

With regards,

-- MisoD --
Michal Durdina - [EMAIL PROTECTED]

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

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




Re: HowTo Cocoon pages

2002-02-06 Thread Andreas Hartmann



Hi Michal,

*** REPLY SEPARATOR  ***

On 06.02.2002 at 15:42 DURDINA Michal wrote:

Hello Cocoon users,

I have just completed few tutorial pages along with examples about
developing applications in Cocoon2. The location is
http://durdo.miesto.sk/Cocoon2HowTo/index.html.


I also want to create a tutorial / information / discussion board site about cocoon.
Are you interested in joining this site? There is only one tutorial online yet:
http://www.cocooncenter.de/cocooncenter/tutorials/navigation/tutorial.html

You could use some webspace on www.cocooncenter.de (still redirecting to my other
site).

Do you publish your tutorial as plain HTML? (I found a br tag without a slash,
so it doesn't seem to be Cocoon :) ). My webspace features Perl, PHP and SSI
if you need it.

Greetings,
Andreas



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

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




coccon2: mm.mysql is not invoked when I use esql:pool, but works in jsp:...

2002-02-06 Thread Conrad Wood

I'm a little bit troubled here with cocoon-2 (+tomcat)
I am unable to load the mysql jdbc driver in cocoon
via the web.xml. (in jsp I can load it, but not
when using pools in esql)
So here it goes:

I seem to be able to use the mm.mysql jdbc driver
when I use jsp in cocoon like so:
==
Class.forName(org.gjt.mm.mysql.Driver);
 java.sql.Connection con =
  java.sql.DriverManager.getConnection
 (jdbc:mysql://stella/mysql?user=.password=..)
==
   and so forth.
I guess, That means my class is where cocoon can find it, right?

now trying to do the same in xsl (esql):

esql:connection
esql:poolmysqlconn/esql:pool
esql:execute-query
esql:querySelect * from EMP/esql:query
==
fails with the annoying no suitable driver found error.

What I have sone so far:

I edited cocoon/WEB-INF/web.xml:
===
  init-param
   param-nameload-class/param-name
   param-valueorg.gjt.mm.mysql.Driver/param-value
  /init-param
==
and thought this should load mysql driver class, right?

I went on to define my connection in cocoon.xconf:
=
datasources
 jdbc name=mysqlconn logger=core.datasources.mysqlconn
  pool-controller min=5 max=10/
   auto-committrue/auto-commit
   dburljdbc:mysql:stella:3306:mysql/dburl
 !--
   dburljdbc:mysql://stella:3306/teapop/dburl
   dburljdbc:mysql://stella/mysql:3306/mysql/dburl
  --
 userroot/user
 passwordssshh/password
  /jdbc
  ... more datasources
==
the commented out ones I tried too but they fail the same way.

I then went into my sitemap to give me a little playarea:
=
 map:pipeline
   map:match pattern=conrad/*.xsp
   map:generate type=serverpages src=conrad/{1}.xsp/
   map:serialize type=html/
/map:match
  /map:pipeline


And I get:
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
get the datasource
org.apache.avalon.excalibur.datasource.NoAvailableConnectionException:
There are no connections in the pool, check your settings.

further up in the logs when it tries to initialize mysqlconn,
I get several lines like:

core.log.01-DEBUG   (2002-02-06) 17:23.02:655 [core] (Unknown-URI) 
Unknown-thread/DefaultComponentFactory: logger attribute is core.datasources.mysqlconn
core.log.01-DEBUG   (2002-02-06) 17:23.02:738 [core.datasources.mysqlconn] 
(Unknown-URI) Unknown-thread/LogKitLogger: factory created class was null so a new 
instance could not be created.
core.log.01:java.sql.SQLException: No suitable driver
core.log.01-at
java.sql.DriverManager.getConnection(DriverManager.java:537)
core.log.01-at
java.sql.DriverManager.getConnection(DriverManager.java:177)


the mysql..-bin.jar is in cocoon/WEB-INF/lib
the xsp in cocoon/conrad/test3.xsp
the web-xml in cocoon/WEB-INF/
the cocoon.xconf in cocoon/


Is my dburl wrong? what should it be?
Is it not loading the driver for some other reason? why? ;(

Thanks, Conrad.



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

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




session lost after redirected from https to http

2002-02-06 Thread Evan Sho

Hi all cocoon users,

When I try to implement login function by cocoon,
users go to the login page (http) and submit
login/passwd to authen page (https); if authenticated,
the page will be redirected to the user's homepage
(http).

When the page is redirected from
https to http, the session is lost. If i use https for
all pages or use http for all pages, the session can
be kept.

The login function uses database authenticator
described in example and the homepage is protected by
the technique described in example - protected area.

currently we use JDK 1.3.1 on w2k, tomcat 4.0.1,
cocoon 2.0.

Could anyone know how can I solve this problem please
kindly give me a hints or which class i should look
for? thanks a lot.

Regards
Evan




___
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk

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

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




Re: HowTo Cocoon pages

2002-02-06 Thread Adrian 'Dagurashibanipal' von Bidder

On Tue, 2001-02-06 at 16:00, Andreas Hartmann wrote:
 http://www.cocooncenter.de/cocooncenter/tutorials/navigation/tutorial.html

Wow! Phew!

Last week I finally started to do something about a new look for my
website (better: any look at all - fortytwo.ch is not what you'd call
nice right now :-)

I looked at fastcgi (discarded because I'm programming enough C on my
day job already) and axKit (don't really like perl, though) and have now
decided to start with cocoon2.

Looking at the example tells me that you can do everything with it - but
what was missing was a cute little example for somebody who doen't know
more about xslt than that it's about XML.

So a big thank you there!

-- vbi


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

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




Resources and Pipelines....

2002-02-06 Thread Lewis, Andrew J

Are there any known efficiency differences between pipelines that use
resources for thier processing and pipelines that do equivalent processing
directly without declared resources?

Thanks!

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

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




webDAV

2002-02-06 Thread Bert Van Kets

I'd like to use Tomcat's webDAV with Cocoon.  I've been trying all kinds of 
configurations, but can't get it running.
How do I configure the webdav servlet in Tomcat, together with the cocoon 
servlet ?  I know it's more a Tomcat question, but I can't seem to find a 
Tomcat list.
I've copied the servlet definition from the webdav sample web.xml file to 
the web.xml file in the cocoon webapp, but then I get errors in the tomcat 
log file saying the servlet can't be initialized.
Any suggestions?
Bert

My spelling is Wobbly.  It's good spelling but it Wobbles, and the letters
  get in the wrong places. A. A. Milne (1882-1958)


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

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




Could not read resource file

2002-02-06 Thread Thorsten Mauch

Hi All 
I upgraded from cocoon 2 rc1 to version 2.01.
with rc1 everything was ok, but now i get:
type fatal
message Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml
description org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml:
java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/chiba/buglet.view
path-info
chiba/buglet.view



The error message makes no sense because 
the file realy exist
C:/tomcat/webapps/cocoon/chiba/buglet.xml

my sitemap looks like:

map:match pattern=*.view
map:generate src={1}.xml/
map:transform type=XformTransformer src={1}/  
map:serialize/
/map:match

Thx Thorsten



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

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




FW:

2002-02-06 Thread Chitharanjan Das


Hello All,
I am planning to provide the user authentication procedure via
an Action.
How do I access the datasource from JAVA code, to obtain a
connection?

Please include datasource example for oracle and sample code in
JAVA to access the named datasource.


Regds,
Chiths



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

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




JSPGenerator problem

2002-02-06 Thread MOODAD (Shadi LB Soft)


Hi,
I'm trying to execute a jsp file under cocoon but I have a small porblem
that i didn't found a solution.
I'm using this configuration:
 map:pipeline>
 map:match pattern="**.jsp">
 map:generate type="jsp" src="../../{1}.xml"/>
 !--map:transform src="../../xml2fo.xsl"/-->
 map:serialize/>
 /map:match>
 /map:pipeline>
so when executing a jsp I got the following error:
org.xml.sax.SAXParseException: Document root element is missing.
 at org.apache.cocoon.components.parser.JaxpParser.fatalError(JaxpParser.java:182)
 at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3038)
 at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023)
but the jsp is a well formed xml and it execute from the tomcat.
so i trace the error in the code of the JSPGenerator.class and I found
that the request URI is correct but the size of the httpRequest.getInputStream().available()
is = 0.? strange.
I'll be very thanxfull if someone have an ideas on that problem or could
give me some hints to the solution.
thanx in advance
--
Soft Solutions, Liban
Net Developper
Moodad Shadi
www.softsolutions.fr



AW: JSPGenerator problem

2002-02-06 Thread Bucholdt, Christian



Hi,

You need at the 
beginning of the "src"-attribute a "/", and the JSP should be under a directory 
is called "jsp".
example:

map:match pattern="jsp/*" 
 map:generate type="jsp" 
src="/test/jsp/{1}.jsp"/...
 
map:serialize/  /map:match 


by
christian


  -Ursprüngliche Nachricht-Von: MOODAD (Shadi LB Soft) 
  [mailto:[EMAIL PROTECTED]]Gesendet: Donnerstag, 7. 
  Februar 2002 07:55An: cocoon-dev; 
  [EMAIL PROTECTED]Betreff: JSPGenerator 
  problemHi, I'm trying to execute a jsp file under 
  cocoon but I have a small porblem that i didn't found a solution. I'm 
  using this configuration:  map:pipeline 
   map:match pattern="**.jsp" 
   map:generate type="jsp" 
  src="../../{1}.xml"/  !--map:transform 
  src="../../xml2fo.xsl"/--  
  map:serialize/  /map:match 
   /map:pipeline 
  so when executing a jsp I got the following error: 
  org.xml.sax.SAXParseException: Document root element is missing. 
   at 
  org.apache.cocoon.components.parser.JaxpParser.fatalError(JaxpParser.java:182) 
   at 
  org.apache.crimson.parser.Parser2.fatal(Parser2.java:3038) 
   at 
  org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023) 
  but the jsp is a well formed xml and it execute from the tomcat. so i 
  trace the error in the code of the JSPGenerator.class and I found that the 
  request URI is correct but the size of the 
  httpRequest.getInputStream().available() is = 0.? strange. 
  I'll be very thanxfull if someone have an ideas on that problem or could 
  give me some hints to the solution. 
  thanx in advance -- Soft Solutions, Liban Net Developper 
  Moodad Shadi 
  www.softsolutions.fr  


Getting dbxml to work with Cocoon and tomcat 4

2002-02-06 Thread Michael Homeijer

Hi,

Can anybody give me some hints on how to get dbxml to work with cocoon and
tomcat 4. I tried placing jars in just about any location that could make
sense, but I can't get it working completely.
(OpenOrb is the initial problem, it cannot find its properties in the jar in
web-inf/lib).

TIA,
Michael Homeijer

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

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




RE:

2002-02-06 Thread Luca Morandini

Chits,

you can take a look at the SQLTransformer source code, which is included in
Cocoon.

Regarding the datasource, here it is (you should place it in cocoon.xconf):

  datasources
jdbc name=noria-dev
pool-controller min=5 max=10 oradb=true/
dburljdbc:oracle:thin:@localhost:1521:sid/dburl
useruser/user
passwordpassword/password
/jdbc
  /datasources

I hope this can help...

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


 -Original Message-
 From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 6:35 AM
 To: [EMAIL PROTECTED]
 Subject: FW:



 Hello All,
   I am planning to provide the user authentication procedure via
 an Action.
   How do I access the datasource from JAVA code, to obtain a
 connection?

   Please include datasource example for oracle and sample code in
 JAVA to access the named datasource.


 Regds,
 Chiths



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

 To unsubscribe, e-mail: [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/faqs.html

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




Re: Getting dbxml to work with Cocoon and tomcat 4

2002-02-06 Thread yuryx

Michael Homeijer wrote:

Hi,

Can anybody give me some hints on how to get dbxml to work with cocoon and
tomcat 4. I tried placing jars in just about any location that could make
sense, but I can't get it working completely.
(OpenOrb is the initial problem, it cannot find its properties in the jar in
web-inf/lib).

TIA,
Michael Homeijer

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

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

You found dbXML.jar in WEB-INF/lib?
Yury




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

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