AW: Setting the Locale during login

2004-12-08 Thread Merico Raffaele
Hi Andrew

I have seen a mail on this list telling you to use cocoon:raw. Rereading the
following document 
http://cocoon.apache.org/2.1/developing/webapps/authentication.html, I think
that this measure could solve your problem. In this document there is a note
regarding cocoon:raw that says:
---
You might be wondering why we explicitly pass the request parameters on to
the internal pipeline call. Note that the authentication resource of the
portalhandler is defined by cocoon:raw. By using this, no request parameter
of the original request is passed on to the internal pipeline by default and
therefore we have to define them explicitly. If you use cocoon: then the
parameters of the form are by default passed on to the authentication
resource and we could omit the parameter definition from above. But we feel
that it is safer to explicitly define them.
---

Raffaele

> -Ursprüngliche Nachricht-
> Von: Andrew MacDonald [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 8. Dezember 2004 18:20
> An: [EMAIL PROTECTED]
> Betreff: AW: Setting the Locale during login
> 
> 
> Thank you for the reply Raffaele but it does not solve
> my problem entirely.  Let me try to explain it more
> clearly.  When the user logs in, a default locale is
> sent as a request parameter:
> 
>  action="auth?resource=portal&locale=en_CA">
> 
> However, some users might have a different locale
> stored in their preferences on our server.  What I'd
> like to do is replace the default locale with their
> preferred locale during the login process, so that it
> will already be set when they are logged in. 
> Currently, I am setting the user's locale preference
> in their session in flow:
> 
> if (authLocale != null && authLocale != "") {
>   locale = authLocale;
> }
> cocoon.session.setAttribute("locale", locale);
> 
> ...where locale is the default locale, and authLocale
> is the user's locale preference.  However, their
> preference doesn't take effect immediately, because
> the locale from the login is still appended as a
> request parameter on the URL.  Once they click around
> the site and the request parameter is lost, then the
> user's locale preference in the session gets used.
> 
> Any ideas on how I can set the locale with the user's
> preference before sending the main portal page (that
> they see after logging in)?
> 
> Thanks,
> Andrew MacDonald
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile phone. 
> http://mobile.yahoo.com/maildemo 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 

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



Re: adding personal blocks to Cocoon build (was: 2.1.6 build fails looking for TraXLiaison)

2004-12-08 Thread Bertrand Delacretaz
Le 8 déc. 04, à 23:17, Joerg Heinicke a écrit :
...If you need some additional configuration in Cocoon files like 
cocoon.xconf you have to write some xpatch files which get merged with 
the main cocoon.xconf (and maybe others)

...I would really wonder if there are any online instructions about 
doing this. So learning by doing/copying & pasting from the existent 
blocks will be the way to go. The most important parts I hopefully 
mentioned above
http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16 is a good 
start for helping build your project, including xconf files. It doesn't 
handle the gump descriptor but this is not really needed for standalone 
projects.

-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


RE: Cocoon-centric approach to customer configuration

2004-12-08 Thread Adam Ratcliffe
Hi Jorg

I had a look at the authentication application feature
http://cocoon.apache.org/2.1/developing/webapps/authentication.html#Applicat
ion+Management

as this provides a way of getting customer-specific configuration data into
the
user's authentication context. Presumably I could then use the
CocoonComponentManager to
lookup the SessionManager and get full access to the configuration from any
of my
business objects or within the Flow layer.

I generally like this approach but I think I have an issue for customer
sites that don't require
a user to authenticate themself as the configuration is only loaded after a
successful
authentication. Maybe for these applications I could programatically create
the authentication
context and load the configuration into it via the AuthenticationManager
component which
provides a createApplicationContext() method.  This does seem like a bit of
a subversion of
the authentication framework, maybe side effects?

An alternative I'm considering is Commons Configuration. This provides a
generic
interface for configuration data from a variety of data sources, file, JDBC
etc.
A configuration object could be created for each customer configuration and
put into a Store,
then retrieved and set in the session when a user requests a URL belonging
to that customer.

As you pointed out this is probably getting more into the area of
application architecture
than cocoon usage specific. If you do have the time I'd be interested in
your view.

Cheers
Adam



-Original Message-
From: Jorg Heymans [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 7 December 2004 6:11 a.m.
To: [EMAIL PROTECTED]
Subject: Re: Cocoon-centric approach to customer configuration


Adam Ratcliffe wrote:
> Hi there,
>
> I'm working on a Cocoon application that will be a hosted solution. I
> need to maintain independent configuration data for each customer
> related to such things as datasources, feature set etc. Because of the
> need to keep customer specific configuration separate from general
> system configuration I don't want to use cocoon.xconf, furthermore I'd
> like to be able to setup new customers without requiring a server restart.

This is very much an application architecture question rather than
cocoon specific IMO. Adding new customer configurations at runtime is
something you should handle yourself in the application, there might be
cocoon components that help you do this but there is no clear-cut plugin
or component for this.

HTH, if not rephrase your question to be a bit more specific?

Regards
Jorg



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



Re: adding personal blocks to Cocoon build (was: 2.1.6 build fails looking for TraXLiaison)

2004-12-08 Thread Antonio Gallardo
Hi Bruce,

can you wikify it? ;-)

Best Regards,

Antonio Gallardo

On Mie, 8 de Diciembre de 2004, 16:41, Bruce Robertson dijo:
> Quoting Joerg Heinicke <[EMAIL PROTECTED]>:
>
>> On 08.12.2004 23:01, Greg Newton wrote:
>>
>> > I want to incorporate the eXist xml database (http://exist-db.org/)
>> into
>> > my builds of Cocoon and I'd like to do it as a block (unless there are
>>
>> > compelling reasons to do it another way).
>> >
>> > Are there good (read no assumptions made about my competence level)
>> > online instructions for doing this, or is this something that really
>>
>> > requires alot of experience to do?
>> >
>> > There is a fellow that does this very thing (eXist as block) but I'd
>>
>> > like to learn *how* to do it rather than relying on others to do it
>> for me.
>>
>> There is not much meaning about a Cocoon *block* at the moment as it is
>>
>> more or less only a directory structure. Having the dirs and files at
>> the correct place lets them get incorporated into a Cocoon build.
>>
>> If you need some additional configuration in Cocoon files like
>> cocoon.xconf you have to write some xpatch files which get merged with
>>
>> the main cocoon.xconf (and maybe others).
>>
>> A third issue is the gump descriptor. I think you need an entry there to
>>
>> get your block added to the list of to-be-build blocks, but I do not
>> really know.
>>
>> I would really wonder if there are any online instructions about doing
>>
>> this. So learning by doing/copying & pasting from the existent blocks
>> will be the way to go. The most important parts I hopefully mentioned
>> above.
>>
>> Joerg
>
>
> One additional step is not mentioned in Joerg's description. You must get
> cocoon to build its xpatch task code before you can run it over this and
> that. A sample from the heml build.xml file is:
>
> 
> 
>
>
> 
>dir="${cocoon.home}" target="init-tasks"/>
>
>
>  classpath="${cocoon.ant.tasks}"/>
> 
>
>
> 
>   includes="xpatches/*.xgump"
> />
> 
>
>
> 
>  includes="xpatches/*.xjars"
> />
> 
>
>
> If someone is interested in doing this with their own project, they would
> probably find the exist_as_block code above the easiest to pick apart.
>
> Yrs,
> --
> Bruce Robertson,
> Dept. of Classics, Mount Allison University
> http://heml.mta.ca
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Antonio Gallardo
On Mie, 8 de Diciembre de 2004, 16:52, Joerg Heinicke dijo:
> On 08.12.2004 23:46, Bruce Robertson wrote:
>
>>>I'm impressed! What a community :-) Unfortunately the main link to
>>>http://heml.mta.ca/releases/exist_as_block/ is broken.
>>
>> Odd. I'm sitting at that machine right now, and it works locally and
>> when I
>> ssh into a machine at virginia.edu
>
> Strange, yes, it works. But few minutes ago I got a 404. Sorry for any
> confusion ;-)

