about transform error or others

2002-05-17 Thread ml



hi, everyone
I'm using cocoon2.0
I just test the sample as the tutorial of 
G:\jakarta\src\cocoon-2.0\docs\userdocs\xsp\logicsheet.html
the following is my sitemap.xmap configure
$COCOON/sitemap.xmap
          

 
$COCOON/luna/sitemap.xmap
   



 
my files structor 


$COCOON/luna/greeting.xml
$COCOON/luna/greeting2.xsp
$COCOON/luna/greeting3.xsp
$COCOON/luna/stylesheets/logicsheet.greeting.xsl
$COCOON/luna/stylesheets/greeting.xsl
 
in the client, the greeting.xml and greeting2.xsp is correct, 
but when I get greeting3.xsp, the following exception 
throwed: 
could you help me to resolve it? and how to configure 
logicsheet of mine in cocoon2? thanx
 


  
  

Failed to execute 
  pipeline.
  
details
  
from

  
source
org.apache.cocoon.ProcessingException
  
description
org.apache.cocoon.ProcessingException: 
  Failed to execute pipeline.: java.lang.RuntimeException: Problem in 
  getTransformer:Error in creating Transform Handler
  
extra info
  

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: Problem in getTransformer:Error in creating Transform Handler
  

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: Problem in getTransformer:Error in creating Transform Handler
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:374)
	at org.apache.cocoon.www.luna.sitemap_xmap.wildcardMatchN40003A(sitemap_xmap.java:708)
	at org.apache.cocoon.www.luna.sitemap_xmap.process(sitemap_xmap.java:360)
	at org.apache.cocoon.www.luna.sitemap_xmap.process(sitemap_xmap.java:308)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40023E(sitemap_xmap.java:3402)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2627)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2462)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)
java.lang.RuntimeException: Problem in getTransformer:Error in creating Transform Handler
	at org.apache.cocoon.transformation.TraxTransformer.setConsumer(TraxTransformer.java:279)
	at org.apache.c

Re: ExcaliburComponentManager.java still missing from Latest Snapshotbreaks /cocoon/ and throwing ERRORS

2002-05-17 Thread Marc Jeffrey Driftmeyer

Vadim,

I discovered the culprit and it is NOT Cocoon's, hence you developers 
mistakes at all.  

During one of my CVS HEAD fetches Windblows XP Professional through one 
of its already noted NTFS.sys Kernel Panicks leaving an incomplete update.

WinCVS unless forced to check for missing directories, etc will just 
Prune any empty directories by default which is what happened.

After a clean removal of a previous HEAD Update it XP crashed and I 
investigated the possibility of an incomplete directory mapping, etc and 
forced it to do a complete index check and then update accordingly.

Since then the War compiles and runs.  Yes it has a few Mappings that 
are not there but those are known and have workarounds.

I just thought perhaps with my experience using XP someone might note 
that when using WinCVS force it to verify a complete HEAD and do not 
Prune the directories by mistake.

-Marc


Vadim Gritsenko wrote:

>>From: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]]
>>
>>Vadim - Are you obtuse on purpose?
>>
>>
>
>1a or 2c? 
>http://www.dictionary.com/cgi-bin/dict.pl?term=obtuse
>
>
>  
>
>>Its the one throwing the error in the process of mapping /cocoon/
>>
>>
>
>It is logging the error, yes, which means that it is physically
>*present* in your setup so your saying "it's absent" is wrong.
>
>
>  
>
>>Logic dictates one reduces errors from the first one thrown to the
>>
>>
>last
>  
>
>>one thrown.
>>
>>2.1 dev has been in the tree for the past month, atleast. 
>>
>>
>
>And during these months, it entered alpha stage, it got WARNING in the
>root, and announcement had been made on the list(s).
>
>
>  
>
>>If its Alpha
>>than someone should make separate branches for the alpha and then the
>>maintenance branch for 2.0.2 so it can work seemlessly with SDK 1.4.
>>
>>
>
>The branch was created some time ago, cocoon_2_0_3_branch, and it was
>several times explained on the list how to get it for CVS newbies.
>Please refer to the archive.
>
>
>  
>
>>Or perhaps I'm just highly critical?  No.  I'm driven by wanting to
>>
>>
>get
>  
>
>>this stuff working smoothly so average folks, like myself, who can
>>articulate technology to inepts with money can find it as an useful
>>means of development and worth investing.
>>
>>
>
>Then please do download 2.0.3 CVS, don't be on the "bleeding edge". Even
>stable branch of CVS is too extreme for many - most of the users (I
>guess) are on the one of the releases, not on the CVS.
>
>
>  
>
>>And if you think Technology sells itself you wouldn't be working on
>>
>>
>Open
>  
>
>>Source software and dealing with an Troglodyte like M$ dictating the
>>Market landscape.
>>
>>
>
>Why do you think so? :)
>
> 
>  
>
>>And after just getting a clean snapshot and rebuilding the cocoon.war
>>
>>
>it
>  
>
>>still fails.  with the Avalon Framework specifically referencing
>>ExcaliburComponentManager.java.
>>
>>Here is the error.log.
>>
>>ERROR   (2002-05-10) 01:22.48:604   [core.manager](Unknown-URI)
>>Unknown-thread/ExcaliburComponentManager: Could not get class
>>org.apache.cocoon.components.store.impl.FilesystemStore for role
>>org.apache.excalibur.store.Store on configuration element
>>
>>
>persistent-store
>  
>
>>java.lang.ClassNotFoundException:
>>org.apache.cocoon.components.store.impl.FilesystemStore
>>
>>
>
>Make sure you have this class.
>
>
>
>
>  
>
>>I was hoping it would be fixed so I could just work with the 2.1 dev
>>
>>
>
>Don't know is it 2.1 error or issue with your setup, but...
>
>  
>
>>stuff since when it does load it is snappier than the 2.0.2 release,
>>
>>
>in
>  
>
>>general.
>>
>>
>
>You can get 2.0.3, change sitemap engine from compiled to interpreted
>(read cocoon.xconf), and you will have same performance as 2.1 has.
>
> 
>  
>
>>Here is to wishful thinking, and reversion back to 2.0.2.
>>
>>Finally, if this is an SDK 1.4 issue, great I'll build against 1.3.1
>>
>>
>but
>
>1.4 vs 1.3.1 differences are XML, SQL, and headless AWT stuff. 
>
>
>  
>
>>I have yet to get an answer as to how come this class since it seems
>>
>>
>to
>  
>
>>be ignored during the build process leading one to conclude with build
>>success there will be /cocoon/ servlet success.
>>
>>
>
>Then it might be simple build.xml bug.
>
>Vadim
>
>
>
>  
>
>>Sincerely Yours,
>>
>>Marc J. Driftmeyer
>>
>>Vadim Gritsenko wrote:
>>
>>
>>
From: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]]

Here is an excerpt of my error log..

ERROR   (2002-05-08) 14:36.33:921   [core.manager](Unknown-URI)
Unknown-thread/ExcaliburComponentManager: Could not get class
org.apache.cocoon.components.store.impl.FilesystemStore for role
org.apache.excalibur.store.Store on configuration element




>>>persistent-store
>>>
>>>
>>>  
>>>
java.lang.ClassNotFoundException:
org.apache.cocoon.components.store.impl.FilesystemStore




>>>Why do you t

Re: version 2.1-dev & JDK1.4 & Oracle 9i JDBC

2002-05-17 Thread Paul Gilligan

Ahha ... will give it a go! thanks.

Jeremy Aston wrote:

>  Hi Paul,
> 
> There is a problem with JDK1.4 and conn pooling since the Avalon 
> Excalibur components are compiled against JDK 1.3.  I have in the past 
> day compiled a JDK 1.4 version which I recommend you try.  You can get 
> it from http://www.pigbite.co.uk/avalon-excalibur.jar.  FYI There has 
> been a number of post about this on the lists in the past few days.
> 
> Hope this helps
> 
> Jez
> 
>   Paul Gilligan <[EMAIL PROTECTED]> wrote:
> 
> Dear All,
> 
> Getting NoValidConnectionException: from avalon when running XSP. Have
> looked on the web & it suggests that the issue is when running jdk1.4.
> 
> 
> Has anyone seen a similar problem?
> 
> Paul
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting.
> 
> To unsubscribe, e-mail:
> For additional commands, e-mail:
> 
> 
> 
> Do You Yahoo!?
> Get personalised at My Yahoo! 
> .



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

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




map:views - what has been changed in C2.1-dev

2002-05-17 Thread leo leonid

I wonder what has been changed concerning the behavior of views (and 
why!)
Now I get HTML-output where  I expect XML (and recently still got).
May this be the reason why the sample "searching the docs" doesn't work 
anymore?
It looks like the LuceneIndexer is expecting XML-result from the 
content-view
but it gets HTML, which it is ignoring.

Example (similar to the cocoon-documentation):
There is a generator without label ("serverpages-nolabel")
and a simple view to exit the pipeline and serialize the result as XML 
("content").
And the goal is to omit head- and foot-parts and all 
HTML-transformations in content-view
so that there is only the body-content with filter-3.xsl applied within 
a  root element.

Problem:
In the following pipeline the final transformation ()
is executed in the content-view. But it should not. Or did I miss 
something?




...




















Thanks!
/Leo


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

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




Re: Symbol euro

2002-05-17 Thread Eric Basley




Infact the transformation is done, but instead of having € I have ¤

Then I tried to setup xsp pages with an encoding of iso-8859-15 instead of iso-8859-1 but it's not supported :



org.xml.sax.SAXParseException: The encoding "ISO-8859-15" is not supported.



Where can I set up the right encoding to have € instead of ¤ ?



eric.







Le ven 17/05/2002 à 13:44, Konstantin Piroumian a écrit :

See i18n samples and try Austrian locale with Euro currency. Euro sign is
displayed correctly without the need to change anything in entity catalog.
UTF-8 encoding is used in samples. The sign value comes from JDK i18n
resource bundles.

Konstantin

- Original Message -
From: "Eric Basley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 7:31 PM
Subject: Symbol euro


Hello


Im trying to convert charactere euro (€) into html symbol (&euro)
using cocoon 2.0.2 on linux with tomcat 4.0.4b3.

Serializers in sitemap are setup with
"ISO-8859-15".

characteres € (euro) are correctly read from the form, insert in a
database using iso-8859-15 encoding, correctly read from the database
from our xsp BUT then Im unable to transform them to the html symbol.

I try to add "" in ISOlat1.pen without
success.

any ideas ??

greets eric.


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

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


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

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






