How to upload an xml file into eXist using Cocoon pipeline?

2005-08-02 Thread xiao liang
Hi, I am integrating Cocoon 2.1.7 with eXist-snapshot-20050620 by setting eXist driver in xmldb pseudo protocol definition. Currently I am able to access any xml file in eXist by setting 'src=xmldb:exist///db/any_xml_file.xml' in Cocoon pipeline. However, I have no idea how to upload an xml file

Re: How to upload an xml file into eXist using Cocoon pipeline?

2005-08-02 Thread Jonas Lundberg
Hi, I think this ( http://wiki.exist-db.org/space/HowTos/Load+Document+Within+Cocoon ) is a very nice solution (in XSP) , which I use myself. It allows you to upload documents, using a cocoon pipeline as input. Did anyone get the same thing to work in xquery, by the way? /H On 8/2/05, xiao

Re: How to upload an xml file into eXist using Cocoon pipeline?

2005-08-02 Thread Christoph Hermann
xiao liang schrieb: Hello, I am integrating Cocoon 2.1.7 with eXist-snapshot-20050620 by setting eXist driver in xmldb pseudo protocol definition. Currently I am able to access any xml file in eXist by setting 'src=xmldb:exist///db/any_xml_file.xml' in Cocoon pipeline. However, I have no

Re: Authentication in Cocoon against MS-AD

2005-08-02 Thread Antonio Fiol Bonnín
Yes, you can user the LDAP transformer. However, you may use two different approaches: Approach 1: Do you already know the DN of the user trying to log in? Yes: Use it as binding DN No: You will need to first bind with a known user, get the DN for the user trying to log-in, transform that again

Re: write file

2005-08-02 Thread Antonio Fiol Bonnín
You can use the CopySourceAction. 2005/7/21, Andres Taborda [EMAIL PROTECTED]: some user know how to selectionthe source with pipeline and send the source to anfile.Is say, write the file to the disk.__Correo Yahoo!Espacio para todos tus mensajes,

RE: error-handling on a cincluded pipeline only

2005-08-02 Thread Janet Yvan
Hi. You may have to call the pipeline which uses the cinclude from another pipeline which will render the whole things except the cinclude. map:pipeline map:match pattern=include map:generate src=main/ map:transform src=cinclude_xsl.xsl/ map:transform type=cinclude/ map:serialize

AW: AW: Accessing the cocoon session from my Hibernate User-Type

2005-08-02 Thread Messing, Elad
Hello Johannes ! Thank you for your idea ! I actually came to the same conclusion myself, when waiting to your reply and doing some googling :). However I have used the ThreadLocal object. I didn't quite understand the differences between the Inherited and the

Re: AW: AW: Accessing the cocoon session from my Hibernate User-Type

2005-08-02 Thread Johannes Textor
Hi Elad, I actually came to the same conclusion myself, when waiting to your reply and doing some googling :). well that should mean it's not such a bad idea I hope :) However I have used the ThreadLocal object. I didn't quite understand the differences between the Inherited

flowscript action just like xsp-action

2005-08-02 Thread Christoph Hermann
Hello, is there something like an flowscript action? i.e. just like the xsp-action? What i want to realize is just check if a user has a certain role (Using auth-fw). I could just call a function testAccess() which sendPage's an internal pipeline using some parameters, but this would mean i'd

Simple question

2005-08-02 Thread Antony Grinyer
Hi All, Being relatively new to Cocoon can I ask a simple question - how do you simply invoke a java class in a Cocoon pipeline without having to generate, transform, etc. any XML? Is it just an action? Thanks in advance :) AG

Re: Simple question

2005-08-02 Thread Upayavira
Antony Grinyer wrote: Hi All, Being relatively new to Cocoon can I ask a simple question - how do you simply invoke a java class in a Cocoon pipeline without having to generate, transform, etc. any XML? Is it just an action? Thanks in advance :) What part do you want this java invocation to

RE: Simple question

2005-08-02 Thread Antony Grinyer
Hi Upayavira, Thanks for replying. I simply want to invoke a servlet which lists lots of debug information about our current environment (e.g. application context and DB related configs). It's just a starter to ensure all the expected environment parameters are correct. Thanks, AG

