Re: Woody repeater and big record count

2004-03-04 Thread Ugo Cei
Vasyl Stashuk wrote:
I have large number of records, that should be shown to user. They can't 
fit on one page.
What is best way to implement paging using woody?
Do you mean a paged Woody repeater? I'm afraid you'll have to code it 
yourself, or otherwise revision your design. Having a form with a large 
repeating array smells of bad UI design.

	Ugo



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


[ANN] JEuclid 2.0

2004-03-04 Thread Stephan Michels
Hi,

I received some mails from people, which are interested in the Jeuclid
project. So I managed to update the package to the latest Cocoon
version.

The JEuclid project offers components for the MathML to SVG and GIF
image conversion. And allows to present mathematical content in 
websites, without that the browser to support MathML.

Stephan Michels.


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



Re: "Corrupt" Data on very large XSLT translations

2004-03-04 Thread Bertrand Delacretaz
Le Jeudi, 4 mars 2004, à 08:21 Europe/Zurich, Corin Moss a écrit :

...We're using Xalan (2.6.0) with heavy use of Java extensions 
(especially the e-xslt extensions)  and from time to time, we've been 
noticing document being rendered with odd corruptions which render 
them invalid XML fragments...
Would you be able to reproduce the problem with an anteater test, maybe 
repeatedly calling a pipeline to cause it?

If so, it would be good to have such a test in CVS - we've seen many 
issues with the various XSLT processors in the past, and the 
interactions between Cocoon and them are not always easy to test.

The src/test/anteater/bug26186InternalRequestMemoryLeak.xml is an 
example of such a test - to create a new one, you just need to create 
an anteater test scenario in this directory. See also
http://wiki.cocoondev.org/Wiki.jsp?page=TestingFramework

-Bertrand

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


RE: cocoon 2.1.4 performance

2004-03-04 Thread Gordon Anderson


hi Laurent
I've been over these things somewhat often before!! 
The first problem was that I had not copied the xerces and xml-api jar
files to the /common/endorsed dirs.  Due to
JDK1.4 having xml libraries in its distribution this has to be
done.  Almost all of the very strange error messages in the logs
disappear :)  I wsa previously experiencing pages returning with no
data in them (ie 0 bytes) quite often.

Next is to change the size of the pools - I changed all the pool-max
attributes in cocoon.xconf to 1024.

However when I change ANY of the max pool size for the xinclude, cinclude
and general xml parsing as in this section...

   

   

 
falseuse-request-parameters>
 
falseuse-session-parameters>
 
falseuse-cookie-parameters>
 
xalanxslt-processor-role>
 
truecheck-includes>
   
map:transformer>
   

   

 
falseuse-request-parameters>
 
falseuse-session-parameters>
 
falseuse-cookie-parameters>
 
xsltcxslt-processor-role>
 
truecheck-includes>
   
map:transformer>
   

   


I get the following error.
==

Internal Server Error
Message: You cannot lookup components on a disposed
ComponentLocator
Description: java.lang.IllegalStateException: You cannot lookup
components on a disposed ComponentLocator
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI
cause
java.lang.IllegalStateException: You cannot lookup components on a
disposed ComponentLocator
request-uri
/
stacktrace
java.lang.IllegalStateException: You cannot lookup components on a
disposed ComponentLocator
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:203)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:324)
at
org.apache.cocoon.components.treeprocessor.sitemap.ErrorHandlerHelper.invokeErrorHandler(ErrorHandlerHelper.java:100)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:185)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:136)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:371)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:312)
at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
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:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPi

redirect cocoon http to https

2004-03-04 Thread Tuan Luu
Hello 
I have cocoon 2.1.2 mod_jk2, apache httpd 2.0.48, tomcat 4.1.29. 

Now I'd like to transfer all http to https: 
http://servername/cocoon --> https://servername/cocoon

I can rewrite or redirect the server to https, but actually not the
directory. 
can anyone help here?


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



Re: redirect cocoon http to https

2004-03-04 Thread Zamek
Hello,

In your httpd.conf 


  RewriteEngine on
  RewriteCond %{SERVER_NAME} =your.server.domain
  RewriteRule ^(.*)$  https://your.server.domain/$1



any help in: http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule

On Thursday 04 March 2004 10.33, Tuan Luu wrote:
> Hello
> I have cocoon 2.1.2 mod_jk2, apache httpd 2.0.48, tomcat 4.1.29.
>
> Now I'd like to transfer all http to https:
> http://servername/cocoon --> https://servername/cocoon
>
> I can rewrite or redirect the server to https, but actually not the
> directory.
> can anyone help here?

-- 
bye,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



RE: cocoon 2.1.4 performance

2004-03-04 Thread Laurent Trillaud








Gordon

I have resolved the
endorsed directories hells by switching the class loader with the paranoid.

http://wiki.cocoondev.org/Wiki.jsp?page=EndorsedLibsProblem

And I have already seen
similar disposed ComponentLocator problem

http://marc.theaimsgroup.com/?t=10777945672&r=1&w=2

http://marc.theaimsgroup.com/?t=10461293794&r=1&w=2

Laurent

 

 











De : Gordon Anderson
[mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 4 mars 2004
10:23
À : [EMAIL PROTECTED];
[EMAIL PROTECTED]
Objet : RE: cocoon 2.1.4 performance



 

hi Laurent

I've been over these things somewhat often before!! 

The first problem was that I had not copied the xerces and xml-api jar files to
the /common/endorsed dirs.  Due to JDK1.4 having xml
libraries in its distribution this has to be done.  Almost all of the very
strange error messages in the logs disappear :)  I wsa previously
experiencing pages returning with no data in them (ie 0 bytes) quite often.


Next is to change the size of the pools - I changed all the pool-max attributes
in cocoon.xconf to 1024.


However when I change ANY of the max pool size for the xinclude, cinclude and
general xml parsing as in this section...


   

    
  falseuse-request-parameters>
  falseuse-session-parameters>
  falseuse-cookie-parameters>
  xalanxslt-processor-role>
  truecheck-includes>
    map:transformer>

    
    
  falseuse-request-parameters>
  falseuse-session-parameters>
  falseuse-cookie-parameters>
  xsltcxslt-processor-role>
  truecheck-includes>
    map:transformer>

    
    


I get the following error.
==


Internal Server Error

Message: You cannot lookup components on a disposed ComponentLocator

Description: java.lang.IllegalStateException: You cannot lookup components on a
disposed ComponentLocator

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

Request URI

cause

java.lang.IllegalStateException: You cannot lookup components on a disposed
ComponentLocator

request-uri

/

stacktrace

java.lang.IllegalStateException: You cannot lookup components on a disposed
ComponentLocator
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:203)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:324)
at
org.apache.cocoon.components.treeprocessor.sitemap.ErrorHandlerHelper.invokeErrorHandler(ErrorHandlerHelper.java:100)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:185)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:136)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:371)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:312)
at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
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:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.

Error found handling the request. - Cocoon 1.8

2004-03-04 Thread Murthy
Hi,

I'm encountering the below error while trying to
generate the '.rtf' file with images. Without images
'.rtf' file is opening fine.

I'm quite new to cocoon world, any help would be
greatly appreciated.

Env details:

1. Cocoon version 1.8
2. Servlet Engine iAS/6.5 SP1  


Error stack trace is below,


Error found handling the request.
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at java.awt.Toolkit$2.run(Toolkit.java:507)
at java.security.AccessController.doPrivileged(Native
Method)
at
java.awt.Toolkit.getDefaultToolkit(Toolkit.java:498)
at
org.jfor.jfor.tools.jpeg.Encoder.encodeJPEG(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfExternalGraphic.writeRtfContentWithException(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfExternalGraphic.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfTableCell.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfTableRow.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at org.jfor.jfor.rtflib.rtfdoc.RtfFile.flush(Unknown
Source)
at org.jfor.jfor.converter.Converter.writeRtf(Unknown
Source)
at
org.jfor.jfor.converter.Converter.endDocument(Unknown
Source)
at
org.jfor.jfor.tools.DomToSaxAdapter.simulateParsing(Unknown
Source)
at org.jfor.jfor.converter.Converter.(Unknown Source)
at
org.jfor.jfor.cocoon1.Cocoon1Formatter.format(Unknown
Source)
at org.apache.cocoon.Engine.handle(Engine.java:375)
at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown
Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)

 
Warning: this page has been dynamically generated.  
 

Copyright (c) 1999-2000 The Apache XML Project.
All rights reserved. 



Regards
Murthy

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



Re: Error found handling the request. - Cocoon 1.8

2004-03-04 Thread Upayavira
Why are you using Cocoon 1.8? It has reached 2.1.4 now, and the changes 
between v1 and v2 were HUGE, so most people here won't know anything 
about 1.8.

Regards, Upayavira

Murthy wrote:

Hi,

I'm encountering the below error while trying to
generate the '.rtf' file with images. Without images
'.rtf' file is opening fine.
I'm quite new to cocoon world, any help would be
greatly appreciated.
Env details:

1. Cocoon version 1.8
2. Servlet Engine iAS/6.5 SP1  

Error stack trace is below,

Error found handling the request.
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at java.awt.Toolkit$2.run(Toolkit.java:507)
at java.security.AccessController.doPrivileged(Native
Method)
at
java.awt.Toolkit.getDefaultToolkit(Toolkit.java:498)
at
org.jfor.jfor.tools.jpeg.Encoder.encodeJPEG(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfExternalGraphic.writeRtfContentWithException(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfExternalGraphic.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfTableCell.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfTableRow.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
Source)
at
org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
Source)
at org.jfor.jfor.rtflib.rtfdoc.RtfFile.flush(Unknown
Source)
at org.jfor.jfor.converter.Converter.writeRtf(Unknown
Source)
at
org.jfor.jfor.converter.Converter.endDocument(Unknown
Source)
at
org.jfor.jfor.tools.DomToSaxAdapter.simulateParsing(Unknown
Source)
at org.jfor.jfor.converter.Converter.(Unknown Source)
at
org.jfor.jfor.cocoon1.Cocoon1Formatter.format(Unknown
Source)
at org.apache.cocoon.Engine.handle(Engine.java:375)
at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown
Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
Warning: this page has been dynamically generated.  

Copyright (c) 1999-2000 The Apache XML Project.
All rights reserved. 



Regards
Murthy
__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: cocoon 2.1.4 performance

2004-03-04 Thread John L. Webber
Hello Gordon,

There's an issue open on Bugzilla regarding the disposed ComponentLocator:

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

John

Gordon Anderson wrote:

However when I change ANY of the max pool size for the xinclude, 
cinclude and general xml parsing as in this section...

I get the following error.
==
Internal Server Error

Message: You cannot lookup components on a disposed ComponentLocator

Description: java.lang.IllegalStateException: You cannot lookup 
components on a disposed ComponentLocator

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

Request URI

cause

java.lang.IllegalStateException: You cannot lookup components on a 
disposed ComponentLocator

request-uri


--
-
Jentro Technologies GmbH
John L. Webber, Software Development
-
Rosenheimer Str. 145e	81671 München
Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED] 
Fax  +49 89 189 169 99 http://www.jentro.com
-
NOTICE: The information contained in this e-mail is confidential or may otherwise be legally privileged. It is intended for the named recipient only. If you have received it in error, please notify us immediately by reply or by calling the telephone number above and delete this message and all its attachments without any use or further distribution of its contents. Please note that any unauthorised review, copying, disclosing or otherwise making use of the information is strictly prohibited. Thank you. 
-

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


Re: Error found handling the request. - Cocoon 1.8

2004-03-04 Thread Murthy
Hi,

It is not abt using recent versions of Cocoon, 

But i'm presently supporting a project which uses
Cocoon 1.8, on it i've no control to upgrade or
propose any other soln, but to solve the problem at
hand. 

