RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-04 Thread Phil Coultard
Hi Marco,

Thanks for your help in pointing me to the right section of the README

I have replaced the driver ref with the right string but I'm still getting
the same error message when I try to run the xsp.

Jens,

Thanks for your suggestion too of including the port number in the .xconf
dburl in the form jdbc:mysql://localhost:8080/dbname but that just
makes the server startup procedure hang half way through. I don't really
understand why this is.

Frustrated and feeling rather thick,

Phil

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 23:01
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: AW: Newbie: yet ANOTHER problem: db access
(NoValidConnectionException)


first, HTH = Hope That Helps ;-), my first name is marco,

my mysql driver jar's name is 'mysql-connector-java-2.0.14-bin.jar' (which
is in WEB-INF/lib).

within the jar I have a file README. a snip from the section 'USAGE AND
INSTALLATION':

...
If you are going to use the driver with the JDBC DriverManager, you would
use
"com.mysql.jdbc.Driver" as the class that implements java.sql.Driver.

You might use this name in a Class.forName() call to load the driver:

Class.forName("com.mysql.jdbc.Driver").newInstance();

To connect to the database, you need to use a JDBC url with the following
format ([xxx] denotes optional url components):


jdbc:mysql://[hostname][:port]/[dbname][?param1=value1][¶m2=value2].

URL Parameters (can be passed as properties in
DriverManager.getConnection() as well):
...

so the driver class to load at startup in my case is com.mysql.jdbc.Driver.

the README also lists URL parameters that can be supplied in the driver url.

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von Phil Coultard
> Gesendet: Freitag, 4. April 2003 22:40
> An: [EMAIL PROTECTED]
> Betreff: RE: Newbie: yet ANOTHER problem: db access
> (NoValidConnectionException)
>
>
> Hi HTH,
>
> Thanks for your suggestion but that didn't work - I'm still
> getting the same
> message (even after re-starting the server and deleting the work
> directory).
>
> I have read the readme enclosed with the jar but to my uneducated eye it
> does not seem to enclose a ref to what I should call the class.
>
> Kind Regards
>
> Phil
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 04 April 2003 19:20
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: AW: Newbie: yet ANOTHER problem: db access
> (NoValidConnectionException)
>
>
> hi phil,
>
> please try com.mysql.jdbc.Driver as the driver class. that should
> work. your
> dburl seems to be correct.
>
> otherwise have a look into your mysql-connector jar. there should be a
> README inside.
>
> HTH
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Auftrag von Phil Coultard
> > Gesendet: Freitag, 4. April 2003 19:53
> > An: [EMAIL PROTECTED]
> > Betreff: Newbie: yet ANOTHER problem: db access
> > (NoValidConnectionException)
> >
> >
> > Geoff: Thanks for all your help, you are a star.
> >
> > Big apologies from a newbie struggling with the basics of Cocoon...
> >
> > I have run into yet another problem which I don't seem to be able to get
> > over...
> >
> > This time I am trying to connect to a MySQL db but get the message:
> >
> > ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
> > (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
> > Could not
> > get the datasource
> > org.apache.avalon.excalibur.datasource.NoValidConnectionException:
> >  No valid
> > JdbcConnection class available
> >
> > in the error log file
> > (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I
> run my xsp
> > (enclosed below)
> >
> > I am also new to MySQL but am familiar with MSSQL so...
> >
> > I have:
> > -made the db (called coultard) and made sure MySQL is running (it
> > works fine
> > solo)
> > -put the MySQL db jar file
> (mysql-connector-java-3.0.6-stable-bin.jar) in
> > C:\tomcat\common\lib
> > -put the init-param for preloading the driver in web.xml as below.
> > -defined the connection pool as below
> > -attempted to run the xsp below
> >
> > I just spits out the title of the page and the session user
> value (which I
> > have set via a login script) which would be consistent with
> their being no
> > results except the same sql statement returns results if run directly in
> > MySQL and the error message suggests to me it's not even
> getting that far.
> >
> > I am using:
> > Win 98
> > JDK 1.3.1
> > Tomcat 4.1.24
> > Cocoon 2.0.4
> >
> > MySQL 4.0.12Win
> > jar file from: mysql-connector-java-3.0.6-stable
> >
> > What confuses me is that my book (Cocoon developers handbook) assures me
> > that any errors preloading the driver or defining the
> connection pool will
> > be thrown up when they are attempted (when the application
> > starts) and shown
> > in access.log and core.log respectfu

Re: Sample PDF

2003-04-04 Thread Upayavira
To my mind, the crucial bit:

> - Root Cause -
> java.lang.NoClassDefFoundError
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:232)
> at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInsta
> nce(DefaultComponentFactory.java:163)
> at

There's a component that Cocoon can't find. Make sure that you've got an entry 
something like:



Re: SourceWrite error :|

2003-04-04 Thread Upayavira
> thnks :)
> It worked :)

Great! It is pleasing when logic prevails!
 
> Now I just have one question: I use the  tag to write to
> the file, and overwriting it, but what if I want to append data to the
> existing file ? Can i use the  tag? Or is it another
> way to do it ?

In 2.1, you can use insert. In 2.0.4, you'll need use XSLT to merge the data and then 
write the whole file back to disc. Make sense?

Upayavira

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



RE: Dynamic sitemap

2003-04-04 Thread Reinhard Pötz
No because this would lead to a real mess in sitemaps and therefore to
committers are against dynamic sitemaps (and IMHO they are right ...).
and maybe the more important reason is that nobody has ever presented a
usecase that makes dynamic sitemaps necessary.

By the way, what's your usecase?

Regards,
Reinhard

> -Original Message-
> From: Ali Mesbah [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 04, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: Dynamic sitemap
> 
> 
> 
> Hallo,
> I need to add new pipelines to the sitemap dynamically. Is 
> there any way of doing this??
> 
> Thanks,
> -- 
> -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Sample PDF

2003-04-04 Thread James McLean
Dear All,

I am having difficulty with the serialization of the sample PDF
(hello.pdf). Every attempt at generating the file returns a blank document
- entirely devoid any data. All of the other samples appear to be
functioning correctly. Additionally, I encountered a rather obscure log
entry after each attempt at generating the PDF in the CATALINA_HOME/logs
directory. I have probed the Cocoon website and mail archives meticulously
for information related to this issue with little success. Any specific
insight into what is causing this and/or potential solutions would be
greatly appreciated. 

Thanks,
James

Note: I am running Tomcat-4.1.24 in standalone mode with Cocoon-2.0.4 on
MacOS X 10.2. The error message I encountered in Tomcat's log is listed
below:

2003-04-05 00:07:34 StandardWrapperValve[Cocoon2]: Servlet.service() for
servlet Cocoon2 threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:491)
- Root Cause -
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:163)
at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLimitingPool.java:629)
at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:359)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doGet(PoolableComponentHandler.java:188)
at
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.java:234)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:205)
at
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSitemapComponentSelector.java:101)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.setSerializer(AbstractStreamPipeline.java:158)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.setSerializer(CachingStreamPipeline.java:115)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.setSerializer(AbstractStreamPipeline.

DO NOT REPLY [PATCH QUEUE] Summary April 5 2003

2003-04-04 Thread nicolaken
---
 This mail is generated automatically using
 Jakarta Ant. Contents are automatically
 downloaded from Apache's Bugzilla.
---
 Please do not reply to this mail.
---

***
COCOON PATCH QUEUE UPDATE
 
patches in queue:  28 
***


---
9728:[PATCH] CocoonServlet getClassPath() enhancements Tomcat4
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9728

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11533:[PATCH] Replacement for AvalonToCocoonSource
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11533

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11549:[PATCH] Replace LogKitManageable through LoggerManageable
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11549

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12173:[PATCH] SQLTransformer Query object prematurely closes conne
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12173

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12993:[PATCH] New version of CastorTransformer (includes marshalli
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12993

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14117:[PATCH] AuthAction fails in sub-requests
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14117

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14144:[Patch] add CompressionFilter declaration to web.xml
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14144

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14327:[PATCH] JSPEngineImpl response charset should be specified w
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14327

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14845:[PATCH] Patch to generate a key with new resources in XMLDBT
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14845

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14986:[PATCH] Enables velocitygenerator to get objects from reques
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14986

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15100:[patch]/[donation] Sample app xml form popup with sourcewrit
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15100

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15150:[PATCH]: HSSFSerializer Support for Gnumeric MergedRegions
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15150

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15525:[PATCH] simple patch to add fallback element in XIncludeTran
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15525

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15710:[PATCH]: JellyGenerator for Cocoon
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15710

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
16262:[Patch] new MultiPartFileAction
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16262

REVIEWER: 

AW: memory on the status page

2003-04-04 Thread Marco Rolappe
hi bert,

the 119MB is the amount of memory used by the java process (i.e. heap and
other resources).

the -Xmx parameter specifies the maximum size of the heap, i.e. not the
maximum size of memory used by the process.

the other numbers tell you that the heap's current size is 64MB of which
19MB are free.


to tune the memory parameters you can do the following:
 - enable logging for the store janitor (component that can flush
stores/caches when memory gets low)
 - have it enabled long enough a period and have the webapp used
 - the store janitor logs the values mentioned (current total and free heap
sizes) in a determined interval
 - later you can infer from those logs a more or less optimal value for the
maximum heap size

and you might want to restrict those memory settings to tomcat by setting
CATALINA_OPTS instead of JAVA_OPTS

> -Ursprungliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von Bert Van Kets
> Gesendet: Donnerstag, 3. April 2003 21:13
> An: [EMAIL PROTECTED]
> Betreff: memory on the status page
>
>
> Hi all,
> I have Cocoon configured on a Windows2K server that is using JDK
> 1.3.1 and
> Tomcat 4.0.6.
> The JAVA_OPTS environment variable is set to -Xmx256m
> Tomcat is setup as a service and is using 119MB of memory.
> When I call the status page it tells me there's 64MB of memory
> and 19MB is
> available.
>
> What do these numbers actually represent?
> I have had loads of OutOfMemory problems, that seem to be solved
> now.  I'd
> like to have a good and clean look on memory consumption.
> Can anybody explain this please?
>
> Thanks a lot,
> Bert
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: seperating content structure and style

2003-04-04 Thread Argyn



Kris,
this sounds very 
familiar to me. Once I had to make a reporting module with PDF generation. When 
I looked at the existing reports (about 50-60 of them), I found out that they 
are all (surprise!) similar :)
 
Actually, now I 
think that I found an example of self-similar fractals in reporting domain, 
maybe I can claim for Turing award :)
 
Seriously, 
after few hours of thinking I came to 
conclusion that they all can be constructed with a limited number of elements, 
which can be nested and combined. I called them "layoutlets". 
By nesting and joining 3-4 layoutlets, one can generate unlimited 
variety of report layouts.
 
As far as I 
remember, I identified three main structural layoutlets for my reports: 
list, vertical-list and table. I also had some other stuff, like row, 
column, multi-line row etc.
 
So, when I 
extracted data from DB, I put it into content XML. Something 
like:
 

Wow
Meow

 
This has a nested 
resultset. Next step was to write stylesheet which makes as you call it 
"structural" XML, I called it layout sheet. This would use my layoutlets, which 
are defined as templates in a separate stylesheet library (I called it generic). 
Example:
 


  
    
    
  


 
The above 
template uses "row-list" layoutlet to render the "master" resultset. "row-list" 
template is defined in generic layoutlet library. I can cimply change this 
layoutlet, and all reports will be affected. "row-list" renders coumns of the 
row as a vertical list using XSL-FO. At the end I get XSL-FO file and make 
PDF out of it using FOP or something else.
 
So, the report 
specifi stylesheet only has to map resultsets in content XML to appropriate 
layoutlets (generic templates). What's interesting is that layoutlets are 
orthogonal, so I can combine them in any order. Orthogonality also is very good 
for stylesheet languages, as you know, because it makes template writing very 
straightforward.
 
