Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Søren Krum
Hi! Did you check that the jars you mention are not included over the dependency cocoon-mail-impl? If not, you could add these dependencies in your pom, then you should get them in your build. -- Med vennlig hilsen / kind regards Søren D. Krum Systemutvikler/system developer UNINETT FAS + 47

Logging question cocoon 2.2 tomcat 6

2010-03-16 Thread Søren Krum
Hello! i have a tomcat 6.0.20 and in it runs a application using cocoon. We did an upgrade from 2.1 to 2.2, which hm, yes worked after a while ;-) But there is something that confuses me: I find in the catalina.out (tomcats logging configuration we did not touch at all) i find a nice line

Strange encoding problem using forms

2010-02-11 Thread Søren Krum
Hello! I have a small problem with a cocoon application and forms. The application runs fine on one machine, but for some reason we want to have a mirror of that machine. Higg Avalability and failover... And here some more details: The part failing is a simple form build up via cocoon forms (we

Re: Strange encoding problem using forms

2010-02-11 Thread Søren Krum
Hi again! :-) You see me smiling, the file encoding on the one machine is utf-8, there it works, and the other is iso-8859-1. I am not sure if it fixes the problem if i change it, but that i figure out soon (if i have figured out why this differs at all, and how to change it.) :-) Thx for this

Re: Strange encoding problem using forms

2010-02-11 Thread Søren Krum
And that fixed the problem! Winner of the cake is Dominic Mitchell, thanks a lot :-) -- Med vennlig hilsen Søren D. Krum - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail:

Re: Hibernate and Cocoon 2.2 - best practice

2009-10-26 Thread Søren Krum
Hi! We are using cocoon 2.2 and hibernate. I am not sure if we choosed the optimal way to integrate these both, but for us it works. We configured all database connections via spring as DataSource, and these we use further on for the hibernate session factories and for the old avalon data

Re: using Spring AOP in cocoon block

2009-10-06 Thread Søren Krum
Hi! did you have a look around here? http://forum.springsource.org/showthread.php?t=36556 Looks like your instalation for some strange reason does not support CGLIB2... Best regards Søren - To unsubscribe, e-mail:

Re: using Spring AOP in cocoon block

2009-10-05 Thread Søren Krum
Robby Pelssers wrote: Can someone tell me what is needed to get AOP working in a cocoon block? · Dependencies · Block configuration · …? Kind regards, Robby Hi! so long i just worked with transactions as aop in cocoon. But i found the documentation of spring really complete, it worked

Re: Cocoon 2.2 subsitemap strange throwing nullpointer when

2009-09-22 Thread Søren Krum
Hi again, maybe the whole stack trace helps? here it is: ex:full-stacktrace org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap at map:mount - file:///site/apps/apache-tomcat-6.0.20/work/fasportalen-webapp/blocks/fasportalen-forms/sitemap.xmap:105:69 at

Cocoon 2.2 subsitemap strange throwing nullpointer when

2009-09-17 Thread Søren Krum
Hi! i have strange behaviour in cocoon 2.2. When calling a subsitemap in a block, it sometimes works fine, but sometimes (under conditions i cannot predict so long) i get the following when anybody tries to access a url pointing in the sub-sitemap. So long it looks like follows: When this

Re: Cocoon 2.2 subsitemap throwing strange nullpointer

2009-09-17 Thread Søren Krum
Hm, for clarification: If the sub-sitemap is unacessable, it does not recover, or something, and this behavoiur change only after a restart of the server. Please ask if you need any further information. I am a bit lost which infos to provide here... Søren Krum

Re: Cocoon 2.2 subsitemap throwing strange nullpointer

2009-09-17 Thread Søren Krum
= props.getProperty(key); /* 161*/value = replace(value, props, settings); } } } and yes, line number 163 has just one curly brace in it, not a really god candidate for a null pointer... Søren Krum

sql transformer in cocoon 2.2 ?!?

2009-08-28 Thread Søren Krum
Hello! i am trying out the sql transformer from cocoon 2.2, and, hm, let us say i am a little confused: i have one matcher: map:match pattern=get map:generate src=vis-sql.xml / map:transform type=sql label=debug map:parameter name=use-connection value=intern / map:parameter

Re: sql transformer in cocoon 2.2 ?!?