Perhaps a DNS trouble. That could happen, when a lot of request to the
same DNS server, the requested the name is not on the cache => you get a
timeout and the browser just send you a 404 error. Of course there can be
other similars situations.

Best Regards,

Antonio Gallardo


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



Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Antonio Gallardo
On Mie, 8 de Diciembre de 2004, 16:46, Bruce Robertson dijo:
> Quoting Joerg Heinicke <[EMAIL PROTECTED]>:
>
>
>> I'm impressed! What a community :-) Unfortunately the main link to
>> http://heml.mta.ca/releases/exist_as_block/ is broken.

??. The link works for me too. ;-)

>
> Odd. I'm sitting at that machine right now, and it works locally and when
> I
> ssh into a machine at virginia.edu

BTW, I am not sitting on the refered computer right now! Instead at home
few thousand of kilometers away. ;-)

Best Regards,

Antonio Gallardo.


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



jsp:include and JSP-Reader (IllegalStateExc.)

2004-12-08 Thread Dirk Reiss
Hello,

I have a jsp-file (read using JSP-Reader) that includes another jsp-file using
. 

This should be dynamically evaluated as it is in Tomcat alone, but what I get 
is an IllegalStateException with the attached stacktrace.

I use Cocoon 2.1.4 running as webapp in Tomcat 5.5.4.

Any help would be appreciated.

Thanks in advance,

Cheers,
Dirk

PS: attached stacktrace

Original Exception: java.lang.IllegalStateException
         at 
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:62)
 

         at 
org.apache.cocoon.servlet.CocoonServlet.manageException(CocoonServlet.java:1269)
 

         at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1158)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 

         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 

         at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:674)
 

         at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:576)
 

         at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:501)
 

         at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) 

         at 
org.apache.jsp.smartframe.smartapps.base.jsp.base_if_jsp._jspService(org.apache.jsp.smartframe.smartapps.base.jsp.base_if_jsp:45)
 

         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) 

         at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at 
org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineImpl.java:109)
 

         at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 

         at java.lang.reflect.Method.invoke(Method.java:324)
         at 
org.apache.avalon.excalibur.component.ComponentProxyGenerator$ComponentInvocationHandler.invoke(ComponentProxyGenerator.java:182)
 

         at $Proxy3.executeJSP(Unknown Source)
         at org.apache.cocoon.reading.JSPReader.generate(JSPReader.java:141)
         at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processReader(AbstractCachingProcessingPipeline.java:819)
 

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

         at 