Hope you understand my problem :(, sorry to bother you
guys ... 

Regards
Murthy


--- Upayavira <[EMAIL PROTECTED]> wrote:
> Why are you using Cocoon 1.8? It has reached 2.1.4
> now, and the changes 
> between v1 and v2 were HUGE, so most people here
> won't know anything 
> about 1.8.
> 
> Regards, Upayavira
> 
> Murthy wrote:
> 
> >Hi,
> >
> >I'm encountering the below error while trying to
> >generate the '.rtf' file with images. Without
> images
> >'.rtf' file is opening fine.
> >
> >I'm quite new to cocoon world, any help would be
> >greatly appreciated.
> >
> >Env details:
> >
> >1. Cocoon version 1.8
> >2. Servlet Engine iAS/6.5 SP1  
> >
> >
> >Error stack trace is below,
> >
> >
> >Error found handling the request.
> >java.lang.NoClassDefFoundError
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:115)
> > at java.awt.Toolkit$2.run(Toolkit.java:507)
> > at
> java.security.AccessController.doPrivileged(Native
> >Method)
> > at
>
>java.awt.Toolkit.getDefaultToolkit(Toolkit.java:498)
> > at
> >org.jfor.jfor.tools.jpeg.Encoder.encodeJPEG(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfExternalGraphic.writeRtfContentWithException(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfExternalGraphic.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfTableCell.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfTableRow.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
> >Source)
> > at
>
>org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
> >Source)
> > at
> org.jfor.jfor.rtflib.rtfdoc.RtfFile.flush(Unknown
> >Source)
> > at
> org.jfor.jfor.converter.Converter.writeRtf(Unknown
> >Source)
> > at
>
>org.jfor.jfor.converter.Converter.endDocument(Unknown
> >Source)
> > at
>
>org.jfor.jfor.tools.DomToSaxAdapter.simulateParsing(Unknown
> >Source)
> > at org.jfor.jfor.converter.Converter.(Unknown
> Source)
> > at
>
>org.jfor.jfor.cocoon1.Cocoon1Formatter.format(Unknown
> >Source)
> > at
> org.apache.cocoon.Engine.handle(Engine.java:375)
> > at
> org.apache.cocoon.Cocoon.service(Cocoon.java:167)
> > at
>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
>
>com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
> >Source)
> > at
>
>com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
> >Source)
> > at com.kivasoft.applogic.AppLogic.execute(Unknown
> >Source)
> > at com.kivasoft.applogic.AppLogic.execute(Unknown
> >Source)
> > at com.kivasoft.thread.ThreadBasic.run(Native
> Method)
> > at java.lang.Thread.run(Thread.java:479)
> >
> > 
> >Warning: this page has been dynamically generated. 
> 
> > 
> >
> >Copyright (c) 1999-2000 The Apache XML Project.
> >All rights reserved. 
> >
> >
> >
> >Regards
> >Murthy
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Search - Find what you’re looking for faster
> >http://search.yahoo.com
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >  
> >
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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

cocoon servlet

2004-03-04 Thread Ang Huey Min

Hi all,
I am new to cocoon. I am still trying to run my cocoon, after running built.bat, I attempted to run cocoon servlet and keep getting the following error. Could anyone advise me how I could solve this problem? 
Thank you.
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}{\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1\pard\f0\fs20  Loading \parProcessing repository: .\\tools\\jetty\\lib\parAdding jar: .\\tools\\jetty\\lib\\jetty-4.2.14.jar\parAdding jar: .\\tools\\jetty\\lib\\servlet-2.3.jar\parProcessing repository: .\\lib\\endorsed\parAdding jar: .\\lib\\endorsed\\xalan-2.5.2.jar\parAdding jar: .\\lib\\endorsed\\xercesImpl-2.6.1.jar\parAdding jar: .\\lib\\endorsed\\xml-apis.jar\par Executing -\parMain Class: org.mortbay.jetty.Server\par15:24:50.881 EVENT  Checking Resource aliases\par15:24:51.507 EVENT  Starting Jetty/4.2.14\par15:24:51.757 EVENT  Started WebApplicationContext[/,.\\build\\webapp]\par15:24:51.788 EVENT  Started SocketListener on 0.0.0.0:\par15:24:51.788
 WARN!!\parorg.mortbay.util.MultiException[java.lang.ClassNotFoundException: org.apache.coc\paroon.servlet.CocoonServlet]\par    at org.mortbay.http.HttpServer.start(HttpServer.java:640)\par    at org.mortbay.jetty.Server.main(Server.java:429)\par    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\par    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.\parjava:39)\par    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces\parsorImpl.java:25)\par    at java.lang.reflect.Method.invoke(Method.java:324)\par    at Loader.invokeMain(Unknown Source)\par    at Loader.run(Unknown
 Source)\par    at Loader.main(Unknown Source)\par[0]=java.lang.ClassNotFoundException: org.apache.cocoon.servlet.CocoonServlet\par    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)\par    at java.security.AccessController.doPrivileged(Native Method)\par    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)\par    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)\par    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)\par    at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:207)\par    at
 org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:171)\par    at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1379)\par    at org.mortbay.jetty.servlet.Holder.start(Holder.java:165)\par    at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:198)\par\par    at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHa\parndler.java:445)\par    at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(We\parbApplicationHandler.java:150)\par    at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationC\parontext.java:449)\par    at
 org.mortbay.http.HttpServer.start(HttpServer.java:663)\par    at org.mortbay.jetty.Server.main(Server.java:429)\par    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\par    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.\parjava:39)\par    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces\parsorImpl.java:25)\par    at java.lang.reflect.Method.invoke(Method.java:324)\par    at Loader.invokeMain(Unknown Source)\par    at Loader.run(Unknown Source)\par    at Loader.main(Unknown Source)\par\par} 
 Y! Asia presents Lavalife- Stand a chance to win a dream date, join the Dream Guy Contest!

Adding / modfying respons header from cocoon XSLT transformer

2004-03-04 Thread Marco . Farrugia

Hi,

Currently I am using an XSP generator,
followed by the cocoon XSLT Transformer, followed by the XML serializer.
 I need to set a header in the response under certain conditions at
the transformer stage. I cannot do this from the generator since, first
I need to analyze the generated XML using XSLT and the header is set according
to some conditions. Is there a way to do this? Is the re a way to access
response headers through XSLT?

Thanks
Marco.

[woody binding] binding of multivalue fields supported?

2004-03-04 Thread Niels van Kampenhout
Hello,

Is binding of multivalue fields already supported in Woody? I cannot find any 
information on this at the Wiki or anywhere else on the web.

Thanks,

Niels van Kampenhout

Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
-
[EMAIL PROTECTED] / www.hippo.nl
--

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



Re: redirect cocoon http to https

2004-03-04 Thread Tuan Luu
This only works if I enter servername in the url 
but if you enter servername/cocoon --> http://servername/cocoon


> Hello,
> 
> In your httpd.conf 
> 
> 
>   RewriteEngine on
>   RewriteCond %{SERVER_NAME} =your.server.domain
>   RewriteRule ^(.*)$  https://your.server.domain/$1
> 
> 
> 
> any help in: http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule
> 
> On Thursday 04 March 2004 10.33, Tuan Luu wrote:
> > Hello
> > I have cocoon 2.1.2 mod_jk2, apache httpd 2.0.48, tomcat 4.1.29.
> >
> > Now I'd like to transfer all http to https:
> > http://servername/cocoon --> https://servername/cocoon
> >
> > I can rewrite or redirect the server to https, but actually not the
> > directory.
> > can anyone help here?
> 
> -- 
> bye,
> Zoltan Zidarics programmer
> PTE University Pecs, Hungary
> icq: 43288694
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



Re: Error found handling the request. - Cocoon 1.8

2004-03-04 Thread Upayavira
Murthy wrote:

Hi,

It is not abt using recent versions of Cocoon, 

But i'm presently supporting a project which uses
Cocoon 1.8, on it i've no control to upgrade or
propose any other soln, but to solve the problem at
hand. 

Hope you understand my problem :(, sorry to bother you
guys ... 
 

Okay, hopefully there's someone out there that'll be able to help you 
with your Cocoon 1.8 problem.

Good luck,

Upayavira

Regards
Murthy
--- Upayavira <[EMAIL PROTECTED]> wrote:
 

Why are you using Cocoon 1.8? It has reached 2.1.4
now, and the changes 
between v1 and v2 were HUGE, so most people here
won't know anything 
about 1.8.

Regards, Upayavira

Murthy wrote:

   

Hi,

I'm encountering the below error while trying to
generate the '.rtf' file with images. Without
 

images
   

'.rtf' file is opening fine.

I'm quite new to cocoon world, any help would be
greatly appreciated.
Env details:

1. Cocoon version 1.8
2. Servlet Engine iAS/6.5 SP1  

Error stack trace is below,

Error found handling the request.
java.lang.NoClassDefFoundError
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:115)
	at java.awt.Toolkit$2.run(Toolkit.java:507)
	at
 

java.security.AccessController.doPrivileged(Native
   

Method)
	at
 

java.awt.Toolkit.getDefaultToolkit(Toolkit.java:498)
   

	at
