RE: error deploying cocoon

2002-07-02 Thread Sylvain.Thevoz

Hello,

Maybe a java security problem. Cocoon can't write something on your disk. 
I had the same think.

Check the java policy files.

Sylvain

-Message d'origine-
De: icewind [mailto:[EMAIL PROTECTED]]
Date: mardi, 2. juillet 2002 20:53
À: [EMAIL PROTECTED]
Objet: error deploying cocoon


Hello,

Im using Debian with the tomcat4 package. The tomcat
samples work. I got the lastest binary version of
cocoon from the web site and put the cocoon.war file
in the $TOMCAT_HOME/webapps directory. When I restart
tomcat, I watch the tomcat log file and I get what is
below. How can I fix this and get cocoon to deploy
correctly?

Thanks.

--begin---

2002-07-02 14:32:15 Cocoon2: init
2002-07-02 14:32:15 StandardContext[/cocoon]: Servlet
/cocoon threw load() exception
javax.servlet.ServletException: Servlet.init() for
servlet Cocoon2 threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.security.AccessControlException: access denied
(java.util.PropertyPermission
javax.xml.parsers.SAXParserFactory read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at
java.lang.System.getProperty(System.java:560)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:214)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.cata

RE: cant find avalon conponents

2002-07-02 Thread Themba Mbatha
Title: RE: cant find avalon conponents





Make sure that all the jar files that came with Cocoon are in the lib directory ($TOMCAT_HOME/webapps/cocoon/WEB-INF/lib). 

-Original Message-
From: icewind [mailto:[EMAIL PROTECTED]]
Sent: 02 July 2002 10:49
To: [EMAIL PROTECTED]
Subject: cant find avalon conponents



Hello,


I installed the cocoon war file in the webapps dir of
tomcat (tomcat works) and when I tried to access
cocoon, I got a really big error message starting with
the following:


description org.apache.cocoon.ProcessingException:
Language Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 22, column 49:
cannot access class Component; file
org/apache/avalon/framework/component/Component.class
not found Line 23, column 53: cannot access class
Configurable; file



this goes on and on with all the components in avalon
not being found...



When I took a look in tomcat's work directory, i did
find the avalon jars in localhost/cocoon/WEB-INF.


Im not sure how to fix this problem.. anyone know how
to get cocoon (or tomcat) to see the avalon jars it
cant seem to see now?


Thanks.



__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


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


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




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

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


RE: Accessing SunRise context after authorization

2002-07-02 Thread Carsten Ziegeler

And, please notice the space at the end of the context name,
you have to remove it, so it should read:

 -Original Message-
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 03, 2002 8:17 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Accessing SunRise context after authorization
> 
> 
> The authentication framework needs to know, that your pipeline belongs
> to the handler you used for authentication. Only then the sunRise context
> is available in the pipeline.
> 
> So, you have to use the action around your status pipeline, like this:
> 
>  
>   
>   
> 
> 
> 
> 
> 
> 
>   
>  
> 
> Carsten 
> 
> Carsten Ziegeler Chief Architect Open Source Group, S&N AG
> --
>  Cocoon Consulting, Training and Projects
> --
> mailto:[EMAIL PROTECTED]  http://www.s-und-n.de
> http://ziegeler.bei.t-online.de
> 
> 
> > -Original Message-
> > From: Hugo Burm [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 02, 2002 6:17 AM
> > To: [EMAIL PROTECTED]
> > Subject: Accessing SunRise context after authorization
> > 
> > 
> > Hello,
> > 
> > I am running Cocoon 2.0.2 on Tomcat 4.0.1 on W2000.
> > 
> > I have build an authorization system based on the Sunshine/Sunrise
> > components.
> > The authorization works OK.
> > After successfull authorization, the user is redirected to a 
> status page.
> > This status page can access all the SessionContexts supplied by 
> > the Sunrise
> > transformer.
> > Except for one (and that is the one I need).
> > The one I need is the SunRise context, that contains the user 
> > details of the
> > authorized user.
> > When I try to access this context, I get an error: "Context does 
> > not exist".
> > When I try to create it myself, I get an error: "Context name is 
> > reserved".
> > 
> > How can I access this Sunrise context? Details below.
> > 
> > 
> > Hugo
> > [EMAIL PROTECTED]
> > 
> > 
> > ==
> > 
> > 
> > 
> > You are:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ==
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> >
> >
> > > value="request:password"/>
> >
> >
> >  
> >  
> >  
> >  
> > 
> > 
> > 
> > 
> > 
> >   
> >   
> >   
> >   
> >   
> > 
> > 
> > 
> > 
> > 
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




RE: Accessing SunRise context after authorization

2002-07-02 Thread Carsten Ziegeler

The authentication framework needs to know, that your pipeline belongs
to the handler you used for authentication. Only then the sunRise context
is available in the pipeline.

So, you have to use the action around your status pipeline, like this:

 




  



  
 

Carsten 

Carsten Ziegeler Chief Architect Open Source Group, S&N AG
--
 Cocoon Consulting, Training and Projects
--
mailto:[EMAIL PROTECTED]  http://www.s-und-n.de
http://ziegeler.bei.t-online.de


> -Original Message-
> From: Hugo Burm [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 02, 2002 6:17 AM
> To: [EMAIL PROTECTED]
> Subject: Accessing SunRise context after authorization
> 
> 
> Hello,
> 
> I am running Cocoon 2.0.2 on Tomcat 4.0.1 on W2000.
> 
> I have build an authorization system based on the Sunshine/Sunrise
> components.
> The authorization works OK.
> After successfull authorization, the user is redirected to a status page.
> This status page can access all the SessionContexts supplied by 
> the Sunrise
> transformer.
> Except for one (and that is the one I need).
> The one I need is the SunRise context, that contains the user 
> details of the
> authorized user.
> When I try to access this context, I get an error: "Context does 
> not exist".
> When I try to create it myself, I get an error: "Context name is 
> reserved".
> 
> How can I access this Sunrise context? Details below.
> 
> 
> Hugo
> [EMAIL PROTECTED]
> 
> 
> ==
> 
> 
> 
> You are:
> 
> 
> 
> 
> 
> 
> 
> ==
> 
> 
> 
> 
> 
>   
>   
>   
> 
> 
> 
> 
> 
> 
> 
>  
>
>
> value="request:password"/>
>
>
>  
>  
>  
>  
> 
> 
> 
> 
> 
>   
> 
>   
>   
>   
> 
> 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




How to run xforms in mount for c2 2.0.2 dev version

2002-07-02 Thread Sreenivasan N.

Hi all

I have downloaded the binary version of C2.0.2 dev version. Its working
fine. 
I would like to see how xforms is working, so i copied the xmlform folder
into mount folder and tried
http://localhost:8080/cocoon/mount/xmlform/wizard.html

but i am getting 

type fatal
message Error in sitemap configuration :
org.apache.cocoon.transformation.XMLFormTransformer
description
org.apache.avalon.framework.configuration.ConfigurationException:
Error in sitemap configuration :
org.apache.cocoon.transformation.XMLFormTransformer
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.apache.avalon.framework.configuration.ConfigurationException:
Error in sitemap configuration :
org.apache.cocoon.transformation.XMLFormTransformer
at
org.apache.cocoon.www.mount.xmlform.sitemap_xmap.configure(xmlform\sitemap_xmap.java:151)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java,
Compiled Code)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:332)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
at
org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at
java.lang.Thread.run(Thread.java:479)

I think there is a problem with the xmlform transformer..

What shall i do to see XMLForm working

Thanks in advance

Regards
Sreenivasan.







"Attitudes are much more important than 
aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 232

Email. [EMAIL PROTECTED]
Per: [EMAIL PROTECTED]



Re: [docs] DRAFT: How to publish XML documents in HTML and PDF

2002-07-02 Thread Bertrand Delacretaz

On Wednesday 03 July 2002 05:17, Ivelin Ivanov wrote:
> Pretty nice introductory paper.
Thanks!

> Is this link going to be permanent?
No, actually I already sent the xml version to Diana so that she can clean it 
up and commit it. The How-To will be included in the Cocoon docs shortly, and 
I will then remove it from my website.

-Bertrand

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

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




Re: [docs] DRAFT: How to publish XML documents in HTML and PDF

2002-07-02 Thread Ivelin Ivanov


Pretty nice introductory paper.

Is this link going to be permanent?
I will to link to it from my weblog, where I started to maintain a
repository of articles on use cases, sucess stories and best practices
related to Cocoon.

cocoonhive.org


Ivelin


- Original Message -
From: "Bertrand Delacretaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 6:57 AM
Subject: [docs] DRAFT: How to publish XML documents in HTML and PDF


Hello Cocooners,

This draft is available at

and I'd like to donate it (in XML form) to the project.

This is really basic stuff, but I think it might be useful for beginners,
especially because it requires no prior knowledge of Cocoon, XSLT or XSL-FO
(as long as Cocoon is up and running).

I'm definitely scratching an itch here as I will use it tomorrow for an XSLT
and XSL-FO class that I'm teaching, so it will be field-tested sooner than
later ;-)

Comments are welcome - I will wait a bit before creating a patch in
bugzilla,
in case changes are needed.

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

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






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

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



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

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




RE: "Clean" Cocoon

2002-07-02 Thread Argyn Kuketayev

you need 'clean build.xml'. so when you call ant, it will create you clean
Cocoon without docs, samples, and other unnecessary stuff.