org.apache.cocoon.components.treeprocessor.sitemap.ReadNode.invoke(ReadNode.java:119)
 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        

Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Joerg Heinicke
On 08.12.2004 23:46, Bruce Robertson wrote:
I'm impressed! What a community :-) Unfortunately the main link to 
http://heml.mta.ca/releases/exist_as_block/ is broken.
Odd. I'm sitting at that machine right now, and it works locally and when I
ssh into a machine at virginia.edu
Strange, yes, it works. But few minutes ago I got a 404. Sorry for any 
confusion ;-)

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


Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Bruce Robertson
Quoting Joerg Heinicke <[EMAIL PROTECTED]>:

 
> I'm impressed! What a community :-) Unfortunately the main link to 
> http://heml.mta.ca/releases/exist_as_block/ is broken.
> 
> Joerg

Odd. I'm sitting at that machine right now, and it works locally and when I
ssh into a machine at virginia.edu

Yrs,

-- 
Bruce Robertson, 
Dept. of Classics, Mount Allison University
http://heml.mta.ca

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



Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Joerg Heinicke
On 08.12.2004 23:13, Antonio Gallardo wrote:
Greg:
I found on cocoon wiki some links to exists:
http://wiki.apache.org/cocoon/
Some of them:
http://wiki.apache.org/cocoon/EXistAsBlock
http://wiki.apache.org/cocoon/EXistInCocoon
But you can search for other links inside the wiki. :-D
I'm impressed! What a community :-) Unfortunately the main link to 
http://heml.mta.ca/releases/exist_as_block/ is broken.

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


Re: adding personal blocks to Cocoon build (was: 2.1.6 build fails looking for TraXLiaison)

2004-12-08 Thread Bruce Robertson
Quoting Joerg Heinicke <[EMAIL PROTECTED]>:

> On 08.12.2004 23:01, Greg Newton wrote:
> 
> > I want to incorporate the eXist xml database (http://exist-db.org/)
> into 
> > my builds of Cocoon and I'd like to do it as a block (unless there are
> 
> > compelling reasons to do it another way).
> > 
> > Are there good (read no assumptions made about my competence level) 
> > online instructions for doing this, or is this something that really
> 
> > requires alot of experience to do?
> > 
> > There is a fellow that does this very thing (eXist as block) but I'd
> 
> > like to learn *how* to do it rather than relying on others to do it
> for me.
> 
> There is not much meaning about a Cocoon *block* at the moment as it is
> 
> more or less only a directory structure. Having the dirs and files at 
> the correct place lets them get incorporated into a Cocoon build.
> 
> If you need some additional configuration in Cocoon files like 
> cocoon.xconf you have to write some xpatch files which get merged with
> 
> the main cocoon.xconf (and maybe others).
> 
> A third issue is the gump descriptor. I think you need an entry there to
> 
> get your block added to the list of to-be-build blocks, but I do not 
> really know.
> 
> I would really wonder if there are any online instructions about doing
> 
> this. So learning by doing/copying & pasting from the existent blocks 
> will be the way to go. The most important parts I hopefully mentioned
> above.
> 
> Joerg


One additional step is not mentioned in Joerg's description. You must get
cocoon to build its xpatch task code before you can run it over this and
that. A sample from the heml build.xml file is:



  
 

  
  
 


  
 



  
 





If someone is interested in doing this with their own project, they would
probably find the exist_as_block code above the easiest to pick apart. 

Yrs,
-- 
Bruce Robertson, 
Dept. of Classics, Mount Allison University
http://heml.mta.ca

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



Re: adding personal blocks to Cocoon build

2004-12-08 Thread Upayavira
Joerg Heinicke wrote:
On 08.12.2004 23:01, Greg Newton wrote:
I want to incorporate the eXist xml database (http://exist-db.org/) 
into my builds of Cocoon and I'd like to do it as a block (unless 
there are compelling reasons to do it another way).

Are there good (read no assumptions made about my competence level) 
online instructions for doing this, or is this something that really 
requires alot of experience to do?

There is a fellow that does this very thing (eXist as block) but I'd 
like to learn *how* to do it rather than relying on others to do it 
for me.

There is not much meaning about a Cocoon *block* at the moment as it 
is more or less only a directory structure. Having the dirs and files 
at the correct place lets them get incorporated into a Cocoon build.

If you need some additional configuration in Cocoon files like 
cocoon.xconf you have to write some xpatch files which get merged with 
the main cocoon.xconf (and maybe others).

A third issue is the gump descriptor. I think you need an entry there 
to get your block added to the list of to-be-build blocks, but I do 
not really know.

I would really wonder if there are any online instructions about doing 
this. So learning by doing/copying & pasting from the existent blocks 
will be the way to go. The most important parts I hopefully mentioned 
above.
From tools/targets/compile-build.xml:
 
 
   
   
 
So, it seems that the blocks to be built come from the gump.xml file. 
Also, looking at tools/src/blocks-build.xsl, it seems that only blocks 
who's names begin with 'cocoon-block-' are included in the blocks build.

It probably wouldn't be hard to add a build process to include some 
external blocks, by transforming a local.gump.xml, or similar.

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


adding personal blocks to Cocoon build (was: 2.1.6 build fails looking for TraXLiaison)

2004-12-08 Thread Joerg Heinicke
On 08.12.2004 23:01, Greg Newton wrote:
I want to incorporate the eXist xml database (http://exist-db.org/) into 
my builds of Cocoon and I'd like to do it as a block (unless there are 
compelling reasons to do it another way).