2009-08-28 Thread Søren Krum
have a fix, the others, sorry must figure out something by themself. Yust change the from line to something like that: from dual,sql:substitute-value sql:name=org/.pernavn n,sql:substitute-value sql:name=org/.person p and there does not vanish any space any more ;-) Best regards Søren Krum

FOP configuration ?!?

2009-08-06 Thread Søren Krum
Hello! i am trying out pdf serialisation, but the fop process is not interested in finding the metrics file. I wrote a configuration like this: configuration fonts font metrics-file=file:ocrb.xml embed-file=file:ocrb.ttf kerning=yes font-triplet name=OCRB style=normal weight=normal/

Strange login behaviour

2009-07-17 Thread Søren Krum
Hi! I rewrote a old a bit monolitic web application from cocoon 2.1 to 2.2, and so far, it worked well :-) Now i have a bit of a problem: I have a central block containing a transformer service, which i use to render all my pages, so they all get the same fine CI. As part of this frame,

Re: cocoon2.2: exception handling in sitemap stacktrace

2009-06-26 Thread Søren Krum
Hi! You declare a Exception SAXException, but i guess you will not find such a exception in any of your jarfiles. Maybe changing that to org.xml.sax.SAXException helps a little :-) -- Med vennlig hilsen Søren D. Krum Systemutvikler/system developer UNINETT FAS + 47 73557859 There are 10

Blocks and error handling

2009-06-03 Thread Søren Krum
Hi! As i am right now hacking a bigger application in smaller pieces (while upgrading from cocoon 2.1 to 2.2). While doing so, I would like to handle most of the errors (probably all) in one central place. Did anybody tried out something like Forwarding Errors to another block? Could that

Exception generator, which xsd?

2009-06-03 Thread Søren Krum
Hei! I am trying out some things with the new exception generator, and because i want to customize the messages for the customer i am interested in finding a reference to the schema the documet produced from the generator refers to. So, has anyone seen a xsd fitting to the namespace

Re: Blocks and error handling

2009-06-03 Thread Søren Krum
hi! thanks for the suggestion, I was afraid that such a solution would come... :-) My original error handling does something like this: map:handle-errors map:select type=exception map:when test=not-found ... /map:when map:when test=premature ...

contextrealpath?

2009-06-03 Thread Søren Krum
Hi! while upgrading from 2.1 to 2.2 i run in a problem: How do i refer to a real context path in the new version? In the old i just used e.g. file:{contextrealpath:./resource/} to resolve to a directory under the directory containing the sitemap.xmap file. How it that done in modern world?

Re: contextrealpath?

2009-06-03 Thread Søren Krum
Looks like that one has a new name: contextpath Søren - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org

Forms and locale

2009-05-19 Thread Søren Krum
Hi! I use some fine forms in cocoon 2.1, nice feature, but now i am a little trapped, maybe someone has an idea where to look: I have some fields like that one: fd:field id=ved state=output fd:datatype base=double / fd:initial-value3000/fd:initial-value /fd:field and if i

Re: ServerPagesGenerator in 2.2 ?!

2009-05-11 Thread Søren Krum
Hi! Now i tried out the ServerPageGenerator coming from cocoon:cocoon-xsp 2.1.11 but if i try to run it in an environment which is based on 2.2, i get the following error: Caused by: java.lang.NoSuchFieldError: manager at

Re: spring schema issue: spring-aop-2.5.xsd is not valid

2009-05-11 Thread Søren Krum
Hi! a kind of strange. Is that just you ide complaining, or do you actually have problems to start your application? My eclipse does not wonder about the form namespace, and spring starts just fine. Søren D. Krum - To

Re: ServerPagesGenerator in 2.2 ?!

2009-05-11 Thread Søren Krum
Joerg Heinicke wrote: I'm not sure why you can't find the XSP block in 2.2 but there is a ServerPagesGenerator: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-xsp/cocoon-xsp-impl/src/main/java/org/apache/cocoon/generation/ Joerg Looks like that is Snapshot 6, seems like that

ServerPagesGenerator in 2.2 ?!