Re: Symbol euro

2002-05-17 Thread Eric Basley




my problem is quite different : I'm receiving from backend servers texts (string) encods in iso-8859-15 with euro characteres, and I need to transform thoses characteres in html euro symbol, because many browsers don't know how to display euro if they receive it directly in iso-8859-15 encoding.

The same process exists for example, for the french charactere à, it is changed in à



Thanks.



Eric 





Le ven 17/05/2002 à 13:44, Konstantin Piroumian a écrit :

See i18n samples and try Austrian locale with Euro currency. Euro sign is
displayed correctly without the need to change anything in entity catalog.
UTF-8 encoding is used in samples. The sign value comes from JDK i18n
resource bundles.

Konstantin

- Original Message -
From: "Eric Basley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 7:31 PM
Subject: Symbol euro


Hello


Im trying to convert charactere euro (€) into html symbol (&euro)
using cocoon 2.0.2 on linux with tomcat 4.0.4b3.

Serializers in sitemap are setup with
"ISO-8859-15".

characteres € (euro) are correctly read from the form, insert in a
database using iso-8859-15 encoding, correctly read from the database
from our xsp BUT then Im unable to transform them to the html symbol.

I try to add "" in ISOlat1.pen without
success.

any ideas ??

greets eric.


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

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


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

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






Re: Compressing SVG: sorry - forgot the URL

2002-05-17 Thread Alex McLintock

At 10:47 17/05/2002, Kirwan, K. wrote:
>Dear All,
>
>I'm working on version1 of an online traffic-information site at:
>http://localhost:8080/cocoon/traffic-xml/home
>
>The SVGmaps produced are currently quite large - so download times are
>too-long.
>Has anyone got any experience in producing zipped SVG files in Cocoon.
>
>Thanks,
>Kieran Kirwan.

You are serving SVG to the client? and not a jpeg generated from the SVG?

Here's one possibility which may be made to work.

Use Apache web server as the front end rather than Tomcat or whatever your 
servlet engine is and install mod_gzip. You should be able to configure 
that to compress particular output such as the SVG. mod_gzip copes with 
detecting browsers which can transparently accept gzipped output.

Alex



Openweb Analysts Ltd, London: Software For Complex Websites 
http://www.OWAL.co.uk/
Free Consultancy for London Companies thinking of Open Source Software.


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

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




grabbing xml files into cocoon (from other servers) for processing

2002-05-17 Thread Zachary A Lendon


Hi all - I have server x.com, which has Cocoon 2.x installed and running on
it.  When a user comes to the following url:

x.com/cocoon/file.xml

file.xml actually resides somewhere else, lets say
y.com/xml-files/file.xml.  What's the best way for me to make sure I get
the right xml file and have cocoon process through it?  I don't know what
the file name will be, but I do know where the files will be.  I also have
another twist.  What happens when y.com goes down and I have to fail over
to z.com.  It may have the same directory structure, but what's the best
method to assure that I'm still getting the proper xml files when going to
the x.com address?

Thank you for any guidance you might be able to offer!
- Zach

==
The preceding e-mail message (including any attachments) contains
information that may be confidential, be protected by the attorney-client
or other applicable privileges, or constitute non-public information.  It
is intended to be conveyed only to the designated recipient(s).  If you are
not an intended recipient of this message, please notify the sender by
replying to this message and then delete it from your system.  Use,
dissemination, distribution, or reproduction of this message by unintended
recipients is not authorized and may be unlawful.
==

The preceding e-mail message (including any attachments) contains
information that may be confidential, be protected by the attorney-client
or other applicable privileges, or constitute non-public information.  It
is intended to be conveyed only to the designated recipient(s).  If you are
not an intended recipient of this message, please notify the sender by
replying to this message and then delete it from your system.  Use,
dissemination, distribution, or reproduction of this message by unintended
recipients is not authorized and may be unlawful.
==



==



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

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




Re: version 2.1-dev & JDK1.4 & Oracle 9i JDBC

2002-05-17 Thread Jeremy Aston
 Hi Paul,
There is a problem with JDK1.4 and conn pooling since the Avalon Excalibur components are compiled against JDK 1.3.  I have in the past day compiled a JDK 1.4 version which I recommend you try.  You can get it from http://www.pigbite.co.uk/avalon-excalibur.jar.  FYI There has been a number of post about this on the lists in the past few days.
Hope this helps
Jez
  Paul Gilligan <[EMAIL PROTECTED]> wrote: 
Dear All,Getting NoValidConnectionException: from avalon when running XSP. Have looked on the web & it suggests that the issue is when running jdk1.4.Has anyone seen a similar problem?Paul-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>Do You Yahoo!?
Get personalised at My Yahoo!.

Re: esql v1.22 multiple returned update counts and ResultSets

2002-05-17 Thread Torsten Curdt

On Friday 17 May 2002 16:34, Christian Haul wrote:
> On 17.May.2002 -- 02:31 PM, Christian Haul wrote:
> > On 17.May.2002 -- 12:23 PM, Torsten Curdt wrote:
> > I would nest if(hasResultSet) into the switch statement. We would want
> > to have multiple no-results / update-results blocks for each result,
> > wouldn't we??
>
> OK, did your way since the XSL is simpler ;-)

ok

> Anyway, I've put the code into HEAD - please check. I'm off
> 'till Wednesday so if I did break anything you'll have to live with it
> 'till then or fix it ;-)

will do - guess I already found somehting...

the switch() should not use the getResultCount because of this:

   getResultCount   but position() of result
result  1 1
update-result   2 -
result  3 2

we need the incrementing varibale as I proposed...
but that's not a major biggy to fix ;-)

cheers
--
Torsten

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

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




RE: Cocoon and enhydra

2002-05-17 Thread Matthew Hailstone

yes. The following worked for me. I am using Cocoon 2.0.1.
Extract the Cocoon 2 war file and move/copy the directory into which you
extracted Cocoon into the webapps directory of Enhydra 3.1
(C:/usr/local/enhydra3.1/webapps/). Then you need to include two jars to
the classpath created in the multiserver script file used to start the
Enhydra multiserver service. First, copy two files,
C:/usr/local/enhydra3.1/webapps//WEB_INF/lib/xerces-
1.4.4.jar and ./xml-apis.jar, into the C:/usr/local/enhydra3.1/lib
directory. Then modify the C:/usr/local/enhydra3.1/bin/multiserver
script file at the end to look like the following:


...

NEWCP="/usr/local/enhydra3.1/lib/xerces-1.4.4.jar${PS}/usr/local/enhydra
3.1/lib/xml-apis.jar${PS}${NEWCP}"

CLASSPATH=${NEWCP}
export CLASSPATH

...


Restart Enhydra 3.1 multiserver, and you should be set to go.

Matthew

> -Original Message-
> From: jamin rubio [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, May 17, 2002 8:38 AM
> To: Cocoon-Users
> Subject: Cocoon and enhydra
> 
> 
> 
> Hi
> 
> Is there somebody you try to implement cocoon in enhydra 3.1 
> container ?
> 
> regards
> 
> 
> 
> -
> Please check that your question has not already been answered 
> in the FAQ before posting. 


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


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

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




RE: Reading request parameters

2002-05-17 Thread Enrico Gulfi

Judith,

thanks for your suggestion. It works now but I also had to change the
map:match clause to



The clause



does not match requests with parameters. Does it make sense to you?

Thanks,

Enrico



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

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




Cocoon2 Logs & Debug Statements

2002-05-17 Thread Naquin, Beth
Title: Cocoon2 Logs & Debug Statements





I am new to cocoon and would appreciate if someone could tell me more about debugging statements and the log files.


I have the following code in an xsp file:
...

    language="java"
    xmlns:xsp="http://apache.org/xsp"
    xmlns:log="http://apache.org/xsp/log/2.0"
>
  

    
  
   Processing the beginning of the OTDA page


  
    OTDA Civil V2
  
    ...



The page displays correctly, but I cannot find the debug statement being printed to any logs anywhere.  The only logs I can find are cocoon\web-inf\logs\core.log, access.log, error.log, and sitemap.log and none of these contain the debug statement above.

Where is this statement supposed to print?  Is there another way to write debug statements?


I am using Cocoon 2.0.2 with Tomcat 4.0.1


Thanks,


Beth Naquin





Re: Connection problem to DB2

2002-05-17 Thread Jon Pallas

Hi All

Just my little bit i hope it will be useful

The IBM package "db2java.zip" has two JDBC drivers in it
one type2 and one type3

** TYPE 3 DRIVER SETUP**
Type 3 driver classes is
COM.ibm.db2.jdbc.net.DB2Driver
and typical connection URL it
jdbc:db2://:6789/
the port is usualy 6789

Being type 3 you must have the jdbc proxy listening on the server if you are
on NT then look under the services and start the "DB2 JDBC Applet Server"
and "DB2 JDBC Applet Server - Control Center"

** TYPE 2 DRIVER SETUP**
Type 2 driver classes is (involves configuration of the machine needing to
make the connection not just a different jdbc url)
I have used this one before and the way I got it to work was
to install the Client tools.
Go to the "client configuration assistant" under the DB2 table and make and
alias for your database
NOTE when going through the screens the port the database server listness to
for this service is usually 5.


COM.ibm.db2.jdbc.app.DB2Driver
and typical connection URL it
jdbc:db2:



I hope this helps

regards
Jon





- Original Message -
From: "Kelly Cole" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 3:47 PM
Subject: RE: Connection problem to DB2


> Hi Werner,
>
> Thanks for the response! I did a) and b) below, but I'm not at all sure
what
> you meant by c). I'm running on Win2k. My experience is MS developement,
so
> I'm not sure about all this environment variable stuff.
>
> I did not have an environment variable setup for LD_LIBRARY_PATH, so I set
> one up, with this stab at what should be in it: C:\Program
Files\SQLLIB\bin
>
> I still couldn't get my example going.
>
> Here are some of my environment variables:
>
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Progra
> m Files\Attachmate\E!E2K\;C:\PROGRA~1\IBM\IMNNQ;C:\Program
> Files\SQLLIB\BIN;C:\Program Files\SQLLIB\FUNCTION;C:\Program
> Files\SQLLIB\SAMPLES\REPL;C:\Program Files\SQLLIB\HELP;C:\jdk1.3.1_03\bin
>
> CLASSPATH=.;C:\Program Files\SQLLIB\java\db2java.zip;C:\Program
> Files\SQLLIB\java\runtime.zip;C:\Program
> Files\SQLLIB\java\sqlj.zip;C:\Program Files\SQLLIB\bin
>
> I surely appreciate your help with this!
>
> Thanks,
> Kelly
>
> -Original Message-
> From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 3:07 AM
> To: [EMAIL PROTECTED]
> Cc: Max Foxell; Shafik Patel
> Subject: Re: Connection problem to DB2
>
>
> All,
>
> please keep in mind that IBM's JDBC driver for DB2 is a type 2 driver.
Iow,
> it
> relies on native code installed somewhere in your filesystem. Our
experience
> here indicates that because of this, you cannot simply put the relevant
JAR
> files (runtime.zip, db2java.zip and sqlj.zip) into the WEB-INF/lib
> directory.
>
> In our case, we had to
>
> a) copy these files into Tomcat's common/lib directory to avoid issues
with
> JNI
> when the web app is being reloaded (the issue here being that during the
> lifetime of a JVM, any native libraries used by your code must be loaded
> once
> only).
> b) rename the extension of these files from ZIP to JAR (I think this is a
> Tomcat
> 4.0.1 issue that might have been resolved with newer releases).
> c) set PATH, LD_LIBRARY_PATH and other environment variables before
starting
> Tomcat.
>
> I hope this clarifies a couple of issues..
>
> Thanks
> Werner
>
> Kelly Cole wrote:
>
> > Christian,
> >
> > Thanks for the quick response... I am using Cocoon 2.0.2, Tomcat 4.0.1
and
> > JDK 1.3.1_03.
> >
> > Now that I got the driver in the right place... and modified
cocoon.xconf
> to
> > include a  logger attribute:
> > 
> > 
> > jdbc:db2:tdb2
> > jftl206
> > debbie12
> > 
> >
> > I also simplified my request query to:
> > http://apache.org/cocoon/SQL/2.0";>
> > Hello
> > 
> > This is my first Cocoon2 page filled with
> sql
> > data!
> >  > xmlns="http://apache.org/cocoon/SQL/2.0";>
> > select sys_grp_no, sys_grp_name
> from
> > testdb2.sysgrps
> > 
> > 
> > 
> >
> > I get a bit further. I get this error message (sorry to have included so
> > much, I wasn't sure what would be the interesting part):
> > exception
> >
> > javax.servlet.ServletException: Servlet execution threw an exception
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:269)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:193)
> > at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > va:243)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > 66)
> > at
> >

Re: XSP Function to get URL

2002-05-17 Thread KOZLOV Roman

What about  (its from cocoon's samples, there it's used
with  as="xml" and it's working at least in v2.0.1).

Roman

"Graaf, Edgar de (fin)" wrote:

> I also tried this and could not get the right function (get-request-url or
> something).
> Try
> ://: server-port/>
>
> Regards
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
> Verzonden: vrijdag 17 mei 2002 5:52
> Aan: [EMAIL PROTECTED]
> Onderwerp: XSP Function to get URL
>
> Is there an XSP or Java class I can access that will give me the URL of
> the current page?
>
> TIA,
> Zack
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




RE: XSP Function to get URL

2002-05-17 Thread Graaf, Edgar de (fin)

I also tried this and could not get the right function (get-request-url or
something).
Try
://:

Regards

Edgar

-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 17 mei 2002 5:52
Aan: [EMAIL PROTECTED]
Onderwerp: XSP Function to get URL


Is there an XSP or Java class I can access that will give me the URL of
the current page? 

TIA,
Zack


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

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

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

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




RE: Connection problem to DB2

2002-05-17 Thread Kelly Cole

Christian,

Thanks again... No, I haven't compiled anything myself. Also, I forgot to
mention I was on Win2k...

I tried the xsp, but I only got the page header ("A Database Driven XSP
Page").

Here's the xsp page I tried:
http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>

A Database Driven XSP Page


TDB2

select * from
testdb2.sysgrps















Here's some of the core.log (the "pinging" stuff looks new...:
LogKitLogger: Marking 1 objects as old in pool.
LogKitLogger: Got a org.apache.avalon.excalibur.datasource.JdbcConnection
from the pool.
LogKitLogger: Pinging database after 690593ms of inactivity.
LogKitLogger: JdbcConnection was closed.
LogKitLogger: Removing a
org.apache.avalon.excalibur.datasource.JdbcConnection from the pool because
it failed validation.
LogKitLogger: JdbcConnection object created
LogKitLogger: Created a new
org.apache.avalon.excalibur.datasource.JdbcConnection from the object
factory.
LogKitLogger: Got a org.apache.avalon.excalibur.datasource.JdbcConnection
from the pool.
LogKitLogger: Put a org.apache.avalon.excalibur.datasource.JdbcConnection
back into the pool.
/CachingEventPipeline: Recycling of CachingEventPipeline
/CachingStreamPipeline: Recycling of CachingStreamPipeline

The last line of the sitemap.log:
/esql_xsp: esql query: select * from testdb2.sysgrps

Thanks again for your help.
Kelly

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 12:26 AM
To: [EMAIL PROTECTED]
Subject: Re: Connection problem to DB2


On 16.May.2002 -- 04:13 PM, Kelly Cole wrote:
> Thanks for the quick response... I am using Cocoon 2.0.2, Tomcat 4.0.1 and
> JDK 1.3.1_03.

Your versions look reasonable. Have you compiled any of it yourself?

> root cause 
> 
> java.lang.AbstractMethodError
>   at
>
org.apache.avalon.excalibur.datasource.JdbcConnection.prepareStatement(JdbcC
> onnection.java:172)
>   at
>
org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer
> .java:1014)
>   at
>
org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.
> java:271)
>   at
>
org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTr
> ansformer.java:417)

This looks like a JDBC2 / JDBC3 clash for me. But I have to confess,
that I'm no expert on this. (Neither do I use DB2, the SQLTransformer
nor JDBC3 / j2sdk 1.4).

Hopefully, someone else can jump in (Berin?)

> query(http://apache.org/cocoon/SQL/2.0)
> /SQLTransformer: QUERY IS "select sys_grp_no, sys_grp_name from
> testdb2.sysgrps"
> /SQLTransformer: RECEIVED CHARACTERS: 
> /SQLTransformer: RECEIVED END ELEMENT
> execute-query(http://apache.org/cocoon/SQL/2.0)
> /SQLTransformer: SQLTransformer executing query nr 0
> /SQLTransformer$Query: EXECUTING select sys_grp_no, sys_grp_name from
> testdb2.sysgrps

Everything fine up to here. Query seems OK.

> And finally, here's a snippet of the core.log ("with the
> [core.datasources.TDB2](/cocoon/db/test.html) HttpProcessor[8080][4]/"
> trimmed off):
> LogKitLogger: Marking 0 objects as old in pool.
> LogKitLogger: JdbcConnection object created
> LogKitLogger: Created a new
> org.apache.avalon.excalibur.datasource.JdbcConnection from the object
> factory.
> LogKitLogger: Got a org.apache.avalon.excalibur.datasource.JdbcConnection
> from the pool.
> LogKitLogger: Put a org.apache.avalon.excalibur.datasource.JdbcConnection
> back into the pool.

That looks good. Your connection seems OK.

Just for a test: Could you see whether ESQL works with your setup?
E.g. take cocoon/docs/samples/xsp/esql.xsp and modify it to use your
connection and query.

Chris.

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

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

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



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

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




RE: Connection problem to DB2

2002-05-17 Thread Kelly Cole

Hi Werner,

Thanks for the response! I did a) and b) below, but I'm not at all sure what
you meant by c). I'm running on Win2k. My experience is MS developement, so
I'm not sure about all this environment variable stuff.

I did not have an environment variable setup for LD_LIBRARY_PATH, so I set
one up, with this stab at what should be in it: C:\Program Files\SQLLIB\bin

I still couldn't get my example going.

Here are some of my environment variables:
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Progra
m Files\Attachmate\E!E2K\;C:\PROGRA~1\IBM\IMNNQ;C:\Program
Files\SQLLIB\BIN;C:\Program Files\SQLLIB\FUNCTION;C:\Program
Files\SQLLIB\SAMPLES\REPL;C:\Program Files\SQLLIB\HELP;C:\jdk1.3.1_03\bin

CLASSPATH=.;C:\Program Files\SQLLIB\java\db2java.zip;C:\Program
Files\SQLLIB\java\runtime.zip;C:\Program
Files\SQLLIB\java\sqlj.zip;C:\Program Files\SQLLIB\bin

I surely appreciate your help with this!

Thanks,
Kelly

-Original Message-
From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:07 AM
To: [EMAIL PROTECTED]
Cc: Max Foxell; Shafik Patel
Subject: Re: Connection problem to DB2


All,

please keep in mind that IBM's JDBC driver for DB2 is a type 2 driver. Iow,
it
relies on native code installed somewhere in your filesystem. Our experience
here indicates that because of this, you cannot simply put the relevant JAR
files (runtime.zip, db2java.zip and sqlj.zip) into the WEB-INF/lib
directory.

In our case, we had to

a) copy these files into Tomcat's common/lib directory to avoid issues with
JNI
when the web app is being reloaded (the issue here being that during the
lifetime of a JVM, any native libraries used by your code must be loaded
once
only).
b) rename the extension of these files from ZIP to JAR (I think this is a
Tomcat
4.0.1 issue that might have been resolved with newer releases).
c) set PATH, LD_LIBRARY_PATH and other environment variables before starting
Tomcat.

I hope this clarifies a couple of issues..

Thanks
Werner

Kelly Cole wrote:

> Christian,
>
> Thanks for the quick response... I am using Cocoon 2.0.2, Tomcat 4.0.1 and
> JDK 1.3.1_03.
>
> Now that I got the driver in the right place... and modified cocoon.xconf
to
> include a  logger attribute:
> 
> 
> jdbc:db2:tdb2
> jftl206
> debbie12
> 
>
> I also simplified my request query to:
> http://apache.org/cocoon/SQL/2.0";>
> Hello
> 
> This is my first Cocoon2 page filled with
sql
> data!
>  xmlns="http://apache.org/cocoon/SQL/2.0";>
> select sys_grp_no, sys_grp_name
from
> testdb2.sysgrps
> 
> 
> 
>
> I get a bit further. I get this error message (sorry to have included so
> much, I wasn't sure what would be the interesting part):
> exception
>
> javax.servlet.ServletException: Servlet execution threw an exception
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:269)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPi

Cocoon and enhydra

2002-05-17 Thread jamin rubio


Hi

Is there somebody you try to implement cocoon in enhydra 3.1 container ?

regards



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

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