Are there good (read no assumptions made about my competence level) 
online instructions for doing this, or is this something that really 
requires alot of experience to do?

There is a fellow that does this very thing (eXist as block) but I'd 
like to learn *how* to do it rather than relying on others to do it for me.
There is not much meaning about a Cocoon *block* at the moment as it is 
more or less only a directory structure. Having the dirs and files at 
the correct place lets them get incorporated into a Cocoon build.

If you need some additional configuration in Cocoon files like 
cocoon.xconf you have to write some xpatch files which get merged with 
the main cocoon.xconf (and maybe others).

A third issue is the gump descriptor. I think you need an entry there to 
get your block added to the list of to-be-build blocks, but I do not 
really know.

I would really wonder if there are any online instructions about doing 
this. So learning by doing/copying & pasting from the existent blocks 
will be the way to go. The most important parts I hopefully mentioned above.

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


Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Antonio Gallardo
Greg:

I found on cocoon wiki some links to exists:

http://wiki.apache.org/cocoon/

Some of them:
http://wiki.apache.org/cocoon/EXistAsBlock
http://wiki.apache.org/cocoon/EXistInCocoon

But you can search for other links inside the wiki. :-D

Best Regards,

Antonio Gallardo

On Mie, 8 de Diciembre de 2004, 16:01, Greg Newton dijo:
> Thanks Antonio and Joerg,
> With your help I've got Cocoon building, now on to the question I
> originally wanted to ask:
>
> I want to incorporate the eXist xml database (http://exist-db.org/) into
> my builds of Cocoon and I'd like to do it as a block (unless there are
> compelling reasons to do it another way).
>
> Are there good (read no assumptions made about my competence level)
> online instructions for doing this, or is this something that really
> requires alot of experience to do?
>
> There is a fellow that does this very thing (eXist as block) but I'd
> like to learn *how* to do it rather than relying on others to do it for
> me.
>
> Thanks again for the rapid assistance,
> Greg
>
> Antonio Gallardo wrote:
>> On Mie, 8 de Diciembre de 2004, 13:24, gregster dijo:
>>
>>>I'm trying to run a build of 2.1.6 and I'm getting a failure like this:
>>>
>>>BUILD FAILED
>>>/home/myHomeFolder/cocoon-2.1.6/tools/targets/compile-build.xml:223:
>>>java.lang.ClassNotFoundException:
>>>org.apache.tools.ant.taskdefs.optional.TraXLiaison
>>>
>>>My system is Linux (Fedora Core 3)/Tomcat 5.0/JDK1.5.
>>>
>>>Can anyone tell me if this error is a result of my own installation of
>>>Ant (or any other package) or if I need to edit anything in my Cocoon
>>>source folder?
>>
>>
>> Hi Greg, please check this page:
>>
>> http://wiki.apache.org/cocoon/Installing?action=highlight&value=fedora
>>
>> I am using FC3 and FC2 with java 1.4.2 and 1.5. If you have more
>> troubles,
>> let us know.
>>
>> Best Regards,
>>
>> Antonio Gallardo
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Greg Newton
Thanks Antonio and Joerg,
With your help I've got Cocoon building, now on to the question I 
originally wanted to ask:

I want to incorporate the eXist xml database (http://exist-db.org/) into 
my builds of Cocoon and I'd like to do it as a block (unless there are 
compelling reasons to do it another way).

Are there good (read no assumptions made about my competence level) 
online instructions for doing this, or is this something that really 
requires alot of experience to do?

There is a fellow that does this very thing (eXist as block) but I'd 
like to learn *how* to do it rather than relying on others to do it for me.

Thanks again for the rapid assistance,
Greg
Antonio Gallardo wrote:
On Mie, 8 de Diciembre de 2004, 13:24, gregster dijo:
I'm trying to run a build of 2.1.6 and I'm getting a failure like this:
BUILD FAILED
/home/myHomeFolder/cocoon-2.1.6/tools/targets/compile-build.xml:223:
java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.TraXLiaison
My system is Linux (Fedora Core 3)/Tomcat 5.0/JDK1.5.
Can anyone tell me if this error is a result of my own installation of
Ant (or any other package) or if I need to edit anything in my Cocoon
source folder?

Hi Greg, please check this page:
http://wiki.apache.org/cocoon/Installing?action=highlight&value=fedora
I am using FC3 and FC2 with java 1.4.2 and 1.5. If you have more troubles,
let us know.
Best Regards,
Antonio Gallardo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Antonio Gallardo
On Mie, 8 de Diciembre de 2004, 13:24, gregster dijo:
> I'm trying to run a build of 2.1.6 and I'm getting a failure like this:
>
> BUILD FAILED
> /home/myHomeFolder/cocoon-2.1.6/tools/targets/compile-build.xml:223:
> java.lang.ClassNotFoundException:
> org.apache.tools.ant.taskdefs.optional.TraXLiaison
>
> My system is Linux (Fedora Core 3)/Tomcat 5.0/JDK1.5.
>
> Can anyone tell me if this error is a result of my own installation of
> Ant (or any other package) or if I need to edit anything in my Cocoon
> source folder?

Hi Greg, please check this page:

http://wiki.apache.org/cocoon/Installing?action=highlight&value=fedora

I am using FC3 and FC2 with java 1.4.2 and 1.5. If you have more troubles,
let us know.