cheers,
Argyn
 
 

  -Original Message-From: Kris Rasmussen 
  [mailto:[EMAIL PROTECTED]Sent: Friday, April 04, 2003 2:36 
  PMTo: [EMAIL PROTECTED]Subject: seperating 
  content structure and style
  Let me know what you guys think about this.
  The general idea these days is to seperate content logic and style, as 
  cocoon does very well. However, I think it is even better if you can seperate 
  structure from style. The way i have done this in the past is with template 
  calling in xsl. However, I think it would be much cleaner to have two style 
  sheet transformations in cocoon, one that takes content to structure, and 
  another that takes structure to style.
  For example, if I had an employee database that output xml like this 
  (content):
    Some 
  Name  
  343234234 ...
  I would then transform it to some structural language like this:
     
  And then finally transform the structural elements to some sort of 
  presentational form.
  Preferably the structural language would consist of as few as possible 
  elements, maybe a couple types of box's, a couple types of lists, a couple 
  types of sections, etc. 
  Do people do stuff like this already, and if so are there any good xml 
  languages that one could use to describe structure?
  Kris
  
  
  Do you Yahoo!?Yahoo! Tax 
  Center - File online, calculators, forms, and 
more


AW: AW: Cocoon on Orion2

2003-04-04 Thread Michael Gerzabek
Hi Enio,

web3 is a block. so have a look at the blocks.properties and include
the line exclude.block.web3=true and rebuild cocoon.

sorry can't help with 2)

regards Michael

> -Ursprungliche Nachricht-
> Von: e nio [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 03. April 2003 18:21
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: Cocoon on Orion2
> 
> 
>   Hi Michael,
>  I do not have SAP db on my machine therefore I dont have
> the need for this portion.  You know how to exclude this SAP
> related stuff specifically on the 2.1 dev block?  I did build
> all the scratchpadwar so perhaps eliminating that may take it
> out.
>  Anyone else may have solution to the number 2 issue I have?
> 
> enio
> 
> --- Michael Gerzabek <[EMAIL PROTECTED]> wrote:
> > seems you're working with Web3RfcTransformer but didn't deploy
> > the right version of SAP Java Connector.
> > 
> > > -Ursprungliche Nachricht-
> > > Von: e nio [mailto:[EMAIL PROTECTED]
> > > Gesendet: Donnerstag, 03. April 2003 09:00
> > > An: [EMAIL PROTECTED]
> > > Betreff: Cocoon on Orion2
> > > 
> > > 
> > > 
> > > 1. I am not able to get cocoon2.1dev running on Orion2 I was
> > > getting:
> > > 
> > > 500 Internal Server Error
> > > 
> > > java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$Structure
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:207)
> > > at com.evermind[Orion/2.0 (build
> > > 11018)]._iz.findClass(.:19)
> > > at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > > at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:262)
> > > at
> > >
> >
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.c
> > > onfigure(ExcaliburComponentSelector.java:409)
> > > at
> > >
> >
> org.apache.avalon.framework.container.ContainerUtil.configure(Cont
> > > ainerUtil.java:239)
> > > at
> > >
> >
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newI
> > > nstance(DefaultComponentFactory.java:315)
> > > at
> > >
> >
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.i
> > > nitialize(ThreadSafeComponentHandler.java:141)
> > > at
> > >
> >
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.in
> > > itialize(ExcaliburComponentManager.java:555)
> > > at
> > org.apache.cocoon.Cocoon.initialize(Cocoon.java:329)
> > > at
> > >
> >
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet
> > > .java:1310)
> > > at
> > >
> >
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:505)
> > > at com.evermind[Orion/2.0 (build
> > > 11018)]._ay._lce(.:1672)
> > > at com.evermind[Orion/2.0 (build
> > > 11018)]._ay._bsd(.:3976)
> > > at com.evermind[Orion/2.0 (build
> > > 11018)]._ay._lde(.:2502)
> > > at com.evermind[Orion/2.0 (build
> > > 11018)]._ay._nic(.:2219)
> > > at com.evermind[Orion/2.0 (build
> > 11018)]._ax._lqc(.:449)
> > > at com.evermind[Orion/2.0 (build
> > 11018)]._ax._tvb(.:189)
> > > at com.evermind[Orion/2.0 (build
> > 11018)]._bf.run(.:62)
> > > 
> > > 2. cocoon2.0.4 on Orion2 seem to work okay, except I was not
> > > able to get a successful jsp which maybe due to the way
> > sitemap
> > > is laid out in respect to how orion2 have their directory
> > > structure.  What I meant by this is I have to create this
> > > directory structure in orion:
> > > 
> > > applications/
> > >  |
> > >  cocoon/
> > >   |__ META-INF/
> > >   ||_ application.xml
> > >   |
> > >   |__ cocoon/
> > > |
> > > |__ META-INF/
> > > |
> > > |__ WEB-INF/
> > > |
> > > |_ sitemap.xmap  the main one
> > >and the rest of cocoon.war expanded
> > > 
> > > Looking at the sitemap.log I am getting this error:
> > > 
> > > 32 DEBUG   (2003-04-02) 22:37.58:991   [sitemap.reader.jsp]
> > > (/cocoon/samples/jsp/welcome.htm)
> > > ApplicationServerThread/JSPReader: JSPReader executing
> > JSP:/s
> > > amples/jsp/welcome.jsp
> > >  33 DEBUG   (2003-04-02) 22:37.59:010  
> > [sitemap.reader.jsp]
> > > (/cocoon/samples/jsp/welcome.htm)
> > > ApplicationServerThread/JSPReader: Exception in
> > > JSPReader.generate()
> > >  34 java.lang.ClassNotFoundException:
> > > org.apache.jasper.servlet.JspServlet
> > >  35 at com.evermind._as.findClass(.:417)
> > >  36 at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > >  37 at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:262) 
> > > 
> > > This seem to indicate the orion's jsp engine is not
> > compatible
> > > with jasper because of dependencies on Tomcat as per
> > > Konstantin's  comment on another jsp issue.
> > > 
> > > 
> > > And with the above directory layout, the main sitemap.xmap
> > > doesnt seem to work right on some case for example this
> > portion
> > > on the standard 2.0.4 stock samples:
> > > 
>

[HELP]Exception during processing of servletgenerator

2003-04-04 Thread Aamir Majeed
 
Hi,
I am using ServletGenerator and I continuously find java.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8 sequence
Below is my Servlet code 
 
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.PrintWriter;
import java.io.IOException;
import com.mysql.jdbc.Driver;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.io.File;
import java.io.FileOutputStream;
 
public class MyServlet extends HttpServlet 
{
  //private static final String CONTENT_TYPE = "text/xml; charset=windows-1252";
  private static final String CONTENT_TYPE = "text/xml;charset=iso-8859-1";
  private static final String DOC_TYPE;
  private Connection conn=null;
  Statement smt=null;
  private String dburl="jdbc:mysql:///test2";
  public void init(ServletConfig config) throws ServletException
  {
    super.init(config);
    System.out.println("In the init of my servlet");
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    conn=DriverManager.getConnection(dburl);
    smt=conn.createStatement();
    }
    catch(ClassNotFoundException ex)
    {
  ex.printStackTrace();
    }
    catch(SQLException ex)
    {
  ex.printStackTrace();
    }
    catch(Exception ex)
    {
  ex.printStackTrace();
    }
  }
 
  /**
   * Process the HTTP doGet request.
   */
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
  {
    //File file=new File("file.txt");
    //FileOutputStream output=new FileOutputStream(file);
    StringBuffer strbuff=new StringBuffer();
    /*  if (DOC_TYPE != null)
    {
  //strbuff.append(DOC_TYPE);
    } */
    /*
    try {
    ResultSet rs=smt.executeQuery("SELECT * FROM school;");
    
    strbuff.append("");
    while (rs.next()) {
  strbuff.append("
  strbuff.append("name=\"");
  strbuff.append(rs.getString("NAME"));
  strbuff.append("\"  class=\"");
  strbuff.append(rs.getString("CLASSES"));
  strbuff.append("\"");
  strbuff.append("/>");
    }
    }
    catch (Exception ex) 
    {
  ex.printStackTrace();
    }
    
    strbuff.append("");
    */
    response.setContentType(CONTENT_TYPE);
    
    PrintWriter out = response.getWriter();
    
    //output.write(strbuff.toString().getBytes());
    //output.flush();
    //output.close();
    System.out.println(strbuff.toString());
    out.println("");
    out.close();
  }
}
and following is my xslt code
 


   



Servlet Response Documenttitle>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
head>
<body>
<table width="75%" border="1" cellpadding="2" cellspacing="2" bordercolor="#00">
  <tr bgcolor="#99"> 
    <td><font color="#FF">School namefont>td>
    <td><font color="#FF">class namefont>td>
  tr>
  <xsl:for-each select="school">
  <tr> 
    <td><xsl:value-of select="@name"/>td>
    <td><xsl:value-of select="@class"/>td>
  tr>
xsl:for-each>
table>
body>
html>
xsl:template>
xsl:stylesheet>
 
plz fix this 
Regards
 Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26673.html">memory on the status page</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22memory+on+the+status+page%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Bert+Van+Kets%22&o=newest&f=1">Bert Van Kets</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi all,
I have Cocoon configured on a Windows2K server that is using JDK 1.3.1 and 
Tomcat 4.0.6.
The JAVA_OPTS environment variable is set to -Xmx256m
Tomcat is setup as a service and is using 119MB of memory.
When I call the status page it tells me there's 64MB of memory and 19MB is 
available.

What do these numbers actually represent?
I have had loads of OutOfMemory problems, that seem to be solved now.  I'd 
like to have a good and clean look on memory consumption.
Can anybody explain this please?

Thanks a lot,
Bert
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26672.html">Re: SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Jo%C3%A3o+C%C3%A9sar%22&o=newest&f=1">João César</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
thnks :)

It worked :)

Now I just have one question: I use the  tag to write to the
file, and overwriting it, but what if I want to append data to the existing
file ? Can i use the  tag? Or is it another way to do it ?

It's late now here in Portugal, but tomorrow I will test how to do it.

Thanks for your help!!! :)

Joao Cesar
[EMAIL PROTECTED]



- Original Message -
From: "Upayavira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 9:57 PM
Subject: Re: SourceWrite error :|


> > Yes, but the error keeps going on.. I'll check that later, and search
> > a little more deep for help on documentation...
>
> Okay. Check in your $COCOON-HOME/WEB-INF/cocoon.xconf and make sure
> you've got this entry:
>
>   
> 
>  name="file"/>
>
>   
>
> That being missing could cause the problem.
>
> Upayavira
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26671.html">How to get tomcat work directory from cocoon?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22How+to+get+tomcat+work+directory+from+cocoon%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Rob+Johnston%22&o=newest&f=1">Rob Johnston</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Is there a session context or some other environmental way to get the
absolute path to the tomcat work directory in a pipeline?  I'd like to
put some temporary files there and need to get the absolute path to do
this.

thanks,
rob

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26670.html">AW: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22AW%5C%3A+Newbie%5C%3A+yet+ANOTHER+problem%5C%3A+db+access+%5C%28NoValidConnectionException%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Marco+Rolappe%22&o=newest&f=1">Marco Rolappe</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
first, HTH = Hope That Helps ;-), my first name is marco,

my mysql driver jar's name is 'mysql-connector-java-2.0.14-bin.jar' (which
is in WEB-INF/lib).

within the jar I have a file README. a snip from the section 'USAGE AND
INSTALLATION':

...
If you are going to use the driver with the JDBC DriverManager, you would
use
"com.mysql.jdbc.Driver" as the class that implements java.sql.Driver.

You might use this name in a Class.forName() call to load the driver:

Class.forName("com.mysql.jdbc.Driver").newInstance();

To connect to the database, you need to use a JDBC url with the following
format ([xxx] denotes optional url components):


jdbc:mysql://[hostname][:port]/[dbname][?param1=value1][¶m2=value2].

URL Parameters (can be passed as properties in
DriverManager.getConnection() as well):
...

so the driver class to load at startup in my case is com.mysql.jdbc.Driver.

the README also lists URL parameters that can be supplied in the driver url.

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von Phil Coultard
> Gesendet: Freitag, 4. April 2003 22:40
> An: [EMAIL PROTECTED]
> Betreff: RE: Newbie: yet ANOTHER problem: db access
> (NoValidConnectionException)
>
>
> Hi HTH,
>
> Thanks for your suggestion but that didn't work - I'm still
> getting the same
> message (even after re-starting the server and deleting the work
> directory).
>
> I have read the readme enclosed with the jar but to my uneducated eye it
> does not seem to enclose a ref to what I should call the class.
>
> Kind Regards
>
> Phil
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 04 April 2003 19:20
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: AW: Newbie: yet ANOTHER problem: db access
> (NoValidConnectionException)
>
>
> hi phil,
>
> please try com.mysql.jdbc.Driver as the driver class. that should
> work. your
> dburl seems to be correct.
>
> otherwise have a look into your mysql-connector jar. there should be a
> README inside.
>
> HTH
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Auftrag von Phil Coultard
> > Gesendet: Freitag, 4. April 2003 19:53
> > An: [EMAIL PROTECTED]
> > Betreff: Newbie: yet ANOTHER problem: db access
> > (NoValidConnectionException)
> >
> >
> > Geoff: Thanks for all your help, you are a star.
> >
> > Big apologies from a newbie struggling with the basics of Cocoon...
> >
> > I have run into yet another problem which I don't seem to be able to get
> > over...
> >
> > This time I am trying to connect to a MySQL db but get the message:
> >
> > ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
> > (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
> > Could not
> > get the datasource
> > org.apache.avalon.excalibur.datasource.NoValidConnectionException:
> >  No valid
> > JdbcConnection class available
> >
> > in the error log file
> > (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I
> run my xsp
> > (enclosed below)
> >
> > I am also new to MySQL but am familiar with MSSQL so...
> >
> > I have:
> > -made the db (called coultard) and made sure MySQL is running (it
> > works fine
> > solo)
> > -put the MySQL db jar file
> (mysql-connector-java-3.0.6-stable-bin.jar) in
> > C:\tomcat\common\lib
> > -put the init-param for preloading the driver in web.xml as below.
> > -defined the connection pool as below
> > -attempted to run the xsp below
> >
> > I just spits out the title of the page and the session user
> value (which I
> > have set via a login script) which would be consistent with
> their being no
> > results except the same sql statement returns results if run directly in
> > MySQL and the error message suggests to me it's not even
> getting that far.
> >
> > I am using:
> > Win 98
> > JDK 1.3.1
> > Tomcat 4.1.24
> > Cocoon 2.0.4
> >
> > MySQL 4.0.12Win
> > jar file from: mysql-connector-java-3.0.6-stable
> >
> > What confuses me is that my book (Cocoon developers handbook) assures me
> > that any errors preloading the driver or defining the
> connection pool will
> > be thrown up when they are attempted (when the application
> > starts) and shown
> > in access.log and core.log respectfully. My entries in these
> two logs look
> > fine:
> >
> > --
> > --
> > 
> > DEBUG   (2003-04-04) 16:14.22:850   [access] (Unknown-URI)
> > Unknown-thread/CocoonServlet: Trying to load class:
> > org.gjt.mm.mysql.Driver
> > --
> > --
> > 
> >
> > --
> > --
> > 
> > DEBUG   (2003-04-04) 16:14.24:010   [core.manager] (Unknown-URI)
> > Unknown-thread/DefaultComponentFactory: logger attribute is
> > core.datasources.coultard
> > DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
> ></pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26669.html">Re: TEI and cocoon</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22TEI+and+cocoon%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Upayavira%22&o=newest&f=1">Upayavira</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> I am having some issues using the TEI (http://www.tei-c.org/Lite/)
> stylesheets (http://www.tei-c.org/Stylesheets/teixsl.html) to convert
> the XML to HTML. After much searching I found a document on the cocoon
> wiki discussing the xsl:output tag and how it cannot be used in cocoon
> - http://wiki.cocoondev.org/Wiki.jsp?page=XSLT.

It's not that it won't work, more that you shouldn't be using it for certain 
functionality. 
Therefore, if it is in an existing stylesheet, you might well find it works anyway.

Can you say more about what the problems are that you're having?

Upayavira


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26668.html">Re: SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Upayavira%22&o=newest&f=1">Upayavira</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> Yes, but the error keeps going on.. I'll check that later, and search
> a little more deep for help on documentation...

Okay. Check in your $COCOON-HOME/WEB-INF/cocoon.xconf and make sure 
you've got this entry:

  



  

That being missing could cause the problem.

Upayavira

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26667.html">Re[2]: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Re%5C%5B2%5C%5D%5C%3A+Newbie%5C%3A+yet+ANOTHER+problem%5C%3A+db+access+%5C%28NoValidConnectionException%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Jens+Maukisch%22&o=newest&f=1">Jens Maukisch</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi,

maybe you should include the port in your dburl
jdbc:mysql://localhost:3306/coultard

-- 
* best regards
* Jens Maukisch 


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26666.html">TEI and cocoon</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22TEI+and+cocoon%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Warner+Onstine%22&o=newest&f=1">Warner Onstine</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
I am having some issues using the TEI (http://www.tei-c.org/Lite/)
stylesheets (http://www.tei-c.org/Stylesheets/teixsl.html) to convert the
XML to HTML. After much searching I found a document on the cocoon wiki
discussing the xsl:output tag and how it cannot be used in cocoon -
http://wiki.cocoondev.org/Wiki.jsp?page=XSLT.

This tag is extensively used in the TEI stylesheets, so I wanted to find out
if others had used these stylesheets and modified them or if they had their
own which work with the TEI Lite DTD.

Thanks in advance,
Warner


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26665.html">using cocoon with xindice1.1</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22using+cocoon+with+xindice1.1%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Krzysztof+Witukiewicz%22&o=newest&f=1">Krzysztof Witukiewicz</a></span>
</div>
<blockquote><span class="msgFragment"><pre>



Hi, I succeed in connecting cocoon with xindice 1.1 
But there is some strange thing, namely when I send XUpdate statement from xslt 
stylesheet, there is everything ok. When I send the same statement from xsp 
page, XMLDBTransformer cut xmlns:xu=http://www.xmldb.org/xupdate 
namespace definition from xu:modifications tag, so the update 
fails. I can hardcode this in XMLDBTransformer, but I just wonder, why this 
happens (I have no experience with TrAX). If anybody have some clue, please let 
me know. If anybody have some problems in connecting to Xindice 1.1 at all, I 
know the solution :)

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26664.html">RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22RE%5C%3A+Newbie%5C%3A+yet+ANOTHER+problem%5C%3A+db+access+%5C%28NoValidConnectionException%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Phil+Coultard%22&o=newest&f=1">Phil Coultard</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi HTH,

Thanks for your suggestion but that didn't work - I'm still getting the same
message (even after re-starting the server and deleting the work directory).

I have read the readme enclosed with the jar but to my uneducated eye it
does not seem to enclose a ref to what I should call the class.

Kind Regards

Phil

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 19:20
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: AW: Newbie: yet ANOTHER problem: db access
(NoValidConnectionException)


hi phil,

please try com.mysql.jdbc.Driver as the driver class. that should work. your
dburl seems to be correct.

otherwise have a look into your mysql-connector jar. there should be a
README inside.

HTH

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von Phil Coultard
> Gesendet: Freitag, 4. April 2003 19:53
> An: [EMAIL PROTECTED]
> Betreff: Newbie: yet ANOTHER problem: db access
> (NoValidConnectionException)
>
>
> Geoff: Thanks for all your help, you are a star.
>
> Big apologies from a newbie struggling with the basics of Cocoon...
>
> I have run into yet another problem which I don't seem to be able to get
> over...
>
> This time I am trying to connect to a MySQL db but get the message:
>
> ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
> (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
> Could not
> get the datasource
> org.apache.avalon.excalibur.datasource.NoValidConnectionException:
>  No valid
> JdbcConnection class available
>
> in the error log file
> (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I run my xsp
> (enclosed below)
>
> I am also new to MySQL but am familiar with MSSQL so...
>
> I have:
> -made the db (called coultard) and made sure MySQL is running (it
> works fine
> solo)
> -put the MySQL db jar file (mysql-connector-java-3.0.6-stable-bin.jar) in
> C:\tomcat\common\lib
> -put the init-param for preloading the driver in web.xml as below.
> -defined the connection pool as below
> -attempted to run the xsp below
>
> I just spits out the title of the page and the session user value (which I
> have set via a login script) which would be consistent with their being no
> results except the same sql statement returns results if run directly in
> MySQL and the error message suggests to me it's not even getting that far.
>
> I am using:
> Win 98
> JDK 1.3.1
> Tomcat 4.1.24
> Cocoon 2.0.4
>
> MySQL 4.0.12Win
> jar file from: mysql-connector-java-3.0.6-stable
>
> What confuses me is that my book (Cocoon developers handbook) assures me
> that any errors preloading the driver or defining the connection pool will
> be thrown up when they are attempted (when the application
> starts) and shown
> in access.log and core.log respectfully. My entries in these two logs look
> fine:
>
> --
> --
> 
> DEBUG   (2003-04-04) 16:14.22:850   [access] (Unknown-URI)
> Unknown-thread/CocoonServlet: Trying to load class:
> org.gjt.mm.mysql.Driver
> --
> --
> 
>
> --
> --
> 
> DEBUG   (2003-04-04) 16:14.24:010   [core.manager] (Unknown-URI)
> Unknown-thread/DefaultComponentFactory: logger attribute is
> core.datasources.coultard
> DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
> Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
> initialized for:
> org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource
> DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
> Unknown-thread/ExcaliburComponentSelector: Adding
> org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource for
> hint [coultard]
> DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
> Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
> initialized for:
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector
> --
> --
> 
>
> And yet the error thrown when I try to load the page rather suggests to me
> that it can't find, or hasn't 'installed' the jar file properly...
>
> On the assumption that the preload and connection pool substantiations are
> working I have two theories (which I'm sure are probably wrong!)
> 1. That the org.gjt.mm.mysql.Driver is incorrect. I got this
> value from my book  but it is sadly for an older MySQL driver. I
> notice the
> first line of the README which comes with the jar file reads "MySQL
> Connector/J 3.0.6 Stable (formerly MM.MySQL)" and was wondering if this
> change in naming convention is mirrored somehow in it. I have
> been unable to
> find a reference for the correct string for this value (MySQL referring to
> "read your servlet engine or application server vendor's documentatio</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26663.html">Re: SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Jo%C3%A3o+C%C3%A9sar%22&o=newest&f=1">João César</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

> No, that is syntax for 2.1 AFAIK, not 2.0.4. You need  as
> you had.

I've noticed that, because I've seen in some examples that they used other
notation, like  to represent that, but in fact, we're using
cocoon 2.0.4 + tomcat 4.1.


> Believe me, it does get easier as you get used to how to work with Cocoon.
And
> there are discussions going on at the moment about how to improve
> documentation for people like yourself...check out the Wiki
(wiki.cocoondev.org).

I can see some flexibility separating both data (XML) from an apresentation
layer, (done by XSLT for example), and I would like, to keep exploring this
technology :) I've checked out wiki.cocoondev.org, but it seems it lacks on
simple yet effective examples, but it's normal because this is a "recent"
technology...


> I've had it working, so it is possible.

You gave me hope then :) hehe

>
> I used the sample that was as a part of Cocoon 2.0.4. Have you tried
moving the
> file out of the way and having another go?

Yes, but the error keeps going on.. I'll check that later, and search a
little more deep for help on documentation...

Thanks for your help.


Joao Cesar,
[EMAIL PROTECTED]

Computer Science Student's @ University of Lisboa, PORTUGAL



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26662.html">exp + esql tags and attributes - where I can find these?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22exp+%5C%2B+esql+tags+and+attributes+%5C-+where+I+can+find+these%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22e+nio%22&o=newest&f=1">e nio</a></span>
</div>
<blockquote><span class="msgFragment"><pre>


  Anyone has an online docs for where the xsp and esql tags
attributes are? The one from cocoon site is very limited.

Thanks,
enio

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26661.html">seperating content structure and style</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22seperating+content+structure+and+style%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Kris+Rasmussen%22&o=newest&f=1">Kris Rasmussen</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Let me know what you guys think about this.
The general idea these days is to seperate content logic and style, as cocoon does very well. However, I think it is even better if you can seperate structure from style. The way i have done this in the past is with template calling in xsl. However, I think it would be much cleaner to have two style sheet transformations in cocoon, one that takes content to structure, and another that takes structure to style.
For example, if I had an employee database that output xml like this (content):
  Some Name  343234234 ...
I would then transform it to some structural language like this:
   
And then finally transform the structural elements to some sort of presentational form.
Preferably the structural language would consist of as few as possible elements, maybe a couple types of box's, a couple types of lists, a couple types of sections, etc. 
Do people do stuff like this already, and if so are there any good xml languages that one could use to describe structure?
KrisDo you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26660.html">RE: XSL transformation exception when run as CLI, but not as servlet</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22RE%5C%3A+XSL+transformation+exception+when+run+as+CLI%2C+but+not+as+servlet%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Olson%2C+Dave+%5C-Systems%22&o=newest&f=1">Olson, Dave -Systems</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Thanks for mentioning that.  Upgrading Xalan to 2.4.1 fixed it.
-DAvid



> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 5:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XSL transformation exception when run as CLI, but not as
> servlet
> 
> 
> Hello Dave,
> 
> one week ago somebody had exactly the same problem with 
> Cocoon 2.0.4, Xalan 
> 2.3.1 and DocBook 1.48. He solved it by using Xalan 2.4.1, so 
> give it a try. 
> What the difference is between CLI and servlet? I don't know.
> 
> Joerg
> 
> Olson, Dave -Systems wrote:
> > Dear community:
> > I've been trying to transform a simple DocBook XML file 
> into FO (and also
> > PDF) from the command line.  I started by modifying the 
> sitemap that comes
> > with the src distribution's "documentation" example, by 
> adding my pipeline.
> > I've been able to get that sitemap, with DocBook 1.60.1 
> style-sheets, and
> > even FOP to work with Cocoon-2.0.4, running as a servlet, 
> by mounting it in
> > the original Cocoon sitemap.  However, if I try to run 
> Cocoon at a command
> > line, just as you would to generate the documentation 
> (URI=body-todo.xml), I
> > get the following:
> > 
> > WARN2003-04-03 19:30:53.540 [core.xsl] (): File
> > file:.../demo/./docbook1.60.1/fo/docbook.xsl; Line 182; 
> Column 16; Making
> > portrait pages on USletter paper (8.5inx11in)
> > FATAL_E 2003-04-03 19:31:00.663 [core.xsl] (): File
> > file:/...demo/./docbook1.60.1/fo/../common/common.xsl; Line 
> 1576; Column 35;
> > 7 >= 1
> > ; SystemID: 
> file:/.../demo/./docbook1.60.1/fo/../common/common.xsl; Line#:
> > 1576; Column#: 35
> > javax.xml.transform.TransformerException: 7 >= 1
> > at org.apache.xpath.XPath.bool(XPath.java:411)
> > at
> > org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:162)
> > 
> > 
> > at
> > 
> org.apache.cocoon.generation.FileGenerator.generate(FileGenera
> tor.java:143)
> > at
> > 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(CachingEv
> > entPipeline.java:250)
> > at
> > 
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(CachingS
> > treamPipeline.java:395)
> > at
> > 
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNo
> de.invoke(Seri
> > alizeNode.java:154)
> > <...>
> > at org.apache.cocoon.Main.main(Main.java:403)
> > Caused by: java.lang.ArrayIndexOutOfBoundsException: 7 >= 1
> > at java.util.Vector.elementAt(Vector.java:427)
> > at
> > 
> org.apache.xml.dtm.ref.DTMStringPool.indexToString(DTMStringPo
> ol.java:128)
> > <...>
> > 
> > Where should I look for the problem?  I've noticed that the 
> cocoon.xconf I'm
> > using for the CLI invocation defines a  class attribute of
> > "TreeProcessor," which differs from the servlet's cocoon 
> configuration.  If
> > this won't work for my pipeline, which "engine" should I 
> use for the CLI
> > config?
> > 
> > The source XML document is concatenated at the end of this email.
> > 
> > Here's a few other details that might be pertinent.
> > pipeline:
> >   
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> > build:
> > Cocoon-2.0.4. built from a source distribution for both the 
> default target
> > and as a war for the servlet
> > DocBook 1.60.1 style-sheets
> > I've tried resolving the DocBook DTD from a local catalog, 
> but that didn't
> > help.
> > 
> > command line:
> > I use a sh script to build the classpath, from the 
> build/cocoon, lib/core,
> > lib/optional, and ./work dir's, the final line of which is:
> > java -classpath $CP $COCOON_OPTS org.apache.cocoon.Main -c 
> . -d dest -u INFO
> > $*
> > $* would be expanded to "userdemo.fo" when I invoke it.
> > 
> > Other details:
> > I had to remove the generators and transformers related to
> > "sunshine.Sunspot" from the documentation sitemap.xmap in 
> order to get it to
> > run under the servlet cocoon.xconf, however, I was getting 
> the above errors
> > before doing that.
> > 
> > Any ideas?
> > -DAvid
> > 
> > userdemo.xml:
> >  > 
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
> [
> ]>
> 
> 
> 
> 
>   IHSDM User's Manual
>   
> Miles
> Togo
> Turner-Fairbank Highway Research Center
> (TFHRC)
> 
>   Pike
>   SomewhereVA9
> 
>   
>   2003someone
> 
> 
> Disclaimer
>  
>   Say something here.
>  
>  
>   just another paragraph
>  
>  
>   DCM Graph Wizard Info Edit
>fileref="DCMGraphWizardInfoEdit.tabTitles.png"/>
> 
> 
>  First Chapter Contents... 
>  Second Chapter Contents...
>  ... 
>  ... 
>  ... 
> 

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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

 
If this email is </pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26659.html">AW: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22AW%5C%3A+Newbie%5C%3A+yet+ANOTHER+problem%5C%3A+db+access+%5C%28NoValidConnectionException%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Marco+Rolappe%22&o=newest&f=1">Marco Rolappe</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
hi phil,

please try com.mysql.jdbc.Driver as the driver class. that should work. your
dburl seems to be correct.

otherwise have a look into your mysql-connector jar. there should be a
README inside.

HTH

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von Phil Coultard
> Gesendet: Freitag, 4. April 2003 19:53
> An: [EMAIL PROTECTED]
> Betreff: Newbie: yet ANOTHER problem: db access
> (NoValidConnectionException)
>
>
> Geoff: Thanks for all your help, you are a star.
>
> Big apologies from a newbie struggling with the basics of Cocoon...
>
> I have run into yet another problem which I don't seem to be able to get
> over...
>
> This time I am trying to connect to a MySQL db but get the message:
>
> ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
> (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
> Could not
> get the datasource
> org.apache.avalon.excalibur.datasource.NoValidConnectionException:
>  No valid
> JdbcConnection class available
>
> in the error log file
> (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I run my xsp
> (enclosed below)
>
> I am also new to MySQL but am familiar with MSSQL so...
>
> I have:
> -made the db (called coultard) and made sure MySQL is running (it
> works fine
> solo)
> -put the MySQL db jar file (mysql-connector-java-3.0.6-stable-bin.jar) in
> C:\tomcat\common\lib
> -put the init-param for preloading the driver in web.xml as below.
> -defined the connection pool as below
> -attempted to run the xsp below
>
> I just spits out the title of the page and the session user value (which I
> have set via a login script) which would be consistent with their being no
> results except the same sql statement returns results if run directly in
> MySQL and the error message suggests to me it's not even getting that far.
>
> I am using:
> Win 98
> JDK 1.3.1
> Tomcat 4.1.24
> Cocoon 2.0.4
>
> MySQL 4.0.12Win
> jar file from: mysql-connector-java-3.0.6-stable
>
> What confuses me is that my book (Cocoon developers handbook) assures me
> that any errors preloading the driver or defining the connection pool will
> be thrown up when they are attempted (when the application
> starts) and shown
> in access.log and core.log respectfully. My entries in these two logs look
> fine:
>
> --
> --
> 
> DEBUG   (2003-04-04) 16:14.22:850   [access] (Unknown-URI)
> Unknown-thread/CocoonServlet: Trying to load class:
> org.gjt.mm.mysql.Driver
> --
> --
> 
>
> --
> --
> 
> DEBUG   (2003-04-04) 16:14.24:010   [core.manager] (Unknown-URI)
> Unknown-thread/DefaultComponentFactory: logger attribute is
> core.datasources.coultard
> DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
> Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
> initialized for:
> org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource
> DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
> Unknown-thread/ExcaliburComponentSelector: Adding
> org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource for
> hint [coultard]
> DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
> Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
> initialized for:
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector
> --
> --
> 
>
> And yet the error thrown when I try to load the page rather suggests to me
> that it can't find, or hasn't 'installed' the jar file properly...
>
> On the assumption that the preload and connection pool substantiations are
> working I have two theories (which I'm sure are probably wrong!)
> 1. That the org.gjt.mm.mysql.Driver is incorrect. I got this
> value from my book  but it is sadly for an older MySQL driver. I
> notice the
> first line of the README which comes with the jar file reads "MySQL
> Connector/J 3.0.6 Stable (formerly MM.MySQL)" and was wondering if this
> change in naming convention is mirrored somehow in it. I have
> been unable to
> find a reference for the correct string for this value (MySQL referring to
> "read your servlet engine or application server vendor's documentation";
> Cocoon seemingly not making a reference to what these strings should be
> except for the commented WebSphere, Oracle and IBMWebshpere). Further
> attempts to substantiate this theory and attempts at guessing its
> value have
> been unfruitful.
>
> 2. That my reference to the dburl is incorrect. My db is
> physically located
> in C:\mysql\data\ and not under the tomcat/webapps dir so I was
> wondering if
> this had any influence on the matter.
>
>
> Thankfully
>
> Phil
>
>
> </pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26658.html">Re: London Cocoonist seeks comradeship, possibly more ;-)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22London+Cocoonist+seeks+comradeship%2C+possibly+more+%3B%5C-%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Richard+In+Public%22&o=newest&f=1">Richard In Public</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi Phil

After several months, I remain a newbie, albeit a more experienced one.
Regardless, I don't think that developers have to meet as equals to be of
use to each other.  Let's meet up and see what happens.
What's better for you, evenings or weekends?

Richard

- Original Message -
From: "Phil Coultard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 7:00 PM
Subject: RE: London Cocoonist seeks comradeship, possibly more ;-)


> Hi Richard,
>
> Well I too am based in London (Fulham/Hammersmith) but I'm afraid I'm just
a
> newbie so I wouldn't be much use to you yet!
>
> I'm a convert from the MS camp and as such am just learning the ropes...
On
> the other hand I have found bouncing ideas off someone who thinks in
similar
> wave lengths even when they don't have a clue can be beneficial to problem
> solving so if you want the offer's there.
>
> Phil Coultard
>
> -Original Message-
> From: Richard In Public [mailto:[EMAIL PROTECTED]
> Sent: 04 April 2003 17:57
> To: Cocoon Users Mailing List
> Subject: London Cocoonist seeks comradeship, possibly more ;-)
>
> 
>
> The online Cocoon community is great, but I'd really love to meet up with
> other Cocoon users to discuss Cocoon-based approaches to web-engineering.
> Being a lone developer has its advantages, but I sure do miss (in the
flesh)
> discussion and collaboration.
>
> Regards,
>
> Richard Hoberman
> Belsize Park
> London
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/03
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26657.html">RE: London Cocoonist seeks comradeship, possibly more ;-)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22RE%5C%3A+London+Cocoonist+seeks+comradeship%2C+possibly+more+%3B%5C-%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Phil+Coultard%22&o=newest&f=1">Phil Coultard</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi Richard,

Well I too am based in London (Fulham/Hammersmith) but I'm afraid I'm just a
newbie so I wouldn't be much use to you yet!

I'm a convert from the MS camp and as such am just learning the ropes... On
the other hand I have found bouncing ideas off someone who thinks in similar
wave lengths even when they don't have a clue can be beneficial to problem
solving so if you want the offer's there.

Phil Coultard

-Original Message-
From: Richard In Public [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 17:57
To: Cocoon Users Mailing List
Subject: London Cocoonist seeks comradeship, possibly more ;-)



The online Cocoon community is great, but I'd really love to meet up with
other Cocoon users to discuss Cocoon-based approaches to web-engineering.
Being a lone developer has its advantages, but I sure do miss (in the flesh)
discussion and collaboration.

Regards,

Richard Hoberman
Belsize Park
London

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


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26656.html">Newbie: yet ANOTHER problem: db access (NoValidConnectionException)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Newbie%5C%3A+yet+ANOTHER+problem%5C%3A+db+access+%5C%28NoValidConnectionException%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Phil+Coultard%22&o=newest&f=1">Phil Coultard</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Geoff: Thanks for all your help, you are a star.

Big apologies from a newbie struggling with the basics of Cocoon...

I have run into yet another problem which I don't seem to be able to get
over...

This time I am trying to connect to a MySQL db but get the message:

ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
(/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp: Could not
get the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available

in the error log file
(tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I run my xsp
(enclosed below)

I am also new to MySQL but am familiar with MSSQL so...

I have:
-made the db (called coultard) and made sure MySQL is running (it works fine
solo)
-put the MySQL db jar file (mysql-connector-java-3.0.6-stable-bin.jar) in
C:\tomcat\common\lib
-put the init-param for preloading the driver in web.xml as below.
-defined the connection pool as below
-attempted to run the xsp below

I just spits out the title of the page and the session user value (which I
have set via a login script) which would be consistent with their being no
results except the same sql statement returns results if run directly in
MySQL and the error message suggests to me it's not even getting that far.

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

MySQL 4.0.12Win
jar file from: mysql-connector-java-3.0.6-stable

What confuses me is that my book (Cocoon developers handbook) assures me
that any errors preloading the driver or defining the connection pool will
be thrown up when they are attempted (when the application starts) and shown
in access.log and core.log respectfully. My entries in these two logs look
fine:



DEBUG   (2003-04-04) 16:14.22:850   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class: org.gjt.mm.mysql.Driver





DEBUG   (2003-04-04) 16:14.24:010   [core.manager] (Unknown-URI)
Unknown-thread/DefaultComponentFactory: logger attribute is
core.datasources.coultard
DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
Unknown-thread/ThreadSafeComponentHandler: ComponentHandler initialized for:
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource
DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
Unknown-thread/ExcaliburComponentSelector: Adding
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource for
hint [coultard]
DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
Unknown-thread/ThreadSafeComponentHandler: ComponentHandler initialized for:
org.apache.avalon.excalibur.component.ExcaliburComponentSelector



And yet the error thrown when I try to load the page rather suggests to me
that it can't find, or hasn't 'installed' the jar file properly...

On the assumption that the preload and connection pool substantiations are
working I have two theories (which I'm sure are probably wrong!)
1. That the org.gjt.mm.mysql.Driver is incorrect. I got this
value from my book  but it is sadly for an older MySQL driver. I notice the
first line of the README which comes with the jar file reads "MySQL
Connector/J 3.0.6 Stable (formerly MM.MySQL)" and was wondering if this
change in naming convention is mirrored somehow in it. I have been unable to
find a reference for the correct string for this value (MySQL referring to
"read your servlet engine or application server vendor's documentation";
Cocoon seemingly not making a reference to what these strings should be
except for the commented WebSphere, Oracle and IBMWebshpere). Further
attempts to substantiate this theory and attempts at guessing its value have
been unfruitful.

2. That my reference to the dburl is incorrect. My db is physically located
in C:\mysql\data\ and not under the tomcat/webapps dir so I was wondering if
this had any influence on the matter.


Thankfully

Phil




extract from tomcat/webapps/applicationname/WEB-INF/web.xml



  load-class
  
org.gjt.mm.mysql.Driver
  




extract from tomcat/webapps/applicationname/WEB-INF/cocoon.xconf


  
  

  
  false
  jdbc:mysql://localhost/coultard
  root
  

  



tickets.xsp
</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26655.html">Re: SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Upayavira%22&o=newest&f=1">Upayavira</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> No effect :(

Oh well.
 
> Perhaps we could use source:insert instead, we've tried but we get an
> XML output of what we wanted to insert, and no changes on the file :|

No, that is syntax for 2.1 AFAIK, not 2.0.4. You need  as 
you had.
 
> There are no working examples on the documentation, just a scratchpad
> that we already tested with no results also...

Are you using 2.0.4?

> Why are we figuring that altought may appear easy to work with cocoon,
> everytime we atempt to do something simple there's always some problem
> :( And the documentation never tells all the options and tags
> available like the one you just gave us :(

Believe me, it does get easier as you get used to how to work with Cocoon. And 
there are discussions going on at the moment about how to improve 
documentation for people like yourself...check out the Wiki (wiki.cocoondev.org).
 
> Is there any other transformer to write to a file?

I've had it working, so it is possible.

I used the sample that was as a part of Cocoon 2.0.4. Have you tried moving the 
file out of the way and having another go?

Upayavira



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26654.html">London Cocoonist seeks comradeship, possibly more ;-)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22London+Cocoonist+seeks+comradeship%2C+possibly+more+%3B%5C-%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Richard+In+Public%22&o=newest&f=1">Richard In Public</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi

I live in London and am in the process of building a home-based business
providing 'web-presence'.  As of September, I will also be studying law.

After following Cocoon for a few months, I decided to use Cocoon as the
basis for my projects.  So far I have put up two static sites
(www.lifeprojects.net and www.henrysbrownboxes.com - this one is still very
much under development), generated with Cocoon.  Over the next month I will
be replacing Henrys Brown Boxes Miva Merchant backend with one based on
Cocoon, MySQL and probably Hibernate.

The online Cocoon community is great, but I'd really love to meet up with
other Cocoon users to discuss Cocoon-based approaches to web-engineering.
Being a lone developer has its advantages, but I sure do miss (in the flesh)
discussion and collaboration.

Regards,

Richard Hoberman
Belsize Park
London



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26653.html">Re: SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Jo%C3%A3o+C%C3%A9sar%22&o=newest&f=1">João César</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
No effect :(

Perhaps we could use source:insert instead, we've tried but we get an XML
output of what we wanted to insert, and no changes on the file :|

There are no working examples on the documentation, just a scratchpad that
we already tested with no results also...

Why are we figuring that altought may appear easy to work with cocoon,
everytime we atempt to do something simple there's always some problem :(
And the documentation never tells all the options and tags available like
the one you just gave us :(

Is there any other transformer to write to a file?

Thanks

Joao Cesar
[EMAIL PROTECTED]

Computer Science Student's @ University of Lisboa, PORTUGAL

- Original Message -
From: "Upayavira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 5:02 PM
Subject: Re: SourceWrite error :|


Try adding  overwrite="true" into the  node. Not sure if that
is it, but it is
worth a try.

Upayavira

On 4 Apr 2003 at 16:53, João César wrote:

>
> Hi, first of all thanks for your prompt answer :)
>
> I've just changed to  and the
> error still remains, but after I analyse the XML displayed in the
> browser we see:
>
> 
> http://apache.org/cocoon/source/1.0";>
> result="failed" serializer="xml">The src attribute doesn't resolve to
> a writeable source and failed to cancel
>  
>
> And the file exist's on that computer directory.. Do we need to write
> something on the file for it to become "writable", or can it be empty?
>
> Thanks in advance
>
> Joao Cesar
> [EMAIL PROTECTED]
>
>
>
>
> - Original Message -
> From: "Upayavira" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 04, 2003 4:45 PM
> Subject: Re: SourceWrite error :|
>
>
> > > Hi all,
> > >
> > > We're getting this error on sourcewrite transformer:
> > >
> > > "The src attribute doesn't resolve to a writeable source and
> > > failed to cancel " ...
> > >
> > > ...
> >
> > The source you write to must be 'writable'. Obviously 'context:'
> > does not
> refer to a
> > source that is writable. If you wish to write to a file, try either
> > src="pubmed/repository/my.xml" or
> > src="file:/path/to/context/pubmed/repository/my.xml"
> >
> > This should work as file: is writable.
> >
> > Regards, Upayavira
> >
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26652.html">Cocoon J2EE datasource in WSAD</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Cocoon+J2EE+datasource+in+WSAD%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Michael+Vennera%22&o=newest&f=1">Michael Vennera</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
I'm trying to get Cocoon to recognize a datasource
defined in the WSAD 4 test client, but it doesn't seem
to be working. I've checked and rechecked everything
and I keep getting the error:

ERROR   (2003-04-04) 10:52.04:201   [core.manager]
(Unknown-URI) Unknown-thread/J2eeDataSource: Problem
with JNDI lookup of datasource
javax.naming.NameNotFoundException: Name comp/env/jdbc
not found in context "java:"

Any suggestions would be greatly appreciated. Thanks.

MV

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26651.html">Re: SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Upayavira%22&o=newest&f=1">Upayavira</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Try adding  overwrite="true" into the  node. Not sure if that is it, but 
it is
worth a try.

Upayavira

On 4 Apr 2003 at 16:53, João César wrote:

>
> Hi, first of all thanks for your prompt answer :)
>
> I've just changed to  and the
> error still remains, but after I analyse the XML displayed in the
> browser we see:
>
> 
> http://apache.org/cocoon/source/1.0";>
> result="failed" serializer="xml">The src attribute doesn't resolve to
> a writeable source and failed to cancel
>  
>
> And the file exist's on that computer directory.. Do we need to write
> something on the file for it to become "writable", or can it be empty?
>
> Thanks in advance
>
> Joao Cesar
> [EMAIL PROTECTED]
>
>
>
>
> - Original Message -
> From: "Upayavira" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 04, 2003 4:45 PM
> Subject: Re: SourceWrite error :|
>
>
> > > Hi all,
> > >
> > > We're getting this error on sourcewrite transformer:
> > >
> > > "The src attribute doesn't resolve to a writeable source and
> > > failed to cancel " ...
> > >
> > > ...
> >
> > The source you write to must be 'writable'. Obviously 'context:'
> > does not
> refer to a
> > source that is writable. If you wish to write to a file, try either
> > src="pubmed/repository/my.xml" or
> > src="file:/path/to/context/pubmed/repository/my.xml"
> >
> > This should work as file: is writable.
> >
> > Regards, Upayavira
> >
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26650.html">Re: SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Jo%C3%A3o+C%C3%A9sar%22&o=newest&f=1">João César</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

Hi, first of all thanks for your prompt answer :)

I've just changed to  and the error
still remains, but after I analyse the XML displayed in the browser we see:


http://apache.org/cocoon/source/1.0";>
   The src attribute doesn't resolve to a writeable source and
failed to cancel
 

And the file exist's on that computer directory.. Do we need to write
something on the file for it to become "writable", or can it be empty?

Thanks in advance

Joao Cesar
[EMAIL PROTECTED]




- Original Message -
From: "Upayavira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 4:45 PM
Subject: Re: SourceWrite error :|


> > Hi all,
> >
> > We're getting this error on sourcewrite transformer:
> >
> > "The src attribute doesn't resolve to a writeable source and failed to
> > cancel "
> > ...
> >
> > ...
>
> The source you write to must be 'writable'. Obviously 'context:' does not
refer to a
> source that is writable. If you wish to write to a file, try either
> src="pubmed/repository/my.xml" or
> src="file:/path/to/context/pubmed/repository/my.xml"
>
> This should work as file: is writable.
>
> Regards, Upayavira
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26649.html">Re: upload - webdav</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22upload+%5C-+webdav%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Guido+Casper%22&o=newest&f=1">Guido Casper</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Geoff Howard wrote:
> At 07:44 AM 4/4/2003, you wrote:
>> Sorry for the late answer.
>> I have been OOTO this week.
>>
>> Olivier GUCKERT wrote:
>>> Now, i can use protected webdav directory to serve files with
>>> Cocoon : thanks Guido.
>>>
>>> What i want to do yet et upload files with Cocoon to this protected
>>> webdav directory. Is it a simple way to do this ?
>>
>> Sorry, no simple way.
>> The only way without coding Java would currently be DAVfs:
>> http://dav.sourceforge.net/
>>
>> Then you could simply use the SourceWritingTransformer with
>> FileSource.
>
> I missed what went on right before this, but unless I misunderstand,
> you won't need the SourceWritingTransformer if you're handling file
> uploads. You'd just set web.xml upload-dir to point to the right
> place on your file system.

Yes, you are correct of course (thought more of edited/generated XML
content).


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26648.html">Re: SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Upayavira%22&o=newest&f=1">Upayavira</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> Hi all,
> 
> We're getting this error on sourcewrite transformer:
> 
> "The src attribute doesn't resolve to a writeable source and failed to
> cancel "
> ...
>
> ...

The source you write to must be 'writable'. Obviously 'context:' does not refer to a 
source that is writable. If you wish to write to a file, try either 
src="pubmed/repository/my.xml" or 
src="file:/path/to/context/pubmed/repository/my.xml"

This should work as file: is writable.

Regards, Upayavira


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26647.html">SourceWrite error :|</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22SourceWrite+error+%5C%3A%5C%7C%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Jo%C3%A3o+C%C3%A9sar%22&o=newest&f=1">João César</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi all,

We're getting this error on sourcewrite transformer:

"The src attribute doesn't resolve to a writeable source and failed to
cancel "

The generator src is:

erro.xml:


http://apache.org/cocoon/source/1.0";>
   
 
   XML Object body
 
   
 

in the sitemap we have:









and the my.xml file is in the correct directory... :|

What's wrong?

Thanks in advance,

Joao Cesar
[EMAIL PROTECTED]





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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26646.html">Does this look familiar</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Does+this+look+familiar%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Yves+Vindevogel%22&o=newest&f=1">Yves Vindevogel</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi all,

I've been using Cocoon since quite some time now, and I'm doing pretty much 
everything with it.  However, I miss one thing.

As a development project leader, coordinating a team, I found it very 
difficult to create large websites (like 500 screens on database with 75 
tables) that are consistent and easy to manage (afterwards).  Changes in 
functional specifications were horrible.

I was therefore looking for a system to "describe" pages, rather than to code 
them.  I've been doing my own development on this, giving me nice results in 
Cocoon.  What I do is this: I describe my page in XML, and then use that 
description as a generator in a pipeline.  I put on some transformations, and 
finally, my page is constructed in html with some xsl stylesheets.

But, before I develop any further, I would like to know if there are similar 
projects on-going.

On XMLForms.  They seem to handle form validation.  I can include that for 
validating forms, but it does not describe a page completely, does it ?  E.g. 
you can't describe a menu in it, like the menu on the left in 
xml.apache.org/cocoon.

On Sunrise.  Sunrise seems to be able to handle authentication on forms, but, 
it does not go into the form itself, where a part of the form may be 
different according to the user that is logged in.  Right ?

So, I don't find a whole concept within Cocoon.
Let me show you some examples below, to clarify what I mean.

Below is the description of a simple menu.
All links are visible to everybody, except the link to the helpdesk, which is 
only accessible when you are logged in as a client (this is kept in the 
session)




Clients















The example below describes a screen.  A query is executed, and, if results 
are found, a list is shown with two columns in it.  If not, a message is 
shown.


http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
xmlns:sql="http://apache.org/cocoon/SQL/2.0";
create-session="true">



select st.oid, st.subject, st.tickettype
from tblSupportTicket st inner join 
tblSupportTicketEntry te on st.oid = te.ticket
inner join tblSiteUser su on te.login = 
su.oid
where te.parententry is null
and su.login = ''


















No active tickets available.







Below a final example.  I receive the results from a form (there's no XMLForm 
validation in it yet).  I use a Postgresql plsql function, that tries to 
insert the data in the database.  The function returns values 0 
(ok,inserted), 1 - 4 (errors, but not against the database itself, logical 
errors), or a real error when you have a duplicate login.  (I know I can 
check on blanks differently, but for now, I used this method)


http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
xmlns:sql="http://apache.org/cocoon/SQL/2.0";
create-session="true">



select fnSiteUserStandardInsert (
'',
'',
'',
''
)




0
Thank you

Thank you for registering.
An email has been sent to you to 
confirm your registration. When this mail arrives, click on the link inside.
This will confirm your registration 
immediatly
Thanks again for 
registeringImplements

 



1
  </pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26645.html">Re: Content formats</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Content+formats%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Ryan+Hoegg%22&o=newest&f=1">Ryan Hoegg</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi,

I've been looking over the suggestions, and they seem to be pretty much 
what I was looking for.

I understand now why someone suggested XHTML.  However, there is way too 
much styling possible in XHTML.  I need a content format that somewhat 
encourages authors not to put style elements such as font or hr in their 
content.

It seems that the Maven xdoc format and the Cocoon document-10 format 
have a lot in common.  Cocoon has a  element while xdoc puts 
header content in the document root outside of the .  Cocoon has 
 through , xdoc has  and .

DITA looks fascinating.  So far it looks like everything I might want. 
It is a lot to absorb, but I'll ping the list back after I absorb some 
of it.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
Steve Crossan wrote:

How about the xdoc format used by Maven and Anakia ?

http://jakarta.apache.org/site/jakarta-site-tags.html

Steve

http://www.runtime-collective.com
t: 01273 234290
f: 01273 234291
m: 0789 984 1684
On Thu, 3 Apr 2003, Alex Romayev wrote:

 

I haven't seen/used any standardised page layout
formats.  I'm using Cocoon's portal framework and I
like/use their idea of spliting the page into
independent coplets (sometimes known as portlets).  I
know it's not much, but it's a good start and I'm
actually enjoying some nice benefits.  What I've also
done was to make heavy use of CSS2, so that the look
and positioning of each coplet can be controlled
externally.
-Alex

--- Tony Collen <[EMAIL PROTECTED]> wrote:
   

On Thu, 3 Apr 2003, Ryan Hoegg wrote:





 

What format do seasoned Cocoon people use to
   

represent web content?
 

That is, when the choice isn't made for them
   

because of pre-existing
 

content.
   

XHTML, of course.   At least, when I'm writing suff
that will probably
just go on the web.  Either that, or I'll invent my
own DTD on the fly.
With respect to document-1.0, that's the format the
current Cocoon
documents are in right now.
Tony

--
Tony Collen
ICQ: 12410567
--
Cocoon: Internet Glue (A Cocoon Weblog)
http://manero.org/weblog/
--


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26644.html">Re: escaping xml tags</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22escaping+xml+tags%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Bert+Van+Kets%22&o=newest&f=1">Bert Van Kets</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Aparently your result returns a string and not and XML 
stream.
You can use JTidy to convert your String to an XML stream.  It's classes 
are available in Cocoon!
Here's a code snip out of an XSP page that converts a POST from a brower 
based html editor to an XML stream.

  
org.w3c.tidy.Tidy
java.io.ByteArrayInputStream
  
  

  String strContent = request.getParameter("content");
  ByteArrayInputStream in = new ByteArrayInputStream( 
strContent.getBytes() );
  org.w3c.dom.Document doc = null;
  org.w3c.tidy.Configuration conf = new org.w3c.tidy.Configuration();

  try {
Tidy tidy = new Tidy();
//Do not show "parsing" messages
tidy.setQuiet(true);
//Do not show warnings in the Servlet Engine console
tidy.setShowWarnings(false);
//set the output type
tidy.setXmlOut(true);
//Set the encoding
tidy.setCharEncoding( conf.LATIN1 );
//Set output options
tidy.setBreakBeforeBR(false);
tidy.setQuoteNbsp(true);
tidy.setQuoteAmpersand(true);
tidy.setLiteralAttribs(true);
//Omit the document type in the tidy output
tidy.setXmlPi(false);
//parse the document tot a DOM tree
doc =  tidy.parseDOM(in, null);
  } catch (Exception e) {
   //Do some error handling here
  }


  doc.getDocumentElement()

You will need to tweak the Tidy parameters, but you get the idea, I guess.
The DOM stream from JTidy is automatically converted to SAX by Cocoon 
(correct me if I'm wrong) so you can do regular transformations in the 
pipeline afterwards.

HTH,
Bert
At 14:46 4/04/2003 +0100, you wrote:
Don't know if this is the only way, nor how to do it in XSP, but what you 
want to do is
parse the XML. In Java (e.g. in a custom generator) you could say is 
something like:

InputSource inputSource = new InputSource(new
ByteArrayInputStream(page.getBytes()));
Parser parser = (Parser) manager.lookup(Parser.ROLE);
parser.parse(inputSource, xmlConsumer);
xmlConsumer is a handle for the next stage in a pipeline. I don't know if 
you can get
hold of that in XSP.

Anyway, hope that helps and isn't completely irrelevant!

Regards, Upayavira

On 4 Apr 2003 at 15:39, Ali Mesbah wrote:

> > As quoted from Lionel Crine <[EMAIL PROTECTED]>:
> > > document returned is escaped -> What does that mean?
> >
>  I would expect:
>
>  
>  http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="person.xsd"
> xmlns:src="http://xml.apache.org/xindice/Query";
> src:col="/db/person"
> src:key="632dd5400392cab700f4103a2d4f">
>
>   Marc
>   Jansen
>   07503816784
>   Laan 12
>   1970-01-21
>  
>
>  but I get (this is what I call escaped):
>
>  <?xml version="1.0"?>
>  <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="person.xsd"
> xmlns:src="http://xml.apache.org/xindice/Query";
> src:col="/db/person"
> src:key="632dd5400392cab700f4103a2d4f">
>
>   <name>Marc<name>
>   <last_name>Jansen</last_name>
>   <phone>07503816784</phone>
>   <address>Laan 12</address>
>   <date_of_birth>1970-01-21</date_of_birth>
>  </persongt;
>
>
> > > Lionel
> > >
> > >
> > > At 13:53 04/04/2003 +0200, you wrote:
> > > >I have an XSP which returns an XML document from the Xindice
> > > >database.
> > > >
> > > >result = get the document from Xindice;
> > > >
> > > >result
> > > >
> > > >It goes all well except that the document returned is escaped so
> > > >it is not actually XML anymore. Does anyone know how to tell XSP
> > > >not to escape the result?
> > > >
> > > >Thanks,
> > > >Ali
> > > >
> > > >
> > > >--
> > > >-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> > > >
> > > >-
> > > > To unsubscribe, e-mail:
> > > >[EMAIL PROTECTED] For additional commands,
> > > >e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > --
> > > --- To unsubscribe, e-mail:
> > > [EMAIL PROTECTED] For additional commands,
> > > e-mail: [EMAIL PROTECTED]
> > >
> >
> > --
> > -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


-
To unsubscribe, e-mail: [EMAIL PR</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26643.html">Re: Stripping space from XSP output</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Stripping+space+from+XSP+output%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Michael+Vennera%22&o=newest&f=1">Michael Vennera</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
The spaces are reporduced from the XSP source page.
For instance, the lines on which I declare my
connection info in the XSP show up as equivalent blank
lines in the XML output. I could normailze the XSP
source, but I need to keep it readable...

--- Lionel Crine <[EMAIL PROTECTED]> wrote:
> can you tell us more .
> 
> The spaces are created by the xsp page?
> 
> 
> Lionel
> 
> 
> At 12:07 03/04/2003 -0800, you wrote:
> >Anyone know a way (besides XSLT) to strip white
> space
> >from XSP output. I tried the following:
> >
> > xml:space="default">
> >
> >However, this has no effect on whitespace in my
> >output. Obviously, I could use XSLT to strip the
> >space, but I have performance concerns - I don't
> want
> >to add an additional transformation and I want to
> keep
> >down the size of document going through my existing
> >transformation. Thanks...
> >
> >MV
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Tax Center - File online, calculators,
> forms, and more
> >http://tax.yahoo.com
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26642.html">Re: PDF Forms and XSL:FO</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22PDF+Forms+and+XSL%5C%3AFO%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Bert+Van+Kets%22&o=newest&f=1">Bert Van Kets</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
iText has PDF forms support.

Bert

At 12:44 3/04/2003 -0800, you wrote:
Is it possible to generate PDF forms (editable fields within PDF) using 
XSL:FO?



Do you Yahoo!?
<http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.html>Yahoo! 
Platinum - Watch CBS' NCAA March Madness, 
<http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.html>live 
on your desktop!


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26641.html">Re: [XSP]  not for int?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22%5C%5BXSP%5C%5D++not+for+int%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Boris+Althaus%22&o=newest&f=1">Boris Althaus</a></span>
</div>
<blockquote><span class="msgFragment"><pre>



The xsp-logic tag is allowed before the page tag 
too.
But in that section should be declared a class or a 
method like
 
String myMethod(){
 return "string";
}
 
This declared method can used in the page 
section.
 
Boris

  - Original Message - 
  From: 
  Lionel Crine 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, April 03, 2003 9:10 
  AM
  Subject: Re: [XSP]  not for 
  int?
  the  tag should be between the  
  tag.LionelAt 11:21 02/04/2003 +0200, you 
  wrote:>Hello,>>the following XSP causes an 
  LanguageException:>  xmlns:xsp="http://apache.org/xsp">>>  
  >   int value = 1;>   value 
  = value + 1;>  >>  
  >   
  PageTitle>   
  >    1 + 1 = 
  value>   
  >  
  >>>The exception 
  says:>>org.apache.cocoon.components.language.LanguageException: 
  Error compiling>xsptest_xsp:>Line 69, column 22: 
   expected>Line 69, column 16: class value not found 
  in class>org.apache.cocoon.www.xsptest_xsp>Line 0, column 
  0:>2 errors>>After changing the type from int to String, 
  the XSP works:>  xmlns:xsp="http://apache.org/xsp">>>  
  >   String value = "1";>   
  value = "2";>  >>  
  >   
  PageTitle>   
  >    1 + 1 = 
  value>   
  >  
  >>>Why? Doesn't 
   automatically convert int to String?>>Thank 
  you!>>Regards>Stephan->To 
  unsubscribe, e-mail: [EMAIL PROTECTED]>For 
  additional commands, e-mail: [EMAIL PROTECTED]-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26640.html">XMLMetaModule</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22XMLMetaModule%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Lionel+Crine%22&o=newest&f=1">Lionel Crine</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hello,

I'd like to load a module (another xml file) into my cocoon.xconf but I do 
not have the XMLMetaModule (I use cocoon 2.0.4).

this component is not working :
 
	
  

So can I put directly the values from RLR.xconf in the cocoon.xconf and how.

Lionel

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26639.html">Re: upload - webdav</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22upload+%5C-+webdav%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Geoff+Howard%22&o=newest&f=1">Geoff Howard</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
At 07:44 AM 4/4/2003, you wrote:
Sorry for the late answer.
I have been OOTO this week.
Olivier GUCKERT wrote:
> Now, i can use protected webdav directory to serve files with Cocoon :
> thanks Guido.
>
> What i want to do yet et upload files with Cocoon to this protected
> webdav directory. Is it a simple way to do this ?
Sorry, no simple way.
The only way without coding Java would currently be DAVfs:
http://dav.sourceforge.net/
Then you could simply use the SourceWritingTransformer with FileSource.
I missed what went on right before this, but unless I misunderstand, you
won't need the SourceWritingTransformer if you're handling file uploads.
You'd just set web.xml upload-dir to point to the right place on your
file system.
Geoff

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26638.html">Re: escaping xml tags</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22escaping+xml+tags%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Upayavira%22&o=newest&f=1">Upayavira</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Don't know if this is the only way, nor how to do it in XSP, but what you want to do 
is 
parse the XML. In Java (e.g. in a custom generator) you could say is something like:

InputSource inputSource = new InputSource(new 
ByteArrayInputStream(page.getBytes()));
Parser parser = (Parser) manager.lookup(Parser.ROLE);
parser.parse(inputSource, xmlConsumer);

xmlConsumer is a handle for the next stage in a pipeline. I don't know if you can get 
hold of that in XSP. 

Anyway, hope that helps and isn't completely irrelevant!

Regards, Upayavira

On 4 Apr 2003 at 15:39, Ali Mesbah wrote:

> > As quoted from Lionel Crine <[EMAIL PROTECTED]>:
> > > document returned is escaped -> What does that mean?
> > 
>  I would expect:
> 
>  
>  http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="person.xsd"
> xmlns:src="http://xml.apache.org/xindice/Query";
> src:col="/db/person"
> src:key="632dd5400392cab700f4103a2d4f">
> 
>   Marc
>   Jansen
>   07503816784
>   Laan 12
>   1970-01-21
>  
> 
>  but I get (this is what I call escaped):
> 
>  <?xml version="1.0"?>
>  <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="person.xsd"
> xmlns:src="http://xml.apache.org/xindice/Query";
> src:col="/db/person"
> src:key="632dd5400392cab700f4103a2d4f">
> 
>   <name>Marc<name>
>   <last_name>Jansen</last_name>
>   <phone>07503816784</phone>
>   <address>Laan 12</address>
>   <date_of_birth>1970-01-21</date_of_birth>
>  </persongt;
> 
> 
> > > Lionel
> > > 
> > > 
> > > At 13:53 04/04/2003 +0200, you wrote:
> > > >I have an XSP which returns an XML document from the Xindice
> > > >database.
> > > >
> > > >result = get the document from Xindice;
> > > >
> > > >result
> > > >
> > > >It goes all well except that the document returned is escaped so
> > > >it is not actually XML anymore. Does anyone know how to tell XSP
> > > >not to escape the result?
> > > >
> > > >Thanks,
> > > >Ali
> > > >
> > > >
> > > >--
> > > >-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> > > >
> > > >-
> > > > To unsubscribe, e-mail:
> > > >[EMAIL PROTECTED] For additional commands,
> > > >e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > > --
> > > --- To unsubscribe, e-mail:
> > > [EMAIL PROTECTED] For additional commands,
> > > e-mail: [EMAIL PROTECTED]
> > > 
> > 
> > -- 
> > -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> > 
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -- 
> -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26637.html">Re: escaping xml tags</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22escaping+xml+tags%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Ali+Mesbah%22&o=newest&f=1">Ali Mesbah</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> As quoted from Lionel Crine <[EMAIL PROTECTED]>:
> > document returned is escaped -> What does that mean?
> 
 I would expect:
 
 
 http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="person.xsd"
xmlns:src="http://xml.apache.org/xindice/Query";
src:col="/db/person"
src:key="632dd5400392cab700f4103a2d4f">
  
  Marc
  Jansen
  07503816784
  Laan 12
  1970-01-21
 

 but I get (this is what I call escaped):

 <?xml version="1.0"?>
 <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="person.xsd"
xmlns:src="http://xml.apache.org/xindice/Query";
src:col="/db/person"
src:key="632dd5400392cab700f4103a2d4f">
  
  <name>Marc<name>
  <last_name>Jansen</last_name>
  <phone>07503816784</phone>
  <address>Laan 12</address>
  <date_of_birth>1970-01-21</date_of_birth>
 </persongt;
 
 
> > Lionel
> > 
> > 
> > At 13:53 04/04/2003 +0200, you wrote:
> > >I have an XSP which returns an XML document from the Xindice database.
> > >
> > >result = get the document from Xindice;
> > >
> > >result
> > >
> > >It goes all well except that the document returned is escaped so it is not
> > >actually XML anymore. Does anyone know how to tell XSP not to escape the 
> > >result?
> > >
> > >Thanks,
> > >Ali
> > >
> > >
> > >--
> > >-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -- 
> -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26636.html">Re: escaping xml tags</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22escaping+xml+tags%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Ali+Mesbah%22&o=newest&f=1">Ali Mesbah</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
As quoted from Lionel Crine <[EMAIL PROTECTED]>:
> document returned is escaped -> What does that mean?

I would expect:


http://www.w3.org/2001/XMLSchema-instance";
   xsi:noNamespaceSchemaLocation="person.xsd"
   xmlns:src="http://xml.apache.org/xindice/Query";
   src:col="/db/person"
   src:key="632dd5400392cab700f4103a2d4f">
 
 Marc
 Jansen
 07503816784
 Laan 12
 1970-01-21


<?xml version="1.0"?>
<person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:noNamespaceSchemaLocation="person.xsd"
   xmlns:src="http://xml.apache.org/xindice/Query";
   src:col="/db/person"
   src:key="632dd5400392cab700f4103a2d4f">
 
 <name>Marc<name>
 <last_name>Jansen</last_name>
 <phone>07503816784</phone>
 <address>Laan 12</address>
 <date_of_birth>1970-01-21</date_of_birth>
</persongt;


> Lionel
> 
> 
> At 13:53 04/04/2003 +0200, you wrote:
> >I have an XSP which returns an XML document from the Xindice database.
> >
> >result = get the document from Xindice;
> >
> >result
> >
> >It goes all well except that the document returned is escaped so it is not
> >actually XML anymore. Does anyone know how to tell XSP not to escape the 
> >result?
> >
> >Thanks,
> >Ali
> >
> >
> >--
> >-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26635.html">Re: escaping xml tags</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22escaping+xml+tags%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Lionel+Crine%22&o=newest&f=1">Lionel Crine</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
document returned is escaped -> What does that mean?

Lionel

At 13:53 04/04/2003 +0200, you wrote:
I have an XSP which returns an XML document from the Xindice database.

result = get the document from Xindice;

result

It goes all well except that the document returned is escaped so it is not
actually XML anymore. Does anyone know how to tell XSP not to escape the 
result?

Thanks,
Ali
--
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26634.html">Re: upload - webdav</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22upload+%5C-+webdav%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Guido+Casper%22&o=newest&f=1">Guido Casper</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Sorry for the late answer.
I have been OOTO this week.

Olivier GUCKERT wrote:
> Now, i can use protected webdav directory to serve files with Cocoon :
> thanks Guido.
> 
> What i want to do yet et upload files with Cocoon to this protected
> webdav directory. Is it a simple way to do this ?

Sorry, no simple way.
The only way without coding Java would currently be DAVfs:
http://dav.sourceforge.net/

Then you could simply use the SourceWritingTransformer with FileSource.

HTH
Guido

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

Guido Casper
-
s&n AG, Open Source Competence Center
Tel.: +49-5251-1581-87
Klingenderstr. 5mailto:[EMAIL PROTECTED]
D-33100 Paderborn   http://www.s-und-n.de
-

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26633.html">escaping xml tags</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22escaping+xml+tags%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Ali+Mesbah%22&o=newest&f=1">Ali Mesbah</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
I have an XSP which returns an XML document from the Xindice database.

result = get the document from Xindice;

result

It goes all well except that the document returned is escaped so it is not
actually XML anymore. Does anyone know how to tell XSP not to escape the result?

Thanks,
Ali


-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26632.html">RE: Unit test for Cocoon</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22RE%5C%3A+Unit+test+for+Cocoon%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Stephan+Michels%22&o=newest&f=1">Stephan Michels</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

On Wed, 2 Apr 2003, Pham Thanh Quan wrote:

> Dear Stephan,
>
> I would like to test on every separate action, generator, transformer...
> Please show me the test case for that. Thank you.

In the current CVS HEAD:

cocoon-2.1/src/test/org/apache/cocoon/generation/AbstractGeneratorTestCase.java
cocoon-2.1/src/test/org/apache/cocoon/transformation/AbstractTransformerTestCase.java

Stephan.

> -Original Message-
> From: Stephan Michels [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Unit test for Cocoon
>
>
>
> On Tue, 1 Apr 2003, Pham Thanh Quan wrote:
>
> > Hi,
> >
> > Do you know any unit-test tool for Cocoon? Please tell me.
> > Thanks and regards
>
> What do you prefer to test? There exist a testcase for generators
> and transformer. And writing a test case for complete pipelines
> shouldn't be difficult.
>
> The only problem, I see, is that you must compare binaries,
> if you write a test case for serializer or complete
> pipelines, except if these produce XML.
>
> Stephan.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26631.html">Using system properties in sitemap</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Using+system+properties+in+sitemap%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Alexander+Docter%22&o=newest&f=1">Alexander Docter</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi,

is it possible to use system properties (or other properties, environment
vars) directly in the sitemap?
I want to put a line like http://{server}/blaa.xml"; />
in the sitemap and I want to be able to keep the servername configurable.

What I could do is use an action that puts a system property in a sitemap
variable, but that means that this action has to be called for every
request.
Has someone found a simpler way to do this?

regards,

Alexander



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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26630.html">Re: Authentication framework sample and Mozilla...</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Authentication+framework+sample+and+Mozilla...%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Olivier+Billard%22&o=newest&f=1">Olivier Billard</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi Jin !

I use the cocoon 2.1dev. I think you should try it to check if some bug was
fix between our 2 versions by testing the 2.1 dev with your config. If I'm
not wrong, the authentication framework was split from the sunRise portal in
the 2.1dev with maybe some fixes.

I can't reproduce the problem you describe with my config : win2K, "cocoon
servlet" (jetty) 2.1dev, java 1.4.1_01. In both IE 6 and Netscape 4.78
Good luck and write back for results !

Regards
--
Olivier


From: "jin wu" <[EMAIL PROTECTED]>
> hi oliver,
> i have the similar but worse problem than you. Using Netscape 4.78 or IE
> 6.0, the protected resource is protected well during the first time
> login-access-logout-deny process, however, after i tried the same process
> the second time, the protected resource is still accessable after i
logout.
> the environment i am using is:
> +---+
> |win2000|
> |cocoon 2.0.4 (bin file with cocoon-scratchpad.jar) |
> |Tomcat 4.1.18  |
> |java 1.3.06|
> +---+
>
> And here is part of my sitemap:
>
> ..
> src="org.apache.cocoon.sunshine.sunrise.acting.AuthAction">
>
> http://apache.org/cocoon/sitemap/1.0";
> xmlns:sunshine="http://sunshine.sundn.de/sunshine/1.0";>
> 
> 
>  
>
> ..
>
> 
> 
>   
> 
> 
> 
> 
>   
>   
> 
>   
>   
>value="request:password"/>
>   
>   
> 
> 
> 
> 
>
>  
>  
>
>   
>   
>
>  
>  
>
>
>   
>
>
>  
>  
>   
>   
>   
>   
>   
>   
>  
> 
> 
>
> ..
>
> Hope we could find out the problem or solution.
>
> brdgs,
> j.w
>
>
>
>
>
> >From: "Olivier Billard" <[EMAIL PROTECTED]>
> >Reply-To: "Olivier Billard" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>, "Olivier Billard" <[EMAIL PROTECTED]>
> >Subject: Re: Authentication framework sample and Mozilla...
> >Date: Wed, 2 Apr 2003 11:24:52 +0200
> >
> >Even if the cache is set to 0 Ko !
> >This case doesn't appened in Netscape with the same configuration...
> >
> >But I suppose other protected pages not in memory cache will send the
user
> >to the login page...
> >But would it be better (if not done, but in this case I don't understand)
> >to
> >set expiration date to now in all protected pages ?
> >
> >Sorry if it is a dumb question... ! :)
> >
> >
> >- Original Message -
> >From: "Olivier Billard" <[EMAIL PROTECTED]>
> >To: "Cocoon Users" <[EMAIL PROTECTED]>
> >Sent: Wednesday, April 02, 2003 11:07 AM
> >Subject: Authentication framework sample and Mozilla...
> >
> >
> > > Hi all cocooners !
> > >
> > > I'm working on using the authentication framework, base on the
> > > authentication sample, in the Cocoon 2.1 CVS from yesterday.
> > > I made :
> > > build clean
> > > build webapp
> > > cocoon servlet
> > >
> > > With an ooold Netscape (4.78) and IE 6, all works fine : protected
area
> > > access is first denied, and then accepted after logged in, finally
> >denied
> > > when logged out.
> > > But with Mozilla, when cache option are set to "Never compare with the
> > > cache" (and cache deleted) the protected area is still accessible,
even
> >if
> >I
> > > logged out...
> > >
> > > Is this a bug from Mozilla or Cocoon ?
> > > This "hole" is pretty disturbing...
> > >
> > > Thanks
> > > --
> > > Olivier
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26629.html">Re: Content formats</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Content+formats%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Steve+Crossan%22&o=newest&f=1">Steve Crossan</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
How about the xdoc format used by Maven and Anakia ?

http://jakarta.apache.org/site/jakarta-site-tags.html

Steve

http://www.runtime-collective.com
t: 01273 234290
f: 01273 234291
m: 0789 984 1684

On Thu, 3 Apr 2003, Alex Romayev wrote:

> I haven't seen/used any standardised page layout
> formats.  I'm using Cocoon's portal framework and I
> like/use their idea of spliting the page into
> independent coplets (sometimes known as portlets).  I
> know it's not much, but it's a good start and I'm
> actually enjoying some nice benefits.  What I've also
> done was to make heavy use of CSS2, so that the look
> and positioning of each coplet can be controlled
> externally.
> 
> -Alex
> 
> --- Tony Collen <[EMAIL PROTECTED]> wrote:
> > On Thu, 3 Apr 2003, Ryan Hoegg wrote:
> > 
> > 
> > 
> > 
> > 
> > 
> > > What format do seasoned Cocoon people use to
> > represent web content?
> > >  That is, when the choice isn't made for them
> > because of pre-existing
> > > content.
> > 
> > XHTML, of course.   At least, when I'm writing suff
> > that will probably
> > just go on the web.  Either that, or I'll invent my
> > own DTD on the fly.
> > 
> > With respect to document-1.0, that's the format the
> > current Cocoon
> > documents are in right now.
> > 
> > 
> > Tony
> > 
> > 
> > --
> > Tony Collen
> > ICQ: 12410567
> > --
> > Cocoon: Internet Glue (A Cocoon Weblog)
> > http://manero.org/weblog/
> > --
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26628.html">Re: XSL transformation exception when run as CLI, but not as servlet</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22XSL+transformation+exception+when+run+as+CLI%2C+but+not+as+servlet%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Joerg+Heinicke%22&o=newest&f=1">Joerg Heinicke</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hello Dave,

one week ago somebody had exactly the same problem with Cocoon 2.0.4, Xalan 
2.3.1 and DocBook 1.48. He solved it by using Xalan 2.4.1, so give it a try. 
What the difference is between CLI and servlet? I don't know.

Joerg

Olson, Dave -Systems wrote:
Dear community:
I've been trying to transform a simple DocBook XML file into FO (and also
PDF) from the command line.  I started by modifying the sitemap that comes
with the src distribution's "documentation" example, by adding my pipeline.
I've been able to get that sitemap, with DocBook 1.60.1 style-sheets, and
even FOP to work with Cocoon-2.0.4, running as a servlet, by mounting it in
the original Cocoon sitemap.  However, if I try to run Cocoon at a command
line, just as you would to generate the documentation (URI=body-todo.xml), I
get the following:
WARN2003-04-03 19:30:53.540 [core.xsl] (): File
file:.../demo/./docbook1.60.1/fo/docbook.xsl; Line 182; Column 16; Making
portrait pages on USletter paper (8.5inx11in)
FATAL_E 2003-04-03 19:31:00.663 [core.xsl] (): File
file:/...demo/./docbook1.60.1/fo/../common/common.xsl; Line 1576; Column 35;
7 >= 1
; SystemID: file:/.../demo/./docbook1.60.1/fo/../common/common.xsl; Line#:
1576; Column#: 35
javax.xml.transform.TransformerException: 7 >= 1
at org.apache.xpath.XPath.bool(XPath.java:411)
at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:162)


at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:154)
<...>
at org.apache.cocoon.Main.main(Main.java:403)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7 >= 1
at java.util.Vector.elementAt(Vector.java:427)
at
org.apache.xml.dtm.ref.DTMStringPool.indexToString(DTMStringPool.java:128)
<...>
Where should I look for the problem?  I've noticed that the cocoon.xconf I'm
using for the CLI invocation defines a  class attribute of
"TreeProcessor," which differs from the servlet's cocoon configuration.  If
this won't work for my pipeline, which "engine" should I use for the CLI
config?
The source XML document is concatenated at the end of this email.

Here's a few other details that might be pertinent.
pipeline:
  





  
build:
Cocoon-2.0.4. built from a source distribution for both the default target
and as a war for the servlet
DocBook 1.60.1 style-sheets
I've tried resolving the DocBook DTD from a local catalog, but that didn't
help.
command line:
I use a sh script to build the classpath, from the build/cocoon, lib/core,
lib/optional, and ./work dir's, the final line of which is:
java -classpath $CP $COCOON_OPTS org.apache.cocoon.Main -c . -d dest -u INFO
$*
$* would be expanded to "userdemo.fo" when I invoke it.
Other details:
I had to remove the generators and transformers related to
"sunshine.Sunspot" from the documentation sitemap.xmap in order to get it to
run under the servlet cocoon.xconf, however, I was getting the above errors
before doing that.
Any ideas?
-DAvid
userdemo.xml:
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
[
]>


  IHSDM User's Manual
  
Miles
Togo
Turner-Fairbank Highway Research Center
(TFHRC)

  Pike
  SomewhereVA9

  
  2003someone

Disclaimer
 
	Say something here.
 
 
	just another paragraph
 
 
  DCM Graph Wizard Info Edit
  
fileref="DCMGraphWizardInfoEdit.tabTitles.png"/>


 First Chapter Contents... 
 Second Chapter Contents...
 ... 
 ... 
 ... 

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26627.html">Dynamic sitemap</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Dynamic+sitemap%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Ali+Mesbah%22&o=newest&f=1">Ali Mesbah</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

Hallo,
I need to add new pipelines to the sitemap dynamically. Is there any way of
doing this??

Thanks,
-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/cocoon-users@xml.apache.org/msg26626.html">Re: Stripping space from XSP output</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=cocoon-users%40xml.apache.org&q=date:20030404&o=newest&f=1">2003-04-04</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=cocoon-users%40xml.apache.org&q=subject:%22Stripping+space+from+XSP+output%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=cocoon-users%40xml.apache.org&q=from:%22Lionel+Crine%22&o=newest&f=1">Lionel Crine</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
can you tell us more .

The spaces are created by the xsp page?

Lionel

At 12:07 03/04/2003 -0800, you wrote:
Anyone know a way (besides XSLT) to strip white space
from XSP output. I tried the following:


However, this has no effect on whitespace in my
output. Obviously, I could use XSLT to strip the
space, but I have performance concerns - I don't want
to add an additional transformation and I want to keep
down the size of document going through my existing
transformation. Thanks...
MV

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

</pre></span>
</blockquote><br>
    <h2></h2>
  </div>
  <div class="aside" role="complementary">
    <div class="logo">
      <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a>
    </div>
    <h2>58 matches</h2>
    <br>
    
<ul><li><a href="/search?l=cocoon-users%40xml.apache.org&q=date%3A20030404&a=1&o=newest&f=1">Advanced search</a></li></ul>
<form class="overflow" action="/search" method="get">
<input type="hidden" name="l" value="cocoon-users@xml.apache.org">
<label class="hidden" for="q">Search the list</label>
<input class="submittext" type="text" id="q" name="q" placeholder="Search cocoon-users" value="date:20030404">
<input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit">
</form>

    
    <div class="nav margintop" id="nav" role="navigation">
      <h2 class="hidden">
                               Site Navigation
      </h2>
      <ul class="icons font16">
        <li class="icons-home"><a href="/">The Mail Archive home</a></li>
        <li class="icons-list">
          <a href="/cocoon-users@xml.apache.org" title="c" id="c">cocoon-users - all messages</a></li>
        <li class="icons-about">
          <a href="/cocoon-users@xml.apache.org/info.html">cocoon-users  - about the list</a></li>
        <li class="icons-expand"><a href="/search?l=cocoon-users%40xml.apache.org&q=date%3A20030404&o=newest" title="e" id="e">Expand</a></li>
      </ul>
    </div>

    <div class="listlogo margintopdouble">
      <h2 class="hidden">
  				Mail list logo
      </h2>
      
    </div>
  </div>
  <div class="footer" role="contentinfo">
    <h2 class="hidden">
	        	      Footer information
    </h2>
    <ul>
      <li><a href="/">The Mail Archive home</a></li>
      <li><a href="/faq.html#newlist">Add your mailing list</a></li>
      <li><a href="/faq.html">FAQ</a></li>
      <li><a href="/faq.html#support">Support</a></li>
      <li><a href="/faq.html#privacy">Privacy</a></li>
    </ul>
  </div>
<script language="javascript" type="text/javascript">
document.onkeydown = NavigateThrough;
function NavigateThrough (event)
{
  if (!document.getElementById) return;
  if (window.event) event = window.event;
  if (event.target.tagName == 'INPUT') return;
  if (event.ctrlKey || event.metaKey) return;
  var link = null;
  switch (event.keyCode ? event.keyCode : event.which ? event.which : null) {
    case 69:
      link = document.getElementById ('e');
      break;
    }
  if (link && link.href) document.location = link.href;
}
</script>
</body>
</html>