> -Original Message-
> From: Alexander Schatten [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 02, 2002 6:29 PM
> To: [EMAIL PROTECTED]
> Subject: "Clean" Cocoon
> 
> 
> 
> It is fine to have examples in the Cocoon installation, but in 
> production use, you need a "clean" cocoon installation.
> 

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

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




"Clean" Cocoon

2002-07-02 Thread Alexander Schatten

As there was a long discussion about Cocoon problems, I want to adress 
another one:

It is fine to have examples in the Cocoon installation, but in 
production use, you need a "clean" cocoon installation.

this is not SO easy, as you have to remove all unnecessary sitemap 
entries, as well as example data...


So it should be possible to download a "clean" cocoon version for 
production use, containing only the necessary sitemap entries for the 
standard serializers, generators...


this would be extremely useful.


the second best version would be a documentation how to remove the 
unecessary stuff.




Alex


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

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




Refresh Problem Cocoon 2

2002-07-02 Thread Alexander Schatten

Another Problem: (Win 98 Tomcat 4.04, Cocoon 2)

I perform a XML/XSLT transformation with HTML serializer.

Cocoon does usually not refresh its transformation result when the XML 
or XSLT file(s) are modified. sometimes a restart of the tomcat server 
is necessary? what could be the problem?

is this a win 98 problem (I use it on the notebook for development, off 
course not for production use!)

thank you


Alex


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

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




HTML Serializer Problems: xhtml instead of html?!

2002-07-02 Thread Alexander Schatten

Problem: (Win 98 Tomcat 4.04, Cocoon 2)

I perform a XML/XSLT transformation with HTML serializer.

unfortunately, the result is not html but xhtml, which is not so good
when the client is e.g. netscape 4.7, who does not recognize  for
example.

in my understanding, the html serializer should make "correct" html, not
xhtml?!


thank you


Alex



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

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




Re: DTD comments in xinclude/cinclude transformer output

2002-07-02 Thread Stephan Michels



On Tue, 2 Jul 2002, Sven Kitschke wrote:

> Ok, I've a patch against an actual cvs copy (cocoon_2_0_3_branch).
> Should i create a patch entry at bugzilla?
>
> Sven Kitschke wrote:
>
> > Hi,
> >
> > using the cinclude or the xinclude transformer
> > i get everytime the comments from the source
> > documents DTD included. This results in ca.
> > 114 kB extra with the DocBook DTD.
> >

I also noticed the bug, thanks for the patch.
Patch is applied, please cross-check.

Stephan Michels.


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

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




Re: DTD comments in xinclude/cinclude transformer output

2002-07-02 Thread Sven Kitschke

Ok, I've a patch against an actual cvs copy (cocoon_2_0_3_branch).
Should i create a patch entry at bugzilla?

Sven Kitschke wrote:

> Hi,
> 
> using the cinclude or the xinclude transformer
> i get everytime the comments from the source
> documents DTD included. This results in ca.
> 114 kB extra with the DocBook DTD.
> 



--- E:\cvs_cocoon\xml-cocoon2\src\java\org\apache\cocoon\xml\IncludeXMLConsumer.java   
 2002-03-11 12:15:26.0 +0100
+++ IncludeXMLConsumer.java 2002-07-02 21:58:38.0 +0200
@@ -82,6 +82,7 @@
 private boolean ignoreEmptyCharacters = false;
 private boolean ignoreRootElement = false;
 private int ignoreRootElementCount;
+private boolean inDTD = false;
 
 /**
  * Constructor
@@ -214,10 +215,12 @@
 public void startDTD(String name, String public_id, String system_id)
 throws SAXException {
 // Ignored
+inDTD = true;
 }
 
 public void endDTD() throws SAXException {
 // Ignored
+inDTD = false;
 }
 
 public void startEntity(String name) throws SAXException {
@@ -242,7 +245,7 @@
 
 public void comment(char ary[], int start, int length)
 throws SAXException {
-if(lexicalHandler != null)
+if(!inDTD && lexicalHandler != null)
 lexicalHandler.comment(ary,start,length);
 }
 }



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

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


Re: [COCOON] New cocoon-docs mailing list

2002-07-02 Thread Nicola Ken Barozzi


Sam Ruby wrote:
> Nicola Ken Barozzi wrote:
> 
>> Dear PMC, Dear root,
>>
>> The Cocoon project asks for the creation of a new mailing list to aid 
>> the new Cocoon Documentation project.
>>
>>  [EMAIL PROTECTED]
> 
> List created, Initial moderator is [EMAIL PROTECTED]

Thank you, Sam! :-)

For all users and developers that want to work on the documentation, 
just send an empty mail to:


[EMAIL PROTECTED]


Let's roll! :-D

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


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

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




RE: [Possible Bug] TextSerializer loses characters with ASCII encodin g?

2002-07-02 Thread Lai, Harry

I should also mention that I'm using Saxon 6.5 as my XSLT engine.

Harry

-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 2:19 PM
To: 'Cocoon Users'
Subject: [Possible Bug] TextSerializer loses characters with ASCII
encodin g?


Hi folks,

I'm seeing some really odd behavior with serializers, and wanted to see if
anyone had seen this before (or better yet) knows what's causing this.  =)

PROBLEM:
If I set an XML, HTML, or Text serializer's encoding to ASCII, I end up
losing the tail end of my output (roughly 1-1000 characters).  I think it
has to do with the buffered output stream not being properly closed/flushed,
but I'm not sure.

ENVIRONMENT:
Cocoon 2.0.2 running on JBoss 2.4.5 with Tomcat 4.0.3.  Win2k.

WORKAROUNDS:
I can make this problem go away by doing either of the following:
  1. Change the encoding to UTF-8 or ISO-8859-1.
  2. Change the buffer-size to 1 (tried with values from 1-2048;
 was still seeing the problem with values as low as 10).

REPRODUCING THE BUG:
>From what I'm seeing, you can reproduce this bug by having a reasonably
large buffer (larger than 10 bytes) and switching any TextSerializer-based
serializer's encoding to ASCII.  Here's a sample from my sitemap:


2048
ASCII


Any thoughts, suggestions, ideas, etc. would be greatly appreciated.
Thanks!

Harry

PS  The main reason this comes up is for a dynamic css pipeline, which I'd
like to be character set agnostic (hence, the ASCII encoding).  I only
tested it with the HTML and XML serializer to make sure it wasn't something
specific to my css pipeline.

-- 
Harry Lai 
[EMAIL PROTECTED] 
512.682.1101 x2170 

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

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

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

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




[Possible BUG] builtin-logicsheet problems

2002-07-02 Thread Matthias Brunner

When trying to add my own logicsheet with the builtin-logicsheet directive in 
cocoon.xconf I discovered strange behaviour. In order to narrow down the 
cause, I then changed only one line in cocoon.xconf:

---


http://apache.org/xsp/request/2.0"/>
 

---

request.xsl is now located in $COCOON_HOME/WEB-INF/classes. Utilizing
xsp-request tags in "test.xsp" works without any problems now.


But when I move request.xsl in a subdirectory ($COCOON_HOME/WEB-INF/classes/subdir), 
a processing exception is thrown:
"org.apache.cocoon.ProcessingException: Exception in creating Transform Handler"

---


http://apache.org/xsp/request/2.0"/>
 

---

Why is this (in Cocoon 2.0.1, this worked)? BTW, replacing the resource-URI with a 
file-URI causes the same error message.

Tested on: Cocoon 2.0.2, Tomcat 4.0.4, Sun JDK 1.3.1, Linux


Stack trace of "test.xsp" utilizing the request logicsheet:
org.apache.cocoon.ProcessingException: Exception in creating Transform Handler
at 
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:271)
at 
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandler(Logicsheet.java:160)
at 
org.apache.cocoon.components.language.markup.Logicsheet.getNamespaceURIs(Logicsheet.java:142)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(AbstractMarkupLanguage.java:466)
at 
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.addLogicsheetToList(CocoonMarkupLanguage.java:164)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:623)
at 
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$CocoonTransformerChainBuilderFilter.startElement(CocoonMarkupLanguage.java:437)
at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575)
at 
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$PreProcessFilter.startElement(CocoonMarkupLanguage.java:286)
at 
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProcessFilter.characters(XSPMarkupLanguage.java:162)
at org.apache.xerces.parsers.SAXParser.characters(SAXParser.java:1579)
at 
org.apache.xerces.validators.common.XMLValidator.processWhitespace(XMLValidator.java:998)
at 
org.apache.xerces.readers.AbstractCharReader.callCharDataHandler(AbstractCharReader.java:1320)
at 
org.apache.xerces.readers.AbstractCharReader.scanContent(AbstractCharReader.java:961)
at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1094)
at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:175)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:365)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
at 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:203)
at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:279)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:142)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:320)
at 
org.apache.cocoon.www.mount.xindice.sitemap_xmap.matchN10069(/home/mb/daten/nobak/builds/tomcat/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/mount/xindice/sitemap_xmap.java:873)
at 
org.apache.cocoon.www.mount.xindice.sitemap_xmap.process(/home/mb/daten/nobak/builds/tomcat/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/mount/xindice/sitemap_xmap.java:522)
at 
org.apache.cocoon.www.mount.xindice.sitemap_xmap.process(/home/mb/daten/nobak/builds/tomcat/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/mount/xindice/sitemap_xmap.java:454)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manag

cant find avalon conponents

2002-07-02 Thread icewind

Hello,

I installed the cocoon war file in the webapps dir of
tomcat (tomcat works) and when I tried to access
cocoon, I got a really big error message starting with
the following:

description org.apache.cocoon.ProcessingException:
Language Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 22, column 49:
cannot access class Component; file
org/apache/avalon/framework/component/Component.class
not found Line 23, column 53: cannot access class
Configurable; file


this goes on and on with all the components in avalon
not being found...


When I took a look in tomcat's work directory, i did
find the avalon jars in localhost/cocoon/WEB-INF.

Im not sure how to fix this problem.. anyone know how
to get cocoon (or tomcat) to see the avalon jars it
cant seem to see now?

Thanks.


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

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




Interpreted sitemap failing in 2.0.3

2002-07-02 Thread Per Kreipke

Can anyone help? Can't get interperted sitemap to run.

Thanks in advance, Per Kreipke

> > > I'm getting an error that a generator for type 'file' doesn't
> exist when
> > > inf fact (as in many examples) it refers to the calling sitemap
> > (the cocoon
> > > default map).
> > >
> > > Do I need to create a stand alone sitemap?
> >
> > Do you still have a map:generators section under you
> > map:components section un
> > your subsitemap? The interpreted sitemap may require an element,
> > even if it
> > is empty.
>
> I do and it is empty :-) THis is the whole section:
>
>
> 
> 
>  
>  
>  
>  
>  
>  
>   src="org.apache.cocoon.matching.SessionAttributeMatcher" />
>  
>
>  
>src="org.onclave.SessionCreateAction">
>us
>   
>  
> 


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

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




[Possible Bug] TextSerializer loses characters with ASCII encoding?

2002-07-02 Thread Lai, Harry

Hi folks,

I'm seeing some really odd behavior with serializers, and wanted to see if
anyone had seen this before (or better yet) knows what's causing this.  =)

PROBLEM:
If I set an XML, HTML, or Text serializer's encoding to ASCII, I end up
losing the tail end of my output (roughly 1-1000 characters).  I think it
has to do with the buffered output stream not being properly closed/flushed,
but I'm not sure.

ENVIRONMENT:
Cocoon 2.0.2 running on JBoss 2.4.5 with Tomcat 4.0.3.  Win2k.

WORKAROUNDS:
I can make this problem go away by doing either of the following:
  1. Change the encoding to UTF-8 or ISO-8859-1.
  2. Change the buffer-size to 1 (tried with values from 1-2048;
 was still seeing the problem with values as low as 10).

REPRODUCING THE BUG:
>From what I'm seeing, you can reproduce this bug by having a reasonably
large buffer (larger than 10 bytes) and switching any TextSerializer-based
serializer's encoding to ASCII.  Here's a sample from my sitemap:


2048
ASCII


Any thoughts, suggestions, ideas, etc. would be greatly appreciated.
Thanks!

Harry

PS  The main reason this comes up is for a dynamic css pipeline, which I'd
like to be character set agnostic (hence, the ASCII encoding).  I only
tested it with the HTML and XML serializer to make sure it wasn't something
specific to my css pipeline.

-- 
Harry Lai 
[EMAIL PROTECTED] 
512.682.1101 x2170 

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

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




error deploying cocoon

2002-07-02 Thread icewind

Hello,

Im using Debian with the tomcat4 package. The tomcat
samples work. I got the lastest binary version of
cocoon from the web site and put the cocoon.war file
in the $TOMCAT_HOME/webapps directory. When I restart
tomcat, I watch the tomcat log file and I get what is
below. How can I fix this and get cocoon to deploy
correctly?

Thanks.

--begin---

2002-07-02 14:32:15 Cocoon2: init
2002-07-02 14:32:15 StandardContext[/cocoon]: Servlet
/cocoon threw load() exception
javax.servlet.ServletException: Servlet.init() for
servlet Cocoon2 threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.security.AccessControlException: access denied
(java.util.PropertyPermission
javax.xml.parsers.SAXParserFactory read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at
java.lang.System.getProperty(System.java:560)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:214)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-07-02 14:32:15 StandardWrapper[/cocoon:default]:
Loading container servlet default
2002-07-02 14:32:15 default: init
2002-07-02 14:32:15 StandardWrapper[/cocoon:invoker]:
Loading container servlet invoker
2002-07-02 14:32:15 invoker: init
2002-07

[Summary] Installation error using JDK 1.4.0: libawt and libXp

2002-07-02 Thread Ryan Hoegg

Hello thought I would repost this with the [summary] thing in light of 
some of the recent threads

Ryan Hoegg wrote:

> MAINTAINERS: please skip to the end (before quoted) for a suggestion 
> for the FAQ or preferably the installation guide.
>
> Hello everyone, I've got it licked.
>
> First, I thank Peter Royal who realized that to run Java AWT in 
> headless mode, one must still have the X-Windows libraries installed.  
> All headless means is that one need not have X running.
>
> My best guess is that the error at 
> http://www.hoegg.net/error/cocoon-problem2.html was caused by the 
> batik-all-1.5b3.jar that came with Cocoon.  I downloaded batik-1.1.1, 
> and combined all the little jars into one big batik-all-1.1.1.jar, 
> which I hereby post on my site for anyone who needs it:
>
> http://www.hoegg.net/batik-all-1.1.1.jar
>
> I installed it in $CATALINA_HOME/webapps/cocoon/WEB-INF/lib and 
> shutdown and restarted the server.  A note for anyone putting together 
> their own jar: find the AbstractDOMImplentation.class file, its 
> filename is messed up with some random control chars on the end.  Fix 
> it and rejar.  The one I posted has this fixed.
>
> I am not subscribed to cocoon-dev or batik-dev so anyone who is please 
> relay the appropriate message :)
>
> MAINTAINERS: it may be worth a note in the installation guide that to 
> run Batik or Cocoon in headless mode on *nix one must still have the 
> X-Windows libraries installed.  I'd call this a dependency of Batik, 
> but then Batik seems to be a dependency of the default installation of 
> Cocoon.
>
> Thanks for your help (Peter) and a great piece of software (Dev Team),
> Ryan Hoegg
> ISIS Networks
>
> Ryan Hoegg wrote:
>
>> Thanks for the idea, seems obvious once someone points it out :)
>>
>> Well, although I wanted to avoid installing the X libraries as this 
>> server has no other need for them, I went ahead and did it.  Lo and 
>> behold, the error went away, and another was quick to replace it:
>>
>> http://www.hoegg.net/error/cocoon-problem2.html
>>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>



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

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




RE: [doc] Request feedback on Draft: Parameter Selector user doc

2002-07-02 Thread Matthew Hailstone

Beth,
Excellent how-to! Since I consider myself a newbie, here is my own
comment. I would consider a (at least this one) prerequisite needed to
be able to implement this example would be an understanding of how to
set parameters in an action. There's probably one somewhere. If so, a
link to that would be nice in the resources of the how-to (or somewhere
in the how-to). Thanks for the great work. :)

Matthew

-Original Message-
From: Naquin, Beth [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 02, 2002 10:01 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [doc] Request feedback on Draft: Parameter Selector user
doc


Thanks!  I'll make this change. 
-Original Message- 
From: Lai, Harry [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 02, 2002 6:43 AM 
To: '[EMAIL PROTECTED]' 
Subject: RE: [doc] Request feedback on Draft: Parameter Selector user 
doc 


Hi Beth, 
Great doc!  I just saw one minor bug in the first example.  You have: 
 
   
 
... 
Since the generate call is inside the act, the parameter you want is 
actually {../1}, not {1}.  Aside from that, though, this looks good to
me. 
Harry 


-Original Message- 
From: Naquin, Beth [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 5:53 PM 
To: [EMAIL PROTECTED] 
Subject: [doc] Request feedback on Draft: Parameter Selector user doc 


Hi all, 
Below is a draft of a document on the ParameterSelector for possible 
inclusion in the userdocs/Selectors section.  I thought I'd post it here
to 
get some feedback first. 
Could you please give it a quick review for:  accuracy/correctness, 
understandability (esp to a newbie),  additional info to add ?? 
Thanks a bunch, 
Beth 
 
Parameter Selector 
applies to:  cocoon 2.0.2, ?? DOES THIS APPLY TO OTHER
VERSIONS 
OF COCOON ALSO?? 
Name: Parameter Selector 
Class:  org.apache.cocoon.selection.ParameterSelector 
Cacheable:    CAN SOMEONE ANSWER THIS, OR IS IT NONAPPLICABLE?? 


This Selector matches a string, in the Parameters object passed to the 
selector, against a specified Cocoon internal parameter.  It performs a 
case-sensitive string comparison between the value of the 
'parameter-selector-test' parameter and the value of the 'test'
attribute of 
the  element. 
This internal parameter could be: 
-- A sitemap parameter from the map:match portion of the pipeline 
-- A sitemap parameter set by an action 
Reasons to use ParameterSelector 
- 
One purpose of this selector is to select between different pipeline 
configurations based on sitemap parameters set by an action.  This would

allow the action to control the logic required to set one or more 
parameters, which can then be used by this selector to control pipeline 
processing.  Thus, complex decision-making logic can be contained in 
actions, while the sitemap simply uses the results of the actions (the 
parameters) to determine pipeline processing. 
Parameter Selector can also be used to select on the value of 'keys'
(such 
as {1} or {../2} ) from the wildcard matcher.  Information in the URI,
such 
as part of a filename, can then be used to determine pipeline
processing.   
Examples 
 
Add the component to your sitemap.xmap: 
~~~ 
  
 ... 
   
  ... 
 
... 
~~ 
Use a parameter set by an action: 
Assume there is an action (named MyAction) that sets a parameter (named 
MyRegion) to several possible values. 
 
 
   
 
 
  

  
   
   
 
   
   
 
   
   
 
   
   
 
 
   
   
 
~~ 
Use values from the URI: 
~~ 
 

   
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
... 
~~~ 
- 
Please check that your question  has not already been answered in the 
FAQ before posting.  
To unsubscribe, e-mail: <[EMAIL PROTECTED]> 
For additional commands, e-mail:   <[EMAIL PROTECTED]> 

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

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




Accessing SunRise context after authorization

2002-07-02 Thread Hugo Burm

Hello,

I am running Cocoon 2.0.2 on Tomcat 4.0.1 on W2000.

I have build an authorization system based on the Sunshine/Sunrise
components.
The authorization works OK.
After successfull authorization, the user is redirected to a status page.
This status page can access all the SessionContexts supplied by the Sunrise
transformer.
Except for one (and that is the one I need).
The one I need is the SunRise context, that contains the user details of the
authorized user.
When I try to access this context, I get an error: "Context does not exist".
When I try to create it myself, I get an error: "Context name is reserved".

How can I access this Sunrise context? Details below.


Hugo
[EMAIL PROTECTED]


==



You are:







==















 
   
   
   
   
   
 
 
 
 





  
  
  
  
  





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

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




Empty Rows Using SQL Transformer

2002-07-02 Thread Seth Ladd

Hello,

I did some searching in the mailing list archives, but didn't find the 
problem that I am experiencing (forgive me if I didn't phrase my search 
right).

I am running:
Cocoon 2.x (nightly build on Jun 18)
Resin 2.0.2
Oracle 8.1.7
oracle thin drivers for 8.1.7 (classes12.zip)
JDK 1.3.1
Solaris 8

I am using the SQL transformer, which up to now has been performing 
wonderfully.  I moved my WAR to a new (but identical as far as I can 
tell) machine, and now my database results come back as empty, but I get 
the right amount of rows back.

Example transformer:
http://www.w3.org/1999/XSL/Transform";
 xmlns:req="http://xml.apache.org/cocoon/requestgenerator/2.0";>
 
 
 http://apache.org/cocoon/SQL/2.0";>
 
SELECT count(*) c from security_event_log
 
 
 
 


This doesn't report any errors, but returns this:


http://www.w3.org/1999/XSL/Transform"; 
xmlns:req="http://xml.apache.org/cocoon/requestgenerator/2.0";>
 
 
 
 
 


It also exhibits this behavior on larger queries.  This query was tested 
in sqlplus.

Does anyone know why it wouldn't return the result?  The same exact 
binaries work in our QA environment, so they've been seen to work (a 
lot).  I think it must be a configuration issue.  But I'm not sure what 
the error would be, since I don't see errors anywhere, and the result is 
pretty close.

Any ideas, tips, or help would be greatly appreciated.

thanks very much!
Seth


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

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




RE: [doc] Request feedback on Draft: Parameter Selector user doc

2002-07-02 Thread Naquin, Beth
Title: RE: [doc] Request feedback on Draft: Parameter Selector user doc





Thanks!  I'll make this change.


-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 6:43 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [doc] Request feedback on Draft: Parameter Selector user
doc



Hi Beth,


Great doc!  I just saw one minor bug in the first example.  You have:


 
   
    
    ...


Since the generate call is inside the act, the parameter you want is
actually {../1}, not {1}.  Aside from that, though, this looks good to me.


Harry



-Original Message-
From: Naquin, Beth [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 5:53 PM
To: [EMAIL PROTECTED]
Subject: [doc] Request feedback on Draft: Parameter Selector user doc



Hi all, 
Below is a draft of a document on the ParameterSelector for possible
inclusion in the userdocs/Selectors section.  I thought I'd post it here to
get some feedback first.
Could you please give it a quick review for:  accuracy/correctness,
understandability (esp to a newbie),  additional info to add ??
Thanks a bunch, 
Beth 
 
Parameter Selector 
applies to:  cocoon 2.0.2, ?? DOES THIS APPLY TO OTHER VERSIONS
OF COCOON ALSO?? 
Name: Parameter Selector 
Class:  org.apache.cocoon.selection.ParameterSelector 
Cacheable:    CAN SOMEONE ANSWER THIS, OR IS IT NONAPPLICABLE?? 



This Selector matches a string, in the Parameters object passed to the
selector, against a specified Cocoon internal parameter.  It performs a
case-sensitive string comparison between the value of the
'parameter-selector-test' parameter and the value of the 'test' attribute of
the  element.
This internal parameter could be: 
-- A sitemap parameter from the map:match portion of the pipeline 
-- A sitemap parameter set by an action 
Reasons to use ParameterSelector 
- 
One purpose of this selector is to select between different pipeline
configurations based on sitemap parameters set by an action.  This would
allow the action to control the logic required to set one or more
parameters, which can then be used by this selector to control pipeline
processing.  Thus, complex decision-making logic can be contained in
actions, while the sitemap simply uses the results of the actions (the
parameters) to determine pipeline processing.
Parameter Selector can also be used to select on the value of 'keys' (such
as {1} or {../2} ) from the wildcard matcher.  Information in the URI, such
as part of a filename, can then be used to determine pipeline processing.   
Examples 
 
Add the component to your sitemap.xmap: 
~~~ 
  
 ... 
   
  ... 
    
    name="parameter" 
    logger="sitemap.selector.parameter" 
    src=""org.apache.cocoon.selection.ParameterSelector"/>" 
... 
~~ 
Use a parameter set by an action: 
Assume there is an action (named MyAction) that sets a parameter (named
MyRegion) to several possible values. 
 
 
   
    " 
     
   
  
   
   
    " 
   
   
    " 
   
   
    " 
   
   
    
   
     
   
   
 
~~ 
Use values from the URI: 
~~ 
 
    
   
     
     
     
    
     
    " 
    " 
     
     
     
     
     
     
     
    " 
    " 
     
    " 
     
     
     
     
     
     
 
... 
~~~ 


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


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





RE: C2.0.3 ESQL:

2002-07-02 Thread Argyn Kuketayev

Thanks

> -Original Message-
> From: Denis Thierry [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 02, 2002 12:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: C2.0.3 ESQL:  
> Importance: High
> 
> 
> Argyn,
> 
> You will need to convert your data (xsltransform) with:
> 
> 
>   
> 
>   
> 
>   
> 
> 
> Hope this help
> 
> Denis
> - Original Message - 
> From: Argyn Kuketayev 
> To: Cocoon-Users (E-mail) 
> Sent: Tuesday, July 02, 2002 5:37 PM
> Subject: C2.0.3 ESQL:  
> 
> 
> I've two questions:
> 
> 1.  generates: 
> val1val2...
> 
> how to make it generate this? val1 name="col2">val2...
> 
> 2. If my string value of the coulmn contains tags, e.g. html tags like
> "val1", will XSP generate a valid xml document?
> Re-phrasing: how to make it return this?  name="col1">
> 
> thanks
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




Re: C2.0.3 ESQL:

2002-07-02 Thread Denis Thierry

Argyn,

You will need to convert your data (xsltransform) with:


  

  

  


Hope this help

Denis
- Original Message - 
From: Argyn Kuketayev 
To: Cocoon-Users (E-mail) 
Sent: Tuesday, July 02, 2002 5:37 PM
Subject: C2.0.3 ESQL:  


I've two questions:

1.  generates: val1val2...

how to make it generate this? val1val2...

2. If my string value of the coulmn contains tags, e.g. html tags like
"val1", will XSP generate a valid xml document?
Re-phrasing: how to make it return this? 

thanks

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

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


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

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




C2.0.3 ESQL:

2002-07-02 Thread Argyn Kuketayev

I've two questions:

1.  generates: val1val2...

how to make it generate this? val1val2...

2. If my string value of the coulmn contains tags, e.g. html tags like
"val1", will XSP generate a valid xml document?
Re-phrasing: how to make it return this? 

thanks

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

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




Re: strange database problem

2002-07-02 Thread Leszek Gawron

> Just double checking. You've upgraded from 2.0.2 to 2.1-dev
> (snapshot), right? Could you try the same with a 2.0.3 CVS version?
Both cocoon versions are 2.1-dev (downloaded as cvs snapshots)
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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

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




Re: strange database problem

2002-07-02 Thread Christian Haul

On 02.Jul.2002 -- 04:05 PM, Leszek Gawron wrote:
> > It is the very same jadozoom driver. I cannot tell if the performance
> > degenerates but I think not. The difference is significant though.
> > ouzo
> here are some timings taken from cocoon log:
> 
> version somewhere round 2002.04.20
> INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
>2.1-dev in 270 milliseconds.
> 
> version 2002.07.01
> INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
>2.1-dev in 460 milliseconds.

That looks bad, indeed. I will have a look at it but it will take some
time to reproduce these values (gimme a week or so). I take your word
for it that you haven't changed anything else around it like move the
DBMS to another machine, upgrade your network, CPU, RAM, JDK, JDBC
driver or anything else.

However, I will not be able to test against your setup and use a
different DBMS / OS / JDK / Servlet-Container.

It would help to have some more information on the table, like number
and type of columns, number of rows.

If you care to do some experiments yourself, the ESQL stuff is fairly
self-contained and does not depend on other changes in Cocoon. Thus
it's only o.a.c.c.l.m.xsp/Esql*.java and o.a.c.c.l.m.xsp.java/esql.xsl

The resulting java code produced from your XSP should be fairly
similar with both versions, actually. 

The main difference should be the introduction of various switch
statements to select different results. Those are outside the
retrieval loop and so should not account for a big slow-down.

The other major difference should be, that the current version does
not check for another result set while the older version did (in a not
JDBC compliant way - that was changed to be compliant and later
disabled).

Other things happend in the grouping / CallableStatement support which
should not be used in your case.

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


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

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




RE: Cocoon 2.1 deployment error

2002-07-02 Thread Stephan Michels



On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:

> "I think you use the wrong version of avalon-framework lib."
>
> => Where is this lib in Cocoon sources?

xml-cocoon2/lib/core/avalon-framework-20020627.jar

> => What is the right version?

20020627

> => Where can I find it?

xml-cocoon2/lib/core/

Remember 2.1 is not yet released, Stephan Michels.


> -Message d'origine-
> De: Stephan Michels [mailto:[EMAIL PROTECTED]]
>
> On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:
>
> > Hello,
> >
> > I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page 
>(http://localhost:8000/cocoon) there is an error:
> >
> > type: Exception report
> >
> > message: Internal Server Error
> >
> > description: The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
> >
> > root cause
> >
> > java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure 
>signature: 
>(Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;)
> Incompatible object argument for function call
> > at java.lang.Class.newInstance0(Native Method)
> > at java.lang.Class.newInstance(Class.java:232)
> > at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
> > at 
>org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202)
> > at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
> > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> > [...]
> > at java.lang.Thread.run(Thread.java:479)
>
> I think you use the wrong version of avalon-framework lib.
>
> Stephan Michels.
>


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

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




RE: Cocoon 2.1 deployment error

2002-07-02 Thread Sylvain.Thevoz

"I think you use the wrong version of avalon-framework lib."

=> Where is this lib in Cocoon sources?
=> What is the right version?
=> Where can I find it?

Thank you
Sylvain



-Message d'origine-
De: Stephan Michels [mailto:[EMAIL PROTECTED]]
Date: mardi, 2. juillet 2002 15:51
À: [EMAIL PROTECTED]
Objet: Re: Cocoon 2.1 deployment error




On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:

> Hello,
>
> I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page 
>(http://localhost:8000/cocoon) there is an error:
>
> type: Exception report
>
> message: Internal Server Error
>
> description: The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
>
> root cause
>
> java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure 
>signature: 
>(Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;)
> Incompatible object argument for function call
>   at java.lang.Class.newInstance0(Native Method)
>   at java.lang.Class.newInstance(Class.java:232)
>   at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
>   at 
>org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202)
>   at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
>   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> [...]
>   at java.lang.Thread.run(Thread.java:479)

I think you use the wrong version of avalon-framework lib.

Stephan Michels.


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

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


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

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




Re: strange database problem

2002-07-02 Thread Leszek Gawron

> It is the very same jadozoom driver. I cannot tell if the performance
> degenerates but I think not. The difference is significant though.
>   ouzo
here are some timings taken from cocoon log:

version somewhere round 2002.04.20
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 2.453 seconds.
DEBUG HttpProcessor[80][4]/AbstractEnvironment: Resolving 'docs/samples/xsp/esql2.xsp' 
in context 'file:/C:/Dev/Tomcat/webapps/ROOT/'
DEBUG HttpProcessor[80][4]/AbstractEnvironment: Resolving 'docs/samples/xsp/esql2.xsp' 
in context 'file:/C:/Dev/Tomcat/webapps/ROOT/'
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 270 milliseconds.
DEBUG HttpProcessor[80][4]/AbstractEnvironment: Resolving 'docs/samples/xsp/esql2.xsp' 
in context 'file:/C:/Dev/Tomcat/webapps/ROOT/'
DEBUG HttpProcessor[80][4]/AbstractEnvironment: Resolving 'docs/samples/xsp/esql2.xsp' 
in context 'file:/C:/Dev/Tomcat/webapps/ROOT/'
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 140 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 110 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 200 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 211 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 110 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 190 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 120 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 111 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 200 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 110 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 230 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 100 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 220 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 110 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 110 milliseconds.

version 2002.07.01
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 5.378 seconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 460 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 250 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 270 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 280 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 300 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 231 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 270 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 201 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 270 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 771 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 321 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 300 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 300 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 210 milliseconds.
INFO  HttpProcessor[80][4]/CocoonServlet: 'xspxml/cdn' Processed by Apache Cocoon 
2.1-dev in 300 milliseconds.

there was no performance tuning, no other pages are created just standard
cocoon installation + one xsp file (and jdbc driver of course)

ouzo

-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


-
Please check that your question  ha

RE: Security in cocoon.xconf?

2002-07-02 Thread Vadim Gritsenko

Alban,


> > Move cocoon.xconf to WEB-INF/cocoon.xconf, as in latest
> > Cocoon versions. This is a bit more secure location then before.
>
> I don't quite understand how it helps? 

You get more secure installation.


> Having cocoon.xconf in the cocoon is insecure?

Define 'insecure'.


> Some explanations
> would be greatly appreciated because I need to evaluate the
> security issue of cocoon before spending a full development
> effort in cocoon.

1. When cocoon.xconf is directly under webapp, security of the
cocoon.xconf is highly dependent on (known or not) vulnerabilities of
the servlet container.

2. When cocoon.xconf is under WEB-INF, security of the cocoon.xconf is
still highly dependent on (known or not) vulnerabilities of the servlet
container. But, in this case, Servlet specification (IIRC) explicitly
states that these files must not be exposed by the servlet container.

I can't explain clearer than this, please refer to servlet spec and your
servlet container's security guide.

PS I will CC users list, this might be of interest to someone else. Or,
someone else may want to express his opinion and/or experience.


Vadim



-Original Message-
From: Tsui, Alban [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 02, 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: RE: Security in cocoon.xconf?

Hi Vadim, 
The following is your reply to my original email at the forum: 
> Move cocoon.xconf to WEB-INF/cocoon.xconf, as in latest Cocoon
versions. This is a bit more secure location then before. Vadim 
I don't quite understand how it helps? Having cocoon.xconf in the cocoon
is insecure? Some explanations would be greatly appreciated because I
need to evaluate the security issue of cocoon before spending a full
development effort in cocoon.
Thanks in advance. 
Alban 




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

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




RE: SUMMARY: Re: Workaround against i18n(2.0.1) bug (divided buffered keys)

2002-07-02 Thread Piroumian Konstantin

> From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] 
> Konstantin, thank you for the reply.
> 
> Problem: bug of i18n in Cocoon 2.0.1 related to 
> "untranslated-text" because of
> keys divided by parser.
> Suggested workaround (not confirmed):
> It seems that using "concat" function for concatenation of 
> empty string and a
> key in construction like  select="concat('',LABEL)"/> helps to avoid such a 
> key dividing.
> 
> Solution: upgrade of Cocoon 2.0.1 up to fixed CVS version (see below).

Clarification: upgrade of I18nTransformer to fixed version. Cocoon upgrade
is not needed.

> 
> Piroumian Konstantin wrote:
> 
> > > From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> > > > From: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
> > ...
> > > > Could someone, who is more familiar with these issues confirm
> > > > that this
> > > > workaround could help to avoid the bug or it just decrease
> > > probability
> > > > of keys dividing?
> > >
> > > Just get the newer version. There were some other changes
> > > since 2.0, but you
> > > can use the CVS revision history to get the needed version.
> > > (I'd point you
> > > to the needed version, but have problems accessing CVS currently).
> 
> > Here is the link to the fixed version:
> > 
> http://63.251.56.143/viewcvs.cgi/xml-cocoon2/src/java/org/apac
he/cocoon/tran
>
sformation/I18nTransformer.java?rev=1.12&content-type=text/vnd.viewcvs-marku
> p
>
> >
> > Konstantin
> >
> > >
> > > Thank you in advance,
> > > Roman
> > >


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

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

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

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




Re: [Q] SunSpot Portal Demo Error(NullPointerException) in Cocoon 2.0.2 and 2.1-dev

2002-07-02 Thread Jeroen ter Voorde

I had this problem too. Catalina
uses -Djava.endorsed.dirs=${CATALINA_HOME}/common/lib to
override the default endorsed dirs.


- Original Message -
From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 12:14 PM
Subject: RE: [Q] SunSpot Portal Demo Error(NullPointerException) in Cocoon
2.0.2 and 2.1-dev


>
>
> > -Original Message-
> > From: Tom von Schwerdtner [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 02, 2002 5:03 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Q] SunSpot Portal Demo Error(NullPointerException) in
> > Cocoon 2.0.2 and 2.1-dev
> >
> >
> > On Monday 01 July 2002 03:07 am, Carsten Ziegeler wrote:
> > > Yes, this problem is related to JDK 1.4. You can either switch
> > > to JDK 1.3 or you have to put the versions of Xalan and Xerces
> > > shipped with Cocoon into the lib/endorsed direcoty of your JRE
> > > 1.4. There is a section in the installation docs about running
> > > Cocoon with JDK 1.4.
> >
> > FYI: I was having this problem with 1.4 on linux (Gentoo) and I
> > had to add
> > '-Djava.endorsed.dirs=${JAVA_HOME}/jre/lib/endorsed' to my CATALINA_OPTS
> > because it wasnt looking there by default.
> >
> The JDK 1.4 should look there by default. Strange.
>
> Carsten
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

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




Re: Cocoon 2.1 deployment error

2002-07-02 Thread Stephan Michels



On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:

> Hello,
>
> I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page 
>(http://localhost:8000/cocoon) there is an error:
>
> type: Exception report
>
> message: Internal Server Error
>
> description: The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
>
> root cause
>
> java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure 
>signature: 
>(Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;)
> Incompatible object argument for function call
>   at java.lang.Class.newInstance0(Native Method)
>   at java.lang.Class.newInstance(Class.java:232)
>   at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
>   at 
>org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202)
>   at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
>   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> [...]
>   at java.lang.Thread.run(Thread.java:479)

I think you use the wrong version of avalon-framework lib.

Stephan Michels.


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

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




Cocoon 2.1 deployment error

2002-07-02 Thread Sylvain.Thevoz

Hello,

I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page 
(http://localhost:8000/cocoon) there is an error:

type: Exception report

message: Internal Server Error

description: The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception: 

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:479)


root cause 

java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure signature: 
(Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;)
 Incompatible object argument for function call
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invoke

SUMMARY: Re: Workaround against i18n(2.0.1) bug (divided buffered keys)

2002-07-02 Thread KOZLOV Roman

Konstantin, thank you for the reply.

Problem: bug of i18n in Cocoon 2.0.1 related to "untranslated-text" because of
keys divided by parser.
Suggested workaround (not confirmed):
It seems that using "concat" function for concatenation of empty string and a
key in construction like  helps to avoid such a key dividing.

Solution: upgrade of Cocoon 2.0.1 up to fixed CVS version (see below).

Piroumian Konstantin wrote:

> > From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> > > From: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
> ...
> > > Could someone, who is more familiar with these issues confirm
> > > that this
> > > workaround could help to avoid the bug or it just decrease
> > probability
> > > of keys dividing?
> >
> > Just get the newer version. There were some other changes
> > since 2.0, but you
> > can use the CVS revision history to get the needed version.
> > (I'd point you
> > to the needed version, but have problems accessing CVS currently).

> Here is the link to the fixed version:
> http://63.251.56.143/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/tran
> sformation/I18nTransformer.java?rev=1.12&content-type=text/vnd.viewcvs-marku
> p
>
> >
> > Konstantin
> >
> > >
> > > Thank you in advance,
> > > Roman
> > >


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

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




RE: [doc] Request feedback on Draft: Parameter Selector user doc

2002-07-02 Thread Lai, Harry

Hi Beth,

Great doc!  I just saw one minor bug in the first example.  You have:

 
   

...

Since the generate call is inside the act, the parameter you want is
actually {../1}, not {1}.  Aside from that, though, this looks good to me.

Harry


-Original Message-
From: Naquin, Beth [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 5:53 PM
To: [EMAIL PROTECTED]
Subject: [doc] Request feedback on Draft: Parameter Selector user doc


Hi all, 
Below is a draft of a document on the ParameterSelector for possible
inclusion in the userdocs/Selectors section.  I thought I'd post it here to
get some feedback first.
Could you please give it a quick review for:  accuracy/correctness,
understandability (esp to a newbie),  additional info to add ??
Thanks a bunch, 
Beth 
 
Parameter Selector 
applies to:  cocoon 2.0.2, ?? DOES THIS APPLY TO OTHER VERSIONS
OF COCOON ALSO?? 
Name: Parameter Selector 
Class:  org.apache.cocoon.selection.ParameterSelector 
Cacheable:    CAN SOMEONE ANSWER THIS, OR IS IT NONAPPLICABLE?? 


This Selector matches a string, in the Parameters object passed to the
selector, against a specified Cocoon internal parameter.  It performs a
case-sensitive string comparison between the value of the
'parameter-selector-test' parameter and the value of the 'test' attribute of
the  element.
This internal parameter could be: 
-- A sitemap parameter from the map:match portion of the pipeline 
-- A sitemap parameter set by an action 
Reasons to use ParameterSelector 
- 
One purpose of this selector is to select between different pipeline
configurations based on sitemap parameters set by an action.  This would
allow the action to control the logic required to set one or more
parameters, which can then be used by this selector to control pipeline
processing.  Thus, complex decision-making logic can be contained in
actions, while the sitemap simply uses the results of the actions (the
parameters) to determine pipeline processing.
Parameter Selector can also be used to select on the value of 'keys' (such
as {1} or {../2} ) from the wildcard matcher.  Information in the URI, such
as part of a filename, can then be used to determine pipeline processing.   
Examples 
 
Add the component to your sitemap.xmap: 
~~~ 
  
 ... 
   
  ... 
 
... 
~~ 
Use a parameter set by an action: 
Assume there is an action (named MyAction) that sets a parameter (named
MyRegion) to several possible values. 
 
 
   
 
 
   
  
   
   
 
   
   
 
   
   
 
   
   
 
 
   
   
 
~~ 
Use values from the URI: 
~~ 
 

   
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
... 
~~~ 

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

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




Re: strange database problem

2002-07-02 Thread Christian Haul

On 02.Jul.2002 -- 03:09 PM, Leszek Gawron wrote:
> On Tue, Jul 02, 2002 at 12:09:35PM +0200, Christian Haul wrote:
> > On 02.Jul.2002 -- 11:55 AM, Leszek Gawron wrote:
> > > > Since multiple "important" DBMSs have problems with checking for
> > > > multiple result sets, it has been disabled by default for the current
> > > > CVS version. It can be re-enabled by using
> > > > yes Option
> > > > to .
> > > > 
> > > > Please try again with a snap shot newer than 2002-06-28
> > > 
> > > It works quite fine with only one small "but": I was using cocoon version from
> > > april ( 2002.04.20 i think ). The response times (after compiling the xsp
> > > page) where somewhere about 80-190 ms. Now it's 200-400 ms and sometimes more.
> > > What may cause such great difference in response times? The xsp file is really
> > > simple: it does select * from tablename only and outputs all columns. The
> > > recordset retrieved contains 23 records (about 20 columns each).
> > 
> > Mmmh, nothing that comes to mind should have a significant effect on
> > performance. Someone suggested using a different driver, so, did you
> > measure the different response times with the same driver? Does
> > performance degenerate over time?

> It is the very same jadozoom driver. I cannot tell if the performance
> degenerates but I think not. The difference is significant though.

Just double checking. You've upgraded from 2.0.2 to 2.1-dev
(snapshot), right? Could you try the same with a 2.0.3 CVS version?

(Don't know enough about WinCVS www.wincvs.org to give instructions,
this is command line cvs usage) 

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
password: anoncvs

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

Build cocoon:
cd xml-cocoon2

bash build.sh -Dinclude.webapp.libs=yes webapp

WAR is in build/cocoon/

Remember to clear $TOMCAT/work before restarting.

TIA.

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


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

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




RE: Workaround against i18n(2.0.1) bug (divided buffered keys)

2002-07-02 Thread Piroumian Konstantin

> From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] 
> > From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] 
...
> > Could someone, who is more familiar with these issues confirm 
> > that this
> > workaround could help to avoid the bug or it just decrease 
> probability
> > of keys dividing?
> 
> Just get the newer version. There were some other changes 
> since 2.0, but you
> can use the CVS revision history to get the needed version. 
> (I'd point you
> to the needed version, but have problems accessing CVS currently).

Here is the link to the fixed version:
http://63.251.56.143/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/tran
sformation/I18nTransformer.java?rev=1.12&content-type=text/vnd.viewcvs-marku
p


> 
> Konstantin
> 
> > 
> > Thank you in advance,
> > Roman
> > 
> > 
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
> 
> > 
> > To 
> unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> > 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




Re: strange database problem

2002-07-02 Thread Leszek Gawron

On Tue, Jul 02, 2002 at 12:09:35PM +0200, Christian Haul wrote:
> On 02.Jul.2002 -- 11:55 AM, Leszek Gawron wrote:
> > > Since multiple "important" DBMSs have problems with checking for
> > > multiple result sets, it has been disabled by default for the current
> > > CVS version. It can be re-enabled by using
> > > yes Option
> > > to .
> > > 
> > > Please try again with a snap shot newer than 2002-06-28
> > 
> > It works quite fine with only one small "but": I was using cocoon version from
> > april ( 2002.04.20 i think ). The response times (after compiling the xsp
> > page) where somewhere about 80-190 ms. Now it's 200-400 ms and sometimes more.
> > What may cause such great difference in response times? The xsp file is really
> > simple: it does select * from tablename only and outputs all columns. The
> > recordset retrieved contains 23 records (about 20 columns each).
> 
> Mmmh, nothing that comes to mind should have a significant effect on
> performance. Someone suggested using a different driver, so, did you
> measure the different response times with the same driver? Does
> performance degenerate over time?
It is the very same jadozoom driver. I cannot tell if the performance
degenerates but I think not. The difference is significant though.
ouzo

-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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

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




RE: Workaround against i18n(2.0.1) bug (divided buffered keys)

2002-07-02 Thread Piroumian Konstantin

> From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] 
> 
> Hello,
> 
> It's just concerning i18n transformer in Cocoon 2.0.1.
> There is known bug of i18n related to "untranslated-text" because of
> keys divided by parser.

I'd say "there was a known bug". I've fixed that bug several months ago. You
can just get a newer version from CVS (2.0.3 branch contains fixed version).

> It seems that using "concat" function for concatenation of 
> empty string
> and a key in construction like
> 
> helps to avoid such a key dividing.

It's interesting how it can solve this problem? According to SAX
specification, the parser can break character data into chunks on its
discretion. So, you cannot guarantee that some other parser or in some other
condition this will work too.

> 
> Could someone, who is more familiar with these issues confirm 
> that this
> workaround could help to avoid the bug or it just decrease probability
> of keys dividing?

Just get the newer version. There were some other changes since 2.0, but you
can use the CVS revision history to get the needed version. (I'd point you
to the needed version, but have problems accessing CVS currently).

Konstantin

> 
> Thank you in advance,
> Roman
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




Workaround against i18n(2.0.1) bug (divided buffered keys)

2002-07-02 Thread KOZLOV Roman

Hello,

It's just concerning i18n transformer in Cocoon 2.0.1.
There is known bug of i18n related to "untranslated-text" because of
keys divided by parser.
It seems that using "concat" function for concatenation of empty string
and a key in construction like

helps to avoid such a key dividing.

Could someone, who is more familiar with these issues confirm that this
workaround could help to avoid the bug or it just decrease probability
of keys dividing?

Thank you in advance,
Roman


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

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




RE: [doc] Request feedback on Draft: Parameter Selector user doc

2002-07-02 Thread Vadim Gritsenko

> From: Diana Shannon [mailto:[EMAIL PROTECTED]]
> 
> 
> On Monday, July 1, 2002, at 06:52  PM, Naquin, Beth wrote:
> 
> Thanks Beth for your great work so far. Here's a few ideas how I would
> find answers to your questions.
> 
> > Parameter Selector
> > applies to:  cocoon 2.0.2, ?? DOES THIS APPLY TO OTHER
> > VERSIONS OF COCOON ALSO??
> 
> Are you working with CVS? If not, you can use ViewCVS.
>http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/
> 
> Well, a quick check in my cvs copy at
>src/java/org/apache/cocoon/selection/
> in both HEAD and 2.0.3 branches shows the file ParameterSelector.java
> still exists.
> Looking into the source code itself, I don't see any deprecated
javadoc
> comments.
> Also, a diff of the version in release and the version in Head shows
no
> substantive difference.
> Safe bet to assume this applies all versions of Cocoon.

Yes.

 
> > Name: Parameter Selector
> > Class:  org.apache.cocoon.selection.ParameterSelector
> > Cacheable:    CAN SOMEONE ANSWER THIS, OR IS IT
NONAPPLICABLE??

N/A.

> I would say nonapplicable. How to check: To be cacheable, a sitemap
> component must either
> implement the Cacheable (deprecated) or the
CacheableProcessingComponent
> interface.
> This includes generators, transformers, and serializers -- *not*
> selectors.
> Reason: Selectors help control flow of a pipeline. Values of selectors
 ^^^

"Help choose components of a pipeline", "help build a pipeline".


Vadim

> don't represent the XML
> content (the "stuff" flowing through the pipelines) which is the
actual
> target of caching mechanisms.
> 
> At least that's my interpretation...
>
> Diana


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

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




&& in XSP, was: Multiple conditions in an XSP if statement

2002-07-02 Thread Vadim Gritsenko

> From: Robert Bourdeau [mailto:[EMAIL PROTECTED]]

Robert,

> I'm very very new to XML, and enjoying it thoroughly, but I have to
admit that
> I find the
>   &&
> encoding for a logical-and in Java to be extremely nasty looking. It
really
> obfuscates the intended meaning of the statement, requiring the reader
to
> view the "Java"-code contained within a little more indirectly. I have
to
> think
> " '&&' looks like two ampersands, which would read as
'AND'."
> Maybe you get used to this, but it does begin to spoil the syntax of
the
> underlying programming language.
> 
> I'll now truly reveal my ignorance. Is it not possible to define an
> ENTITY such that  &&   can be used legally? Perhaps not, since it
cannot
> end with the semi-colon. But I can't help but think there MUST be
someway to
> preserve the notational syntax of the Java code.
> 
> Needless to say,
>   
> leaves me breathless.



PS It is known that lots of java code in the XSP page is not a good
idea. Sometimes there is better place: XSP logicsheet, action, custom
generator or transformer.

Vadim


> --- Bob
> 
> 
> 
> 
> 
> > Beth,
> > Thanks for the reply. I just found the answer after a search on
> > goggle:
> >
http://lists.w3.org/Archives/Public/www-xpath-comments/1999JulSep/0032.h
> > tml
> >
> >
> > Either:
> >   if(  == null &&
> >  == null )
> >
> > Or:
> >   if(  == null

> >  == null )
> >
> > works fine.
> >
> > When I tried putting 
> >
> > it failed with the following error:
> >
> > org.apache.cocoon.ProcessingException: Language Exception:
> > org.apache.cocoon.components.language.LanguageException: Error
compiling
> > form_xsp:
> > ERROR 1 (D:\apps\Tomcat
> >
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
> > eval/logic\form_xsp.java):
> > ...
> 


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

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




Re: [docs] DRAFT: How to publish XML documents in HTML and PDF

2002-07-02 Thread Bertrand Delacretaz

On Tuesday 02 July 2002 14:19, Piroumian Konstantin wrote:
> I don't think that using the word 'dynamically' is needed. I would rephrase
> this like: "which will call a processing pipeline ...". . .

makes sense, thanks!
I tend to use the word "dynamic" too much anyway ;-)

> Btw, there is a 'myapp' directory in Cocoon webapp. You can remove the
> preliminary preparation chapters (creating a directory under mount, etc.)
> if you use 'myapp' as a base directory for your samples. 

hmm - As I understand, myapp could already have stuff in it if the user has 
been playing already, isn't that more prone to confusion than creating a 
fresh directory under mount?

-Bertrand

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

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




error when creating .war

2002-07-02 Thread Sylvain.Thevoz

Hello,

I have build CVS last dev. snapshot today (Cocoon 2.1) but when I try to pack the .war 
there is an error:

Unable to load servlet class specified in the archive.
java.lang.NoClassDeffFoundError: org/apache/avalon/framework/logger/AbstractLoggable


What is the problem??


Thank you
Sylvain

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

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




Re: [doc] Request feedback on Draft: Parameter Selector user doc

2002-07-02 Thread Diana Shannon


On Monday, July 1, 2002, at 06:52  PM, Naquin, Beth wrote:

Thanks Beth for your great work so far. Here's a few ideas how I would 
find answers to your questions.

> Parameter Selector
> applies to:  cocoon 2.0.2, ?? DOES THIS APPLY TO OTHER 
> VERSIONS OF COCOON ALSO??

Are you working with CVS? If not, you can use ViewCVS.
   http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/

Well, a quick check in my cvs copy at
   src/java/org/apache/cocoon/selection/
in both HEAD and 2.0.3 branches shows the file ParameterSelector.java 
still exists.
Looking into the source code itself, I don't see any deprecated javadoc 
comments.
Also, a diff of the version in release and the version in Head shows no 
substantive difference.
Safe bet to assume this applies all versions of Cocoon.

> Name: Parameter Selector
> Class:  org.apache.cocoon.selection.ParameterSelector
> Cacheable:    CAN SOMEONE ANSWER THIS, OR IS IT NONAPPLICABLE??

I would say nonapplicable. How to check: To be cacheable, a sitemap 
component must either
implement the Cacheable (deprecated) or the CacheableProcessingComponent 
interface.
This includes generators, transformers, and serializers -- *not* 
selectors.
Reason: Selectors help control flow of a pipeline. Values of selectors 
don't represent the XML
content (the "stuff" flowing through the pipelines) which is the actual 
target of caching mechanisms.

At least that's my interpretation...

Diana


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

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




RE: [docs] DRAFT: How to publish XML documents in HTML and PDF

2002-07-02 Thread Piroumian Konstantin

Great!
Very useful How-To.

Just one comment:

which will dynamically build a processing pipeline based on the
request received from the browser


I don't think that using the word 'dynamically' is needed. I would rephrase
this like: "which will call a processing pipeline ..." to avoid confusing
users by a sense that pipelines can be dynamic (see my other posting today).

Btw, there is a 'myapp' directory in Cocoon webapp. You can remove the
preliminary preparation chapters (creating a directory under mount, etc.) if
you use 'myapp' as a base directory for your samples. I'd like to know if
anything else needs to be changed/added/removed in 'myapp' to make it serve
as a start point for beginners.

Konstantin


> From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]] 
> 
> Hello Cocooners,
> 
> This draft is available at 
> http://www.codeconsult.ch/drafts/cocoon/howto-html-pdf-publish
> ing-DRAFT-01.html 
> and I'd like to donate it (in XML form) to the project.
> 
> This is really basic stuff, but I think it might be useful 
> for beginners, 
> especially because it requires no prior knowledge of Cocoon, 
> XSLT or XSL-FO 
> (as long as Cocoon is up and running).
> 
> I'm definitely scratching an itch here as I will use it 
> tomorrow for an XSLT 
> and XSL-FO class that I'm teaching, so it will be 
> field-tested sooner than 
> later ;-)
> 
> Comments are welcome - I will wait a bit before creating a 
> patch in bugzilla, 
> in case changes are needed.
> 
> -- 
>  Bertrand Delacrétaz (codeconsult.ch, jfor.org)
> 
>  buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
>  disclaimer: eternity is very long. mostly towards the end. get ready.
> 
> 
> 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




Profiling

2002-07-02 Thread Michael Zehrer

Hi list,

what do I have to do to turn on profiling in the actual cvs version? How
ist profiling implemented in general?

Cheers, Michael

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

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




[docs] DRAFT: How to publish XML documents in HTML and PDF

2002-07-02 Thread Bertrand Delacretaz

Hello Cocooners,

This draft is available at 
http://www.codeconsult.ch/drafts/cocoon/howto-html-pdf-publishing-DRAFT-01.html 
and I'd like to donate it (in XML form) to the project.

This is really basic stuff, but I think it might be useful for beginners, 
especially because it requires no prior knowledge of Cocoon, XSLT or XSL-FO 
(as long as Cocoon is up and running).

I'm definitely scratching an itch here as I will use it tomorrow for an XSLT 
and XSL-FO class that I'm teaching, so it will be field-tested sooner than 
later ;-)

Comments are welcome - I will wait a bit before creating a patch in bugzilla, 
in case changes are needed.

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

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






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

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




Re: Form Validator

2002-07-02 Thread Dave Covert

Eric-

Glad you have the db auth working. This will likely be files thrown together
because I am getting ready to go out town for a bit.

Here is login.xml




 Login page
 
   
   
 This is a managed system.
   
   
   
   

WBS id:

  


Password:

  


 

  

 
 
   
 



I flexed heavily off the apache.xsl but if there is anything confusing, let
me know.
I'll give one xsl entry I modified:
  
  
  


The pipeline & auth.xml are below from the prior message.
My param.xml is:




  
  
  


Your 'login.xsp' and 'do_login.xsp' look very similiar to mine. Just make
sure names match. If it still does not work, I'll have to see your
login.xsp.

  
  
  
  



  

  
  
  
  


  
  
  
  



  
  

  
  

On your '*.xsp' pipeline I noticed you used {1}. Once you use an action it
sets a new context and you need to use {../1} to get to the ancestor (or
parent).

Good luck!
Dave.

- Original Message -
From: "Eric Dalquist" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 01, 2002 10:22 AM
Subject: Re: Form Validator


> Thanks for the tips Dave. I have the DBAuthenticator working. But I still
> can't get the session validator and form validator to work. Could you
please
> post an example of the XML file you use in your Form or Session
validators?
> I'm trying to be really simple right now with mine:
>
> 
> 
> 
> 
>
> Here is an exerpt of my sitemap. I took the FormValidator off the
> do_login.xsp to get the DBAuth working.
>
> 
> 
> 
> 
> 
> 
> 
>
>
> 
> 
> 
> 
>  value="context://house_bills/descriptors/auth.xml"/>
>
> 
> 
> 
>
> 
> 
> 
>
>
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>  value="context://house_bills/descriptors/params.xml"/>
> 
>
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>
>
> - Original Message -
> From: "Dave Covert" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 30, 2002 10:54 PM
> Subject: Re: Form Validator
>
>
> > Eric-
> > I have a simple authentication running with mySql.
> >
> > The db-authenticator is missing from the pipeline given. form-validator
is
> > only validating that the values in your form meet the constraints in
> > params.xml. db-authenticator will check the database table against what
> the
> > user typed in.
> >
> > The corresponding pipeline in my sub-site is:
> >   
> > 
> > 
> >> value="context://wbs/descriptors/params.xml"/>
> >   
> >   
> >   
> >  > value="context://wbs/descriptors/auth.xml"/>
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > (Yes, it was shamelessly stolen from the example.)
> > The auth.xml I use looks like this:
> > 
> > 
> >   wbs
> >   
> > 
> >  > to-session="user_password"/>
> >  > type="string"/>
> >   
> > 
> >
> > An item of note: the names for the id & password MUST match in login.xsp
> > (request name - html form), in params.xml (name=), and auth.xml
> > (request-param=). The "dbcol" in auth.xml is the column name in your
> table -
> > "user_name" from your table def.
> > If the request name in login.xsp (from the html form) is not the same as
> in
> > params.xml (in your case "user_id") that may be why the form is not
> > validated - sending you back to login.
> >
> >
> > Then, assuming other pipes will be 'protected' you need to wrap each
one.
> > Such as:
> >   
> > 
> >> value="context://wbs//descriptors/params.xml"/>
> >   
> >   
> >   
> >   
> >   
> >   
> > 
> > 
> > 
> >   
> > "session-validator" will validate that the user_id & user_password
(placed
> > in session variables by "db-authenticator" from the "to-session" of
> > auth.xml) are valid. It only checks validity in terms of a 'form'
check -
> it
> > does not access the database again (as far as I know).
> > These values are invalidated on session timeout, forcing the user to
login
> > again.
> > Since I am still playing, I am allowing the password to stay around as a
> > session variable.
> >
> > On your PASSWORD() function question, I can not help. My guess is that
you
> > would have to modify (or make your own)
> > org.apache.

RE: dynamic pipelines?

2002-07-02 Thread Piroumian Konstantin
Title: Message



Don't get 
confused. What you describe here is a static pipeline 
and dynamic parameters for it. E.g.:

    
    

    

    

    

 
You can use 
one of the multiple actions, selectors or matchers from Cocoon to get the needed 
parameters dynamically either from your request path, request params or some 
other source.
And, please, don't use HTML emails. 
Not everyone can read them and it's problematic to quote 
on.
-- Konstantin Piroumian 
[EMAIL PROTECTED] 

  
  -Original Message-From: Othman Haddad 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 2:28 
  PMTo: [EMAIL PROTECTED]Subject: dynamic 
  pipelines?
  


  
Hi,
first thanks everybody for the fast and precise answers,it's 
amazing!!
well, i was wondering if is it possible to choose stylesheet to use 
from a form without hardcoding them?
i.e: imagine this scenario: 
 
i choose an XML file from a location and an XSLT to apply on 
it from another location, directly with some clicks on the 
browser!
that means that we can generate the sitemap_xmap.xmap 
dynamically!
 
so is that possible with cocoon2?   
 
thanks a lot..

  

  
  


  
  IncrediMail - La messagerie électronique a enfin évolué - 
  Cliquer 
  ici 


Réf. : RE: dynamic pipelines?

2002-07-02 Thread Othman Haddad








  hi,
  in fact you're right, so what are the limits of pipelining ? it's 
  amazing how flexible cocoon2 is?
  thanks
   
  ---Message original---
   
  
  De : [EMAIL PROTECTED]
  Date : mardi 02 juillet 
  2002 12:54:55
  A : [EMAIL PROTECTED]; 
  Othman Haddad
  Sujet : RE: dynamic 
  pipelines?
   > From: Othman Haddad [mailto:[EMAIL PROTECTED]]>> 
  i choose an XML file from a location and an XSLT to apply> on it 
  from another location, directly with some clicks on> the 
  >>browser!Enter in an inputfield of your form the name of 
  the stylesheet and use therequest-matcher to get value of the 
  parameter in order to use it in thepipeline.hope that 
  helps,Regards,Reinhard-Please 
  check that your question has not already been answered in theFAQ 
  before posting. To 
  unsubscribe, e-mail: <[EMAIL PROTECTED]>For 
  additional commands, e-mail: <[EMAIL PROTECTED]>.





	
	
	
	
	
	
	




  IncrediMail - 
La messagerie électronique a enfin évolué - Cliquer 
ici



RE: dynamic pipelines?

2002-07-02 Thread Reinhard Poetz

> From: Othman Haddad [mailto:[EMAIL PROTECTED]]
>
> i choose an XML file from a location and an XSLT to apply
> on it from another location, directly with some clicks on
> the >>browser!

Enter in an inputfield of your form the name of the stylesheet and use the
request-matcher to get value of the parameter in order to use it in the
pipeline.

hope that helps,

Regards,
Reinhard


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

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




dynamic pipelines?

2002-07-02 Thread Othman Haddad








  Hi,
  first thanks everybody for the fast and precise answers,it's 
  amazing!!
  well, i was wondering if is it possible to choose stylesheet to use 
  from a form without hardcoding them?
  i.e: imagine this scenario: 
   
  i choose an XML file from a location and an XSLT to apply on 
  it from another location, directly with some clicks on the 
  browser!
  that means that we can generate the sitemap_xmap.xmap 
  dynamically!
   
  so is that possible with cocoon2?   
   
  thanks a lot..





	
	
	
	
	
	
	




  IncrediMail - 
La messagerie électronique a enfin évolué - Cliquer 
ici



Re: strange database problem

2002-07-02 Thread Christian Haul

On 02.Jul.2002 -- 11:55 AM, Leszek Gawron wrote:
> > Since multiple "important" DBMSs have problems with checking for
> > multiple result sets, it has been disabled by default for the current
> > CVS version. It can be re-enabled by using
> > yes Option
> > to .
> > 
> > Please try again with a snap shot newer than 2002-06-28
> 
> It works quite fine with only one small "but": I was using cocoon version from
> april ( 2002.04.20 i think ). The response times (after compiling the xsp
> page) where somewhere about 80-190 ms. Now it's 200-400 ms and sometimes more.
> What may cause such great difference in response times? The xsp file is really
> simple: it does select * from tablename only and outputs all columns. The
> recordset retrieved contains 23 records (about 20 columns each).

Mmmh, nothing that comes to mind should have a significant effect on
performance. Someone suggested using a different driver, so, did you
measure the different response times with the same driver? Does
performance degenerate over time?

Chris.

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


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

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




RE: [Q] SunSpot Portal Demo Error(NullPointerException) in Cocoon 2.0.2 and 2.1-dev

2002-07-02 Thread Carsten Ziegeler



> -Original Message-
> From: Tom von Schwerdtner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 02, 2002 5:03 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Q] SunSpot Portal Demo Error(NullPointerException) in
> Cocoon 2.0.2 and 2.1-dev
> 
> 
> On Monday 01 July 2002 03:07 am, Carsten Ziegeler wrote:
> > Yes, this problem is related to JDK 1.4. You can either switch
> > to JDK 1.3 or you have to put the versions of Xalan and Xerces
> > shipped with Cocoon into the lib/endorsed direcoty of your JRE
> > 1.4. There is a section in the installation docs about running
> > Cocoon with JDK 1.4.
> 
> FYI: I was having this problem with 1.4 on linux (Gentoo) and I 
> had to add 
> '-Djava.endorsed.dirs=${JAVA_HOME}/jre/lib/endorsed' to my CATALINA_OPTS 
> because it wasnt looking there by default.
> 
The JDK 1.4 should look there by default. Strange.

Carsten

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

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




Re: xsp - problem using simple.xsp in a different workspace

2002-07-02 Thread Leszek Gawron

> Besides, when i start apache 4.0.3, i get this error in the command line:
> 
> "" 
> 
> Apache Tomcat/4.0.3
> Sitemap location = sitemap.xmap
> ...
> Server 1.6 is running
> Press [Ctrol]+[C] to abort
> Server.run/init: java.net.BindException: Address in use: JVM_Bind
> java.net.BindException: Address in use: JVM_Bind
>   at java.net.PlainSocketImpl.socketBind(NativeMethod)
>   ...
>   at org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:147)
>   ...
> Sitemap location = sitemap.xmap
> Checking sitemap reload =true
> ...
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.3
> ""
I'm not sure about the first problems but the second issue indicates you have
more that one cocoon instance in your tomcat/webapps directory - tomcat tries
to run both so the second hsqldb server running on the same port causes an
error
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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

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




Re: strange database problem

2002-07-02 Thread Leszek Gawron

> Since multiple "important" DBMSs have problems with checking for
> multiple result sets, it has been disabled by default for the current
> CVS version. It can be re-enabled by using
> yes Option
> to .
> 
> Please try again with a snap shot newer than 2002-06-28

It works quite fine with only one small "but": I was using cocoon version from
april ( 2002.04.20 i think ). The response times (after compiling the xsp
page) where somewhere about 80-190 ms. Now it's 200-400 ms and sometimes more.
What may cause such great difference in response times? The xsp file is really
simple: it does select * from tablename only and outputs all columns. The
recordset retrieved contains 23 records (about 20 columns each).
ouzo

-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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

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




SUMMARY: Cocoon, MSDE, jadozoom jdbc driver

2002-07-02 Thread Leszek Gawron

SUMMARY:
When using cocoon with MSDE and jadozoom jdbc driver this error may occur:
> > On Sunday 30 June 2002 01:24 pm, Leszek Gawron wrote:
> > > com.inzoom.adojni.ComException: Current provider does not support returning
> > > multiple recordsets from a single execution. in ADODB.Recordset code=0
> > > Type=1

The error starts to occur somewhere between esql.xsl version 1.6 (still works)
and 1.28 (does not). The 1.29 works properly for this case

> Please try again with a snap shot newer than 2002-06-28
Applying this solved the problem
ouzo

-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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

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




xsp - problem using simple.xsp in a different workspace

2002-07-02 Thread Diego Lluna

hi,

i've copied, textual, the simple.xsp example file provided
in cocoon 2.0.1 into a different workspace, for trial.

this workspace processes requests fine (xml, jsp, js, xsl...)
but shows this error when requesting the simple.xsp file:

""The org.apache.cocoon.www.sitemap_xmap notifies that 
org.apache.cocoon.ProcessingException says:

markup-languages: ComponentSelector could not access the Component for hint: xsp 

More precisely:

org.apache.cocoon.ProcessingException: markup-languages: ComponentSelector could not 
access the Component for hint: xsp: 
org.apache.avalon.framework.component.ComponentException: markup-languages: 
ComponentSelector could not access the Component for hint: xsp 

 
extra info 
original message java.lang.Exception: Could not create enough Components to service 
your request. ""


Besides, when i start apache 4.0.3, i get this error in the command line:

"" 

Apache Tomcat/4.0.3
Sitemap location = sitemap.xmap
...
Server 1.6 is running
Press [Ctrol]+[C] to abort
Server.run/init: java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(NativeMethod)
...
at org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:147)
...
Sitemap location = sitemap.xmap
Checking sitemap reload =true
...
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
""

could it be that these two problems are related?
(i have two application directories hanging from ,
one of them is the original cocoon, the other is a test one)

thanks in advance,
Diego

PS: thanks Omar and Konstantin, for their incredibly fast answer

> -Mensaje original-
> De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> Enviado el: lunes, 01 de julio de 2002 13:42
> Para: '[EMAIL PROTECTED]'
> Asunto: RE: basic start
> 
> 
> > From: Diego Lluna [mailto:[EMAIL PROTECTED]] 
> > 
> > hi,
> > 
> > i've been trying to test the simplest xsp pages from a local
> > site.
> ...
> 
> > since i copied the example from existing ones, i suspect i 
> > have some kind
> > of config problem, maybe in the sitemap.xmap
> > 
> > anybody can help?
> > 
> > i'm providing more info:
> > 
> > the .xsp file:
> > "
> > 
> > 
> > 
> > 
> 
> This syntax is not supported in C2. You'd better start with 
> C2 original
> samples: there is a lot of XSP pages. Take a look at your
> /docs/samples/xsp/'.
> 
> Konstantin
> 
> > 
> >  > xmlns:xsp="http://www.apache.org/1999/XSP/Core";>
> > 
> >   
> > static private int counter=0;
> > private synchronized int count(){
> >   return counter++;
> >   }
> >   
> >  
> >   
> > 
> >   me han llamado
> >   count()
> >   veces
> > 
> >   
> >  
> > ""
> > 
> > i'm running cocoon 2.0.1
> > on apache 4.0.3
> > 
> > sincere thanks,
> > Diego
> > 
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 

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

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

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


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

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




[COCOON] New cocoon-docs mailing list

2002-07-02 Thread Nicola Ken Barozzi

Dear PMC, Dear root,

The Cocoon project asks for the creation of a new mailing list to aid 
the new Cocoon Documentation project.

  [EMAIL PROTECTED]

This project will stand for Cocoon as the HTTP Server Documentation 
Project does with the HTTP Server Project.

For coordinating the project, Diana Shannon has already been made 
committer with a very big number of votes, and is working very actively 
with the collaboration of both users and developers.

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


The creation of this list has been voted positively by the developer 
list after some discussion, since we were not sure that there was a 
community of doc writers for Cocoon.

+1  6 votes from committers, 3 from users-developers
+0  3 votes

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


Because of this, we have not asked for the creation of the list right 
away, waiting instead to see how much involvement the doc effort was 
able to generate.

These weeks have clearly shown that there is a great need for better 
documetation and a good number of users and developers already working 
on it with success.
In fact the volume of the documentation mails has recently topped the 
one of other topics on the user list.

Because of this, we asked the users if it was time to start the docs list.

> At 14:09 28/06/2002 +0200, Nicola Ken Barozzi wrote:
> 
>> The Cocoon documentation project has started with the great help of 
>> Diana Shannon, and is gaining good momentum and interest  :-)
>>
>> In case you don't already know, on the dev list we have decided that a 
>> cocoon-docs mailing list could help this subproject and facilitate 
>> contributors.
>>
>> We are *seriously* committed to Cocoon, and to the *best* 
>> documentation it can have.
>>
>>  ***
>>
>>   Users, do you think it's time for a cocoon-docs list?
>>
>>  ***

Result of this poll was

+1  9 votes
-0  1 vote
-1  1 vote

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

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


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

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




life cycle of uploaded file

2002-07-02 Thread Sternath Elmar

Hello,

Can anyone tell me when during pipeline processing it is possible to delete an 
uploaded file stored in {tomcat}/work/.../upload-dir. After upload, we access the file 
inside a self-implemented UploadGenerator which uploads the file to another J2EE 
server. We're using cocoon2.0.2 in tomcat4.0.3. deleteOnExit works, but delete doesn't.

Thanks in advance,
Elmar

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

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




session...

2002-07-02 Thread zze-STIENNE Nicolas FTRD/DMI/CAE

[bis: I indicated a false title]

Hi !!

 I reuse the Webapp sample "protected area". 

Once the identification done, I arrived on the "protected page". But how
could I do to go into another page without quiting the "protected zone".

I mean : if there is a link on my "protected page" how could I do to
stay in a protected state ?

At the moment, as I go to another page, the data transmit by the session
() are unavailable...

Thanks, Nicolas !!

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

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




RE: No-caching for SVG's

2002-07-02 Thread Morrison, John

The only references I've found are here: (URL may wrap)

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102242010332543&w=2

I've not used it myself.  If you need more specific information
ask on the dev list of the people involved in this thread.

If you do manage to get this to work, would you mind terribly if
I asked you to post a FAQ?

Thanks,

J.

> From: Spectron International, Inc. [mailto:[EMAIL PROTECTED]]
> 
> I'm using 2.1dev (HEAD?) and the browser is IE and/or 
> Netscape. I'm already
> using the .
> 
> This works for the page but not the SVG inside the page. 
> Right now when I
> click on a link that will display an SVG it works, but if I 
> click 'Back' and
> then click on the same link again it changes the page 
> contents but not the
> SVG, I have to click on 'Refresh' to update the graph. Is 
> there a way to
> refresh the SVG as well?
> 
> I read here, that if I sent an 'Expires' or 'Last modified' 
> header to the
> browser, the graph wouldn't be cached by the browser, and 
> that HEAD had the
> 'Expires' changes. I just want to know how to use Expires or 
> what should I
> do to add headers to the response in Cocoon. Should I make a 
> new serializet,
> can I use an action?
> 
> Faw
> 
> From: "Morrison, John" <[EMAIL PROTECTED]>
> 
> > I think you got drown'd in a thread war, sorry :)
> >
> > You don't say what version of Cocoon you are using or what
> > browser you are targeting.  The way around this (for the
> > latest cvs version of Cocoon) is to wrap anything you don't
> > want caching in a
> >
> > 
> >
> > pipeline.
> >
> > Give it a try, it works for me ;)
> >
> > J.


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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

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




RE: How to Obtain HttpRequest interface in 2.0.2 ?

2002-07-02 Thread Reinhard Poetz

Hi Jason,

> public void setup(SourceResolver resolver, Map objectModel, String src,
> Parameters par)
>   throws SAXException, ProcessingException, IOException
> {
> Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
>
> // This line here gets a ClassCastException.
> HttpRequest hreq = (HttpRequest)request;

 --> skip the last line

>
> Session session = hreq.getSession();

  Session session = request.getSession();

>
> Context context = (Context)objectModel.get(Constants.CONTEXT_OBJECT);
>
> handler.setInputs(session, request, context);
> }

Hope that helps

Regards,
Reinhard


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

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




Re: How to Obtain HttpRequest interface in 2.0.2 ?

2002-07-02 Thread Christian Haul

On 02.Jul.2002 -- 11:28 AM, Jason Uithol wrote:
> We have upgraded from Cocoon 2.0.1 to Cocoon 2.0.2
> 
> One of our transformers can no longer handle internal requests.  The code
> that fails is:
> 
> public void setup(SourceResolver resolver, Map objectModel, String src,
> Parameters par)
>   throws SAXException, ProcessingException, IOException
> {
> Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
> 
> // This line here gets a ClassCastException.
> HttpRequest hreq = (HttpRequest)request;
> 
> Session session = hreq.getSession();
> 
> Context context = (Context)objectModel.get(Constants.CONTEXT_OBJECT);
> 
> handler.setInputs(session, request, context);
> }

Some constants were removed since their place was not considered
reasonable (i.e. don't belong to the core). There is a helper class
for getting the request object now:

org.apache.cocoon.environment.ObjectModelHelper

Method

public static final Request getRequest(java.util.Map objectModel)

The same is true for the context object.

Chris.

Please follow up summarizing your problem and which suggested solution /
information worked for you. Add "SUMMARY: " to the subject line. This
will make FAQ generation and searching the list easier. In addition,
it makes helping you more fun. Thank you.

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


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

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