Best Regards,

Antonio Gallardo


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



Re: 2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread Joerg Heinicke
On 08.12.2004 20:24, gregster wrote:
I'm trying to run a build of 2.1.6 and I'm getting a failure like this:
BUILD FAILED
/home/myHomeFolder/cocoon-2.1.6/tools/targets/compile-build.xml:223: 
java.lang.ClassNotFoundException: 
org.apache.tools.ant.taskdefs.optional.TraXLiaison
Never heard of TraXLiaison and this error.
My system is Linux (Fedora Core 3)/Tomcat 5.0/JDK1.5.

Can anyone tell me if this error is a result of my own installation of 
Ant (or any other package) or if I need to edit anything in my Cocoon 
source folder?
But there are issues with Fedora and its Ant regularly. But they were 
about Loader.java/.class, you should find messages about it in the archives.

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


java.net.MalformedURLException: The cocoon protocol can not be used outside an environment.

2004-12-08 Thread Stefan Geelen
Hi,

we are upgrading from 2.1.4 to 2.1.6 and are having following problem:

In an xsp page we have following piece of code:


  ...
  body= ;
  ... 


When we run this page via the browser the xsp works correctly.

When this xsp is run using the Cron scheduler following error is reported:

org.apache.avalon.framework.CascadingRuntimeException: CronJob
send-new-version-in-account raised an exception
at 
org.apache.cocoon.components.cron.TestCronJob.execute(TestCronJob.java:99)
  

Caused by: java.net.MalformedURLException: The cocoon protocol can not
be used outside an environment. at
org.apache.cocoon.components.source.impl.SitemapSource.(SitemapSource.java:118)
...

The xsp page runs fine in 2.1.4.

Any solutions ?

Regards,

Stefan

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



Re: AW: Setting the Locale during login

2004-12-08 Thread Ralph Goers
Andrew MacDonald said:
> Any ideas on how I can set the locale with the user's
> preference before sending the main portal page (that
> they see after logging in)?
>

If you use cocoon:raw: as the protocol on your redirect pipeline, the
login request parameters should be dropped.


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



Re: Cocoon portal tabs

2004-12-08 Thread Nick Goupinets
Hi Anna,
I guess I was asking what is the underlying mechanism you use that 
switches tabs. I have no experience at all with "Portal Page Labels", if 
that's what you got. Anyhow, I hope that the hack that I will suggest 
will be suitable for any tab-switching algorithm.

In the main portal sitemap (the one that contains configuration for the 
portal), there is "auth" pipeline. If a user is successfully 
authenticated this pipeline does a redirect depending on the value of 
request parameter "resource".


By default, this "resource" parameter is hard coded to be "portal" in 
login-html.xsl (part of the skin - responsible for rendering the login 
coplet).

In case pattern like "portal?id=tab2" works for you, all you have to do 
is to add that id parameter to the redirection URL, so that it will look 
like this:


In case you have access to the authentication pipelines, you can store 
the tab value in the authentication context (read more about it here:
http://cocoon.apache.org/2.1/developing/webapps/authentication.html ).

So, if you have the following authentication info for a user:

Unique ID of the user in the system
rolename 
tab2

Any additional optional information can be supplied here.
This will be stored in the session for later retrieval


Then the redirect could look like:

I hope that this will work for you, but I haven't tried it (so the 
advice will be purely theoretical).

Sincerely,
Nick.
PS. Here is the auth pipeline:
  
  


  
  







  
  
  
  

  
  

  
  

Anna Bikkina wrote:
What I really want is to display all tabs for all users but depending on
which user is logged in I want to have the right tab selected first. I
want the order of the tabs also to remain same. Just the right tab has
to be selected. 

When I was doing href="portal?id=tab2" it is going to tab2 but to do
that I should be in the portal page. I want tab2 to be selected for the
users as he gets to the portal page.
Thank your replying back.
Anna.

On Tue, 2004-12-07 at 17:32, Nick Goupinets wrote:
Hi Anna,
I am not exactly sure which features you are talking about. I have never 
seen switching portal tabs just based on the "id" request parameter.

Can you provide more information?
BTW, if you want to display different pages for different users, you can 
use very fine grained profiling system. Just modify the pipelines that 
fetch layout information.

Sincerely,
Nick.
Anna Bikkina wrote:
Can someone please help me get this working?
On Mon, 2004-12-06 at 13:13, Anna Bikkina wrote:

Hi,
I am using cocoon portal features. In my portal page I have tabs. When I
choose "portal" it goes to the first tab in my application. I want the
application to go to different tabs depending on which user is logged
in. so when I redirect to portal after I login . I tried

but that didnt work. When I use hyperlinks that say 
Can someone please help me how to solve this problem.
Thanks,
Anna.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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

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


2.1.6 build fails looking for TraXLiaison

2004-12-08 Thread gregster
I'm trying to run a build of 2.1.6 and I'm getting a failure like this:
BUILD FAILED
/home/myHomeFolder/cocoon-2.1.6/tools/targets/compile-build.xml:223: 
java.lang.ClassNotFoundException: 
org.apache.tools.ant.taskdefs.optional.TraXLiaison

My system is Linux (Fedora Core 3)/Tomcat 5.0/JDK1.5.
Can anyone tell me if this error is a result of my own installation of 
Ant (or any other package) or if I need to edit anything in my Cocoon 
source folder?

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


Re: Cocoon Timer?

2004-12-08 Thread Tony Collen
Mike Dickson wrote:
I need to invoke a Cocoon URL every few seconds day and night. Other 
than having an external Servlet/Java Application to call the Cocoon URL, 
is there any such thing in Cocoon?
 
Thanks,
 
Mike D.

Mike,
Check out the "cron" block.
Alternatively you could use wget as a unix cron job, which might be easier.
Tony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Cocoon Timer?

2004-12-08 Thread Mike Dickson



I need to invoke a 
Cocoon URL every few seconds day and night. Other than having an 
external Servlet/Java Application to call the Cocoon URL, is there any 
such thing in Cocoon?
 
Thanks,
 
Mike 
D.


Re: Cocoon portal tabs

2004-12-08 Thread Anna Bikkina
What I really want is to display all tabs for all users but depending on
which user is logged in I want to have the right tab selected first. I
want the order of the tabs also to remain same. Just the right tab has
to be selected. 

When I was doing href="portal?id=tab2" it is going to tab2 but to do
that I should be in the portal page. I want tab2 to be selected for the
users as he gets to the portal page.

Thank your replying back.

Anna.



On Tue, 2004-12-07 at 17:32, Nick Goupinets wrote:
> Hi Anna,
> 
> I am not exactly sure which features you are talking about. I have never 
> seen switching portal tabs just based on the "id" request parameter.
> 
> Can you provide more information?
> 
> BTW, if you want to display different pages for different users, you can 
> use very fine grained profiling system. Just modify the pipelines that 
> fetch layout information.
> 
> Sincerely,
> Nick.
> 
> Anna Bikkina wrote:
> > Can someone please help me get this working?
> > 
> > On Mon, 2004-12-06 at 13:13, Anna Bikkina wrote:
> > 
> >>Hi,
> >>
> >>I am using cocoon portal features. In my portal page I have tabs. When I
> >>choose "portal" it goes to the first tab in my application. I want the
> >>application to go to different tabs depending on which user is logged
> >>in. so when I redirect to portal after I login . I tried
> >>
> >>
> >>but that didnt work. When I use hyperlinks that say  >>href="portal?id=tab2" it goes to the respective tab. Not sure why
> >>redirect-to is not working..
> >>
> >>Can someone please help me how to solve this problem.
> >>
> >>Thanks,
> >>Anna.
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



AW: Setting the Locale during login

2004-12-08 Thread Andrew MacDonald
Thank you for the reply Raffaele but it does not solve
my problem entirely.  Let me try to explain it more
clearly.  When the user logs in, a default locale is
sent as a request parameter:



However, some users might have a different locale
stored in their preferences on our server.  What I'd
like to do is replace the default locale with their
preferred locale during the login process, so that it
will already be set when they are logged in. 
Currently, I am setting the user's locale preference
in their session in flow:

if (authLocale != null && authLocale != "") {
  locale = authLocale;
}
cocoon.session.setAttribute("locale", locale);

...where locale is the default locale, and authLocale
is the user's locale preference.  However, their
preference doesn't take effect immediately, because
the locale from the login is still appended as a
request parameter on the URL.  Once they click around
the site and the request parameter is lost, then the
user's locale preference in the session gets used.

Any ideas on how I can set the locale with the user's
preference before sending the main portal page (that
they see after logging in)?

Thanks,
Andrew MacDonald



__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-08 Thread Francois Jannin
Hi,
Correct syntax is : {request:remoteUser}
[EMAIL PROTECTED] wrote:
Hi all,
i want to use a sitemap parameter which refers to / use the 
request.getRemoteUser().

Here is my actual part of the sitemap:

   ?? thos doesn't work!!


How must i do this. Can anyone give me a tip?
Thanks for your help.
Gruß Dirk

Dirk Skirde
Hessische Zentrale für Datenverarbeitung
Mainzer Strasse 50  Raum 009
65189 Wiesbaden
Tel.:  +49 611 340 1941
Fax:   +49 611 340 5941
EMail: [EMAIL PROTECTED]
regards,
François Jannin - ENSEEIHT
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: URL re-writing max length

2004-12-08 Thread Phillip Nicolson
Thanks,

solved it straight away (little embarrassed to not have spotted it
myself, but the system had been working as was for months!)

On Wed, 2004-12-08 at 15:59, Upayavira wrote:
> Phillip Nicolson wrote:
> 
> >Hi,
> >
> >I am presently using cocoon with tomcat 5.0.19, and am occassionally
> >seeing the following problem:
> >
> >I create a form, based upon various astronomical tools. Depending on the
> >chosen tool the form will have a number of parameter fields, which may
> >contain extremely long input values (references to locations of files on
> >a grid system for example). Once submitted the values are used in a
> >cocoon action.
> >I am starting to see a problem for a particular tool which has >20 input
> >parameters, each of which may be dozens of characters long. When this
> >occurs pressing the submit button has no effect as the form is never
> >submitted.
> >Before I go mad investigating this can anyone tell me if there is an
> >issue with URL lengths?
> >  
> >
> You should use POST to submit a form, not GET. GET tacks the parameters 
> onto the URL, whereas POST includes the details within the body of the 
> request. With POST, you can send as much info as you like.
> 
> Your resulting HTML should say something like  action="yourpage">
> 
> Regards, Upayavira
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Phillip Nicolson
Department of Physics & Astronomy   Phone:  (0)116 2523581
University of Leicester Email:  [EMAIL PROTECTED]
LeicesterLE1 7RHWeb:http://www.astrogrid.org


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



Re: URL re-writing max length

2004-12-08 Thread Upayavira
Phillip Nicolson wrote:
Hi,
I am presently using cocoon with tomcat 5.0.19, and am occassionally
seeing the following problem:
I create a form, based upon various astronomical tools. Depending on the
chosen tool the form will have a number of parameter fields, which may
contain extremely long input values (references to locations of files on
a grid system for example). Once submitted the values are used in a
cocoon action.
I am starting to see a problem for a particular tool which has >20 input
parameters, each of which may be dozens of characters long. When this
occurs pressing the submit button has no effect as the form is never
submitted.
Before I go mad investigating this can anyone tell me if there is an
issue with URL lengths?
 

You should use POST to submit a form, not GET. GET tacks the parameters 
onto the URL, whereas POST includes the details within the body of the 
request. With POST, you can send as much info as you like.

Your resulting HTML should say something like 

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


URL re-writing max length

2004-12-08 Thread Phillip Nicolson
Hi,

I am presently using cocoon with tomcat 5.0.19, and am occassionally
seeing the following problem:

I create a form, based upon various astronomical tools. Depending on the
chosen tool the form will have a number of parameter fields, which may
contain extremely long input values (references to locations of files on
a grid system for example). Once submitted the values are used in a
cocoon action.
I am starting to see a problem for a particular tool which has >20 input
parameters, each of which may be dozens of characters long. When this
occurs pressing the submit button has no effect as the form is never
submitted.
Before I go mad investigating this can anyone tell me if there is an
issue with URL lengths?

thanks


-- 
Phillip Nicolson
Department of Physics & Astronomy   Phone:  (0)116 2523581
University of Leicester Email:  [EMAIL PROTECTED]
LeicesterLE1 7RHWeb:http://www.astrogrid.org


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



forms v2

2004-12-08 Thread Jan Hoskens
Hi,
I'm currently using forms.js v2 for one of my sites. This because I need 
the ability to create a form with a Node, not with a URI. This did help 
me at that time, but now I need to pass some bizdata to the 
form.showForm() function and it seems like v2 does not have a bizdata 
parameter and leaves me stuck there.

A while ago Bruno mentioned that v2 will be deprecated in the future, so 
I would like to return to the "normal" Forms.js. How can I have the Form 
creation based on a node when using this version?

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


Flow script and global variables

2004-12-08 Thread Timur Izhbulatov
Hi all! 

I want to export some of my global sitemap variables to the flow script in 
one place rather than pass them every time I call a flow script function 
from a pipeline. 

Seems that the only way to do this is calling java to get values of global 
sitemap variables and assign these values to flow script global varibales. 

Maybe there's another way. Any suggestions? 

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


Re: Regex doesn't work in XPathDirectoryGenerator

2004-12-08 Thread Markus Vaterlaus
Hello,

I don't get your setup: 
- are there several files called "book.xml" in the same directory
- or are there several direcotries each with a book.xml
- or do several files end with book.xml (e.q first-book.xml, second-book.xml)

However,  I think "^book\.xml$" would match all files named book.xml
in a certain directory.

Markus


On Wed, 08 Dec 2004 11:34:18 +0100, Stephan Coboos <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I'm using the XPathDirectoryGenerator to retrieve all files with name
> "book.xml" out of a certain folder. Therefore I'm using the parameter
> "xmlFiles" as you can see below:
> 
> 
> 
> But this regex doesn't work because always all files will be scanned.
> This doesn't work, too:
> 
> 
> 
> I'm not very familiar with regular expressions. But to search for all
> files with name "book.xml" this should be the reight regex: /book\.xml/
> right?
> 
> Thanks a lot!
> 
> Regards
> Stephan
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Regex doesn't work in XPathDirectoryGenerator

2004-12-08 Thread Stephan Coboos
Hello,
I'm using the XPathDirectoryGenerator to retrieve all files with name 
"book.xml" out of a certain folder. Therefore I'm using the parameter 
"xmlFiles" as you can see below:


But this regex doesn't work because always all files will be scanned. 
This doesn't work, too:


I'm not very familiar with regular expressions. But to search for all 
files with name "book.xml" this should be the reight regex: /book\.xml/ 
right?

Thanks a lot!
Regards
Stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Navigation problem

2004-12-08 Thread Oleksandr Filatov
Hello All!
I have problem with navigation in my cocoon application.
Let's see example.
http://server.com/appl/
where appl - my cocoon application.
It has folder login, news, and others.
XML data for html page is aggregating of three parts: header, footer and
body.
Navigation menu is in header part and it is hard coded like simple xml data.
Everything is ok if we is in root part, e.g. /appl/, but if we come to news,
for example, login link will be seemed like /appl/news/login/. So this is my
problem.
Is there some transparent solution for problem like mine, to handle
navigation menu in right way.

Thank you and best regards, 
Oleksandr Filatov.



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



Portal global questions CLI/Caching/i18n

2004-12-08 Thread pguillard
Hi,
Somebody has ideas / advices for these performance improve concerns with 
Portal Engine ?
- 1. I wonder if generating pages with CLI is possible and makes sense 
with Portal  (Of course for the anonymous part, not authenticated).
- 2. Then it comes to cache. I know i have caching from CachingURI 
coplets. For what i understand this is caching based on the user 
action/events, and even X anonymous sessions will launch X portal 
generations. So i use it but this will not really improve the generation 
of the anonymous part.
- 3. Then the only thing i'm sure i can do is caching the pipeline in 
the coplet, for instance caching XSP if the coplet is a XSP page
- 4. When it comes to i18n, i wonder if i should :
- 4.1 apply i18n on the portal entry level:
   
   ..  
   
(with localeAction)
   ..  
   
- 4.2 apply i18n on the coplet application sitemap, then for caching i 
should reflect the locale in the URI
- 4.3 When it comes to i18n with caching or offline page generation, i 
think standard way is to have the locale in the URI,
so i was even thinking of using as many portal folders as i have 
locales, with unic portal instance in cocoon.xconf, having :
http://localhost:/samples/blocks/portal_en/portal?
and http://localhost:/samples/blocks/portal_es/portal?

Any hint / experience on any point appreciated!!
Regards,
Phil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems installing cocoon 2.1.5.1 on BEA Weblogic 8.1 sp2

2004-12-08 Thread Jorg Heymans
Are you sure this is resolved in 2.1.6 ?
My colleague got it to work with following *evilness* :
#!/bin/zsh
for file in **/*(.)
  do (
  grep -qE 'org.mozilla.(javascript|classfile)' $file && (
  echo "patching $file..."
  sed 
's/org\(.\)mozilla\(.\)\(javascript\|classfile\)/org\1mozcoco\2\3/g' $file \
  > $file.new; mv $file.new $file
  )
  )
done

Applied to both rhino sources and cocoon, and everything seems to be 
working fine still.

Comments?
Jorg
Ralph Goers wrote:
I believe the issue with Rhino is resolved by using Cocoon 2.1.6. The
version of Rhino used in Cocoon in 2.1.5.1 appears to be incompatible with
the version in use by Weblogic.
Ralph
Jorg Heymans said:
Did you get any further on this? We are trying to do the same but are
running into classloader issues with rhino.
Has anyone solved the rhino issue on weblogic btw? We are operating on a
locked down environment and are basically only allowed to deploy our
webapp and restart the instance. Can one work around it given these
restrictions?
Regards
Jorg
Per Christian Engdal wrote:
Hi,
I have built a cocoon.war file, and deployed it on my BEA Weblogic 8.1
Sp2 (Windows 2000) installation. The deployment works without
exceptions, but when I try to access cocoon through
_http://localhost:80/cocoon_  I get the
following error message (stack
trace):
java.lang.NoClassDefFoundError: org/apache/log/Logger
at
org.apache.avalon.framework.logger.LogKitLogger.isWarnEnabled(LogKitLogger.java:122)
at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:797)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:518)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

I have added xercesImpl-2.6.2.jar and xml-apis.jar to the weblogic
server CLASSPATH. I have also checked the cocoon.war file to see if the
loggerkit-1.2.2.jar is included - it is!
Is there anybody with an idea about how to fix this ?
Regards,
Per-Christian Engdal


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


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


Re: How do I change my URL so that I don't access it through http://< webpage>:8888 ?

2004-12-08 Thread gounis

hi ben

your can

1. put apache at front of your servlet container (tomcat)

http://wiki.apache.org/cocoon/ApacheModProxy?action=highlight&value=proxy
http://wiki.apache.org/cocoon/VirtualHost?action=highlight&value=proxy

2. change your conatiner port to 80.


-- stavros 

On Wed, 8 Dec 2004, Ben Quartermaine wrote:

> 
> Hi.
> 
> I am having trouble setting up cocoon 2 so that I can access my home webpage
> without specifying the port number in the URL.. 
> 
> This is causing me problems as my DNS Service tells me that they can direct
> my Domain name to an IP address but not the port number. Can any one help
> me?
> 
> Thanks in advance
> 
> Ben
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



How do I change my URL so that I don't access it through http://< webpage>:8888 ?

2004-12-08 Thread Ben Quartermaine

Hi.

I am having trouble setting up cocoon 2 so that I can access my home webpage
without specifying the port number in the URL.. 

This is causing me problems as my DNS Service tells me that they can direct
my Domain name to an IP address but not the port number. Can any one help
me?

Thanks in advance

Ben

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



newlines to

2004-12-08 Thread Merico Raffaele
Dear Community

I'm looking for a way to translate the newlines in a text into HTML-
when serializing to HTML.
Can anybody give me a tip. I'm using cocoon.2.1.6 and saxonb.8.1.1.

Many thanks in advance ... Raffaele

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



Re: Cocoon portal tabs

2004-12-08 Thread Ralph Goers
pguillard wrote:
Hi,
If i guess right? you use Portal Page Labels and have set "id" instead 
of "pageLabel" in PageLabelManager component in cocoon.xconf?
I personnaly use bookmarks after login, and i don't see how it would 
be different with pageLabels, but a suggestion: pageLabel had a bug on 
unmaed portal tabs and a patch has been furnished, so eventually look 
at http://svn.apache.org/viewcvs?view=rev&rev=109890.

Phil
Interesting.  From the description I was guessing that bookmarks are 
being used (see the last Q & A on the bookmark wiki page).  I didn't 
reply because I don't use them.  I guess a little clarification is needed.

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