org.jfor.jfor.tools.jpeg.Encoder.encodeJPEG(Unknown
Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfExternalGraphic.writeRtfContentWithException(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfExternalGraphic.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfTableCell.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfTableRow.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfContainer.writeRtfContent(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfElement.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.rtflib.rtfdoc.RtfFile.flush(Unknown
   

Source)
	at
 

org.jfor.jfor.converter.Converter.writeRtf(Unknown
   

Source)
	at
 

org.jfor.jfor.converter.Converter.endDocument(Unknown
   

Source)
	at
 

org.jfor.jfor.tools.DomToSaxAdapter.simulateParsing(Unknown
   

Source)
	at org.jfor.jfor.converter.Converter.(Unknown
 

Source)
   

	at
 

org.jfor.jfor.cocoon1.Cocoon1Formatter.format(Unknown
   

Source)
	at
 

org.apache.cocoon.Engine.handle(Engine.java:375)
   

	at
 

org.apache.cocoon.Cocoon.service(Cocoon.java:167)
   

	at
 

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

	at
 

com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
   

Source)
	at
 

com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
   

Source)
	at com.kivasoft.applogic.AppLogic.execute(Unknown
Source)
	at com.kivasoft.applogic.AppLogic.execute(Unknown
Source)
	at com.kivasoft.thread.ThreadBasic.run(Native
 

Method)
   

	at java.lang.Thread.run(Thread.java:479)

Warning: this page has been dynamically generated. 
 

Copyright (c) 1999-2000 The Apache XML Project.
All rights reserved. 



Regards
Murthy
__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
 

-
   

To unsubscribe, e-mail:
 

[EMAIL PROTECTED]
   

For additional commands, e-mail:
 

[EMAIL PROTECTED]
   



 



   

-
 

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



__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



---

Re: Strange: BlobSource cannot access Datasource

2004-03-04 Thread Olivier Billard
Hi Natz,

This problem is due to an imcompatibility between the ComponentManager and the ServiceManager.

The change should be in the CVS very soon.
Or you can manually change the BlobSource.java and rebuild cocoon :
(Thats just a change from ComponentSelector to ServiceSelector)
import org.apache.avalon.framework.service.ServiceSelector;

...

private Connection getConnection() throws SourceException {

ServiceSelector selector = null;
DataSourceComponent datasource = null;
try {
try {
selector = (ServiceSelector)this.manager.lookup(DataSourceComponent.ROLE 
+ "Selector");

datasource = (DataSourceComponent)selector.select(this.datasourceName);

} catch(Exception e) {
String msg = "Cannot get datasource '" + this.datasourceName + "'";
getLogger().error(msg);
throw new SourceException(msg, e);
}
try {
return datasource.getConnection();
} catch(Exception e) {
String msg = "Cannot get connection for datasource '" + this 
.datasourceName + "'";
getLogger().error(msg);
throw new SourceException(msg, e);
}

} finally {
if (datasource != null) {
selector.release(datasource);
}
}
}
HTH,

--
Olivier Billard
On 11/02/2004 12:32, [EMAIL PROTECTED] wrote:
  Hello All, Please, help, because I'm really out of ideas here.. The 
thing is, when I try to use a blob: protocol (from the BlobSource 
component), I keep getting an Exception during source resolving.: 
org.apache.excalibur.source.SourceException: Cannot get datasource 
'DBGES' At first I thought there was something wrong with the datasource 
definition, but if I use the DBGES pool in a XSP serverpage, or in a SQL 
transformer, it works flawlessly, so the datasource definition is 
correct. In my previous project it worked flawlessly.. Does anybody know 
what may i be doing wrong? Thanks all, Nacho Jimenez


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


esql:error-results does not longer works

2004-03-04 Thread Nacho Jimenez
   Hello all,

   Most of my xsp data views relied on the esql:error-results for 
displaying useful information for the user  (error type, means to fix 
it, etc.), But now, the XSP seems to handle the SQL Exception and 
convert it to a  "java.lang.RuntimeException: Error executing statement" 
so the error-results tag does not get executed.. Is there some way to 
avoid this? I'm thinking about trycatching the xsp files, but that'd 
complicate them too much..

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


Re: Error found handling the request. - Cocoon 1.8

2004-03-04 Thread Janek Bogucki
On Thu, 2004-03-04 at 05:02, Murthy wrote:
> Hi,
> 
> I'm encountering the below error while trying to
> generate the '.rtf' file with images. Without images
> '.rtf' file is opening fine.

I'd guess this is more related to AWT than cocoon. This the source of
the method the exception is thrown in (taken from JDK 1.4, the line
numbers are different to your stack trace so I guess you are using JDK
1.3 but the code is probably similar). The stack trace originates inside
the anonymous class. Maybe this will help you locate the cause of the
trace.

/**
 * Gets the default toolkit.
 * 
 * If there is a system property named "awt.toolkit",
 * that property is treated as the name of a class that is a subclass
 * of Toolkit.
 * 
 * If the system property does not exist, then the default toolkit
 * used is the class named "sun.awt.motif.MToolkit",
 * which is a motif implementation of the Abstract Window Toolkit.
 * 
 * Also loads additional classes into the VM, using the property
 * 'assistive_technologies' specified in the Sun reference
 * implementation by a line in the 'accessibility.properties'
 * file.  The form is "assistive_technologies=..." where
 * the "..." is a comma-separated list of assistive technology
 * classes to load.  Each class is loaded in the order given
 * and a single instance of each is created using
 * Class.forName(class).newInstance().  This is done just after
 * the AWT toolkit is created.  All errors are handled via an
 * AWTError exception.
 * @returnthe default toolkit.
 * @exception  AWTError  if a toolkit could not be found, or
 * if one could not be accessed or instantiated.
 */
public static synchronized Toolkit getDefaultToolkit() {
if (toolkit == null) {
try {
// We disable the JIT during toolkit initialization.  This
// tends to touch lots of classes that aren't needed again
// later and therefore JITing is counter-productiive.
java.lang.Compiler.disable();

java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction() {
public Object run() {
String nm = null;
Class cls = null;
try {
nm = System.getProperty("awt.toolkit",
"sun.awt.motif.MToolkit");
try {
cls = Class.forName(nm);
} catch (ClassNotFoundException e) {
ClassLoader cl = ClassLoader.getSystemClassLoader();
if (cl != null) {
try {
cls = cl.loadClass(nm);
} catch (ClassNotFoundException ee) {
throw new AWTError("Toolkit not found: " + nm);
}
}
}
if (cls != null) {
toolkit = (Toolkit)cls.newInstance();
if (GraphicsEnvironment.isHeadless()) {
toolkit = new HeadlessToolkit(toolkit);
}
}
} catch (InstantiationException e) {
throw new AWTError("Could not instantiate Toolkit: " +
   nm);
} catch (IllegalAccessException e) {
throw new AWTError("Could not access Toolkit: " + nm);
}
return null;
}
});
loadAssistiveTechnologies();

} finally {
// Make sure to always re-enable the JIT.
java.lang.Compiler.enable();
}
}
return toolkit;
}

-Janek

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



CLI after 2.1.2 is broken ?

2004-03-04 Thread gounis
hi all

playing around with some cocoon installation in my computer
i have notice tha CLI dont work after 2.1.2 version
is this a known bug or something else is happend here ?


--stavros


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



Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread Upayavira
[EMAIL PROTECTED] wrote:

hi all

playing around with some cocoon installation in my computer
i have notice tha CLI dont work after 2.1.2 version
is this a known bug or something else is happend here ?
 

Doesn't work? What doesn't work. If I remember, there was a bug in a 
version around then which means that you should start with 2.1.3 as a 
minimum. And 2.1.3 has the Ant CocoonTask, which is well worth trying. 
I'm using it myself for a site.

So what's the problem you're having?

Upayavira



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


encoding of result from database

2004-03-04 Thread Vlad Ali
Hi all!

I'm trying to get result from databse over cocoon-xsp - esql:taglib.
strings in databse have cp1251 encoding but result have other encoding
What should i   do to get result of SELECT request in cp1251 encoding?

thx.
Sorry my english

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



AW: Convert ComponentManager to ServiceManager

2004-03-04 Thread Marco Rolappe
Title: Convert ComponentManager to ServiceManager



howdy 
corin ;-)
 
yes, 
it's possible. there's a WrapperServiceManager in excalibur-component, that 
wraps a ComponentManager.

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Im Auftrag 
  von Corin MossGesendet: Donnerstag, 4. März 2004 
  04:11An: [EMAIL PROTECTED]Betreff: Convert 
  ComponentManager to ServiceManager
  Hiya, 
  Does anyone know of a convenience method for 
  converting a ComponentManager to a ServiceManager? 
  Is this even possible to do? :) 
  Thanks, 
  Corin 
  Corin Moss Lead 
  Developer TVNZ Interactive 
  +64 9 916 7367 +64 21 403 054 [EMAIL PROTECTED] 
  


  
CAUTION: This e-mail and any attachment(s) contains information
that is intended to be read only by the named recipient(s). It
may contain information that is confidential, proprietary or the
subject of legal privilege. This information is not to be used by
any other person and/or organisation. If you are not the intended
recipient, please advise us immediately and delete this e-mail
from your system. Do not use any information contained in it.


For more information on the Television New Zealand Group, visit
us online at http://www.tvnz.co.nz




Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread gounis
i a fresh 2.1.4 installation without to touch anything 
just try to run 

cocoon cli -x cli.xconf


i get an error about [portlet]


i have try to test a cvs snapshot (yesterday night) with tha same result


-- stavros

- the stack trace -
..
..

Opening database: 
C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
for hint [ portlet]
org.apache.avalon.framework.context.ContextException: Unable to resolve 
context
key: servlet-config
at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
at 
org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
at 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
at 
org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
at org.apache.cocoon.Main.main(Main.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
named 'portlet' at
 
file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121

org.apache.avalon.framework.component.ComponentException: Could not set up 
Compo
nent for hint [ portlet] (key [portlet])
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
at org.apache.cocoon.Main.main(Main.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.

Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread Upayavira
[EMAIL PROTECTED] wrote:

i a fresh 2.1.4 installation without to touch anything 
just try to run 

cocoon cli -x cli.xconf

i get an error about [portlet]
 

Yup. Portlet block breaks CLI, which is bad. Exclude it from build and 
you'll be fine.

Upayavira

i have try to test a cvs snapshot (yesterday night) with tha same result

-- stavros

- the stack trace -
..
..
Opening database: 
C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
for hint [ portlet]
org.apache.avalon.framework.context.ContextException: Unable to resolve 
context
key: servlet-config
   at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
   at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
   at 
org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
   at 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
   at 
org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
   at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
   at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
   at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
   at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
   at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
   at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
   at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
   at org.apache.cocoon.Main.main(Main.java:349)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at Loader.invokeMain(Unknown Source)
   at Loader.run(Unknown Source)
   at Loader.main(Unknown Source)
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
named 'portlet' at

file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121

org.apache.avalon.framework.component.ComponentException: Could not set up 
Compo
nent for hint [ portlet] (key [portlet])
   at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
   at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
   at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
   at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
   at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
   at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
   at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
   at org.apache.cocoon.Main.main(Main.java:349)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMet

Antw: Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread Martin Geissler
Hello,
as far as i know there is a bug with portlets and cli
build your cocoon whithout portlets.

For some reason you have to copy the file servlet_2_2.jar from cocoon-home/ 
lib/optional 
to the folder cocoon-home/build/WEB-Inf/lib of your build.

I also used the xml config code from the docs of the ant task in my cli.xkonf and it 
works.
commented all original xml out and inserted the xml from the ant task xml code. 
Not shure why i dit it, but worked for me.

build.xml for ant located in cocoon-home/build/





  
  

 





   
   
   

   
   
   
   
   
   
   
   
   
 





   

  




Regards Martin


>>> [EMAIL PROTECTED] Donnerstag, 4. März 2004 13:24:30 >>>
i a fresh 2.1.4 installation without to touch anything 
just try to run 

cocoon cli -x cli.xconf


i get an error about [portlet]


i have try to test a cvs snapshot (yesterday night) with tha same result


-- stavros

- the stack trace -
..
..

Opening database: 
C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
for hint [ portlet]
org.apache.avalon.framework.context.ContextException: Unable to resolve 
context
key: servlet-config
at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
at 
org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
at 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
at 
org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
at org.apache.cocoon.Main.main(Main.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
named 'portlet' at
 
file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121

org.apache.avalon.framework.component.ComponentException: Could not set up 
Compo
nent for hint [ portlet] (key [portlet])
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initia

Re: Passing values into an XSP logic sheet

2004-03-04 Thread beyaNet Consultancy
Hi,
I am trying to pull a value in from my XSP page into an XSP Logicsheet. At the moment no value is being pulled in. What am I doing incorrectly?

1. XSP Page (snippet)



xmlns:xsp="http://apache.org/xsp"
xmlns:artistDetails="http://www.beyarecords.com/artistDetails/1.0" -- LOGICSHEET REF:
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:util="http://apache.org/xsp/util/2.0"
>


int artistID = Integer.parseInt(); --VALUE PULLED IN FROM SITEMAP




 --- VALUE HELD HERE


2. XSP Logic Sheet


xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsp="http://apache.org/xsp"
xmlns:util="http://apache.org/xsp/util/2.0"
xmlns:artistDetails="http://www.beyarecords.com/artistDetails/1.0" -- LOGICSHEET REF:
version="1.0">















int artistID = Integer.parseInt(); -- WANT VALUE PULLED INTO HERE
Artist artist = Artist.getArtist(artistID);


int id = artist.getID();
String artist_name = artist.getArtistName();
String info = artist.getArtistInfo();	
String basePhoto1 = Base64.encodeBytes(artist.getArtistPhoto1());
String basePhoto2 = Base64.encodeBytes(artist.getArtistPhoto2());





many thanks in advance

On 3 Mar 2004, at 21:07, beyaNet Consultancy wrote:

Christopher,
thanks for your reply. I have implemented your solution but am getting an error. I have attached both my XSP page and the XSP Logic sheet. Please let me know what i am doing here...


many thanks in advance

Andrew


On 3 Mar 2004, at 16:02, Christopher Painter-Wakefield wrote:


int  myID = [code to get parameter value here];



myID



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

RE: [woody binding] binding of multivalue fields supported?

2004-03-04 Thread Niels van Kampenhout
> Is binding of multivalue fields already supported in Woody? I 
> cannot find any information on this at the Wiki or anywhere 
> else on the web.

I already found out myself that it was not supported in 2.1.4, but it is now in the 
current CVS snapshot.

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



xsp upload nightmare

2004-03-04 Thread Zamek
Hello All,

I try to use upload with xsp.
Sample is working well, and I try to move uploaded file to my path.

here is my xsp (based upload.xsp):





http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:xsp-response="http://apache.org/xsp/response/2.0";
  xmlns:log="http://apache.org/xsp/log/2.0";>

  
   org.apache.cocoon.components.language.markup.xsp.XSPUtil
   org.apache.avalon.framework.context.ContextException
   java.io.File
   org.apache.cocoon.environment.*
   org.apache.cocoon.components.request.multipart.*
  

  
version 1.
String filename=request.getParameter("upload-file");  

here I am get an error: java.lang.NullPointerException 
It is ok, because there is no upload-file parameter, but I have to handle 
empty parameters.

and then I try to test it:

version 2.
if (request.getParameter("upload-file") != null) {
   String filename=request.getParameter("upload-file");  
}

Once more error:
// end error String filename=request.getParameter("upload-file"); } File 
uploadDir = null; ... Line 76, column 0: Syntax error on keyword "if"; 
"boolean", "void", "byte", "short", "int", "long", "char", "float", 
"double", "Identifier", "interface", "class" expected
I don't know what is it, but another try:

version 3.
   String filename=;

and another error:
. Line 77, column 0: Syntax error on token ";", "{", "+", "-", "--", "++", 
"boolean", "void", "byte", "short", "int", "long", "char", "float", 
"double", "(", "true", "false", "IntegerLiteral", "LongLiteral", 
"FloatingPointLiteral", "DoubleLiteral", "CharacterLiteral", 
"StringLiteral", "null", "~", "!", "super", "this", "new", "Identifier" 
expected


File uploadDir = null;
/** Contextualize this class */
public void contextualize(Context context) throws ContextException {
  uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
}
  


So can anybody send me a working xsp which is move uploaded file to any 
path?

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread gounis

sory but there is not portlet block in blocks.properties.

ro do you mean whole the portal block ?


thnx 

--stavros 

On Thu, 4 Mar 2004, Upayavira wrote:

> [EMAIL PROTECTED] wrote:
> 
> >i a fresh 2.1.4 installation without to touch anything 
> >just try to run 
> >
> >cocoon cli -x cli.xconf
> >
> >
> >i get an error about [portlet]
> >  
> >
> Yup. Portlet block breaks CLI, which is bad. Exclude it from build and 
> you'll be fine.
> 
> Upayavira
> 
> >
> >i have try to test a cvs snapshot (yesterday night) with tha same result
> >
> >
> >-- stavros
> >
> >- the stack trace -
> >..
> >..
> >
> >Opening database: 
> >C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
> >HSQLDB server 1.7.1 is running
> >Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
> >Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
> >ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
> >for hint [ portlet]
> >org.apache.avalon.framework.context.ContextException: Unable to resolve 
> >context
> >key: servlet-config
> >at 
> >org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
> >at 
> >org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
> >at 
> >org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
> >at 
> >org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
> >at 
> >org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
> >at 
> >org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >at 
> >org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
> >at 
> >org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
> >at 
> >org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
> >at 
> >org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >at 
> >org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
> >at 
> >org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
> >at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
> >at 
> >org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
> >at 
> >org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
> >at org.apache.cocoon.Main.main(Main.java:349)
> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >at 
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >at 
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >at java.lang.reflect.Method.invoke(Method.java:324)
> >at Loader.invokeMain(Unknown Source)
> >at Loader.run(Unknown Source)
> >at Loader.main(Unknown Source)
> >ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
> >org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
> >named 'portlet' at
> > 
> >file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121
> >
> >org.apache.avalon.framework.component.ComponentException: Could not set up 
> >Compo
> >nent for hint [ portlet] (key [portlet])
> >at 
> >org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
> >at 
> >org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
> >at 
> >org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
> >at 
> >org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
> >at 
> >org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >at 
> >org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
> >at 
> >org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
> >at 
> >org.apache.avalon.framework.container.Containe

Problems with Java extension in cocoon 2.1.4

2004-03-04 Thread Wouter . DERUYCK

Hello,

I try to call a Java method on an class (called producer.IPMChecker)  from
within a xslt.  The object on which the method is called is passed to the
xslt as a parameter in the sitemap like this:










And in the stylesheet itself I have:

http://www.w3.org/1999/XSL/Transform"; 

xmlns:IPMChecker="xalan://producer.IPMChecker">







...


I each time get an exception of the form:


java.lang.RuntimeException: java.lang.NoSuchMethodException: For extension
function, could not find method
producer.IPMChecker.getIdAnswers([ExpressionContext,] #STRING).
Checked both static and instance methods.   
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3411)

at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:427)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)

at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer
.java:583)  
at
org.apache.cocoon.components.sax.XMLTeePipe.endDocument(XMLTeePipe.java:102)