2009-05-08 Thread Søren Krum
Hi! While upgrading from a cocoon 2.1 to 2.2 i found some pices of code using a ServerPageGenerator, but i was not able to find that one in one of the cocoon modules. Any idea if it was removed or in wihch module it was placed? The documentation of views (found here:

Re: ServerPagesGenerator in 2.2 ?!

2009-05-08 Thread Søren Krum
Hi, is that under cocoon:cocoon-xsp? Sorry, i searched under org.apache.cocoon, and there is nothing like that, and i asumed that under cocoon: was the old stuff, will say 2.1 or older Søren D. Krum - To unsubscribe,

Re: exit from pipeline

2009-05-07 Thread Søren Krum
Hi depending on the real purpose, it could be a solution to configure some views, add lables to the places you want to hop out of the transformations and use the cocoon-view parameter in the request you fire. -- Søren D. Krum Systemutvikler/system developer UNINETT FAS + 47 73557859 There

Re: [HELP]Unable to get transformer handler for slide://guest@cocoon/elfusers/general/technologyDetection/tech.xsl

2009-05-03 Thread Søren Krum
Hi! Not sure about this, but that looks like you have thrown away an important part of the error message. Look if you find the innermost Caused-By. That could be cocoon does not find tech.xsl, or that the definition for the transformer is missing, or ...? Hope that helps -- Søren D. Krum

Re: configuring between blocks

2009-05-03 Thread Søren Krum
Hi! hehe, just a matter of time, i have found a solution. SpringToAvalonDataSourceWrapper! A fine howto use can you find here: http://cocoon.apache.org/2.2/blocks/databases-bridge/1.0/project-info.html worked out of the box for me... Even over block boundaries... -- Søren D. Krum

configuring between blocks

2009-04-30 Thread Søren Krum
Hi! i try to migrate an old cocoon application (started with 2.0, and was migrated to 2.1 at least partly, will say with least possible efford...) As a matter of fact, i try to modularize our application and with that i run in some problems. So long we had a central cocoon.xconf, and in

Re: configuring between blocks

2009-04-30 Thread Søren Krum
So, now did i try out some things, i guess i have to get down to the base first :-). I configured a data source in the target block itself in a cocoon.xconf file under src/main/resources/META-INF/cocoon/xconf/ and used that data source in the sitemap, but it looks like the xconf is not read

Re: configuring between blocks

2009-04-30 Thread Søren Krum
Some further investigations and a little bit try and error got me a bit further: - the xconf file has to be placed in src/main/resources/META-INF/cocoon/avalon - i figured out that if i write some xml which is not valid, that the file is read, because then a error during the startup is

Re: Parameters in block protocol

2009-04-23 Thread Søren Krum
Andre Juffer wrote: If you intend to forward the request parameters to a stylesheet you need to explicitly state that in the sitemap. I cannot recall the exact format, however I guess that is what you mean (and if you do it right it works!): map:match pattern=portal-login-service

Parameters in block protocol

2009-04-22 Thread Søren Krum
Hi! I try an upgrade of an web app from cocoon 2.1 to 2.2, and eger as i am, i want to get it all fine in small blocks. Calling blocks works fine so far, but...As ever there is a special case where i want to pass some parameters to the called block: i tried it as follows:

Newbie-question: parameters/variables

2009-04-20 Thread Søren Krum
Hi! i am trying out some things with cocoon sitemaps, and i wonder: Is there anywhere a place on the web where i can get an overview about the different parameters/variables i can use in the sitemap as e.g. request-parameter:param-name Regards Søren Krum

Re: Newbie-question: parameters/variables

2009-04-20 Thread Søren Krum
Yea, that looks like what i was searching for, thx :-) -- Søren D. Krum Systemutvikler/system developer UNINETT FAS + 47 73557859 There are 10 different kind of people in the world, those who understand binary and those who don't

Parameters in block protocol

2009-04-17 Thread Søren Krum
Hi! I try an upgrade of an web app from cocoon 2.1 to 2.2, and eger as i am, i want to get it all fine in small blocks. Calling blocks works fine so far, but...As ever there is a special case where i want to pass some parameters to the called block: i tried it as follows:

Parameters in block protocol

2009-04-17 Thread Søren Krum
Hi! I try an upgrade of an web app from cocoon 2.1 to 2.2, and eger as i am, i want to get it all fine in small blocks. Calling blocks works fine so far, but...As ever there is a special case where i want to pass some parameters to the called block: i tried it as follows: