Sudesh Shetty | 1 Sep 2004 03:30
Picon
Favicon

org.quartz.SchedulerException: Scheduler with name 'Cocoon' already exists Exception

Pardon me if this is already answered but I couldnt
find any reference to the above error. I'm running
cocoon2.1.5  with Borland appserver 6.0. and I get
this error when trying to view the index.xml as
http://localhost:8080/Cocoon/index.xml

Any help appreciated.

Here is the complete trace:

Message: cannot create a quartz schedulerDescription:
org.apache.avalon.framework.configuration.ConfigurationException:
cannot create a quartz schedulerSender:
org.apache.cocoon.servlet.CocoonServletSource: Cocoon
Servletcauseorg.quartz.SchedulerException: Scheduler
with name 'Cocoon' already
exists.request-uri/Cocoon/index.xmlfull exception
chain stacktraceOriginal Exception:
org.quartz.SchedulerException: Scheduler with name
'Cocoon' already exists.
 at
org.quartz.impl.SchedulerRepository.bind(SchedulerRepository.java:88)
 at
org.quartz.impl.DirectSchedulerFactory.createScheduler(DirectSchedulerFactory.java:342)
 at
org.quartz.impl.DirectSchedulerFactory.createScheduler(DirectSchedulerFactory.java:272)
 at
org.apache.cocoon.components.cron.QuartzJobScheduler.initialize(Unknown
Source)
 at
(Continue reading)

Superbiji | 1 Sep 2004 07:53
Picon

javascript collection for cocoon

hi 

anyone published javascript util collection for cocoon?
such as loadDocument(uri), saveDocument(document, uri)
Pratik Das | 1 Sep 2004 08:44
Picon

RE: selecting transform xsl based on document id


Thanks Jeroen. I want a wild card match. For example can <map:parameter name="parameter-selector-test" value="{1}"/> be matched against something like {1}* so that all document-ids starting with say abc use up a particular template.
Thanks
Pratik


"Jeroen Reijn" <j.reijn <at> hippo.nl>

08/31/2004 09:58 PM

Please respond to
users <at> cocoon.apache.org

To
<users <at> cocoon.apache.org>
cc
Subject
RE: selecting transform xsl based on document id





Hi Pratik,
 
to get the result you want, you could use the parameter selector:

<map:match pattern="test/*/*/*">
 <map:generate src="test.xml"/>
 <map:select type="parameter">
   <map:parameter name="parameter-selector-test" value="{1}"/>
   <map:when test="act">
     <map:transform src="xslt/a.xsl"/>
   </map:when>
   <map:when test="def">
     <map:transform src="xslt/b.xsl"/>
   </map:when>
   <map:otherwise>
     <map:transform src="xslt/default.xsl"/>
   </map:otherwise>
 </map:select>
<map:serialize type="xml"/>

This same answer can be found in the original cocoon documentation:

http://cocoon.apache.org/2.1/userdocs/selectors/parameter-selector.html

Greetz,

Jeroen

-----Original Message-----
From: Pratik Das [mailto:PratikD <at> skytechsolutions.co.in]
Posted At: Tuesday, August 31, 2004 1:59 PM
Posted To: Cocoon User List
Conversation: selecting transform xsl based on document id
Subject: selecting transform xsl based on document id
Importance: High


Can I set up a pipeline so that I can select the transform xsl based on  a wild card match of document id or any part of url. I want something
like this:
<map:match pattern="lenyabody-*/*/*/*/**">
      <map:aggregate ....
       <map:select pattern="*" >
        <map:when test="act">
           <map:transform src="xslt/a.xsl"/>
        </map:when>
        <map:when test="def">
           <map:transform src="xslt/b.xsl"/>
        </map:when>
        <map:when test="ghy">
           <map:transform src="xslt/c.xsl"/>
        </map:when>
        <map:otherwise>
           <map:transform src="xslt/default.xsl"/>
        </map:otherwise>
     </map:match>

regards
Pratik

Niels van Kampenhout | 1 Sep 2004 09:43
Picon

RE: javascript collection for cocoon

> From: Superbiji [mailto:superbiji <at> gmail.com]
> Posted At: Wednesday, September 01, 2004 7:54 AM
> Subject: javascript collection for cocoon
> 
> hi 
> 
> anyone published javascript util collection for cocoon?
> such as loadDocument(uri), saveDocument(document, uri)

You can find some basic IO functions in the file lib-io.js which is included in my schema2form example on the wiki:

http://wiki.apache.org/cocoon-data/attachments/Schema2CocoonForms/attachments/schema2form.zip
Derek Hohls | 1 Sep 2004 10:19
Picon

RE: javascript collection for cocoon

OK, so I am a Java dummy, but could one of those
routines be adapated to create a 

function isDocument(uri) 

that returns a true/false if a doc is found or not...
if so, could someone more knowledgeable than me
post the code here?

Thanks!

>>> n.vankampenhout <at> hippo.nl 2004/09/01 09:43:47 AM >>>
> From: Superbiji [mailto:superbiji <at> gmail.com] 
> Posted At: Wednesday, September 01, 2004 7:54 AM
> Subject: javascript collection for cocoon
> 
> hi 
> 
> anyone published javascript util collection for cocoon?
> such as loadDocument(uri), saveDocument(document, uri)

You can find some basic IO functions in the file lib-io.js which is
included in my schema2form example on the wiki:

http://wiki.apache.org/cocoon-data/attachments/Schema2CocoonForms/attachments/schema2form.zip

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org 
For additional commands, e-mail: users-help <at> cocoon.apache.org 

--

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
Reynald Borer | 1 Sep 2004 10:22
Picon
Picon
Favicon

Re: Problem with PDF generation

Thanks all of you for your help.

I've tried running cocoon with the paranoid classloader and it worked 
well, so I've tried to track down which lib was causing my problem. I've 
got a fop.jar in tomcat5/common/endorsed, and removing it made cocoon 
working without the paranoid classloader. Don't know what that fop jar 
was doing here anyway...

One again thanks for your help.

Reynald

Jorg Heymans wrote:

> endorsed lib problem perhaps ? Search the wiki for this.
> Also: try running cocoon with the paranoid classloader (instructions 
> again are in the wiki)
>
> no idea really what could be causing this.. I use jetty :)
>
> Jorg
>
> Reynald Borer wrote:
>
>> The file is there...
>>
>> I've tried something else: on another server I've got an old redhat 9 
>> with tomcat 4 and cocoon 2.1.4 running. PDF generation works well, so 
>> I've tried to copy the webapps/cocoon directory from this server to 
>> my tomcat 5 installation. Still the same problem, pdf fails. So it 
>> must be a library outside cocoon, but I don't know which one...
>>
>> Reynald
>>
>> Jorg Heymans wrote:
>>
>>> org/apache/avalon/framework/logger/Logger is from 
>>> avalon-framework-api-4.1.5.jar
>>>
>>> I'm assuming this file is in WEB-INF/lib already otherwise cocoon 
>>> wouldn't even start probably. Doublecheck this.
>>>
>>> Jorg
>>>
>>> Reynald Borer wrote:
>>>
>>>> Hey, no one as an idea about my problem ? I really need this pdf 
>>>> thing and I know that it works. Help me please...
>>>>
>>>> Reynald
>>>>

--

-- 
CRAFT (http://craft.epfl.ch/)
Centre de Recherche et d'Appui pour la Formation et ses Technologies
Center for Research and Support of Training and its Technologies

Swiss Federal Institute of Technology Lausanne
Ecole Polytechnique Fédérale de Lausanne (EPFL)

CH-1015 Lausanne      Switzerland
Téléphone:  +41 (0)21 693 25 89
Fax:    +41 (0)21 693 60 70
Email:	reynald.borer <at> epfl.ch
Superbiji | 1 Sep 2004 10:28
Picon

Re: javascript collection for cocoon

Java dummy <- me too ;)

and also,
request for new function createDocument(uri, "<root/>")

Thanks for libio.js

On Wed, 01 Sep 2004 10:19:36 +0200, Derek Hohls <dhohls <at> csir.co.za> wrote:
> OK, so I am a Java dummy, but could one of those
> routines be adapated to create a
> 
> function isDocument(uri)
> 
> that returns a true/false if a doc is found or not...
> if so, could someone more knowledgeable than me
> post the code here?
> 
> Thanks!
> 
> >>> n.vankampenhout <at> hippo.nl 2004/09/01 09:43:47 AM >>>
> 
> 
> > From: Superbiji [mailto:superbiji <at> gmail.com]
> > Posted At: Wednesday, September 01, 2004 7:54 AM
> > Subject: javascript collection for cocoon
> >
> > hi
> >
> > anyone published javascript util collection for cocoon?
> > such as loadDocument(uri), saveDocument(document, uri)
> 
> You can find some basic IO functions in the file lib-io.js which is
> included in my schema2form example on the wiki:
>
Stephan Coboos | 1 Sep 2004 10:46
Picon

Example: Placing a repeater-widget within fi:group?

Hello,

has someone an example how to place a repeater-widget within a fi:group tab?
Each element from the repeater-widget should displayed as single row and the
labels should appear only once as table header like in the cocoon examples
for contacts. But these example doesn't use the fi:group element and I can't
find out how to format a repeater-widget like in the examples but within a
fi:group.

Thank you.

Regards
Stephan
Patrick Verboom | 1 Sep 2004 11:03

CForms booleanfield validate problem

Hi,

How do you validate a boolean field?
I tried to use my own validate method on the complete form but the 
boolean field keeps sending me a false. It doesn't mater if I select or 
deselect the check box the thing keeps giving me a false.
I now created a not so elegant solution over a hidden field and a 
on-value-change but there must be a better solution.

Greetings Patrick
Derek Hohls | 1 Sep 2004 10:53
Picon

Problems with schema-to-form example

I have been trying to get the schema-to-form example from 
the Cocoon wiki working
[ http://wiki.apache.org/cocoon/Schema2CocoonForms  ]

The install guide says:

"The example expects a directory 'cforms', which includes directories
'resources' and 'messages'. Obviously I did not include them, as they
are part of the Cocoon distribution. You may have to change some paths
in the sitemap, as well as the resources-uri in forms-*-styling.xsl, to
get the example working. "

I have a directory structure under 'schema' (where the
sitemap et al are placed) that has:

cforms
cforms/messages
cforms/resources

I have also edited all the forms-*-styling.xsl files to
have :

<xsl:param name="resources-uri">cforms/resources</xsl:param>

But I still get the error message:

Unable to locate resource: OtherMessages (key [OtherMessages])

What else do I need to do get the sample working??

Thanks
Derek

--

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

Gmane