at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) 
...


However, the method getIdAnswers without any arguments does exist on the
class producer.IPMChecker 

Does anyone has an idea ?

Thanks a lot !

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



Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread Upayavira
[EMAIL PROTECTED] wrote:

sory but there is not portlet block in blocks.properties.

ro do you mean whole the portal block ?
 

Sorry, yes.

Upayavira

thnx 

--stavros 

On Thu, 4 Mar 2004, Upayavira wrote:

 

[EMAIL PROTECTED] wrote:

   

i a fresh 2.1.4 installation without to touch anything 
just try to run 

cocoon cli -x cli.xconf

i get an error about [portlet]

 

Yup. Portlet block breaks CLI, which is bad. Exclude it from build and 
you'll be fine.

Upayavira

   

i have try to test a cvs snapshot (yesterday night) with tha same result

-- stavros

- the stack trace -
..
..
Opening database: 
C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
for hint [ portlet]
org.apache.avalon.framework.context.ContextException: Unable to resolve 
context
key: servlet-config
  at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
  at 
org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
  at 
org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
  at 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
  at 
org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
  at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
  at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
  at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
  at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
  at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
  at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
  at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
  at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
  at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
  at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
  at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
  at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
  at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
  at 
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
  at org.apache.cocoon.Main.main(Main.java:349)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at Loader.invokeMain(Unknown Source)
  at Loader.run(Unknown Source)
  at Loader.main(Unknown Source)
ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
named 'portlet' at

file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121

org.apache.avalon.framework.component.ComponentException: Could not set up 
Compo
nent for hint [ portlet] (key [portlet])
  at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
  at 
org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
  at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
  at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
  at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
  at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
  at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
  at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
  at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
  at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
  at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
  at 
org.apache.cocoon.bean.CocoonBean

Re: xsp upload nightmare

2004-03-04 Thread gounis

take a look here

http://wiki.cocoondev.org/Wiki.jsp?page=RecipeUploadUsingAction

it working 




On Thu, 4 Mar 2004, Zamek wrote:

> Hello All,
> 
> I try to use upload with xsp.
> Sample is working well, and I try to move uploaded file to my path.
> 
> here is my xsp (based upload.xsp):
> 
> 
> 
> 
> 
>xmlns:xsp="http://apache.org/xsp";
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
>   xmlns:xsp-response="http://apache.org/xsp/response/2.0";
>   xmlns:log="http://apache.org/xsp/log/2.0";>
> 
>   
>
> org.apache.cocoon.components.language.markup.xsp.XSPUtil
>org.apache.avalon.framework.context.ContextException
>java.io.File
>org.apache.cocoon.environment.*
>org.apache.cocoon.components.request.multipart.*
>   
> 
>   
> version 1.
> String filename=request.getParameter("upload-file");  
> 
> here I am get an error: java.lang.NullPointerException 
> It is ok, because there is no upload-file parameter, but I have to handle 
> empty parameters.
> 
> and then I try to test it:
> 
> version 2.
> if (request.getParameter("upload-file") != null) {
>String filename=request.getParameter("upload-file");  
> }
> 
> Once more error:
> // end error String filename=request.getParameter("upload-file"); } File 
> uploadDir = null; ... Line 76, column 0: Syntax error on keyword "if"; 
> "boolean", "void", "byte", "short", "int", "long", "char", "float", 
> "double", "Identifier", "interface", "class" expected
> I don't know what is it, but another try:
> 
> version 3.
>String filename=;
> 
> and another error:
> . Line 77, column 0: Syntax error on token ";", "{", "+", "-", "--", "++", 
> "boolean", "void", "byte", "short", "int", "long", "char", "float", 
> "double", "(", "true", "false", "IntegerLiteral", "LongLiteral", 
> "FloatingPointLiteral", "DoubleLiteral", "CharacterLiteral", 
> "StringLiteral", "null", "~", "!", "super", "this", "new", "Identifier" 
> expected
> 
> 
> File uploadDir = null;
> /** Contextualize this class */
> public void contextualize(Context context) throws ContextException {
>   uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
> }
>   
> 
> 
> So can anybody send me a working xsp which is move uploaded file to any 
> path?
> 
> 


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



SV: xsp upload nightmare

2004-03-04 Thread Askild Aaberg Olsen
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106918964613219&w=2

You should probably rewrite it to an XSPAction when you get this thing
working, or follow the examples in the wiki (flow or (java)-action).
That is much more in coherence with the Cocoon concept, but the linked xsp
is working in 2.1.3 og 2.1.4 at least.

Hope this is helpfull! I've been there, so I know your pain ;-)

Askild
-

Zamek wrote:
> So can anybody send me a working xsp which is move uploaded 
> file to any 
> path?
> 
> -- 
> thx,
> Zoltan Zidarics programmer
> PTE University Pecs, Hungary
> icq: 43288694
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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



Re: CLI after 2.1.2 is broken ?

2004-03-04 Thread gounis
OK That's it 

to make cli work i have to 
1. exclude portal block from build
2. copy servlet_2_2.jar form lib/optional to build/webapp/web-inf/lib


thnx all





On Thu, 4 Mar 2004, Upayavira wrote:

> [EMAIL PROTECTED] wrote:
> 
> >sory but there is not portlet block in blocks.properties.
> >
> >ro do you mean whole the portal block ?
> >  
> >
> Sorry, yes.
> 
> Upayavira
> 
> >
> >thnx 
> >
> >--stavros 
> >
> >On Thu, 4 Mar 2004, Upayavira wrote:
> >
> >  
> >
> >>[EMAIL PROTECTED] wrote:
> >>
> >>
> >>
> >>>i a fresh 2.1.4 installation without to touch anything 
> >>>just try to run 
> >>>
> >>>cocoon cli -x cli.xconf
> >>>
> >>>
> >>>i get an error about [portlet]
> >>> 
> >>>
> >>>  
> >>>
> >>Yup. Portlet block breaks CLI, which is bad. Exclude it from build and 
> >>you'll be fine.
> >>
> >>Upayavira
> >>
> >>
> >>
> >>>i have try to test a cvs snapshot (yesterday night) with tha same result
> >>>
> >>>
> >>>-- stavros
> >>>
> >>>- the stack trace -
> >>>..
> >>>..
> >>>
> >>>Opening database: 
> >>>C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb
> >>>HSQLDB server 1.7.1 is running
> >>>Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
> >>>Thu Mar 04 14:14:42 EET 2004 Listening for connections ...
> >>>ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component 
> >>>for hint [ portlet]
> >>>org.apache.avalon.framework.context.ContextException: Unable to resolve 
> >>>context
> >>>key: servlet-config
> >>>   at 
> >>>org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157)
> >>>   at 
> >>>org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160)
> >>>   at 
> >>>org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144)
> >>>   at 
> >>>org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738)
> >>>   at 
> >>>org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558)
> >>>   at 
> >>>org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
> >>>   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
> >>>   at 
> >>>org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186)
> >>>   at 
> >>>org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132)
> >>>   at org.apache.cocoon.Main.main(Main.java:349)
> >>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>   at 
> >>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>>   at 
> >>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>>   at java.lang.reflect.Method.invoke(Method.java:324)
> >>>   at Loader.invokeMain(Unknown Source)
> >>>   at Loader.run(Unknown Source)
> >>>   at Loader.main(Unknown Source)
> >>>ERROR   2004-03-04 14:14:43.816 [cli.mana] (): Could not load class 
> >>>org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component 
> >>>named 'portlet' at
> >>>
> >>>file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121
> >>>
> >>>org.apache.avalon.framework.component.ComponentException: Could not set up 
> >>>Compo
> >>>nent for hint [ portlet] (key [portlet])
> >>>   at 
> >>>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756)
> >>>   at 
> >>>org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268)
> >>>   at 
> >>>org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239)
> >>>   at 
> >>>org.apache.avalon.excalibur

Stylesheet URI cannot be null

2004-03-04 Thread Li, Wangqian
Hi, 

I'm a beginner cocoon user.
Can anybody shed light on what problem this is? I got the following log. 
Thanks a lot. 

org.apache.cocoon.ProcessingException: Stylesheet URI can't be null
at 
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:302)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:395)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:652)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:517)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:479)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
  

Calling xsp-action

2004-03-04 Thread Grzegorz "Goliatus" Tańczyk
Witaj!

  I'm not sure how to code one of my ideas.

  I'm using cron/jobscheduler and I want to call xsp-action form
  there. Please tell if its is good solution for this to
  import org.apache.cocoon.www.mypage;
  and call
  new my_xsp_action_xsp().generate();

  I want to get some things working in background on my web. For
  example: every hour launch xsp which adds somethings to db.

  Please help and tell me what should I use :-)

-- 
Pozdrowienia,
 Grzegorz  mailto:[EMAIL PROTECTED]


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



...running JSPs on the Jetty server embedded in Cocoon 2.1.3?

2004-03-04 Thread Francesco Rossi \(Milano\, Italy\)
hi there,

does anybody know if it's possible to run JSPs on the Jetty server embedded in
Cocoon vers. 2.1.3?
if so: what directory should I deploy them in?
Otherwise, a solution might be reinstalling Cocoon and running it on Tomcat, am
I right?
thanks,

Francesco


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



Re: ...running JSPs on the Jetty server embedded in Cocoon 2.1.3?

2004-03-04 Thread Upayavira
Francesco Rossi (Milano, Italy) wrote:

hi there,

does anybody know if it's possible to run JSPs on the Jetty server embedded in
Cocoon vers. 2.1.3?
if so: what directory should I deploy them in?
Otherwise, a solution might be reinstalling Cocoon and running it on Tomcat, am
I right?
The Jetty in Cocoon is for demonstration purposes only. It is not 
intended for deployment.

You can either:
1) Use the JSPGenerator if your JSPs produce XML and must integrate with 
a Cocoon site, or:
2) Use a full installation of Tomcat or Jetty, and read their 
instructions about how to configure JSPs.

Regards, Upayavira



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


RE: Problems with Java extension in cocoon 2.1.4

2004-03-04 Thread Ralph Goers
You can't pass objects in the sitemap, only strings.  So the value
associated with mychecker is the result of the toString() method of
{session:mychecker}

Ralph

 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 04, 2004 5:45 AM
To: [EMAIL PROTECTED]
Subject:Problems with Java extension in cocoon 2.1.4


Hello,

I try to call a Java method on an class (called producer.IPMChecker)  from
within a xslt.  The object on which the method is called is passed to the
xslt as a parameter in the sitemap like this:










And in the stylesheet itself I have:

http://www.w3.org/1999/XSL/Transform"; 

xmlns:IPMChecker="xalan://producer.IPMChecker">







...


I each time get an exception of the form:


java.lang.RuntimeException: java.lang.NoSuchMethodException: For extension
function, could not find method
producer.IPMChecker.getIdAnswers([ExpressionContext,] #STRING).
Checked both static and instance methods.   
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3411)

at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:427)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)

at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer
.java:583)  
at
org.apache.cocoon.components.sax.XMLTeePipe.endDocument(XMLTeePipe.java:102)

at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) 
...


However, the method getIdAnswers without any arguments does exist on the
class producer.IPMChecker 

Does anyone has an idea ?

Thanks a lot !

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

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



Re: Passing values into an XSP logic sheet

2004-03-04 Thread Christopher Painter-Wakefield




Andrew,

sorry I didn't reply to your previous mail - I got very busy yesterday.  I
looked at the files you sent, and I saw some things, but it looks like
you've moved on.

In your current posting, I think the problem is the order of execution.  In
your logicsheet, you are putting in code to look up the artist details in
an xsp:logic block directly inside the xsp:page block.  This puts all of
that code at the class level, so it is executed when the page object is
first instantiated.  The code that provides the artistID for lookup, on the
other hand, is inside the 'page' element, which means it is put in the
generate() method of the page class, which gets called to generate the
page.  By the time it is called, though, all of your artist detail
variables have already been set.

Here's a rewrite/simplification that may help:

1. XSP Page (snippet)


http://apache.org/xsp";
 xmlns:artistDetails="
http://www.beyarecords.com/artistDetails/1.0";
 xmlns:xlink="http://www.w3.org/1999/xlink";
 xmlns:util="http://apache.org/xsp/util/2.0";
 >
  
 
  int artistID =
Integer.parseInt();
 

 

artistID
 

...


2. XSP Logic Sheet

http://www.w3.org/1999/XSL/Transform";
   xmlns:xsp="http://apache.org/xsp";
   xmlns:util="http://apache.org/xsp/util/2.0";
   xmlns:artistDetails="http://www.beyarecords.com/artistDetails/1.0";
   version="1.0">


  



  test.Artist
  test.Base64



  



  
int artistID = Integer.parseInt();
Artist artist = Artist.getArtist(artistID);
String artist_name = artist.getArtistName();
  
  
artist_name
  


...

-Christopher




|-+>
| |   beyaNet  |
| |   Consultancy  |
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   03/04/2004 08:26 |
| |   AM   |
| |   Please respond to|
| |   users|
| ||
|-+>
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
|
  |   cc:  
  |
  |   Subject:  Re: Passing values into an XSP logic sheet 
  |
  
>--|




Hi,
I am trying to pull a value in from my XSP page into an XSP Logicsheet.
At the moment no value is being pulled in. What am I doing incorrectly?

1. XSP Page (snippet)


http://apache.org/xsp";
 xmlns:artistDetails="
http://www.beyarecords.com/artistDetails/1.0"; --
LOGICSHEET REF:
 xmlns:xlink="http://www.w3.org/1999/xlink";
 xmlns:util="http://apache.org/xsp/util/2.0";
 >

 
   int artistID =
Integer.parseInt(); --VALUE PULLED IN FROM SITEMAP
 

 
 artistID --- VALUE HELD HERE
 

2. XSP Logic Sheet

http://www.w3.org/1999/XSL/Transform";
   xmlns:xsp="http://apache.org/xsp";
   xmlns:util="http://apache.org/xsp/util/2.0";
   xmlns:artistDetails="http://www.beyarecords.com/artistDetails/1.0"; --
LOGICSHEET REF:
   version="1.0">


   
  

  
test.Artist
test.Base64
  

  
 int artistID =
Integer.parseInt(); -- WANT VALUE PULLED INTO HERE
 Artist artist = Artist.getArtist(artistID);

 int id = artist.getID();
 String artist_name = artist.getArtistName();
 String info = artist.getArtistInfo();
 String basePhoto1 =
Base64.encodeBytes(artist.getArtistPhoto1());
 String basePhoto2 =
Base64.encodeBytes(artist.getArtistPhoto2());
  
  
   


many thanks in advance

On 3 Mar 2004, at 21:07, beyaNet Consultancy wrote:

> Christopher,
> thanks for your reply. I have implemented your solution but am getting
> an error. I have attached both my XSP page and the XSP Logic sheet.
> Please let me know what i am doing here...
>
>
> many thanks in advance
>
> Andrew
>
> 
> On 3 Mar 2004, at 16:02, Christopher Painter-Wakefield wrote:
>
>> 
>>   int  myID = [code to get parameter value he

Re: ...running JSPs on the Jetty server embedded in Cocoon 2.1.3?

2004-03-04 Thread Francesco Rossi \(Milano\, Italy\)
thank you, help much appreciated!

-- Initial Header ---

>From  : "Upayavira" [EMAIL PROTECTED]
To  : [EMAIL PROTECTED]
Cc  :
Date  : Thu, 04 Mar 2004 15:50:50 +
Subject : Re: ...running JSPs on the Jetty server embedded in Cocoon 2.1.3?

> Francesco Rossi (Milano, Italy) wrote:
>
> >hi there,
> >
> >does anybody know if it's possible to run JSPs on the Jetty server embedded in
> >Cocoon vers. 2.1.3?
> >if so: what directory should I deploy them in?
> >Otherwise, a solution might be reinstalling Cocoon and running it on Tomcat, am
> >I right?
> >
> The Jetty in Cocoon is for demonstration purposes only. It is not
> intended for deployment.
>
> You can either:
> 1) Use the JSPGenerator if your JSPs produce XML and must integrate with
> a Cocoon site, or:
> 2) Use a full installation of Tomcat or Jetty, and read their
> instructions about how to configure JSPs.
>
> Regards, Upayavira
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: Problems with Java extension in cocoon 2.1.4

2004-03-04 Thread Wouter . DERUYCK
Is there an alternative for using the sitemap as a way to pass objects to
parameters defined in a xslt   ?
In my old code I called something like
myTransformer.setParameter("mychecker", theChecker);

on my transformer.  Don't know how to simulate this in Cocoon 

Wouter

-Original Message-
From: Ralph Goers [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 16:55
To: '[EMAIL PROTECTED]'
Subject: RE: Problems with Java extension in cocoon 2.1.4


You can't pass objects in the sitemap, only strings.  So the value
associated with mychecker is the result of the toString() method of
{session:mychecker}

Ralph

 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 04, 2004 5:45 AM
To: [EMAIL PROTECTED]
Subject:Problems with Java extension in cocoon 2.1.4


Hello,

I try to call a Java method on an class (called producer.IPMChecker)  from
within a xslt.  The object on which the method is called is passed to the
xslt as a parameter in the sitemap like this:










And in the stylesheet itself I have:

http://www.w3.org/1999/XSL/Transform"; 

xmlns:IPMChecker="xalan://producer.IPMChecker">







...


I each time get an exception of the form:


java.lang.RuntimeException: java.lang.NoSuchMethodException: For extension
function, could not find method
producer.IPMChecker.getIdAnswers([ExpressionContext,] #STRING).
Checked both static and instance methods.   
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3411)

at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:427)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)

at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer
.java:583)  
at
org.apache.cocoon.components.sax.XMLTeePipe.endDocument(XMLTeePipe.java:102)

at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) 
...


However, the method getIdAnswers without any arguments does exist on the
class producer.IPMChecker 

Does anyone has an idea ?

Thanks a lot !

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

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

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



Cocoon and Saxon

2004-03-04 Thread Nesto
Hi all!

I was trying to integrate the SAXON processor into Cocoon because my 
webapp needs it to carry out some transformations.
(I use Cocoon 2.1.3 under Tomcat 4.1.29 . I want to install Saxon 7.8)
My cocoon webapp runs directly under the Tomcat webapps directory.
I read some documentation and I did the following:
1) copy saxon jars into WEB-INF/lib directory;
2) I've added this code to cocoon.xconf:
   
   
   
   
   
   

3) in my sitemap.xmap I added this under the transformers section:
   
   false
   
false
   
org.apache.cocoon.components.xslt.XSLTProcessor/Saxon
   

4)  when I want to use saxon (normally I use the default transformer) I 
write:
   
(with the default xslt processor the vrml stylesheet does not transforms 
correctly)

But the problem is not in such pipeline (where the saxon processos is 
called): I get one error even in the first page of my webapp (where the 
default cocoon processor is used). Is seems like there's  a conflict, 
but I have no idea on where and why.

Please give me some hint to solve this problem.
Thanks in advance!
Best regards,
Nesto
The exception I get is:

java.lang.UnsupportedOperationException: The Saxon DOM cannot be updated 
at net.sf.saxon.om.AbstractNode.disallowUpdate(AbstractNode.java:681) at 
net.sf.saxon.om.AbstractNode.createElementNS(AbstractNode.java:876) at 
org.apache.cocoon.webapps.authentication.components.PipelineAuthenticator.authenticate(PipelineAuthenticator.java:228) 
at 
org.apache.cocoon.webapps.authentication.components.DefaultAuthenticationManager.login(DefaultAuthenticationManager.java:243) 
at 
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAction.java:117) 
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:152) 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163) 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) 
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354) 
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307) 
at org.apache.cocoon.Cocoon.process(Cocoon.java:656)

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


Re: Passing values into an XSP logic sheet

2004-03-04 Thread beyaRecords - The home Urban music
Christopher,
that works fine now ;-)
many thanks

Andrew
On 4 Mar 2004, at 16:00, Christopher Painter-Wakefield wrote:

  
int artistID = Integer.parseInt();
Artist artist = Artist.getArtist(artistID);
String artist_name = artist.getArtistName();
  
  
artist_name
  



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


RE: Problems with Java extension in cocoon 2.1.4

2004-03-04 Thread Ralph Goers
Not that you'll like this much, but we convert the objects into XML via a
generator and aggregate the data into the XML fed to the transform.

Another approach would be to have a static method that uses a lookup to find
the object.

Ralph

 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 04, 2004 8:06 AM
To: [EMAIL PROTECTED]
Subject:RE: Problems with Java extension in cocoon 2.1.4

Is there an alternative for using the sitemap as a way to pass objects to
parameters defined in a xslt   ?
In my old code I called something like
myTransformer.setParameter("mychecker", theChecker);

on my transformer.  Don't know how to simulate this in Cocoon 

Wouter



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



calling from a component made by my own to a transformer.

2004-03-04 Thread Wermus Fernando
I can't figure out how to call another component. In my case, I want to
call xmlhttp component, but It's the same for any transformer, I
guess


Here is my code.


package myGenerators;

import org.apache.avalon.excalibur.pool.Poolable;
import org.apache.cocoon.components.parser.Parser;
import org.apache.avalon.framework.component.ComponentException;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.environment.Source;
import org.apache.cocoon.transformation.Transformer;
import org.apache.cocoon.generation.ComposerGenerator;
import org.apache.avalon.framework.component.Component;
import com.clsw.cocoon.XmlHttpTransformer;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import java.io.ByteArrayInputStream;
import java.io.IOException;


public class ZipGenerator extends ComposerGenerator implements Poolable{
private XmlHttpTransformer trans = null;

public void generate() 
throws SAXException, IOException, ProcessingException { 

String xmlURI = this.source;
Source archive = null;
Parser parser= null;
try { 
archive = this.resolver.resolve( xmlURI
);  
InputSource inputSource =
archive.getInputSource();   
parser = (Parser) this.manager.lookup
(Parser.ROLE);
//parser.setConsumer( this.xmlConsumer
); //con xmlConsumer no funca
trans = (XmlHttpTransformer)
this.manager.lookup (XmlHttpTransformer.ROLE);  

trans.setContentHandler(this.contentHandler);


parser.setContentHandler((xmlConsumer)trans);
parser.parse( inputSource );
}
catch (ComponentException ce) { 
throw new
ProcessingException("Component Parser not found.", ce); 
}
finally { 
if (archive != null) 
archive.recycle();
}
 
}
}

-Mensaje original-
De: beyaRecords - The home Urban music [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 04 de marzo de 2004 13:35
Para: [EMAIL PROTECTED]
Asunto: Re: Passing values into an XSP logic sheet

Christopher,
that works fine now ;-)

many thanks


Andrew
On 4 Mar 2004, at 16:00, Christopher Painter-Wakefield wrote:

> 
>   
> int artistID = Integer.parseInt( select="artistDetails:id/node()"/>);
> Artist artist = Artist.getArtist(artistID);
> String artist_name = artist.getArtistName();
>   
>   
> artist_name
>   
> 


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


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



Report generation with cocoon

2004-03-04 Thread Anna Bikkina
Hi,

This must be a well known scenario.

I have some data obtained from database which has to be displayed in a html. I 
used esql to get data. In the html page(with data as tables) I have to place 
a hyperlink which when linked should generate a excel file using the same 
data.

Is there a way I can re use the resultset without quering the database again? 
Or can I use this html page as input to my excel generation?

Can someone suggest how I can do this.

Thanks,
Anna.


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



cocoon dont define class in XSP

2004-03-04 Thread Vlad Ali
Hi!
there is some code in my XSP page :

...
java.util.Properties connInfo = new Properties();
..

and cocoon generate error: "Properties cannot be resolved or is not a type"

explain me  pls, why?

thx

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



How to set properties for jdbc connection

2004-03-04 Thread Vlad Ali
Hi again!

I need to set properties for database connection
in java code i write:

   Properties connInfo = new Properties();
   connInfo.put("useUnicode","true");
   connInfo.put("characterEncoding","Cp1251");
   con = DriverManager.getConnection(url, connInfo);

but i don't know how to do same in cocoon configuration

help pls




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



Re: cocoon dont define class in XSP

2004-03-04 Thread Christopher Painter-Wakefield




How about
  java.util.Properties connInfo = new java.util.Properties();

instead?

-Christopher



|-+>
| |   Vlad Ali |
| |   <[EMAIL PROTECTED]|
| |   chtamt.ru>   |
| ||
| |   03/04/2004 01:45 |
| |   PM   |
| |   Please respond to|
| |   users|
| ||
|-+>
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
|
  |   cc:  
  |
  |   Subject:  cocoon dont define class in XSP
  |
  
>--|




Hi!
there is some code in my XSP page :

...
java.util.Properties connInfo = new Properties();
..

and cocoon generate error: "Properties cannot be resolved or is not a type"

explain me  pls, why?

thx




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



RE: cocoon dont define class in XSP

2004-03-04 Thread Rob Gregory
This error usually means you have not imported the class into the xsp
using 

  
  
java.util.Vector
  

Or the imported class can't be found - make sure the jar is in your
WEB-INF/lib directory...

Hope this helps.

Rob


> -Original Message-
> From: Vlad Ali [mailto:[EMAIL PROTECTED] 
> Sent: 04 March 2004 18:46
> To: [EMAIL PROTECTED]
> Subject: cocoon dont define class in XSP
> 
> 
> Hi!
> there is some code in my XSP page :
> 
> ...
> java.util.Properties connInfo = new Properties();
> ..
> 
> and cocoon generate error: "Properties cannot be resolved or 
> is not a type"
> 
> explain me  pls, why?
> 
> thx
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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



Using compiled XSP action classes

2004-03-04 Thread Oleg Dulin
Is it possible to use a compile XSP action class? I.e. I want to first 
precompile my XSP actions and then use the as if they were normal 
actions written in Java ?



Regards,

Oleg

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


LetterML

2004-03-04 Thread Markus Heussen
Hi all!

Well, I know this posting does not exactly fit in this mailing list. But
during my development using the Apache Cocoon Framework every now and then I
needed to create my "own markup languages" for example as the initial point
of a pipeline.

Once I needed a markup language to describe business letters in XML. Using
Google I tried to find out if somebody did this job before but I didn't find
any useful things out there. So I did this job on my own and created the
Letter Markup Language (LetterML). The specification is free for use and
maybe someone is interested in it.

You can find the documentation and resources of LetterML on the project
homepage under http://www.letterml.de. There are also a couple of
stylesheets for free download to transform a LetterML document to HTML or
platform independent PDF. A german insurance company already uses LetterML
in a production enviroment.

Comments and suggestions are very welcome. Thanks for your attention!

Markus


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



Setting working directory for XSP compilation

2004-03-04 Thread Oleg Dulin
Colleagues:

How can I tell Cocoon which directory to use for XSP compilation ? I saw 
something about it in cocoon.xconf but I can't find a parameter...

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


Easy way to include xhtml when transforming xml to xhtml

2004-03-04 Thread Kirk Storer
Is there an easy way to include xhtml. For example, my xslt will process 
the specified xml document. And some how include the the xhtml file to 
set up the "framework" of the page with the content from the xml file in 
the "main area".

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


RE: Easy way to include xhtml when transforming xml to xhtml

2004-03-04 Thread Markus Heussen
Well, I don't exactly understand what's your concern. But have a look at the
cinclude transformer:
http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html

Markus

> -Original Message-
> From: Kirk Storer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 8:25 PM
> To: [EMAIL PROTECTED]
> Subject: Easy way to include xhtml when transforming xml to xhtml
>
>
> Is there an easy way to include xhtml. For example, my xslt will process
> the specified xml document. And some how include the the xhtml file to
> set up the "framework" of the page with the content from the xml file in
> the "main area".
>
> Thanks,
> Kirk
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



LetterML

2004-03-04 Thread Markus Heussen
Hi all!

Well, I know this posting does not exactly fit in this mailing list. But
during my development using the Apache Cocoon Framework every now and then I
needed to create my "own markup languages" for example as the initial point
of a pipeline.

Once I needed a markup language to describe business letters in XML. Using
Google I tried to find out if somebody did this job before but I didn't find
any useful things out there. So I did this job on my own and created the
Letter Markup Language (LetterML). The specification is free for use and
maybe someone is interested in it.

You can find the documentation and resources of LetterML on the project
homepage under http://www.letterml.de. There are also a couple of
stylesheets for free download to transform a LetterML document to HTML or
platform independent PDF. A german insurance company already uses LetterML
in a production enviroment.

Comments and suggestions are very welcome. Thanks for your attention!

Markus


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



[HELP]Failed to execute pipeline.

2004-03-04 Thread Khanh Vo
Title: [HELP]Failed to execute pipeline.






Hi,

I’m trying to have the   “map:generate src” be a https url and getting the following errors. How do I set https in Cocoon?

Thanks.

Khanh

Failed to execute pipeline.

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.IOException

cause: java.io.IOException

full exception chain stacktrace[hide] 

Original Exception: java.io.IOException

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)

    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275)

    at org.apache.excalibur.source.impl.URLSource.getInputStream(URLSource.java:280)

    at org.apache.cocoon.components.source.SourceUtil.getInputSource(SourceUtil.java:345)

    at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:229)

    at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:141)

    at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:548)

    at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:203)

    at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:492)

    at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)

    at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)

    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)

    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)

    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)

    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)

    at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:130)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)

    at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)

    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)

    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)

    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)

    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)

    at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:130)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)

    at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)

    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)

    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)

    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:161)

    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:351)

    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:304)

    at org.apache.cocoon.Cocoon.process(Cocoon.java:640)

    at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)

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

    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)

    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)

    a

Re: Report generation with cocoon

2004-03-04 Thread Tim Larson
On Thu, Mar 04, 2004 at 01:37:43PM -0500, Anna Bikkina wrote:
> Hi,
> 
> This must be a well known scenario.
> 
> I have some data obtained from database which has to be displayed in a html. I 
> used esql to get data. In the html page(with data as tables) I have to place 
> a hyperlink which when linked should generate a excel file using the same 
> data.
> 
> Is there a way I can re use the resultset without quering the database again? 
> Or can I use this html page as input to my excel generation?
> 
> Can someone suggest how I can do this.

Have you taken a look at xReporter?
  http://xreporter.cocoondev.org/

If you do not want to use it, you could extract the code its Cocoon
presentation layer uses to do the excel output format generation.

However, it is a very nice tool so you might consider using it directly.

--Tim Larson

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



Re: Easy way to include xhtml when transforming xml to xhtml

2004-03-04 Thread Kirk Storer
Ok, I will try to explain this better.
I am using two files as sources, combined via aggregate in the sitemap.
The content of one of the files will be contained in 
The content of the other file will be contained in 
Both of these are then inside of  
I want to process the xml within  into xhtml.
I merely want to use what is in the  tags as it is, it is 
already xhtml.

this is an extremely simplified version of the xsl file
--

   
  do whatever
   
   

---
If i use  it displays the text, but not 
all of the markup tags

How can it get it to include all of the markup tags that are in the 
file, such as
 

etc.

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


RE: Easy way to include xhtml when transforming xml to xhtml

2004-03-04 Thread Markus Heussen
Ah now I understand your concern. Use  or
.

Markus

> -Original Message-
> From: Kirk Storer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 9:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Easy way to include xhtml when transforming xml to xhtml
>
>
> Ok, I will try to explain this better.
> I am using two files as sources, combined via aggregate in the sitemap.
> The content of one of the files will be contained in 
> The content of the other file will be contained in 
> Both of these are then inside of  
>
> I want to process the xml within  into xhtml.
> I merely want to use what is in the  tags as it is, it is
> already xhtml.
>
>
> this is an extremely simplified version of the xsl file
> --
> 
> 
>do whatever
> 
>
> 
> 
> ---
> If i use  it displays the text, but not
> all of the markup tags
>
> How can it get it to include all of the markup tags that are in the
> file, such as
>   
>  
> etc.
>
> Thanks,
> Kirk
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: Easy way to include xhtml when transforming xml to xhtml

2004-03-04 Thread Kirk Storer
Thank you so much. That save me a whole lot of time.

Kirk

Markus Heussen wrote:

Ah now I understand your concern. Use  or
.
Markus

 

-Original Message-
From: Kirk Storer [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 9:00 PM
To: [EMAIL PROTECTED]
Subject: Re: Easy way to include xhtml when transforming xml to xhtml
Ok, I will try to explain this better.
I am using two files as sources, combined via aggregate in the sitemap.
The content of one of the files will be contained in 
The content of the other file will be contained in 
Both of these are then inside of  
I want to process the xml within  into xhtml.
I merely want to use what is in the  tags as it is, it is
already xhtml.
this is an extremely simplified version of the xsl file
--

   
  do whatever
   
   

---
If i use  it displays the text, but not
all of the markup tags
How can it get it to include all of the markup tags that are in the
file, such as
 

etc.
Thanks,
Kirk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



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



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


Re: LDAP via SSL

2004-03-04 Thread Yury Mikhienko
On Thu, 19 Feb 2004 21:10:04 +
Upayavira <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] wrote:
> 
> >Hi all,
> >
> >I need to use LDAP via SSL, and I'm trying to accomplish this using the 
> >LDAPTransformer.  Environment:
> >
> >OS: Windows 2003 Advanced Server
> >Cocoon: 2.1.3
> >JDK:1.4.1_01
> >
> >I don't have the option of upgrading any of this right now.  In JDK prior 
> >to 1.4.2, you can't use the protocol ldaps in the url.  So, if I were 
> >doing this manually (java), I'd have to do something to the effect of:
> >
> >env.put(Context.SECURITY_PROTOCOL, "ssl");
> >
> >I don't see an attribute for the LDAPTransformer that would accomplish 
> >this?  Am I simply overlooking something?  Again, I can't use the ldaps 
> >protocol in the URL b/c it's not recognized prior to jdk 1.4.2.
> >  
> >
> Have you looked at the code for the LDAPTransformer? If you're happy 
> working in Java, look at the code for the transformer and see if it 
> implements what you need. If not, see how easy it would be to extend it. 
> Maybe just a new parameter would do it?
> 

It's good idea.
May be make sense to implement the  parameter?

-- 
 
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188

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



2.1.4 Upgrade and DOCTYPE

2004-03-04 Thread Brent L Johnson
I just upgraded my Sentinel Web Portal
(http://sentinel.bjohnson.net) to use Cocoon 2.1.4
and suddenly IE started displaying the pages
differently (strange padding around the table
cells).  I checked the HTML source thats being
generated and I'm now getting the following
DOCTYPE:

http://www.w3.org/TR/html4/loose.dtd";>

I believe this is what's causing the incorrect
look in IE (it still looks perfect under Mozilla).

Any ideas why upgrading to 2.1.4 would cause this
and how I can change this?

Thanks,

- Brent


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



RE: 2.1.4 Upgrade and DOCTYPE

2004-03-04 Thread Brent L Johnson
Ahhh.. changes in the new sitemap.xmap file.  D'oh..
just slap me :)

- Brent

> -Original Message-
> From: Brent L Johnson [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 04, 2004 3:56 PM
> To: [EMAIL PROTECTED]
> Subject: 2.1.4 Upgrade and DOCTYPE
> 
> 
> I just upgraded my Sentinel Web Portal
> (http://sentinel.bjohnson.net) to use Cocoon 2.1.4
> and suddenly IE started displaying the pages
> differently (strange padding around the table
> cells).  I checked the HTML source thats being
> generated and I'm now getting the following
> DOCTYPE:
> 
>  Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd";>
> 
> I 
> believe this is 
> what's causing the incorrect
> look in IE (it still looks perfect under Mozilla).
> 
> Any ideas why upgrading to 2.1.4 would cause this
> and how I can change this?
> 
> Thanks,
> 
> - Brent
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 


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



Re: LDAP via SSL

2004-03-04 Thread DAYD3
On Thursday, March 4, 2004 at 2:32 PM -0500
Yury Mikhienko <[EMAIL PROTECTED]> wrote:

> > [EMAIL PROTECTED] wrote:
> > 
> > >Hi all,
> > >
> > >I need to use LDAP via SSL, and I'm trying to accomplish this using 
the 
> > >LDAPTransformer.  Environment:
> > >
> > >OS: Windows 2003 Advanced Server
> > >Cocoon: 2.1.3
> > >JDK:1.4.1_01
> > >
> > >I don't have the option of upgrading any of this right now.  In JDK 
prior 
> > >to 1.4.2, you can't use the protocol ldaps in the url.  So, if I were 

> > >doing this manually (java), I'd have to do something to the effect 
of:
> > >
> > >env.put(Context.SECURITY_PROTOCOL, "ssl");
> > >
> > >I don't see an attribute for the LDAPTransformer that would 
accomplish 
> > >this?  Am I simply overlooking something?  Again, I can't use the 
ldaps 
> > >protocol in the URL b/c it's not recognized prior to jdk 1.4.2.
> > > 
> > >
> > Have you looked at the code for the LDAPTransformer? If you're happy 
> > working in Java, look at the code for the transformer and see if it 
> > implements what you need. If not, see how easy it would be to extend 
it. 
> > Maybe just a new parameter would do it?
> > 
> 
> It's good idea.
> May be make sense to implement the  parameter?
> 
> -- 
> 
> Best regards,
> Yury Mikhienko.
> IT ERP group head, ZAO "Mobikom-Kavkaz"
> tel: (8632) 704188

I have submitted a patch that accomplishes this, as well as adding an 
optional dn-element.  Please see:

Apache Cocoon 2 Bugzilla Bug Number 27279 [PATCH] LDAPTransformer
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27279

Thanks!
David Day




Yury Mikhienko <[EMAIL PROTECTED]>




03/04/2004 03:23 PM
Please respond to users

 
T
To: [EMAIL PROTECTED]
cc: 

bcc: 
Subject:Re: LDAP via SSL


On Thu, 19 Feb 2004 21:10:04 +
Upayavira <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] wrote:
> 
> >Hi all,
> >
> >I need to use LDAP via SSL, and I'm trying to accomplish this using the 

> >LDAPTransformer.  Environment:
> >
> >OS: Windows 2003 Advanced Server
> >Cocoon: 2.1.3
> >JDK:1.4.1_01
> >
> >I don't have the option of upgrading any of this right now.  In JDK 
prior 
> >to 1.4.2, you can't use the protocol ldaps in the url.  So, if I were 
> >doing this manually (java), I'd have to do something to the effect of:
> >
> >env.put(Context.SECURITY_PROTOCOL, "ssl");
> >
> >I don't see an attribute for the LDAPTransformer that would accomplish 
> >this?  Am I simply overlooking something?  Again, I can't use the ldaps 

> >protocol in the URL b/c it's not recognized prior to jdk 1.4.2.
> > 
> >
> Have you looked at the code for the LDAPTransformer? If you're happy 
> working in Java, look at the code for the transformer and see if it 
> implements what you need. If not, see how easy it would be to extend it. 

> Maybe just a new parameter would do it?
> 

It's good idea.
May be make sense to implement the  parameter?

-- 
 
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188

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





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



Re: cocoon 2.1.4 performance

2004-03-04 Thread gordon
hi John

The problem appears on Linux only, not Windows  I edited the
files on a windows box and transferred them using SCP, so perhaps
there is a DOS line break issue.

Increasing the maximum heap size and making the pool max sizes all
1024 increased the speed several fold.  I am still getting Concurrent
file modification issues with the cache though.

In short what I have done to get Cocoon running faster

- install 2.1.4
- copy xml-apis.jar and xerces-impljar to
/common/endorsed
- increase pool-max sizes to 1024
- set maximum heap size to 512M using -Mx

[without the last option, the StoreJanitor runs out of memory to
store  data, and starts returning BLANK data to the browser instead
of causing an internal server error]


With 10 threads crawling our site using the Xenu tool, the memory sat
around 300M - far better that the 1000M it was with 2.1.2!!!

Thanks

Gordon



>
>>Hello Gordon,
>>
>>There's an issue open on Bugzilla regarding the disposed
>ComponentLocator:
>>
>>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27249
>>
>>John
>>
>>Gordon Anderson wrote:
>>
>>> However when I change ANY of the max pool size for the xinclude, 
>>> cinclude and general xml parsing as in this section...
>>>
>>> I get the following error.
>>> ==
>>>
>>>
>>> Internal Server Error
>>>
>>> Message: You cannot lookup components on a disposed
>ComponentLocator
>>>
>>> Description: java.lang.IllegalStateException: You cannot lookup 
>>> components on a disposed ComponentLocator
>>>
>>> Sender: org.apache.cocoon.servlet.CocoonServlet
>>>
>>> Source: Cocoon Servlet
>>>
>>> Request URI
>>>
>>> cause
>>>
>>> java.lang.IllegalStateException: You cannot lookup components on a
>
>>> disposed ComponentLocator
>>>
>>> request-uri
>>
>>
>>-- 
>>-
>> Jentro Technologies GmbH
>> John L. Webber, Software Development
>>-
>> Rosenheimer Str. 145e81671 München
>> Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED] 
>> Fax  +49 89 189 169 99 http://www.jentro.com
>>-
>>NOTICE: The information contained in this e-mail is confidential or
>may otherwise be legally privileged. It is intended for the named
>recipient only. If you have received it in error, please notify us
>immediately by reply or by calling the telephone number above and
>delete this message and all its attachments without any use or
>further distribution of its contents. Please note that any
>unauthorised review, copying, disclosing or otherwise making use of
>the information is strictly prohibited. Thank you. 
>>-
>>
>>
>>
>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]



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



XML, Coocon and chineese character set

2004-03-04 Thread Rolf Kulemann

Has anybody experience in building "chineese" web applications with
Cocoon? I want to process xml containing chineese encoded data (if
possible) in pipelines.
Do I have to expect special problems?


-- 
Regards,

Rolf Kulemann


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



RE: cocoon 2.1.4 performance

2004-03-04 Thread Brent L Johnson
> - install 2.1.4
> - copy xml-apis.jar and xerces-impljar to 
> /common/endorsed
> - increase pool-max sizes to 1024
> - set maximum heap size to 512M using -Mx
> 
> [without the last option, the StoreJanitor runs out of memory 
> to store  data, and starts returning BLANK data to the 
> browser instead of causing an internal server error]

Wow what timing - I'm glad I read this!!!  I was having
this EXACT problem (related to the blank data returned
to the browser) and it was driving me crazy.  Making
these heap size modifications seems to have fixed
the problem.

Thanks!

- Brent


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



RE: cocoon 2.1.4 performance

2004-03-04 Thread gordon

>>Wow what timing - I'm glad I read this!!!  I was having
>>this EXACT problem (related to the blank data returned
>>to the browser) and it was driving me crazy.  Making
>>these heap size modifications seems to have fixed
>>the problem.
>>
>>Thanks!
>>
>>- Brent

Good to feel I've been useful!  The error is reported in the logs - I
still think it should return an internal server though.

Gordon


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



How to get JobScheduler component inside xsp

2004-03-04 Thread Grzegorz "Goliatus" Tańczyk
Witajcie!

  What I know now is:

org.apache.cocoon.components.cron.*
org.apache.cocoon.*

  and:
  JobScheduler scheduler =
  (JobScheduler)Cocoon.getComponentManager().getComponentHandler(...).get();

  And now I have some problems:
  String role, // "org.apache.cocoon.components.cron.JobScheduler" ???
  Class componentClass, // JobScheduler.class ???
  // i have no idea with rest of parameters
  Configuration configuration,
  Context context,
  RoleManager roleManager,
  LogkitLoggerManager logkitManager

  From where can I get them?

-- 
Pozdrowienia,
 Grzegorz  mailto:[EMAIL PROTECTED]


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



[betwixt] Re: First impresion BetwixtTransformer (Patch submitted)

2004-03-04 Thread Oscar Picasso
I have submitted a patch to Bugzilla. Very simple. If you want to take a look.

Attachment 10669 to bug 27456.

Oscar

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



Woody Calendar Dropdown position

2004-03-04 Thread Tony Edwards
Morning all,
I was fiddling with an application that I had ported form 2.1.3 to 2.1.4 
and noticed a curious thing: the woody dropdown calendar widget was now 
being displayed in the top left corner of the screen and not underneath 
the text input as usual. This characteristic is only evident in Mozilla. 
In IE the widget appears in the right location but is positioned 
underneath the date text input so that the top line is obscured.

Moving the application back to 2.1.3 had the calendar performing as 
usual so I copied all the woody styling xsl and css files into my 2.1.4 
application. Still no joy.
I then recompiled the 2.1.4 cocoon and redeployed. No change, so I went 
to bed somewhat confused.

This morning I was reading the mailing list and I noticed that Brent 
Johnson had noticed a change in the doctype output by 2.1.4.
Inspired, I commented out the
   -//W3C//DTD HTML 4.01 
Transitional//EN
 
http://www.w3.org/TR/html4/loose.dtd
lines for the html serializer and everything worked as normal!!!

My question is, what are the implcations of doing this? Is it going to 
adversely affect my HTML output?

Any comments would be appreciated!

Thanks,
Tony
 



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


Re: Woody Calendar Dropdown position

2004-03-04 Thread Joerg Heinicke
On 05.03.2004 00:15, Tony Edwards wrote:

This morning I was reading the mailing list and I noticed that Brent 
Johnson had noticed a change in the doctype output by 2.1.4.
Inspired, I commented out the
   -//W3C//DTD HTML 4.01 
Transitional//EN
 
http://www.w3.org/TR/html4/loose.dtd
lines for the html serializer and everything worked as normal!!!

My question is, what are the implcations of doing this? Is it going to 
adversely affect my HTML output?
We are aware of this bug: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24900. But until now 
nobody tried to find out the real reason for it. Is it a problem with 
the JS lib in use or a problem of Mozilla ...

Joerg

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


Re: Accessing Global Sitemap Variables in an xsp

2004-03-04 Thread JD Daniels
JD Daniels wrote:

How do I do it?

Say I have:

   

   
   dbone
   
   

How do I get it here in my xsp:


   ***
   



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


For the archives:

Figured out a way.. I couldn't seem to get the global parameter .. so 
instead I :


   


And in the xsp:



JD

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


Re: [betwixt] Re: First impresion BetwixtTransformer (Patch submitted)

2004-03-04 Thread Christoph Gaffga
Shit, I missed that setCallDocumentEvents function. Great you fixed it!

Regards
Christoph

- Original Message - 
From: "Oscar Picasso" <[EMAIL PROTECTED]>
Newsgroups: gmane.text.xml.cocoon.user
Sent: Friday, March 05, 2004 12:00 AM
Subject: [betwixt] Re: First impresion BetwixtTransformer (Patch submitted)


> I have submitted a patch to Bugzilla. Very simple. If you want to take a
look.
>
> Attachment 10669 to bug 27456.
>
> Oscar
>
> __
> Do you Yahoo!?
> Yahoo! Search - Find what you’re looking for faster
> http://search.yahoo.com


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



Re: How to set properties for jdbc connection

2004-03-04 Thread Antonio Gallardo
Hi Vlad:

Vlad Ali dijo:
> I need to set properties for database connection
> in java code i write:
>
>Properties connInfo = new Properties();
>connInfo.put("useUnicode","true");
>connInfo.put("characterEncoding","Cp1251");
>con = DriverManager.getConnection(url, connInfo);
>
> but i don't know how to do same in cocoon configuration

See this doc:
http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseConnectionOverview

Best Regards,

Antonio Gallardo


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



Re: Stylesheet URI cannot be null

2004-03-04 Thread Antonio Gallardo
Li, Wangqian dijo:
> Hi,
>
> I'm a beginner cocoon user.
> Can anybody shed light on what problem this is? I got the following log.
> Thanks a lot.
>
> Stylesheet URI can't be null

Looks like the pipeline has a transformer without a URI. Maybe you have
some typo on the sitemap or something like this:



Best Regards,

Antonio Gallardo.

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



Re: limitation in woody-repeater binding and collections

2004-03-04 Thread Joerg Heinicke
On 02.03.2004 15:57, Stefan Klein wrote:

Maybe that could be pointed out more clearly on the wiki page where it only says that the property 
has to be of type Collection. Might save others some time. 
IMO this should be fixed in Woody directly. Either by assuring that an 
ordered collection is provided or by extending the current code to 
handle all types of collections.

Can you add a bug to bugzilla for it.

Joerg

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


[flow] Conditional Processing

2004-03-04 Thread Alex Romayev
Hi,

I seem to have a mental block here, seems like this
should be straightforward, but I can't figure it out.

I have a page, which displays a table of data.  If the
user clicks "update now" button, I need to run a feed
load and then redisplay the results, however if the
users arrives at the page or refreshes it, then I
don't need to run the feed.

I have two pipelines:
- load-feed
- display-results

Logic in pseudo-code:

if (update = true) {
  call load-feed pipeline
  call display-results pipeline
} else {
  call display-results pipeline
}

Any ideas?

Thanks,
-Alex

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



RE: [portal] hidding coplet ( was Minimizing coplets events)

2004-03-04 Thread Alex Romayev
Hi Laurent,

There are two scenarios I can think of:
- I have a page with a "list of news stories" portlet
and when I click on the story, another portlet shows
up with the story itself on the same page.  I think
you approach will work here.
- I have "news story" portlet and "related news"
portlet on the same page.  If there are any related
news, then show the portlet, if not, the header should
not be displayed.  I think this is the one the portal
might not be able to handle.  The only thing I can
think of is running a "cleanup" stylesheet, which
removes empty headers, but that's a bit of a hack :-)

Thanks,
-Alex

--- Laurent Trillaud <[EMAIL PROTECTED]> wrote:
> Alex
> It appears to me difficult. The portal generater
> have 2 stages:
> 1. it resolve all events, and set coplets data /
> attributes
> 2. render thee coplet based on its datas
> Later in the pipeline you have the cinclude to fill
> coplets.
> Here, is too late to change the aspect of a coplet.
> The best way is to now before if a coplet will have
> data or not, may be
> based on parameters, and set the visibility aspect
> with a cl:link.
> Laurent
> 
> > Hi Laurent,
> > 
> > I think I like the second option better.  One
> thing
> > I'm not sure about: how do I know if my coplet has
> > returned any content when I render the window? 
> IIUTC,
> > when portal renders the coplet window, the actual
> > coplet content is not included yet (this is done
> later
> > with cinlcude transformer).  Is this correct?
> > 
> > Thanks,
> > -Alex
> > 
> > --- Laurent Trillaud <[EMAIL PROTECTED]> wrote:
> > > Alex
> > > I see 2 solutions: the first one is easy to do
> but
> > > it's just an hack. The
> > > second is, in my opinion, a better way but I
> haven't
> > > tested it.
> > > I suppose that you can check if a coplet as data
> by
> > > any input module
> > > 1. The easy way
> > > The goal is to modify the
> > > skins/.../styles/window.xsl. Put the code inside
> a
> > > DIV with the style 'visibility' set ` show or
> hide
> > > depend of a parameters in
> > > the XSL got from the layout/portal.xml with the
> tag
> > >  > > value=""/>
> > > 2. The better way
> > > The goal is to create another aspect for a
> coplet
> > > called for exemple
> > > 'coplet-visibility'. You must declare it in the
> > > cocoon.xconf (use the
> > > coplet-full-screen as sample) and declare this
> new
> > > aspect in the the
> > > renderer window).
> > > Then you will be able to hide or show a coplet
> with
> > > the same way that you
> > > minimize or maximize a coplet.
> > > Good Luck ;-)
> > > Laurent
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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



authentication-fw accessing resource for redirect

2004-03-04 Thread Steve Schwarz
Hi
I've been pouring through the mail archives and can't seem to find what I'm 
doing wrong...

If I am not yet authenticated and I try to access a protected page, I am 
(correctly) redirected to the login page with the uri containing the 
(encoded) resource that I tried to access. How do I redirect back to the 
protected resource I was originally seeking after logging in successfully?

If it matters, I am doing all of this in a sub sitemap.

Here's relevant sitemap entries:
 
   
 
   
   
   
 
 
   
 
   
 
this pipeline is called from the login form post action:

   
 
 
   












 
 
 
   
   
 


The "login" html is:

LOGIN

Name: 
Password: 


So if it access protected/upload_acml I am sent to:
http://192.168.1.102:/agilitycourses/login?resource=%2Fagilitycourses%2Fprotected%2Fupload_acml
I just can't seem to access the "resource" once the form is submitted.
So the redirect goes to  the root of my site submap.
Any help is greatly appreciated.
Thanks
Steve
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

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


RE: [flow] Conditional Processing

2004-03-04 Thread Laurent Trillaud
Alex.
Have you taken a look on processPipelineTo()?
The code become:
if (update = true) {
   cocoon.processPipelineTo( "cocoon://load-feed", ...);
   cocoon.sendPage( "cocoon://display-result", ...);
 } else {
   cocoon.sendPage( "cocoon://display-result", ...);
}
Laurent

> -Message d'origine-
> De : Alex Romayev [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 5 mars 2004 04:19
> À : [EMAIL PROTECTED]
> Objet : [flow] Conditional Processing
> 
> Hi,
> 
> I seem to have a mental block here, seems like this
> should be straightforward, but I can't figure it out.
> 
> I have a page, which displays a table of data.  If the
> user clicks "update now" button, I need to run a feed
> load and then redisplay the results, however if the
> users arrives at the page or refreshes it, then I
> don't need to run the feed.
> 
> I have two pipelines:
> - load-feed
> - display-results
> 
> Logic in pseudo-code:
> 
> if (update = true) {
>   call load-feed pipeline
>   call display-results pipeline
> } else {
>   call display-results pipeline
> }
> 
> Any ideas?
> 
> Thanks,
> -Alex
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: [portal] hidding coplet ( was Minimizing coplets events)

2004-03-04 Thread Laurent Trillaud
Alex
For me it's straight forward, unless I miss something. You haven't even need
of visibility feature, just page switching.
Your portal has 3 pages:
1. a page with 1 coplet with the list of all the stories
2. a page with 1 coplet with the story selected
3. a page with 2 coplets with the story selected and the related story.
When you process the list of all stories, you can build a link with events
depends of the story.
For a story without related, generate:
- an event to switch to page 2
- an event to put the story id in coplet 1
For a story with related, generate: 
- an event to switch to page 3
- an event to put the story id in coplet 1
- an event to put the related story id in coplet 2
The pipeline associated to the display of stories, just get the story id
from his coplet attributes.
Does make sense for you?
Laurent

> Hi Laurent,
> 
> There are two scenarios I can think of:
> - I have a page with a "list of news stories" portlet
> and when I click on the story, another portlet shows
> up with the story itself on the same page.  I think
> you approach will work here.
> - I have "news story" portlet and "related news"
> portlet on the same page.  If there are any related
> news, then show the portlet, if not, the header should
> not be displayed.  I think this is the one the portal
> might not be able to handle.  The only thing I can
> think of is running a "cleanup" stylesheet, which
> removes empty headers, but that's a bit of a hack :-)


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