Re: Simple question

2005-08-02 Thread Ron Wheeler
Is there an example in the samples that gets this type of information anddisplays it? http://localhost:8080/cocoon/samples/status.html Antony Grinyer wrote: Hi Upayavira, Thanks for replying. I simply want to invoke a servlet which lists lots of debug information about our current

Re: Simple question

2005-08-02 Thread Upayavira
Antony Grinyer wrote: Hi Upayavira, Thanks for replying. I simply want to invoke a servlet which lists lots of debug information about our current environment (e.g. application context and DB related configs). It's just a starter to ensure all the expected environment parameters are correct.

RE: Simple question

2005-08-02 Thread Antony Grinyer
Thanks Ron, I'll take a look. Upayavira - I have little experience with Cocoon so I cannot comment on a better Cocoon oriented way yet. The servlet itself will eventually be invoked from HTML forms and will do things such as authentication and queries to databases - so I just needed to know how

AW: AW: AW: Accessing the cocoon session from my Hibernate User-Type

2005-08-02 Thread Messing, Elad
Thanks Johannes for the needed remarks ! I have already implemented it and it works quite well. Now for some testing with multi users... Elad -Ursprüngliche Nachricht- Von: Johannes Textor [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 2. August 2005 14:09 An: users@cocoon.apache.org

RE: Simple question

2005-08-02 Thread Antony Grinyer
Just had a look in Cocoon 2.1.7 - doesn't seem to have the status.html example? Thanks Ant -Original Message- From: Ron Wheeler [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 01:53 pm To: users@cocoon.apache.org Subject: Re: Simple question Is there an example in the samples

Re: Simple question

2005-08-02 Thread Upayavira
Antony Grinyer wrote: Just had a look in Cocoon 2.1.7 - doesn't seem to have the status.html example? http://localhost:/samples/status.html works for me. Go to http://localhost:, click on samples, then, in the middle, on the right, you'll see System Tools and Pages. Beneath that is

Re: Simple question

2005-08-02 Thread Conor McLaughlin
Any word yet? - Original Message - From: Upayavira [EMAIL PROTECTED] To: users@cocoon.apache.org Sent: Tuesday, August 02, 2005 2:37 PM Subject: Re: Simple question Antony Grinyer wrote: Just had a look in Cocoon 2.1.7 - doesn't seem to have the status.html example?

RE: Simple question

2005-08-02 Thread Antony Grinyer
Ahh, found it thanks (bare with a Cocoon newbie here) Still doesn't show how I invoke a servlet in the sitemap though :-( Sorry for being dumb. Thanks AG -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 02:37 pm To: users@cocoon.apache.org Subject:

expected behaviour: global vars in flowscript

2005-08-02 Thread Seon Lee
Hey gang, I'd like your input on some anomalous behaviour I am experiencing in my 2.1.7 flowscript. I have a function defined in javascript that expects a global var to be available at the point in time it is invoked. However, this is not the case -- the function is unable to see the recently

Re: Authentication Framework: Separate pipelines required for public versus priv

2005-08-02 Thread Cocoon User
Thanks for your response. I actually found a solution. Using a parameter selector I can choose to auth-protect or not. Therefore,the same pipeline can be protected or not protected based on whether the page is public or private.. This works. I have tested it. However I have some larger

XPathExceptionSelector

2005-08-02 Thread George V. Prascharuk
Hi everybody! Sorry for my bad English. I have a problem with XPathExceptionSelector. I am try to make error handling using this selector. I have a exception class public class NewInstanceException extends CommonException { public NewInstanceException(String message, int error_code) {

Re: Authentication in Cocoon against MS-AD

2005-08-02 Thread Werner
Hello Antonio, many thanks for your answer! I'll try approach 2 first, this seems to be OK for the project. The mail addresses are no DNs by definition, but unique in our case. Werner Antonio Fiol Bonnín wrote: Yes, you can user the LDAP transformer. However, you may use two different

Job Offer

2005-08-02 Thread André Häusling
Hello, WEB.DE AG Germany (www.web.de) is looking for a software developer with cocoon experiences Your responsibilities at WEB.DE will be: - further development of our core product in the RD and Test area under Linux and Windows - opportunity to impact the system and software

Re: error-handling on a cincluded pipeline only

2005-08-02 Thread Philippe Guillard
Thanks a lot Yvan. I didn't understand why it is not possible with cocoon protocol but it helped. Phil Janet Yvan wrote: Hi. You may have to call the pipeline which uses the cinclude from another pipeline which will render the whole things except the cinclude. map:pipeline map:match

Accessing App Context from a CronJob

2005-08-02 Thread Owen Tallman
Hello, From a CronJob componentI need to access our ApplicationContext object which gets initialized by a ServletContextListener before Cocoon starts. If this were a sitemap component, it would have a setup method that got called with an ObjectModel map, so I could call

Re: Accessing App Context from a CronJob

2005-08-02 Thread footh
Try implementing the Contextualizable interface which will give you the Avalon context. Then call the getObjectModel static method of the ContextHelper class and pass in the Avalon context. From there you can use your ObjectModelHelper, or just retrieve the object returned in the Map that is

[Portal-tools] i18n problem with tool plugins

2005-08-02 Thread Nick Goupinets
Hi everybody, I am trying to integrate portal tools into the customized version of the portal (which was recently upgraded to Cocoon 2.1.7). I run into a problem with i18n. When root sitemap of Portal Tools is accessed: http://localhost:8080/portal/portal/tools/functions/copletManagement

Re: Accessing App Context from a CronJob

2005-08-02 Thread Owen Tallman
Excellent! I don't know how long I would have had to grope around to figure that out. Thanks! For the record, here's a code snippet of the working result, after adding the Contextualizable interface: // org.apache.cocoon.environment.Context (not Avalon context) private Context

Re: Accessing App Context from a CronJob

2005-08-02 Thread footh
no problem, I spent many hours over the last week poring over documents and code to figure out something very similar. The least I could do was spare someone else the headache (although I did learn alot). --- Owen Tallman [EMAIL PROTECTED] wrote: Excellent! I don't know how long I would have

Re: [Portal-tools] i18n problem with tool plugins

2005-08-02 Thread Jens Maukisch
Hi, just a very short general answer to the problems with the portal tools an i18n: The i18n stuff in the tools does not work very well in general and is more or less a (bad) hack that we've developed. There were some people some time ago with similar problems, but due to my studies and exams I

[FYI] cocoon.zone demo is online

2005-08-02 Thread Bertrand Delacretaz
A live demo of Cocoon 2.1.7 is now available at http://cocoon.zones.apache.org/ , among other things. It's been running for a while, but CSS and other things did not work properly, this is fixed now. We hope to have up-to-date demos of the latest and greatest SVN code there as well, we'll

Re: [Portal-tools] i18n problem with tool plugins

2005-08-02 Thread Nick Goupinets
Hi Jens, Thank you very much for your reply. I look forward to trying out some of the new i18n features for the portal tools. It's great to know that there's something cooking :). In the mean time, I just wondering if there is support for i18n of portal tab title and coplet titles planned?

Trying to use Cocoon 2.1.7 as a command-line tool

2005-08-02 Thread Philippe Faehndrich
Hello, I'm trying to use Cocoon 2.1.7 as a command-line tool. It seems I have a few problems. If I run ./cocoon.sh cli, I get the following error: ERROR 2005-08-02 23:24:16.886 [] (): Could not find the configuration file. FATAL_E 2005-08-02 23:24:16.946 [] (): Exception

Application Devloper Job [Boston, Raleigh-Durham, Princeton, Detroit]

2005-08-02 Thread Brad Kain
Job Title: Application Devloper Location: Flexible, but prefer candidates in Boston, Raleigh-Durham, Princeton, or Detroit Quoin is an application development and system integration company that specializes in software development using Apache Cocoon. We have an immediate opening for an

Re: Job Offer

2005-08-02 Thread Adriano Smith
dear sir, Is this job offer only for people from germany or for othercoutries also ? regards Smith