Re: esql v1.22 multiple returned update counts and ResultSets

2002-05-17 Thread Christian Haul

On 17.May.2002 -- 02:31 PM, Christian Haul wrote:
> On 17.May.2002 -- 12:23 PM, Torsten Curdt wrote:
> I would nest if(hasResultSet) into the switch statement. We would want
> to have multiple no-results / update-results blocks for each result,
> wouldn't we??

OK, did your way since the XSL is simpler ;-)

Anyway, I've put the code into HEAD - please check. I'm off 
'till Wednesday so if I did break anything you'll have to live with it
'till then or fix it ;-)

Chris.

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

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

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




RE: XIndice and Caching

2002-05-17 Thread Stephen Ng

Never mind, I a couple of emails from cocoon-dev which answer my
questions:

> - How much faster (roughly) is xsltc?  
"People keep discussing benchmarks for various XSLT interpreters, trying
to make the best choice. I think we've already agreed that nothing beats
XSLTC .. that is when it works."
> - A google search on XSLTC and Cocoon turns up a 4/9/02 
> message from Stefano that he's "closer" to getting xsltc 
> working with cocoon.  Does xsltc work with cocoon?
> - Any tips on getting them to work together?

There are still outstanding bugs which keep xsltc from working with
cocoon--but they are being worked on

--Steve


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

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




version 2.1-dev & JDK1.4 & Oracle 9i JDBC

2002-05-17 Thread Paul Gilligan

Dear All,

Getting NoValidConnectionException: from avalon when running XSP. Have 
looked on the web & it suggests that the issue is when running jdk1.4.


Has anyone seen a similar problem?

Paul










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

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




RE: XIndice and Caching

2002-05-17 Thread Stephen Ng

I'm working on speeding up my cocoon app also.  

A few (probably dumb) questions

- How much faster (roughly) is xsltc?  
- A google search on XSLTC and Cocoon turns up a 4/9/02 message from
Stefano that he's "closer" to getting xsltc working with cocoon.  Does
xsltc work with cocoon?
- Any tips on getting them to work together?

--Stephen Ng

> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, May 17, 2002 9:27 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XIndice and Caching
> 
> 
> 
> - Original Message - 
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 16, 2002 7:20 AM
> Subject: RE: XIndice and Caching
> 
> 
> > > From: Alex McLintock [mailto:[EMAIL PROTECTED]]
> > > 
> > > Hi folks,
> > > 
> > > I have a XIndice backed Cocoon website which I want to 
> speed up. It 
> > > is
> > far
> > > too slow.
> > > 
> > > One thing I need to reduce is the number of XSLT for loops, but 
> > > that's
> > for
> > > another time.
> 
> Did you try XSLTC?
> 
> 
> > > 
> > > The second thing I am looking at is trying to use Cocoon/Avalon
> > caching and
> > > I am not sure I understand it.
> > > 
> > > Do I cache the database results, or the xml/html which we get from
> > them
> > > after being processed by XSLT ?
> > 
> > Xindice does not support any metadata (yet), including last 
> > modification date. This makes any caching of the xindice 
> results not 
> > possible.
> > 
> > You can participate in xindice dev 
> ([EMAIL PROTECTED]) list 
> > to implement this feature sooner than later.
> > 
> > Vadim
> > 
> > 
> > > My XML database changes very infrequently - can I tell the cache 
> > > that
> > it
> > > has been updated and thus all cached things should be dropped?
> > > 
> > > Feel free to point me at the docs if I've missed them.
> > > 
> > > Alex
> > > 
> > > 
> > > 
> > > Openweb Analysts Ltd, London: Software For Complex Websites 
> > > http://www.OWAL.co.uk/ Free Consultancy for London Companies 
> > > thinking of Open Source
> > Software.
> > 
> > 
> > 
> -
> > Please check that your question has not already been 
> answered in the 
> > FAQ before posting. 
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > 
> 
> 
> -
> Please check that your question has not already been answered 
> in the FAQ before posting. 


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



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

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




AW: Reading request parameters

2002-05-17 Thread Andres, Judith

Hi,

I would recommend using the RequestParamAction (in org.apache.cocoon.acting)

First, you have to make the action known to the sitemap somewhere in
the  tag

  

  

  
  
   

Judith


> -Ursprüngliche Nachricht-
> Von:  Enrico Gulfi [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Freitag, 17. Mai 2002 15:31
> An:   Cocoon Mail List
> Betreff:  Reading request parameters
> 
> Hi everybody,
> 
> I'm new to Cocoon so forgive me if my problem seems trivial to you :-) I'm
> using C2 with Tomcat 4.0.3 on Win2000.
> 
> I'm trying to pass a request parameter to a transformation as following:
> 
>
>   
>   
>   
>
> 
> As soon as I request a page, in the Cocoon servlet I get the following
> org.xml.sax.SAXParseException:
> 
> "The reference to entity "par2" must end with the ';' delimiter".
> 
> In other words, the ampersand is looked at as a starting entity... I tried
> with a backslash in front of &, but nothing changes.
> 
> So my basic question is: how do I extract and pass request parameter
> values?
> 
> Thanks a lot,
> 
> Enrico
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

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

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




Re: Reading request parameters

2002-05-17 Thread Christian Haul

On 17.May.2002 -- 03:31 PM, Enrico Gulfi wrote:
> Hi everybody,
> 
> I'm new to Cocoon so forgive me if my problem seems trivial to you :-) I'm
> using C2 with Tomcat 4.0.3 on Win2000.
> 
> I'm trying to pass a request parameter to a transformation as following:
> 
>
>   
>   
>   
>
> 
> As soon as I request a page, in the Cocoon servlet I get the following
> org.xml.sax.SAXParseException:
> 
> "The reference to entity "par2" must end with the ';' delimiter".
> 
> In other words, the ampersand is looked at as a starting entity... I tried
> with a backslash in front of &, but nothing changes.

Escaping in XML -> character entities -> &

Chris.

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

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

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




Reading request parameters

2002-05-17 Thread Enrico Gulfi

Hi everybody,

I'm new to Cocoon so forgive me if my problem seems trivial to you :-) I'm
using C2 with Tomcat 4.0.3 on Win2000.

I'm trying to pass a request parameter to a transformation as following:

   



   

As soon as I request a page, in the Cocoon servlet I get the following
org.xml.sax.SAXParseException:

"The reference to entity "par2" must end with the ';' delimiter".

In other words, the ampersand is looked at as a starting entity... I tried
with a backslash in front of &, but nothing changes.

So my basic question is: how do I extract and pass request parameter values?

Thanks a lot,

Enrico


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

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




Re: XIndice and Caching

2002-05-17 Thread Ivelin Ivanov


- Original Message - 
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 7:20 AM
Subject: RE: XIndice and Caching


> > From: Alex McLintock [mailto:[EMAIL PROTECTED]]
> > 
> > Hi folks,
> > 
> > I have a XIndice backed Cocoon website which I want to speed up. It is
> far
> > too slow.
> > 
> > One thing I need to reduce is the number of XSLT for loops, but that's
> for
> > another time.

Did you try XSLTC?


> > 
> > The second thing I am looking at is trying to use Cocoon/Avalon
> caching and
> > I am not sure I understand it.
> > 
> > Do I cache the database results, or the xml/html which we get from
> them
> > after being processed by XSLT ?
> 
> Xindice does not support any metadata (yet), including last modification
> date. This makes any caching of the xindice results not possible.
> 
> You can participate in xindice dev ([EMAIL PROTECTED]) list to
> implement this feature sooner than later.
> 
> Vadim
> 
> 
> > My XML database changes very infrequently - can I tell the cache that
> it
> > has been updated and thus all cached things should be dropped?
> > 
> > Feel free to point me at the docs if I've missed them.
> > 
> > Alex
> > 
> > 
> > 
> > Openweb Analysts Ltd, London: Software For Complex Websites
> > http://www.OWAL.co.uk/
> > Free Consultancy for London Companies thinking of Open Source
> Software.
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


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

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




Re: [doc] draft howto-bugzilla

2002-05-17 Thread David Crossley

OK the initial draft of the new How-to is in the HEAD of CVS now.
 How to Contribute a Patch via Bugzilla
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/howto/howto-bugzilla.xml
--David

David Crossley wrote:
> Andreas, sorry i missed this part of your recent post ...
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102115463104554
> 
>> I understand. So in the future I'll do it that way and will
>> document that in the howto.
>
> I recently started work on a "How-to Bugzilla" in true
> opensource fashion ... dive in and do it. I believe that
> it is urgent to have this document and a companion
> howto-patch document, so as to facilite doc contributions.
>
> Then, in a subsequent discussion with Diana, i found
> that you too were attending to this need ... that is great.
>
> We need to merge our efforts, though i wonder how best
> to do this. I gather from Diana that i may be a bit further
> progressed than you are.
> 
> So i intend to get my draft document into CVS as soon as
> possible (i.e. probably Saturday our time). Then perhaps
> you could review it and patch it where you see the need.
> Is that approach suitable to you? ... i surely do not intend to
> negate your contribution.
> --David


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

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




Re: Cocoon PDF creation problems

2002-05-17 Thread Spectron International, Inc.

Like I said before:

1. My generator and the transformer work, the xsl:fo is created ok. (check
sitemap, "test1") generate->transform->serialize_to_fo works.
2. If I save the file created with 1, and use it as source to create a PDF
it also works, so the FO is valid. (check sitemap, "test2")
file->serialize_to_pdf also works
3. If I do all the steps in the same map:match it fails (check sitemap,
"test3") generate->transform->serialize_to_pdf fails.

If A->B works and B->C works I suppose A->B->C should work. I have no idea
why it does not.

Faw

- Original Message -
From: "KOZLOV Roman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 3:31 AM
Subject: Re: Cocoon PDF creation problems


> Hi,
> Check your fo code. It seems that there is no table-column element.
>
> Roman
>
> "Spectron International, Inc." wrote:
>
> > I'm having some problems with PDF creation in cocoon. I have the
following
> > sitemap (simplified, removed i18n stuff):
> >
> > 
> >   
> >   
> >   
> > 
> >
> > 
> >   
> >   
> >   
> > 
> >
> > 
> >   
> >   
> >   
> > 
> >
> > My problem is test1 and test2 work perfectly. test3 does not. I hope
someone
> > can explain me what is wrong. BTW, if I use the test.xml with just FOP
> > italso creates the PDF. It gives me the following exception:
> >
> > java.lang.ArrayIndexOutOfBoundsException
> > at
> >
org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:86)
> > at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:489)
> > at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:261)
> > at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:172)
> > at org.apache.fop.fo.flow.Table.layout(Table.java:247)
> > at org.apache.fop.fo.flow.Block.layout(Block.java:262)
> > at org.apache.fop.fo.flow.Flow.layout(Flow.java:156)
> > at org.apache.fop.fo.flow.Flow.layout(Flow.java:113)
> > at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:296)
> > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
> > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
> > at
> >
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
> > at
> >
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
> > at
> >
org.apache.cocoon.transformation.I18nTransformer.endElement(I18nTransformer.
> > java:887)
> > at
> >
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
> > java:307)
> > at
> >
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
> > 716)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
> > erImpl.java:2243)
> > at
> >
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
> > 710)
> > at
> >
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
> > lyTemplates.java:422)
> > at
> >
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
> > a:226)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
> > erImpl.java:2243)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
> > Impl.java:2069)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
> > ava:1171)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
> > at
> >
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
> > andlerImpl.java:436)
> > at
> >
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
> > at org.jdom.output.SAXOutputter.endDocument(SAXOutputter.java:359)
> > at org.jdom.output.SAXOutputter.output(SAXOutputter.java:267)
> > at
> >
com.spectron.cocoon.SpectronGenerator.generate(SpectronGenerator.java:341)
> > at
> >
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
> > entPipeline.java:251)
> > at
> >
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac
> > tStreamPipeline.java:184)
> > at
> >
org.apache.cocoon.www.msim.sitemap_xmap.matchN100F4(/tmp/Jetty__80___cocoon/
> > cocoon-files/org/apache/cocoon/www/msim/sitemap_xmap.java:2188)
> > at
> >
org.apache.cocoon.www.msim.sitemap_xmap.process(/tmp/Jetty__80___cocoon/coco
> > on-files/org/apache/cocoon/www/msim/sitemap_xmap.java:1011)
> > at
> >
org.apache.cocoon.www.msim.sitemap_xmap.process(/tmp/Jetty__80___cocoon/coco
> > on-files/org/apache/cocoon/www/msim/sitemap_xmap.java:910)
> > at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> > at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> > at
> >
org.apache.cocoon.www.sitemap_xmap.matchN109AB(/tmp/Jetty__80___cocoon/cocoo
> > n-files/org/apache/cocoon/www/sitemap_xmap.java:11987)
> > at
> >
org.apache.cocoon.www.sitemap_xmap.process(/tmp/Jetty__80___cocoon/cocoon-fi
> > les/org/apache/cocoon/www/sitemap_xmap.java:3889)
> > at
> >
org.apache.cocoon.www.sitemap_xmap.process(

Re: esql v1.22 multiple returned update counts and ResultSets

2002-05-17 Thread Christian Haul

On 17.May.2002 -- 12:23 PM, Torsten Curdt wrote:
> 
> 
> > > getMoreResults() should return no resultset at all... but how to iterate
> > > to the next update count? again - it belongs to the statement...
> >
> > I read the JDBC API that way that getMoreResults() closes the current
> > ResultSet and switches to the next result. A result consists among
> > others of a ResultSet and an UpdateCount. At least I get the
> > impression from the docs. So, if a complex statement i.e. a stored
> > procedure produces several results, why shouldn't it return several
> > update counts as well?
> 
> ...
> 
> > So with the scenario above, it would still work as each call to
> > getMoreResults() would switch to the next result. Incidently
> > containing no result set but an update count.
> 
> makes sense... I also looked into the code I guess we should change it into 
> something like this then:
> 
>  do {
>if (_esql_query.hasResultSet()) {
>   _esql_query.getResultRows();
> 
>   if (_esql_query.nextRow()) {
> 
>   }
>   else {
> 
>   }
>   _esql_query.getResultSet().close();
>}
>else {
>   if (_esql_query.getStatement().getUpdateCount() > 0) {
>  
>   }
>   else{
>  
>   }
>}
>  } while(_esql_query.getMoreResults());
> 
> what do you think?

Great. What happens when a result contains no ResultSet? Would we want
to evaluate ? (I don't think so).

> We could work around by wrapping the esql:results in a switch/case statement 
> so with multiple resultset it would get expanded into:
> 
>  int _esql_resultset_nr = 0;
>  do {
>if (_esql_query.hasResultSet()) {
>   _esql_query.getResultRows();
> 
>   if (_esql_query.nextRow()) {
> switch(_esql_resultset_nr++) {
>   case 1: /* resultset position() = 1 goes here */ break;
>   case 2: /* resultset position() = 2 goes here */ break;
>   ...

I would nest if(hasResultSet) into the switch statement. We would want
to have multiple no-results / update-results blocks for each result,
wouldn't we??

> }
>   }
>   else {
> 
>   }
>   _esql_query.getResultSet().close();
>}
>else {
>   if (_esql_query.getStatement().getUpdateCount() > 0) {
>  
>   }
>   else{
>  
>   }
>}
>  } while(_esql_query.getMoreResults());
> 
> So all you whould need to do is to specify multiple esql:results which get 
> applied in the order of appearance.

Great. Have already started to modify EsqlQuery :-)

Chris.

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

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

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




Re: Symbol euro

2002-05-17 Thread Konstantin Piroumian

See i18n samples and try Austrian locale with Euro currency. Euro sign is
displayed correctly without the need to change anything in entity catalog.
UTF-8 encoding is used in samples. The sign value comes from JDK i18n
resource bundles.

Konstantin

- Original Message -
From: "Eric Basley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 7:31 PM
Subject: Symbol euro


Hello


Im trying to convert charactere euro (€) into html symbol (&euro)
using cocoon 2.0.2 on linux with tomcat 4.0.4b3.

Serializers in sitemap are setup with
"ISO-8859-15".

characteres ¤ (euro) are correctly read from the form, insert in a
database using iso-8859-15 encoding, correctly read from the database
from our xsp BUT then Im unable to transform them to the html symbol.

I try to add "" in ISOlat1.pen without
success.

any ideas ??

greets eric.


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

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


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

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




RE: Heads-up: Back from Jax2002 and session slides

2002-05-17 Thread Matthew Langham

>>
Great slide show.  I guess there will be 50 more Cocoon adepts by now (if
they don't use Cocoon already).
<<
I forgot to add that 2/3 of the 50 there _are_ already using Cocoon.

Matthew


-Original Message-
From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 12:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Heads-up: Back from Jax2002 and session slides


Great slide show.  I guess there will be 50 more Cocoon adepts by now (if
they don't use Cocoon already).
The sentence I like best of the slide show is "You don‘t like it? – help us
make it better!"
I guess this sums it all up!
I hope you get some business out of it.
Bert


At 12:01 17/05/2002 +0200, you wrote:
>We're back from Jax2002 in Frankfurt. 900 people attended the largest
German
>conference on Java, Apache and XML (and also Web services). More people
were
>there than last year - which is promising.
>
>There were 4 Cocoon related sessions.
>
>There was a general Cocoon session by Thomas Bayer - and perhaps he can add
>his comments if he reads this. Thomas works for a company called
Orientation
>in Objects that does a lot of Cocoon related stuff (which was new to us as
>we hadn't seen them on the list before). Perhaps we have missed their
>postings. Thomas is also writing a German book on Cocoon - if our
>information is correct :-).
>
>Neal Ford (The DSW Group Ltd) held a session on targetting Wireless devices
>with XSLT and Cocoon. Neil showed this using JBuilder and Cocoon 1. Hmmm.
:)
>
>Carsten and I presented the Cocoon XML Portal (around 50 people) and Guido
>presented on integrating XML databases into Cocoon (around 30 people).
>
>If you atteded our sessions then we would be interested in feedback! We
have
>uploaded the session slides for the Portal presentation - so check my
Weblog
>(http://www.need-a-cake.com) for more information.
>
>Matthew
>
>--
>Open Source Group   Cocoon { Consulting, Training, Projects }
>=
>Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
>Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
>-
>Cocoon book:
>   http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
>=
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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


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

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




Re: Connection problem to DB2

2002-05-17 Thread Nicola Ken Barozzi

From: "Werner Guttmann" <[EMAIL PROTECTED]>

> All,
>
> please keep in mind that IBM's JDBC driver for DB2 is a type 2 driver.
Iow, it
> relies on native code installed somewhere in your filesystem.

Just for completeness, the iSeries (AS400) has his personal version of
DB2-type db, with opensource drivers, one of which is pure Java.

http://oss.software.ibm.com/developerworks/projects/jt400

Latest version is JDBC 3.0 compatible.

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


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

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




Re: Heads-up: Back from Jax2002 and session slides

2002-05-17 Thread Bert Van Kets

Great slide show.  I guess there will be 50 more Cocoon adepts by now (if 
they don't use Cocoon already).
The sentence I like best of the slide show is "You don‘t like it? – help us 
make it better!"
I guess this sums it all up!
I hope you get some business out of it.
Bert


At 12:01 17/05/2002 +0200, you wrote:
>We're back from Jax2002 in Frankfurt. 900 people attended the largest German
>conference on Java, Apache and XML (and also Web services). More people were
>there than last year - which is promising.
>
>There were 4 Cocoon related sessions.
>
>There was a general Cocoon session by Thomas Bayer - and perhaps he can add
>his comments if he reads this. Thomas works for a company called Orientation
>in Objects that does a lot of Cocoon related stuff (which was new to us as
>we hadn't seen them on the list before). Perhaps we have missed their
>postings. Thomas is also writing a German book on Cocoon - if our
>information is correct :-).
>
>Neal Ford (The DSW Group Ltd) held a session on targetting Wireless devices
>with XSLT and Cocoon. Neil showed this using JBuilder and Cocoon 1. Hmmm. :)
>
>Carsten and I presented the Cocoon XML Portal (around 50 people) and Guido
>presented on integrating XML databases into Cocoon (around 30 people).
>
>If you atteded our sessions then we would be interested in feedback! We have
>uploaded the session slides for the Portal presentation - so check my Weblog
>(http://www.need-a-cake.com) for more information.
>
>Matthew
>
>--
>Open Source Group   Cocoon { Consulting, Training, Projects }
>=
>Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
>Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
>-
>Cocoon book:
>   http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
>=
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




Compressing SVG - this is the correct URL

2002-05-17 Thread Kirwan, K.

This is the right URL

http://130.161.12.237:8080/cocoon/traffic-xml/home

Kieran Kirwan
Researcher,
Transportation and Traffic Engineering Section,
Civiele Techniek,  TU Delft,
Stevinweg 1, 2600GA Delft, Netherlands
phone: +31152785061
mobile: +31641690151


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

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




RE: upgrading to Cocoon2 and debugging

2002-05-17 Thread Graaf, Edgar de (fin)

Well I haven't changed that part of the sitemap. I left it like apache
created it. Besides the compiled version works with the same file.

Edgar

ps map:generate is used...

-Oorspronkelijk bericht-
Van: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 17 mei 2002 12:06
Aan: [EMAIL PROTECTED]
Onderwerp: Re: upgrading to Cocoon2 and debugging


Hello Edgar,

Did you write map prefix, like map:generate ?

Roman

"Graaf, Edgar de (fin)" wrote:

> Now I know, I things have changed. My sitemap doesn't work... first
> XMLDBCollection goes wrong, but that one is deprecated. Then when I
comment
> that one out I get a message:
>
> No default type exists for 'generate' at
> file:/D:/Tomcat4/webapps/cocoon/bugtrack/sitemap.xmap:95:-1
>
> But I have a default, namely 'file'
>
> Regards
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> Verzonden: vrijdag 17 mei 2002 9:07
> Aan: '[EMAIL PROTECTED]'
> Onderwerp: RE: upgrading to Cocoon2 and debugging
>
> Thanks Konstantin!
> But what I don't understand is if this is faster and better, why is it
> commented out? I didn't do that
>
> Regards,
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 16 mei 2002 13:19
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: upgrading to Cocoon2 and debugging
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > That I don't know because I never upgraded from C1. However when I adapt
> the
> > sitemap while Cocoon is running it takes 10
> > seconds at least before cocoon is ready and the nullpointerexception
> > dissapears.
>
> I can't remember that I've experienced any NPE with the TreeProcessor
> sitemap engine. Check if you are using it and not the compiled version
(see
> 'sitemap' element in cocoon.xconf).
>
> Regards,
>   Konstantin
>
> >
> > If there is nothing in the log or in your tomcat dos prompt do the
> > following: call the url, wait 10 seconds (untill your processor calms
> down).
> > Then reload
> >
> > -Oorspronkelijk bericht-
> > Van: gorillacommunications [mailto:[EMAIL PROTECTED]]
> > Verzonden: woensdag 15 mei 2002 22:54
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: upgrading to Cocoon2 and debugging
> >
> >
> > Hi all.
> >
> > I am upgrading an application from Cocoon1 to Cocoon2 and am
> > having some problems. I get the error "Exception in creating Transform
> > Handler:
> > java.lang.NullPointerException".
> >
> > 1. I created a pipeline in sitemap.xmap, but are there any special
things
> I
> > must do to my XML and XSL files to upgrade?
> >
> > 2. How do I see meaningful debugging info? I looked in the archive
> > and think I have the settings correct in web.xml and logkit.xconf, but
> > I see no info in any of the logs for this application (other
applications
> > dump output to the logs). At least Cocoon1 would write a message
> > to the console telling me what the parser choked on (I read in
> > the archive that this message is caused by an error in the XSL).
> >
> > Thanks for any help.
> > Leona Slepetis
> >
> >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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

Re: esql v1.22 multiple returned update counts and ResultSets

2002-05-17 Thread Torsten Curdt



> > getMoreResults() should return no resultset at all... but how to iterate
> > to the next update count? again - it belongs to the statement...
>
> I read the JDBC API that way that getMoreResults() closes the current
> ResultSet and switches to the next result. A result consists among
> others of a ResultSet and an UpdateCount. At least I get the
> impression from the docs. So, if a complex statement i.e. a stored
> procedure produces several results, why shouldn't it return several
> update counts as well?

...

> So with the scenario above, it would still work as each call to
> getMoreResults() would switch to the next result. Incidently
> containing no result set but an update count.

makes sense... I also looked into the code I guess we should change it into 
something like this then:

 do {
   if (_esql_query.hasResultSet()) {
  _esql_query.getResultRows();

  if (_esql_query.nextRow()) {

  }
  else {

  }
  _esql_query.getResultSet().close();
   }
   else {
  if (_esql_query.getStatement().getUpdateCount() > 0) {
 
  }
  else{
 
  }
   }
 } while(_esql_query.getMoreResults());

what do you think?



> Is it? AFAIK we evalute the  block for each result. How
> would I write different code for each result?

sorry, looking at the code revealed I didn't recalle correctly... the 
structure of results has to be same... you were right...

We could work around by wrapping the esql:results in a switch/case statement 
so with multiple resultset it would get expanded into:

 int _esql_resultset_nr = 0;
 do {
   if (_esql_query.hasResultSet()) {
  _esql_query.getResultRows();

  if (_esql_query.nextRow()) {
switch(_esql_resultset_nr++) {
  case 1: /* resultset position() = 1 goes here */ break;
  case 2: /* resultset position() = 2 goes here */ break;
  ...
}
  }
  else {

  }
  _esql_query.getResultSet().close();
   }
   else {
  if (_esql_query.getStatement().getUpdateCount() > 0) {
 
  }
  else{
 
  }
   }
 } while(_esql_query.getMoreResults());

So all you whould need to do is to specify multiple esql:results which get 
applied in the order of appearance.

What do you think?
--
Torsten

PS:maybe we should better move this discussion to cocoon-dev

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

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




Re: Connection problem to DB2

2002-05-17 Thread Werner Guttmann

All,

please keep in mind that IBM's JDBC driver for DB2 is a type 2 driver. Iow, it
relies on native code installed somewhere in your filesystem. Our experience
here indicates that because of this, you cannot simply put the relevant JAR
files (runtime.zip, db2java.zip and sqlj.zip) into the WEB-INF/lib directory.

In our case, we had to

a) copy these files into Tomcat's common/lib directory to avoid issues with JNI
when the web app is being reloaded (the issue here being that during the
lifetime of a JVM, any native libraries used by your code must be loaded once
only).
b) rename the extension of these files from ZIP to JAR (I think this is a Tomcat
4.0.1 issue that might have been resolved with newer releases).
c) set PATH, LD_LIBRARY_PATH and other environment variables before starting
Tomcat.

I hope this clarifies a couple of issues..

Thanks
Werner

Kelly Cole wrote:

> Christian,
>
> Thanks for the quick response... I am using Cocoon 2.0.2, Tomcat 4.0.1 and
> JDK 1.3.1_03.
>
> Now that I got the driver in the right place... and modified cocoon.xconf to
> include a  logger attribute:
> 
> 
> jdbc:db2:tdb2
> jftl206
> debbie12
> 
>
> I also simplified my request query to:
> http://apache.org/cocoon/SQL/2.0";>
> Hello
> 
> This is my first Cocoon2 page filled with sql
> data!
>  xmlns="http://apache.org/cocoon/SQL/2.0";>
> select sys_grp_no, sys_grp_name from
> testdb2.sysgrps
> 
> 
> 
>
> I get a bit further. I get this error message (sorry to have included so
> much, I wasn't sure what would be the interesting part):
> exception
>
> javax.servlet.ServletException: Servlet execution threw an exception
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:269)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1011)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
> )
> at java.lang.Thread.run(Thread.java:479)
>
> root cause
>
> java.lang.AbstractMethodError
> at
> org.apache.avalon.excalibur.datasource.JdbcConnection.prepareStatement(JdbcC
> onnection.java:172)
> at
> org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer
> .java:1014)
> at
> org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.
> java:271)
> at
> org.apache.cocoon.transformation.SQLTra

Re: upgrading to Cocoon2 and debugging

2002-05-17 Thread KOZLOV Roman

Hello Edgar,

Did you write map prefix, like map:generate ?

Roman

"Graaf, Edgar de (fin)" wrote:

> Now I know, I things have changed. My sitemap doesn't work... first
> XMLDBCollection goes wrong, but that one is deprecated. Then when I comment
> that one out I get a message:
>
> No default type exists for 'generate' at
> file:/D:/Tomcat4/webapps/cocoon/bugtrack/sitemap.xmap:95:-1
>
> But I have a default, namely 'file'
>
> Regards
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> Verzonden: vrijdag 17 mei 2002 9:07
> Aan: '[EMAIL PROTECTED]'
> Onderwerp: RE: upgrading to Cocoon2 and debugging
>
> Thanks Konstantin!
> But what I don't understand is if this is faster and better, why is it
> commented out? I didn't do that
>
> Regards,
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 16 mei 2002 13:19
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: upgrading to Cocoon2 and debugging
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > That I don't know because I never upgraded from C1. However when I adapt
> the
> > sitemap while Cocoon is running it takes 10
> > seconds at least before cocoon is ready and the nullpointerexception
> > dissapears.
>
> I can't remember that I've experienced any NPE with the TreeProcessor
> sitemap engine. Check if you are using it and not the compiled version (see
> 'sitemap' element in cocoon.xconf).
>
> Regards,
>   Konstantin
>
> >
> > If there is nothing in the log or in your tomcat dos prompt do the
> > following: call the url, wait 10 seconds (untill your processor calms
> down).
> > Then reload
> >
> > -Oorspronkelijk bericht-
> > Van: gorillacommunications [mailto:[EMAIL PROTECTED]]
> > Verzonden: woensdag 15 mei 2002 22:54
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: upgrading to Cocoon2 and debugging
> >
> >
> > Hi all.
> >
> > I am upgrading an application from Cocoon1 to Cocoon2 and am
> > having some problems. I get the error "Exception in creating Transform
> > Handler:
> > java.lang.NullPointerException".
> >
> > 1. I created a pipeline in sitemap.xmap, but are there any special things
> I
> > must do to my XML and XSL files to upgrade?
> >
> > 2. How do I see meaningful debugging info? I looked in the archive
> > and think I have the settings correct in web.xml and logkit.xconf, but
> > I see no info in any of the logs for this application (other applications
> > dump output to the logs). At least Cocoon1 would write a message
> > to the console telling me what the parser choked on (I read in
> > the archive that this message is caused by an error in the XSL).
> >
> > Thanks for any help.
> > Leona Slepetis
> >
> >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




Heads-up: Back from Jax2002 and session slides

2002-05-17 Thread Matthew Langham

We're back from Jax2002 in Frankfurt. 900 people attended the largest German
conference on Java, Apache and XML (and also Web services). More people were
there than last year - which is promising.

There were 4 Cocoon related sessions.

There was a general Cocoon session by Thomas Bayer - and perhaps he can add
his comments if he reads this. Thomas works for a company called Orientation
in Objects that does a lot of Cocoon related stuff (which was new to us as
we hadn't seen them on the list before). Perhaps we have missed their
postings. Thomas is also writing a German book on Cocoon - if our
information is correct :-).

Neal Ford (The DSW Group Ltd) held a session on targetting Wireless devices
with XSLT and Cocoon. Neil showed this using JBuilder and Cocoon 1. Hmmm. :)

Carsten and I presented the Cocoon XML Portal (around 50 people) and Guido
presented on integrating XML databases into Cocoon (around 30 people).

If you atteded our sessions then we would be interested in feedback! We have
uploaded the session slides for the Portal presentation - so check my Weblog
(http://www.need-a-cake.com) for more information.

Matthew

--
Open Source Group   Cocoon { Consulting, Training, Projects }
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
-
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
=



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

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




Compressing SVG: sorry - forgot the URL

2002-05-17 Thread Kirwan, K.

Dear All,

I'm working on version1 of an online traffic-information site at:
http://localhost:8080/cocoon/traffic-xml/home

The SVGmaps produced are currently quite large - so download times are
too-long.
Has anyone got any experience in producing zipped SVG files in Cocoon.

Thanks,
Kieran Kirwan.



Kieran Kirwan
Researcher,
Transportation and Traffic Engineering Section,
Civiele Techniek,  TU Delft,
Stevinweg 1, 2600GA Delft, Netherlands
phone: +31152785061
mobile: +31641690151


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

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




Compressing SVG output

2002-05-17 Thread Kirwan, K.

Dear All,

I'm working on version1 of an online traffic-information site at:  

The SVGmaps produced are currently quite large - so download times are
too-long.
Has anyone got any experience in producing zipped SVG files in Cocoon.

Thanks,
Kieran Kirwan.


Kieran Kirwan
Researcher,
Transportation and Traffic Engineering Section,
Civiele Techniek,  TU Delft,
Stevinweg 1, 2600GA Delft, Netherlands
phone: +31152785061
mobile: +31641690151


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

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




Re: esql v1.22 multiple returned update counts and ResultSets

2002-05-17 Thread Christian Haul

On 17.May.2002 -- 11:12 AM, Torsten Curdt wrote:
> On Friday 17 May 2002 10:36, Christian Haul wrote:
> > On 17.May.2002 -- 10:01 AM, Torsten Curdt wrote:
> > > On Friday 17 May 2002 03:48, neil wrote:
> >
> > I believe that we actually should expect
> >
> > (resultset, update count)
> >
> >| getMoreResults()
> >
> >V
> > (resultset, update count)
> 
> well, but what will change the update count on the statement? how do you 
> iterate through it if you have no resultset at all but only update counts
> 
> update count
> update count
> update count
> 
> getMoreResults() should return no resultset at all... but how to iterate to 
> the next update count? again - it belongs to the statement...

I read the JDBC API that way that getMoreResults() closes the current
ResultSet and switches to the next result. A result consists among
others of a ResultSet and an UpdateCount. At least I get the
impression from the docs. So, if a complex statement i.e. a stored
procedure produces several results, why shouldn't it return several
update counts as well?

So with the scenario above, it would still work as each call to
getMoreResults() would switch to the next result. Incidently
containing no result set but an update count.

> > So the real question would be IMHO how should ESQL react with respect
> > to multiple ResultSets? Something like introducing an index attribute?
> 
> Well, current esql can already cope with multiple resultsets... question is 
> only update counts fit into this. since AFAICS they are tied to the 
> statement. see above
> 
> >
> >  ...
> >
> >
> >  ...
> >
> >
> >  ...
> >
> >
> >  ...
> >
> 
> well, that's not necessary since this can easily addressed with xpath.

Sure. Just thought it would be more intuitive for users to number
resultsets explicitly.

> > Afterall, each ResultSet may have a different structure and semantics.
> 
> sure... should already be taken care of

Is it? AFAIK we evalute the  block for each result. How
would I write different code for each result?

> > BTW can anyone remember what more-results are supposed to mean?
> 
> yes :-) 
> 
> it's for the limit clause... we use esql for paging though a resultset (like 
> google)

Oh yes! That's what I thought. But thinking about multiple result sets
made me wonder if it was supposed be stem from this area. Thanks for
the explanation, anyway.

Chris.

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

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

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




Re: esql v1.22 multiple returned update counts and ResultSets

2002-05-17 Thread Torsten Curdt

On Friday 17 May 2002 10:36, Christian Haul wrote:
> On 17.May.2002 -- 10:01 AM, Torsten Curdt wrote:
> > On Friday 17 May 2002 03:48, neil wrote:
> > > Hi,
> > > it seems that a few cocoon users like me, are hacking about with esql
> > > to get it to do what we need. I'm working on the change shown below and
> > > am happy to share it if anyone wants it.
> > >
> > > JDBC can handle a sequence of values returned from a stored procedure,
> > > where the values can be update counts and ResultSets in any order. It
> > > looks to me like esql v1.22 will only handle a sequence with all the
> > > ResultSets before the first update count and at most one update count.
> > > e.g. ResultSet*updateCount? (where * and ? are as in a RE).
> > >
> > > MS SqlServer stored procs return an update count for every
> > > insert/update/delete performed and a ResultSet for every query (whose
> > > results aren't consumed in the procedure) in the order that they are
> > > performed. So its important to handle update counts and ResultSets in
> > > any order.
> >
> > Let's assume you expect:
> >
> > resultset
> > update count
> > resultset
> > update count
> >
> > How do you iterate through the update counts? AFAIK the JDBC API provides
> > only information about the update count in the Statement. This is why
> > current esql is like it is.
>
> I believe that we actually should expect
>
> (resultset, update count)
>
>| getMoreResults()
>
>V
> (resultset, update count)

well, but what will change the update count on the statement? how do you 
iterate through it if you have no resultset at all but only update counts

update count
update count
update count

getMoreResults() should return no resultset at all... but how to iterate to 
the next update count? again - it belongs to the statement...

> So the real question would be IMHO how should ESQL react with respect
> to multiple ResultSets? Something like introducing an index attribute?

Well, current esql can already cope with multiple resultsets... question is 
only update counts fit into this. since AFAICS they are tied to the 
statement. see above

>
>  ...
>
>
>  ...
>
>
>  ...
>
>
>  ...
>

well, that's not necessary since this can easily addressed with xpath.

> Afterall, each ResultSet may have a different structure and semantics.

sure... should already be taken care of

> > > int resultCount = 0;
> > > for ( boolean nextResultIsResultSet = cs.execute(); true;
> > > nextResultIsResultSet = cs.getMoreResults() ) {
>
>  //if (nextResultIsResultSet) {
>
> > >   java.sql.ResultSet rs = cs.getResultSet();
> > >   ++resultCount;
>
> switch (resultCount) {
>   1: //handle ResultSet 1
>   rs.close();
>   int updateCount = cs.getUpdateCount();
>   if ( updateCount == -1 ) {
>   // handle UpdateResults 1
>  break;
>   2: //handle ResultSet 2
>   rs.close();
>   int updateCount = cs.getUpdateCount();
>   if ( updateCount == -1 ) {
>   // handle UpdateResults 2
>  break;
>   default: // handle ResultSet without index
> }
>
> > > }
> > > if (resultCount == 0) {
> > > // no returned results
> > > }
> >
> > note that you are always calling getUpdateCount on the same statement.
> > will it's state be changed?!? That would be indeed a ugly behaviour...
>
> BTW can anyone remember what more-results are supposed to mean?

yes :-) 


it's for the limit clause... we use esql for paging though a resultset (like 
google)


so depending on if there are previous rows or rows after the limit has reached 
you get:


 ...


and


 ...


where you can put your e.g. links in
--
Torsten


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

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




do not chaching .js

2002-05-17 Thread Cocoon User

i dont need .js files caching

is it possible to setup cocoon to read .js files every time the client
make a request ?


i use cocoon 2.0rc2 on tomcat

thanks
kounis stavros

osmosis networks and consulting services
http://www.osmosis.gr

Greece



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

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




Re: Cocoon 2 + Access

2002-05-17 Thread Tom Klaasen

cyril vidal wrote:

>Tom,
>
>I've tried this and it was runnig well. That's why I'm surprised.
>
[...]

Ah, OK. Sorry, I didn't know that. But it seems you have found the 
problem. Congratulations :-)

tomK


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

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




Re: esql v1.22 multiple returned update counts and ResultSets

2002-05-17 Thread Christian Haul

On 17.May.2002 -- 10:01 AM, Torsten Curdt wrote:
> On Friday 17 May 2002 03:48, neil wrote:
> > Hi,
> > it seems that a few cocoon users like me, are hacking about with esql to
> > get it to do what we need. I'm working on the change shown below and am
> > happy to share it if anyone wants it.
> >
> > JDBC can handle a sequence of values returned from a stored procedure,
> > where the values can be update counts and ResultSets in any order. It looks
> > to me like esql v1.22 will only handle a sequence with all the ResultSets
> > before the first update count and at most one update count. e.g.
> > ResultSet*updateCount? (where * and ? are as in a RE).
> >
> > MS SqlServer stored procs return an update count for every
> > insert/update/delete performed and a ResultSet for every query (whose
> > results aren't consumed in the procedure) in the order that they are
> > performed. So its important to handle update counts and ResultSets in any
> > order.
> 
> Let's assume you expect:
> 
> resultset
> update count
> resultset
> update count
> 
> How do you iterate through the update counts? AFAIK the JDBC API provides only 
> information about the update count in the Statement. This is why current esql 
> is like it is.

I believe that we actually should expect

(resultset, update count)
   |
   | getMoreResults()
   V
(resultset, update count)

So the real question would be IMHO how should ESQL react with respect
to multiple ResultSets? Something like introducing an index attribute?

   
 ...
   
   
 ...
   
   
 ...
   
   
 ...
   

Afterall, each ResultSet may have a different structure and semantics.

> > int resultCount = 0;
> > for ( boolean nextResultIsResultSet = cs.execute(); true;
> > nextResultIsResultSet = cs.getMoreResults() ) {
 //if (nextResultIsResultSet) {
> > java.sql.ResultSet rs = cs.getResultSet();
> > ++resultCount;
switch (resultCount) {
  1: //handle ResultSet 1
rs.close();
int updateCount = cs.getUpdateCount();
if ( updateCount == -1 ) {
// handle UpdateResults 1
 break;
  2: //handle ResultSet 2
rs.close();
int updateCount = cs.getUpdateCount();
if ( updateCount == -1 ) {
// handle UpdateResults 2
 break;
  default: // handle ResultSet without index
}
> > }
> > if (resultCount == 0) {
> > // no returned results
> > }
> 
> note that you are always calling getUpdateCount on the same statement. will 
> it's state be changed?!? That would be indeed a ugly behaviour...

BTW can anyone remember what more-results are supposed to mean?

Chris.

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

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

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




RE: upgrading to Cocoon2 and debugging

2002-05-17 Thread Graaf, Edgar de (fin)

Now I know, I things have changed. My sitemap doesn't work... first
XMLDBCollection goes wrong, but that one is deprecated. Then when I comment
that one out I get a message:

No default type exists for 'generate' at
file:/D:/Tomcat4/webapps/cocoon/bugtrack/sitemap.xmap:95:-1

But I have a default, namely 'file'

Regards

Edgar

-Oorspronkelijk bericht-
Van: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 17 mei 2002 9:07
Aan: '[EMAIL PROTECTED]'
Onderwerp: RE: upgrading to Cocoon2 and debugging


Thanks Konstantin!
But what I don't understand is if this is faster and better, why is it
commented out? I didn't do that

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 16 mei 2002 13:19
Aan: [EMAIL PROTECTED]
Onderwerp: Re: upgrading to Cocoon2 and debugging


From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> That I don't know because I never upgraded from C1. However when I adapt
the
> sitemap while Cocoon is running it takes 10
> seconds at least before cocoon is ready and the nullpointerexception
> dissapears.

I can't remember that I've experienced any NPE with the TreeProcessor
sitemap engine. Check if you are using it and not the compiled version (see
'sitemap' element in cocoon.xconf).

Regards,
  Konstantin

>
> If there is nothing in the log or in your tomcat dos prompt do the
> following: call the url, wait 10 seconds (untill your processor calms
down).
> Then reload
>
> -Oorspronkelijk bericht-
> Van: gorillacommunications [mailto:[EMAIL PROTECTED]]
> Verzonden: woensdag 15 mei 2002 22:54
> Aan: [EMAIL PROTECTED]
> Onderwerp: upgrading to Cocoon2 and debugging
>
>
> Hi all.
>
> I am upgrading an application from Cocoon1 to Cocoon2 and am
> having some problems. I get the error "Exception in creating Transform
> Handler:
> java.lang.NullPointerException".
>
> 1. I created a pipeline in sitemap.xmap, but are there any special things
I
> must do to my XML and XSL files to upgrade?
>
> 2. How do I see meaningful debugging info? I looked in the archive
> and think I have the settings correct in web.xml and logkit.xconf, but
> I see no info in any of the logs for this application (other applications
> dump output to the logs). At least Cocoon1 would write a message
> to the console telling me what the parser choked on (I read in
> the archive that this message is caused by an error in the XSL).
>
> Thanks for any help.
> Leona Slepetis
>
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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

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

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

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

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




Re: esql v1.22 multiple returned update counts and ResultSets

2002-05-17 Thread Torsten Curdt

On Friday 17 May 2002 03:48, neil wrote:
> Hi,
> it seems that a few cocoon users like me, are hacking about with esql to
> get it to do what we need. I'm working on the change shown below and am
> happy to share it if anyone wants it.
>
> JDBC can handle a sequence of values returned from a stored procedure,
> where the values can be update counts and ResultSets in any order. It looks
> to me like esql v1.22 will only handle a sequence with all the ResultSets
> before the first update count and at most one update count. e.g.
> ResultSet*updateCount? (where * and ? are as in a RE).
>
> MS SqlServer stored procs return an update count for every
> insert/update/delete performed and a ResultSet for every query (whose
> results aren't consumed in the procedure) in the order that they are
> performed. So its important to handle update counts and ResultSets in any
> order.

Let's assume you expect:

resultset
update count
resultset
update count

How do you iterate through the update counts? AFAIK the JDBC API provides only 
information about the update count in the Statement. This is why current esql 
is like it is.

> int resultCount = 0;
> for ( boolean nextResultIsResultSet = cs.execute(); true;
> nextResultIsResultSet = cs.getMoreResults() ) {
> if (nextResultIsResultSet) {
>   java.sql.ResultSet rs = cs.getResultSet();
>   ++resultCount;
>   // handle ResultSet
>   rs.close();
> } else {
>   // either the next result is an update count or there are no more results
>   int updateCount = cs.getUpdateCount();
>   if ( updateCount == -1 ) {
>   break; // no more results
>   // only finished when cs.getMoreResults() == false &&
> cs.getUpdateCount() == -1
>   // awful bit of API but it works
>   }
>   ++resultCount;
>   // handle updateCount
> }
> // there may still be more ResultSets and/or update counts
> }
> if (resultCount == 0) {
> // no returned results
> }

note that you are always calling getUpdateCount on the same statement. will 
it's state be changed?!? That would be indeed a ugly behaviour...
--
Torsten

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

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




Re: Cocoon PDF creation problems

2002-05-17 Thread KOZLOV Roman

Hi,
Check your fo code. It seems that there is no table-column element.

Roman

"Spectron International, Inc." wrote:

> I'm having some problems with PDF creation in cocoon. I have the following
> sitemap (simplified, removed i18n stuff):
>
> 
>   
>   
>   
> 
>
> 
>   
>   
>   
> 
>
> 
>   
>   
>   
> 
>
> My problem is test1 and test2 work perfectly. test3 does not. I hope someone
> can explain me what is wrong. BTW, if I use the test.xml with just FOP
> italso creates the PDF. It gives me the following exception:
>
> java.lang.ArrayIndexOutOfBoundsException
> at
> org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:86)
> at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:489)
> at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:261)
> at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:172)
> at org.apache.fop.fo.flow.Table.layout(Table.java:247)
> at org.apache.fop.fo.flow.Block.layout(Block.java:262)
> at org.apache.fop.fo.flow.Flow.layout(Flow.java:156)
> at org.apache.fop.fo.flow.Flow.layout(Flow.java:113)
> at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:296)
> at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
> at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
> at
> org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
> at
> org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
> at
> org.apache.cocoon.transformation.I18nTransformer.endElement(I18nTransformer.
> java:887)
> at
> org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
> java:307)
> at
> org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
> 716)
> at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
> erImpl.java:2243)
> at
> org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
> 710)
> at
> org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
> lyTemplates.java:422)
> at
> org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
> a:226)
> at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
> erImpl.java:2243)
> at
> org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
> Impl.java:2069)
> at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
> ava:1171)
> at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
> at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
> andlerImpl.java:436)
> at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
> at org.jdom.output.SAXOutputter.endDocument(SAXOutputter.java:359)
> at org.jdom.output.SAXOutputter.output(SAXOutputter.java:267)
> at
> com.spectron.cocoon.SpectronGenerator.generate(SpectronGenerator.java:341)
> at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
> entPipeline.java:251)
> at
> org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac
> tStreamPipeline.java:184)
> at
> org.apache.cocoon.www.msim.sitemap_xmap.matchN100F4(/tmp/Jetty__80___cocoon/
> cocoon-files/org/apache/cocoon/www/msim/sitemap_xmap.java:2188)
> at
> org.apache.cocoon.www.msim.sitemap_xmap.process(/tmp/Jetty__80___cocoon/coco
> on-files/org/apache/cocoon/www/msim/sitemap_xmap.java:1011)
> at
> org.apache.cocoon.www.msim.sitemap_xmap.process(/tmp/Jetty__80___cocoon/coco
> on-files/org/apache/cocoon/www/msim/sitemap_xmap.java:910)
> at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> at
> org.apache.cocoon.www.sitemap_xmap.matchN109AB(/tmp/Jetty__80___cocoon/cocoo
> n-files/org/apache/cocoon/www/sitemap_xmap.java:11987)
> at
> org.apache.cocoon.www.sitemap_xmap.process(/tmp/Jetty__80___cocoon/cocoon-fi
> les/org/apache/cocoon/www/sitemap_xmap.java:3889)
> at
> org.apache.cocoon.www.sitemap_xmap.process(/tmp/Jetty__80___cocoon/cocoon-fi
> les/org/apache/cocoon/www/sitemap_xmap.java:3097)
> at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
> at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:595)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1357)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1309)
> at org.mortbay.http.HttpServer.service(HttpServer.java:744)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java:743)
> at org.mortbay.http.HttpConnection.handleNex

Re: Connection problem to DB2

2002-05-17 Thread Christian Haul

On 16.May.2002 -- 04:13 PM, Kelly Cole wrote:
> Thanks for the quick response... I am using Cocoon 2.0.2, Tomcat 4.0.1 and
> JDK 1.3.1_03.

Your versions look reasonable. Have you compiled any of it yourself?

> root cause 
> 
> java.lang.AbstractMethodError
>   at
> org.apache.avalon.excalibur.datasource.JdbcConnection.prepareStatement(JdbcC
> onnection.java:172)
>   at
> org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer
> .java:1014)
>   at
> org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.
> java:271)
>   at
> org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTr
> ansformer.java:417)

This looks like a JDBC2 / JDBC3 clash for me. But I have to confess,
that I'm no expert on this. (Neither do I use DB2, the SQLTransformer
nor JDBC3 / j2sdk 1.4).

Hopefully, someone else can jump in (Berin?)

> query(http://apache.org/cocoon/SQL/2.0)
> /SQLTransformer: QUERY IS "select sys_grp_no, sys_grp_name from
> testdb2.sysgrps"
> /SQLTransformer: RECEIVED CHARACTERS: 
> /SQLTransformer: RECEIVED END ELEMENT
> execute-query(http://apache.org/cocoon/SQL/2.0)
> /SQLTransformer: SQLTransformer executing query nr 0
> /SQLTransformer$Query: EXECUTING select sys_grp_no, sys_grp_name from
> testdb2.sysgrps

Everything fine up to here. Query seems OK.

> And finally, here's a snippet of the core.log ("with the
> [core.datasources.TDB2](/cocoon/db/test.html) HttpProcessor[8080][4]/"
> trimmed off):
> LogKitLogger: Marking 0 objects as old in pool.
> LogKitLogger: JdbcConnection object created
> LogKitLogger: Created a new
> org.apache.avalon.excalibur.datasource.JdbcConnection from the object
> factory.
> LogKitLogger: Got a org.apache.avalon.excalibur.datasource.JdbcConnection
> from the pool.
> LogKitLogger: Put a org.apache.avalon.excalibur.datasource.JdbcConnection
> back into the pool.

That looks good. Your connection seems OK.

Just for a test: Could you see whether ESQL works with your setup?
E.g. take cocoon/docs/samples/xsp/esql.xsp and modify it to use your
connection and query.

Chris.

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

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

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