Re: a suprise problem
OK. If you look at the community pages under contributing it will talk about the bug tracking system. Unfortunately it still talks about bugzilla. We switched from bugzilla to Jira a few months ago. You can view and create incidents by following this link: http://issues.apache.org/jira/browse/COCOON These other links might be helpful: The Jira manual http://www.atlassian.com/software/jira/docs/v3.2/index.html?clicked=jirahelp The ASF Jira FAQ http://wiki.apache.org/general/ApacheJira HTH, Ralph Schultz, Gary - COMM wrote: I've never heard of a Jira incident. -Original Message- From: Ralph Goers [mailto:[EMAIL PROTECTED]] Sent: Friday, February 10, 2006 8:56 AM To: users@cocoon.apache.org Subject: Re: a suprise problem What problems did you see? Did you open a Jira incident? Schultz, Gary - COMM wrote: What version of OS and Java? I've had problems with Cocoon 2.1.8 and Java 5 (j2sdk 1.5.0_05 in my situation) in Windows 2000 Server and 2003 Server. I had to revert back to Java 1.4.2_xx (I'm running 1.4.2_10). The problem occurred regardless of the Java-Tomcat combination used (Java 5 - Tomcat 5.5.xx and Java 5 - Tomcat 5.0.xx). Gary T. Schultz IT Administrator Wisconsin Department of Commerce 201 W. Washington Ave Madison, WI 53214 608-266-1283 [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]
Re: DatabaseSelectAction
On Sunday 12 February 2006 23:48, Derek Hohls wrote: > > You description here is a little limited, but, I assume > you have sucessfully authenticated a user and have an > ID for them. Yes, that is correct. The user is authenticated using the DatabaseAuthenticatorAction and two variables (sid and survey) are stored in the session using the tosession attribute (as strings). > You could then call a flow script, which picks up the ID > from the session; the SQL could be run from inside flow > and the result then stored in a new session attribute. > You are correct in saying there is a not a single description > of this activity in the docs; but you will be able to find the > info you need by looking at the samples, and also searching > the mail archives. Thanks for pointing me to the samples. They helped but didn't solve my problem. Here are the details. Sitemap Pipeline Matcher: The debug-params resource simply displays these parameter names and values. I learned from the samples that you can pass an output parameter to the modular database actions. What about the input? Database Descriptor: cacsurvey {session-attr:sid} and {session-attr:survey} were set from the initial authentication. The survey field for this particular SID gets updated in the database using an Original Database Update action. What I am trying to do is to use {session-attr:sid} to query the database record, retrieve the latest survey column value, and store it into {session-attr:survey}. It doesn't matter whether I use Original or Modular actions but I would like to use actions as opposed to flowscript. - Pasha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Images randomly disappear - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource
I don't know where your error comes from...but want to advice you not to use ehcache for images...Do you serve pages directly from cocoon or with mod_cache or squid between? Let them do the image caching. Furthermore, set an expires in your image/css/js readers in cocoon which give them an expires header. That makes caching them unneccesary AS Hi, I’m having trouble with images in a Cocoon web site. Images randomly appear and disappear in my web browser when I refresh pages (browser cache has been removed). Furthermore, if I copy/paste the url of a missing image in a web browser, the image is adequately displayed. I keep having the following message in my Apache stdout.log : 9271607 [http-8080-Processor25] ERROR net.sf.ehcache.store.DiskStore - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource-file:/C:/jakarta-tomcat-5.0.29/webapps/cocoon/docs/images/label-background_a.gif net.sf.ehcache.CacheException: cocoon-ehcache-1 Cache: The Disk store is not active. at net.sf.ehcache.store.DiskStore.checkActive(DiskStore.java:207) Has anyone else had this problem? Any suggestions? Current set up: Apache Tomcat/5.0.29 Cocoon : 2.1.6 Cheers Héryk Julien NRCan
Images randomly disappear - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource
Hi, I’m having trouble with images in a Cocoon web site. Images randomly appear and disappear in my web browser when I refresh pages (browser cache has been removed). Furthermore, if I copy/paste the url of a missing image in a web browser, the image is adequately displayed. I keep having the following message in my Apache stdout.log : 9271607 [http-8080-Processor25] ERROR net.sf.ehcache.store.DiskStore - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource-file:/C:/jakarta-tomcat-5.0.29/webapps/cocoon/docs/images/label-background_a.gif net.sf.ehcache.CacheException: cocoon-ehcache-1 Cache: The Disk store is not active. at net.sf.ehcache.store.DiskStore.checkActive(DiskStore.java:207) Has anyone else had this problem? Any suggestions? Current set up: Apache Tomcat/5.0.29 Cocoon : 2.1.6 Cheers Héryk Julien NRCan
Cocoon standalone and statistics question
I am running apache as standalone daemon. 1.has this negative issues? 2.how can I get usage statistics (like hits, opened pages, etc.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you make the sendmail action work?
Well, thanks for the suggestion, but it didn't end up working either. I added this: src="org.apache.cocoon.mail.transformation.SendMailTransformer" logger="sitemap.transformer.sendmail"/> and: and then used the transformer from http://codeconsult.ch/bertrand/archives/000571.html (after changing a few simple things such as the smtp server, of course). It actually gives me no error at all. The page renders correctly and no errors are written to the rendered page, the shell that is running Jetty or build/webapp/WEB-INF/logs. Seems weird to me Could this possibly have something to do with Java versions? I'm using j2sdk 1.4.2_10 with Cocoon 2.1.8. Another funny thing, when I'm starting Jetty, I see the following lines: 10:35:05.204 EVENT Cocoon: Adding class library file:/home/bmaddy/src/cocoon-2.1.8/build/webapp/WEB-INF/lib/cocoon-mail-block.jar 10:35:05.551 EVENT Cocoon: Adding class library file:/home/bmaddy/src/cocoon-2.1.8/build/webapp/WEB-INF/lib/activation.jar 10:35:06.013 EVENT Cocoon: Adding class library file:/home/bmaddy/src/cocoon-2.1.8/build/webapp/WEB-INF/lib/mail.jar So it seems as if the appropriate jar files are being loaded... Anyone know where to look next for this? Thanks, Brian Bertrand Delacretaz wrote: Le 13 févr. 06, à 16:54, Brian Maddy a écrit : ...Is the sendmail transformer one of those or is it something I haven't found yet?... It's yet another component - there's an example on my weblog at http://codeconsult.ch/bertrand/archives/000571.html. They're all using the same base code IIUC (haven't checked precisely though), so the main difference is in the way the interfaces to these components. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP Problem
Update! I guess this problem was due to my lack of knowledge on Java programming. So I guess I learned something today: Casting null to String in Java still results in a null. A real forehead-smacker. Thanks for the help anyway guys. Here is the working code: http://apache.org/xsp"; xmlns:xsp-request=" http://apache.org/xsp/request/2.0"; xmlns:action="http://apache.org/cocoon/action/1.0"; > String handler = (String)request.getParameter( "handler" ); String repeat = (String)request.getAttribute( "repeat" ); if( handler != null ) { if( repeat != null || repeat.equals("0") ) //yay for short-circuit { handler handler 1 handler } } else { 0 } -- Derek Harmel :: Web Programmer :: KCI Technologies On 2/13/06, Derek Harmel <[EMAIL PROTECTED]> wrote: > Ralph, > > I was using that method you described before and it was causing me > problems somewhere, hence why I used the Java method. Anyway, I did > change it as you suggested and still got the same exception. > > Could this have anything to do with me using JDK 1.5? > > -- > Derek Harmel > :: Web Programmer > :: KCI Technologies > > On 2/13/06, Ralph Skulborstad <[EMAIL PROTECTED]> wrote: > > > Hi Derek. > > In just a few applications (yet) I have used Cocoon, and those times I > > have by some reason ( probably the first way it worked ) used the > > following syntax when getting request information: > > > > String param = ; > > String attrib = ; > > > > This is probably just one way of doing things, and I'm not even sure > > that it's your problem, but you could try .This one I know works. More > > info about xsp-request logicsheet : > > > > http://cocoon.apache.org/2.1/userdocs/logicsheets/request.html > > > > Hope this helps. > > /Ralph > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
Re: XSP Problem
Ralph, I was using that method you described before and it was causing me problems somewhere, hence why I used the Java method. Anyway, I did change it as you suggested and still got the same exception. Could this have anything to do with me using JDK 1.5? -- Derek Harmel :: Web Programmer :: KCI Technologies On 2/13/06, Ralph Skulborstad <[EMAIL PROTECTED]> wrote: > Hi Derek. > In just a few applications (yet) I have used Cocoon, and those times I > have by some reason ( probably the first way it worked ) used the > following syntax when getting request information: > > String param = ; > String attrib = ; > > This is probably just one way of doing things, and I'm not even sure > that it's your problem, but you could try .This one I know works. More > info about xsp-request logicsheet : > > http://cocoon.apache.org/2.1/userdocs/logicsheets/request.html > > Hope this helps. > /Ralph > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: XSP Problem
Derek Harmel wrote: Forgive me as I fairly new to Cocoon and have virtually no experience with Java. Don't worry, I'm not going to ask you to write something for me. Anyway, I have a problem with an XSP that I just cannot figure out. In the code below, if I do not comment out the two 'if statements' and the 'else statement', I get a Null Pointer Exception. However, when I do comment those lines out, it seems to compile just fine. Does anyone see what my problem is? If "handler" and "repeat" do not exist in the request parameters and attributes respectively, could this be causing the problem? The exception happens in "ServerPagesGenerator.generate()". Cocoon v2.1.8. Thanks in advance. http://apache.org/xsp"; xmlns:xsp-request=" http://apache.org/xsp/request/2.0"; xmlns:action="http://apache.org/cocoon/action/1.0"; String handler = (String)request.getParameter( "handler" ); String repeat = (String)request.getAttribute( "repeat" ); if( handler.length() > 0 ) { if( repeat.length() == 0 || repeat.equals("0") ) { handler handler 1 handler } } else { 0 } -- Derek Harmel :: Web Programmer :: KCI Technologies Hi Derek. In just a few applications (yet) I have used Cocoon, and those times I have by some reason ( probably the first way it worked ) used the following syntax when getting request information: String param = ; String attrib = ; This is probably just one way of doing things, and I'm not even sure that it's your problem, but you could try .This one I know works. More info about xsp-request logicsheet : http://cocoon.apache.org/2.1/userdocs/logicsheets/request.html Hope this helps. /Ralph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you make the sendmail action work?
Le 13 févr. 06, à 16:54, Brian Maddy a écrit : ...Is the sendmail transformer one of those or is it something I haven't found yet?... It's yet another component - there's an example on my weblog at http://codeconsult.ch/bertrand/archives/000571.html. They're all using the same base code IIUC (haven't checked precisely though), so the main difference is in the way the interfaces to these components. -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: CForms button clicks verses enter in IE
On 2/9/06, Antonio Fiol Bonnín <[EMAIL PROTECTED]> wrote: On the server, where you check whether the "next page" submit widgethas been used (javaflow, flowscript,...), if "no widget" has beenused, you can assume it's "next page", possibly unless you are on the last page, where it means "Finish".I was able to get what I needed by doing this in a loop:form.showForm("mypipeline");if(form.getWidget().getSubmitWidget() != null) { // submit the form as usual} else { // figure out what button the user wanted or show the form again}Thanks for the pointer. For any developers listening, it'd be nice to have some default behavior in the form class that figures out if the real submit button was used. Maybe a toggleable exception so our flows can catch it and do something with it or have the form not be submitted at all unless someone uses a button. Or perhaps a configured default button in the model. So if a "default" button was visible and there were no clicks on buttons to submit a form, the "default" button's on-action could be called. Just a thought. Thanks again.
Re: How do you make the sendmail action work?
Oops, yeah, it's in WEB-INF/lib. That was just a typo. From what I've seen there's a sendmail action (http://cocoon.apache.org/2.1/userdocs/optional/sendmail-action.html) and a sendmail logicsheet (http://cocoon.apache.org/2.1/userdocs/logicsheets/sendmail.html). Is the sendmail transformer one of those or is it something I haven't found yet? Thanks, Brian Bertrand Delacretaz wrote: Le 13 févr. 06, à 16:04, Brian Maddy a écrit : Has anyone gotten the sendmail action to work (http://cocoon.apache.org/2.1/userdocs/optional/sendmail-action.html)? I added the mail.jar and activation.jar libraries in WEB-INF as described here... It's WEB-INF/lib, right? I'm writing stuff using the SendmailTransformer from 2.1.7 as we speak, and it works fine, having added mail.jar and activation.jar to the libs. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP Problem
John, Unfortunately, no luck. I think I did try that at one point. -- Derek Harmel :: Web Programmer :: KCI Technologies On 2/13/06, John L. Webber <[EMAIL PROTECTED]> wrote: > Derek, > > Try > if (handler.length() > 0) > > John > > Derek Harmel wrote: > > Forgive me as I fairly new to Cocoon and have virtually no experience > > with Java. Don't worry, I'm not going to ask you to write something > > for me. > > > > Anyway, I have a problem with an XSP that I just cannot figure out. > > In the code below, if I do not comment out the two 'if statements' and > > the 'else statement', I get a Null Pointer Exception. However, when I > > do comment those lines out, it seems to compile just fine. Does > > anyone see what my problem is? > > > > If "handler" and "repeat" do not exist in the request parameters and > > attributes respectively, could this be causing the problem? > > > > The exception happens in "ServerPagesGenerator.generate()". Cocoon v2.1.8. > > > > Thanks in advance. > > > > > > > > > language="java" > > xmlns:xsp="http://apache.org/xsp"; > > xmlns:xsp-request=" http://apache.org/xsp/request/2.0"; > > xmlns:action="http://apache.org/cocoon/action/1.0"; > > > > > > > > String handler = (String)request.getParameter( "handler" ); > > String repeat = (String)request.getAttribute( "repeat" ); > > > > if( handler.length() > 0 ) > > { > > if( repeat.length() == 0 || repeat.equals("0") ) > > { > > > > handler > > > name="value">handler > > > > > > > name="repeat">1 > > handler > > } > > } > > else > > { > > > > > name="repeat">0 > > } > > > > > > > > > -- > - > Jentro Technologies GmbH > John L. Webber, Software Development > - > Rosenheimer Str. 145e 81671 München > Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED] > Fax +49 89 189 169 99 http://www.jentro.com > - > NOTICE: The information contained in this e-mail is confidential or may > otherwise be legally privileged. It is intended for the named recipient > only. If you have received it in error, please notify us immediately by > reply or by calling the telephone number above and delete this message > and all its attachments without any use or further distribution of its > contents. Please note that any unauthorised review, copying, disclosing > or otherwise making use of the information is strictly prohibited. Thank > you. > - > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: Using External Javascript in CForms
> -Original Message- > From: Robin Wyles [mailto:[EMAIL PROTECTED] > > You can add a reference to the JS file containing your formatDate > function in the sitemap... > > > > > > ... or you could include it in one of your existing flowscript files > like this ... Really should have thought of adding the Javascript to my sitemap. Worked a treat. Thanks, Gary -- * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: a suprise problem
I've never heard of a Jira incident. -Original Message- From: Ralph Goers [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 8:56 AM To: users@cocoon.apache.org Subject: Re: a suprise problem What problems did you see? Did you open a Jira incident? Schultz, Gary - COMM wrote: >What version of OS and Java? I've had problems with Cocoon 2.1.8 and >Java 5 (j2sdk 1.5.0_05 in my situation) in Windows 2000 Server and 2003 >Server. I had to revert back to Java 1.4.2_xx (I'm running 1.4.2_10). >The problem occurred regardless of the Java-Tomcat combination used >(Java 5 - Tomcat 5.5.xx and Java 5 - Tomcat 5.0.xx). > >Gary T. Schultz >IT Administrator >Wisconsin Department of Commerce >201 W. Washington Ave >Madison, WI 53214 >608-266-1283 >[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: XSP Problem
Derek, Try if (handler.length() > 0) John Derek Harmel wrote: > Forgive me as I fairly new to Cocoon and have virtually no experience > with Java. Don't worry, I'm not going to ask you to write something > for me. > > Anyway, I have a problem with an XSP that I just cannot figure out. > In the code below, if I do not comment out the two 'if statements' and > the 'else statement', I get a Null Pointer Exception. However, when I > do comment those lines out, it seems to compile just fine. Does > anyone see what my problem is? > > If "handler" and "repeat" do not exist in the request parameters and > attributes respectively, could this be causing the problem? > > The exception happens in "ServerPagesGenerator.generate()". Cocoon v2.1.8. > > Thanks in advance. > > > > language="java" > xmlns:xsp="http://apache.org/xsp"; > xmlns:xsp-request=" http://apache.org/xsp/request/2.0"; > xmlns:action="http://apache.org/cocoon/action/1.0"; > > > > String handler = (String)request.getParameter( "handler" ); > String repeat = (String)request.getAttribute( "repeat" ); > > if( handler.length() > 0 ) > { > if( repeat.length() == 0 || repeat.equals("0") ) > { > > handler > name="value">handler > > > name="repeat">1 > handler > } > } > else > { > > name="repeat">0 > } > > > -- - Jentro Technologies GmbH John L. Webber, Software Development - Rosenheimer Str. 145e 81671 München Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED] Fax +49 89 189 169 99 http://www.jentro.com - NOTICE: The information contained in this e-mail is confidential or may otherwise be legally privileged. It is intended for the named recipient only. If you have received it in error, please notify us immediately by reply or by calling the telephone number above and delete this message and all its attachments without any use or further distribution of its contents. Please note that any unauthorised review, copying, disclosing or otherwise making use of the information is strictly prohibited. Thank you. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you make the sendmail action work?
Le 13 févr. 06, à 16:04, Brian Maddy a écrit : Has anyone gotten the sendmail action to work (http://cocoon.apache.org/2.1/userdocs/optional/sendmail-action.html)? I added the mail.jar and activation.jar libraries in WEB-INF as described here... It's WEB-INF/lib, right? I'm writing stuff using the SendmailTransformer from 2.1.7 as we speak, and it works fine, having added mail.jar and activation.jar to the libs. -Bertrand smime.p7s Description: S/MIME cryptographic signature
XSP Problem
Forgive me as I fairly new to Cocoon and have virtually no experience with Java. Don't worry, I'm not going to ask you to write something for me. Anyway, I have a problem with an XSP that I just cannot figure out. In the code below, if I do not comment out the two 'if statements' and the 'else statement', I get a Null Pointer Exception. However, when I do comment those lines out, it seems to compile just fine. Does anyone see what my problem is? If "handler" and "repeat" do not exist in the request parameters and attributes respectively, could this be causing the problem? The exception happens in "ServerPagesGenerator.generate()". Cocoon v2.1.8. Thanks in advance. http://apache.org/xsp"; xmlns:xsp-request=" http://apache.org/xsp/request/2.0"; xmlns:action="http://apache.org/cocoon/action/1.0"; > String handler = (String)request.getParameter( "handler" ); String repeat = (String)request.getAttribute( "repeat" ); if( handler.length() > 0 ) { if( repeat.length() == 0 || repeat.equals("0") ) { handler handler 1 handler } } else { 0 } -- Derek Harmel :: Web Programmer :: KCI Technologies
Re: Using External Javascript in CForms
Gary, You can add a reference to the JS file containing your formatDate function in the sitemap... ... or you could include it in one of your existing flowscript files like this ... cocoon.load("flow/date_utils.js"); The advantage I see to declaring it in the sitemap is that your JS file will be automatically updated when it changes, whereas if you include it in another JS file you have to touch the parent file before updates to the included file take effect. Robin On 13 Feb 2006, at 12:38, Stewart, Gary wrote: Hi there, I've been trying to use an external Javascript in an on-value- changed in a form field def. I have something like: event.source.value = formatDate(event.source.value); and I include the function in one of the stylesheets. I get a org.mozilla.javascript.EcmaError: "formatDate" is not defined; which is quite right as it hasn't been defined at that stage. I looked through the samples but I couldn't see anywhere were an external Javascript was included for this purpose. Can this be done or should all scripting be performed inline? Thanks, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - 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 you make the sendmail action work?
Has anyone gotten the sendmail action to work (http://cocoon.apache.org/2.1/userdocs/optional/sendmail-action.html)? I added the mail.jar and activation.jar libraries in WEB-INF as described here: http://wiki.apache.org/cocoon/RecipeXSPSendMailExample?highlight=%28sendmail%29 and here: http://wiki.apache.org/cocoon/SendMailTransformer?highlight=%28sendmail%29 but I still get the following error: java.lang.ClassNotFoundException: org.apache.cocoon.acting.sendmail Anyone know what's going on? Thanks, Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation block includes in schemas
Hi, I'm having trouble using the validation block (2.1.8) for complicated schema's with multiple includes. Searching for the cause I added a simple include to the sample (schema-ok): This is the error I get: org.w3c.dom.ls.LSException: Exception resolving resource null Here's part of the trace: at org.apache.cocoon.components.validation.jaxp.JaxpResolver.resolveResourc e(JaxpResolver.java:69) at org.apache.xerces.util.DOMEntityResolverWrapper.resolveEntity (Unknown Source) at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source) at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema (Unknown Source) at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees (Unknown Source) at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema (Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema (Unknown Source) at javax.xml.validation.SchemaFactory.newSchema(Unknown Source) at org.apache.cocoon.components.validation.jaxp.JaxpSchemaParser.parseSchem a(JaxpSchemaParser.java:159) My question: Is this an error? A path problem (I tried using absolute refs)? Or expected behaviour? may thanks in advance, Gerrit Boers P.S. I'm building an HL7v3 message validation application in Cocoon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get values from multivaluefield
sorry my bad; solved with: Object[] myvalues= (Object[]) myfield.getValue(); ... myvalues[i].toString() ... Gunter D'Hondt <[EMAIL PROTECTED]> 13/02/2006 11:31 Please respond to users@cocoon.apache.org To users@cocoon.apache.org cc Subject get values from multivaluefield I'm trying to get the string array from a multivaluefield widget; so something like getValues() which returns an Object[] instead of the getValue() which returns an Object. Is there a reason why the getValues() is not implemented while the setValues() and setValue() is? MultiValueField myfield = (MultiValueField) myform.getWidget("mywifes"); String[] myvalues = (String[]) myfield.getValue(); --> which doesn't work since casting from Object to String[] gives a ClassCastException Regards, Gunter D'Hondt - 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]
Cocoon2.1.8 fails to startup (could not load class ContextInputModule)
Hi All, I get following exception when trying to run cocoon (cocoon servlet) on http://localhost:. Other people facing the same problem? How to proceed? Cheers, Robby Pelssers -- Initialization Problem Message: Could not find component (key [org.apache.cocoon.webapps.session.ContextManager]) Description: org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.webapps.session.components.ContextInputModule for component named 'session-context' at file:/D:/cocoon-2.1.8/build/webapp/WEB-INF/cocoon.xconf:244:151 Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet cause org.apache.avalon.framework.component.ComponentException: Could not find component (key [org.apache.cocoon.webapps.session.ContextManager]) request-uri / full exception chain stacktrace org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.webapps.session.components.ContextInputModule for component named 'session-context' at file:/D:/cocoon-2.1.8/build/webapp/WEB-INF/cocoon.xconf:244:151 at org.apache.cocoon.components.ExtendedComponentSelector.configure(Extende dComponentSelector.java:235) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerU til.java:201) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc e(DefaultComponentFactory.java:289) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial ize(ThreadSafeComponentHandler.java:108) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initiali ze(ExcaliburComponentManager.java:524) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonCom ponentManager.java:566) at org.apache.avalon.framework.container.ContainerUtil.initialize(Container Util.java:244) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:336) at org.apache.avalon.framework.container.ContainerUtil.initialize(Container Util.java:244) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java: 1429) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:499) at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:220) at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandl er.java:445) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebAp plicationHandler.java:150) at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationCont ext.java:458) at org.mortbay.http.HttpServer.start(HttpServer.java:663) at org.mortbay.jetty.Server.main(Server.java:429) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at Loader.invokeMain(Unknown Source) at Loader.run(Unknown Source) at Loader.main(Unknown Source) Caused by: org.apache.avalon.framework.component.ComponentException: Could not set up Component for hint [ session-context] (key [session-context]) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComp onent(ExcaliburComponentSelector.java:723) at org.apache.cocoon.components.ExtendedComponentSelector.configure(Extende dComponentSelector.java:228) ... 23 more Caused by: org.apache.avalon.framework.service.ServiceException: Could not find component (key [org.apache.cocoon.webapps.session.ContextManager]) (Key='org.apache.cocoon.webapps.session.ContextManager') at org.apache.avalon.framework.service.WrapperServiceManager.lookup(Wrapper ServiceManager.java:80) at org.apache.cocoon.webapps.session.components.ContextInputModule.service( ContextInputModule.java:112) at org.apache.avalon.framework.container.ContainerUtil.service(ContainerUti l.java:143) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc e(DefaultComponentFactory.java:271) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial ize(ThreadSafeComponentHandler.java:108) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComp onent(ExcaliburComponentSelector.java:705) ... 24 more Caused by: org.apache.avalon.framework.component.ComponentException: Could not find component (key [org.apache.cocoon.webapps.session.ContextManager]) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(E xcaliburComponentManager.java:265) at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonCompone ntManager.java:335) at org.apache.avalon.framework.se
Re: continuations
Thanks for pointing that out, Paul! I was already wondering how to get the InterpreterId to look up the continuation, but it's all clear now looking at that action. Kind Regards, Jan Paul Focke wrote: Hi, I have a flow in which I create a form. When this form is displayed, I like to keep the continuation to stay alive for as long as the user is filling in that form (which can take more than one hour, depends on how many times the user is refilling his cup of tea or coffee, and how many colleagues are passing by to have a nice chat with ;-) ). I'm thinking of something similar like daisy does (http://cocoondev.org/daisy/index.html, made by outerthought): sending a form which carries an internal frame that refreshes itself every x minutes. This frame will load a page which contains the original ID from the form continuation (by request). A small flowscript function will then call the continuationmanager and retrieve the WebContinuation. Getting the continuation from this object will trigger the WebContinuation to update its access time and thus it will stay alive. Is this sensible? Has anyone else ever tried something alike or solved this another way? Any comments welcome! I've done something similar. The most interesting part was getting the continuation and refreshing it. Luckily there is an action in the ajax block which takes care of the refreshing for you. So in the page I wanted to have the continuation kept alive I put a hidden iframe with as src "keep-continuation-alive?continuation-id={put your continuation here}". So in the sitemap I added a matcher for this : The pacemaker.xml is just a little page that refreshes itself every x minutes or so. Kind Regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use cocoon servlet only for rendering documents?
Hello, I have the use case that I want to combine Cocoon with another framework say Struts. I want to do all the web front end work with Struts and do the rendering of pdf, xml, excel etc with Cocoon. Thus I want pass parameters to the Cocoon servlet and then let cocoon query data from the database and then render the stuff. I would only need the functionality to render the documents and then use the SQLTransformer. Is this possible? I heared some talk about the Paranoid cocoon servlet but I don't really understand how this fits in. Can somebody please explain or tell me where to find information on this? Cheers, Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: continuations
> Hi, > > I have a flow in which I create a form. When this form is displayed, I > like to keep the continuation to stay alive for as long as the user is > filling in that form (which can take more than one hour, depends on how > many times the user is refilling his cup of tea or coffee, and how many > colleagues are passing by to have a nice chat with ;-) ). I'm thinking > of something similar like daisy does > (http://cocoondev.org/daisy/index.html, made by outerthought): sending a > form which carries an internal frame that refreshes itself every x > minutes. This frame will load a page which contains the original ID from > the form continuation (by request). A small flowscript function will > then call the continuationmanager and retrieve the WebContinuation. > Getting the continuation from this object will trigger the > WebContinuation to update its access time and thus it will stay alive. > > Is this sensible? Has anyone else ever tried something alike or solved > this another way? Any comments welcome! > I've done something similar. The most interesting part was getting the continuation and refreshing it. Luckily there is an action in the ajax block which takes care of the refreshing for you. So in the page I wanted to have the continuation kept alive I put a hidden iframe with as src "keep-continuation-alive?continuation-id={put your continuation here}". So in the sitemap I added a matcher for this : The pacemaker.xml is just a little page that refreshes itself every x minutes or so. > > Kind Regards, > Jan > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Paul Fockehttp://outerthought.org/ Outerthought Open Source Java & XML paul at outerthought.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using External Javascript in CForms
Hi there, I've been trying to use an external Javascript in an on-value-changed in a form field def. I have something like: event.source.value = formatDate(event.source.value); and I include the function in one of the stylesheets. I get a org.mozilla.javascript.EcmaError: "formatDate" is not defined; which is quite right as it hasn't been defined at that stage. I looked through the samples but I couldn't see anywhere were an external Javascript was included for this purpose. Can this be done or should all scripting be performed inline? Thanks, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: continuations
Gunter D'Hondt wrote: I don't want my sessions/continuations to have long time-out periods for security reasons. It's ok to have them log in again if their session is timed out after eg a half hour. But then again, when they are editing a form, this might take some time, and the responsibility of keeping this form window open/uncommitted is completely on their side. So if they are off to McDonalds during editing, it's their own decision to leave that window open. this I don't understand coz you started this discussion with the fact that you want your continuations to stay alive long enough but you don't want to increase your session timeout?? the continuation might survive the container session but in my opinion this will be a confusing situation for the end user I want my session to be eg only a half hour. So when users are just browsing (not editing a form) and leave their pc for more than 30 minutes, they need to log in again. Besides this, when they are editing a form, this might take a while, so when the form is presented, I want the continuation to be extended as long as the form is on the users screen/browser. This actually implies that the session will be extended also. When the users stares at the form for a few hours, an iframe will periodically contact the server, which automatically extends the session time, and the continuation related with the form is accessed so that it's time is extended too. Kind Regards, Jan
Re: continuations
> I don't want my sessions/continuations to have long time-out periods for security reasons. It's ok to have them log in again if their session is timed out > after eg a half hour. But then again, when they are editing a form, this might take some time, and the responsibility of keeping this form window > open/uncommitted is completely on their side. So if they are off to McDonalds during editing, it's their own decision to leave that window open. this I don't understand coz you started this discussion with the fact that you want your continuations to stay alive long enough but you don't want to increase your session timeout?? the continuation might survive the container session but in my opinion this will be a confusing situation for the end user Jan Hoskens <[EMAIL PROTECTED]> 13/02/2006 11:31 Please respond to users@cocoon.apache.org To users@cocoon.apache.org cc Subject Re: continuations Fabrizio Sitzia wrote: Hello, I have a flow in which I create a form. When this form is displayed, I like to keep the continuation to stay alive for as long as the user is filling in that form (which can take more than one hour, depends on how many times the user is refilling his cup of tea or coffee, and how many colleagues are passing by to have a nice chat with... Yep, and people tend to get very upset if they spent 5 minutes beginning to fill out a form just before they left for a 2 hour lunch, and find their session has expired when they come back! For a less security-critical intranet app, I therefore defined a timeout of 4 hours, as follows: - In "cocoon.xconf", I set the continuations-manager's time-to-live" attribute to 1440 (4 hours * 3600 seconds * 1000 milliseconds :-) I also set the "session-bound-continuations" attribute to "true", as there is no point leaving continuations around when the servlet container's session has expired... That's correct, I'll definitely check that session-bound-continuations attribute, thanks for the info. - I also set the servlet container's (Jetty) session-timeout to 4 hours (240 minutes), by adding the following to its "web.xml" file: ... 240 I don't want my sessions/continuations to have long time-out periods for security reasons. It's ok to have them log in again if their session is timed out after eg a half hour. But then again, when they are editing a form, this might take some time, and the responsibility of keeping this form window open/uncommitted is completely on their side. So if they are off to McDonalds during editing, it's their own decision to leave that window open. Kind Regards, Jan Fabrizio - 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]
get values from multivaluefield
I'm trying to get the string array from a multivaluefield widget; so something like getValues() which returns an Object[] instead of the getValue() which returns an Object. Is there a reason why the getValues() is not implemented while the setValues() and setValue() is? MultiValueField myfield = (MultiValueField) myform.getWidget("mywifes"); String[] myvalues = (String[]) myfield.getValue(); --> which doesn't work since casting from Object to String[] gives a ClassCastException Regards, Gunter D'Hondt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: continuations
Fabrizio Sitzia wrote: Hello, I have a flow in which I create a form. When this form is displayed, I like to keep the continuation to stay alive for as long as the user is filling in that form (which can take more than one hour, depends on how many times the user is refilling his cup of tea or coffee, and how many colleagues are passing by to have a nice chat with... Yep, and people tend to get very upset if they spent 5 minutes beginning to fill out a form just before they left for a 2 hour lunch, and find their session has expired when they come back! For a less security-critical intranet app, I therefore defined a timeout of 4 hours, as follows: - In "cocoon.xconf", I set the continuations-manager's time-to-live" attribute to 1440 (4 hours * 3600 seconds * 1000 milliseconds :-) I also set the "session-bound-continuations" attribute to "true", as there is no point leaving continuations around when the servlet container's session has expired... That's correct, I'll definitely check that session-bound-continuations attribute, thanks for the info. - I also set the servlet container's (Jetty) session-timeout to 4 hours (240 minutes), by adding the following to its "web.xml" file: ... 240 I don't want my sessions/continuations to have long time-out periods for security reasons. It's ok to have them log in again if their session is timed out after eg a half hour. But then again, when they are editing a form, this might take some time, and the responsibility of keeping this form window open/uncommitted is completely on their side. So if they are off to McDonalds during editing, it's their own decision to leave that window open. Kind Regards, Jan Fabrizio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: continuations
Hello, > I have a flow in which I create a form. When this form is displayed, I > like to keep the continuation to stay alive for as long as the user is > filling in that form (which can take more than one hour, depends on how > many times the user is refilling his cup of tea or coffee, and how many > colleagues are passing by to have a nice chat with... Yep, and people tend to get very upset if they spent 5 minutes beginning to fill out a form just before they left for a 2 hour lunch, and find their session has expired when they come back! For a less security-critical intranet app, I therefore defined a timeout of 4 hours, as follows: - In "cocoon.xconf", I set the continuations-manager's time-to-live" attribute to 1440 (4 hours * 3600 seconds * 1000 milliseconds :-) I also set the "session-bound-continuations" attribute to "true", as there is no point leaving continuations around when the servlet container's session has expired... - I also set the servlet container's (Jetty) session-timeout to 4 hours (240 minutes), by adding the following to its "web.xml" file: ... 240 Fabrizio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: continuations
Gunter D'Hondt wrote: done that trick also for a few sites but major problem here might consists that the client browser must have javascript enabled (to force the reload of the frame) and it must support frames (which is ugly) or iframes (which is IE only) IFrames is a html 4.0 element and supported by more browsers (ie 3.0+, nn 6.0+, moz 1.0+, ff 1.0+ , op 4.0+), besides this our customers mostly use IE 6 or up with javascript enabled (needed in other webapps we use). can't you just always keep the continuations alive; so setting no session timeouts; or you might even temporarily store them yourself on a disk/db or whatever If setting no timeouts, are continuations kept alive forever or will a default timeout setting be used? When will the continuation be set invalid so it can be removed from the cache? I'm not looking forward to writing my own continuation storage. Kind Regards, Jan Regards, Gunter D'Hondt Jan Hoskens <[EMAIL PROTECTED]> 13/02/2006 10:29 Please respond to users@cocoon.apache.org To users@cocoon.apache.org cc Subject continuations Hi, I have a flow in which I create a form. When this form is displayed, I like to keep the continuation to stay alive for as long as the user is filling in that form (which can take more than one hour, depends on how many times the user is refilling his cup of tea or coffee, and how many colleagues are passing by to have a nice chat with ;-) ). I'm thinking of something similar like daisy does (http://cocoondev.org/daisy/index.html, made by outerthought): sending a form which carries an internal frame that refreshes itself every x minutes. This frame will load a page which contains the original ID from the form continuation (by request). A small flowscript function will then call the continuationmanager and retrieve the WebContinuation. Getting the continuation from this object will trigger the WebContinuation to update its access time and thus it will stay alive. Is this sensible? Has anyone else ever tried something alike or solved this another way? Any comments welcome! Kind Regards, Jan - 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: continuations
done that trick also for a few sites but major problem here might consists that the client browser must have javascript enabled (to force the reload of the frame) and it must support frames (which is ugly) or iframes (which is IE only) can't you just always keep the continuations alive; so setting no session timeouts; or you might even temporarily store them yourself on a disk/db or whatever Regards, Gunter D'Hondt Jan Hoskens <[EMAIL PROTECTED]> 13/02/2006 10:29 Please respond to users@cocoon.apache.org To users@cocoon.apache.org cc Subject continuations Hi, I have a flow in which I create a form. When this form is displayed, I like to keep the continuation to stay alive for as long as the user is filling in that form (which can take more than one hour, depends on how many times the user is refilling his cup of tea or coffee, and how many colleagues are passing by to have a nice chat with ;-) ). I'm thinking of something similar like daisy does (http://cocoondev.org/daisy/index.html, made by outerthought): sending a form which carries an internal frame that refreshes itself every x minutes. This frame will load a page which contains the original ID from the form continuation (by request). A small flowscript function will then call the continuationmanager and retrieve the WebContinuation. Getting the continuation from this object will trigger the WebContinuation to update its access time and thus it will stay alive. Is this sensible? Has anyone else ever tried something alike or solved this another way? Any comments welcome! Kind Regards, Jan - 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]
continuations
Hi, I have a flow in which I create a form. When this form is displayed, I like to keep the continuation to stay alive for as long as the user is filling in that form (which can take more than one hour, depends on how many times the user is refilling his cup of tea or coffee, and how many colleagues are passing by to have a nice chat with ;-) ). I'm thinking of something similar like daisy does (http://cocoondev.org/daisy/index.html, made by outerthought): sending a form which carries an internal frame that refreshes itself every x minutes. This frame will load a page which contains the original ID from the form continuation (by request). A small flowscript function will then call the continuationmanager and retrieve the WebContinuation. Getting the continuation from this object will trigger the WebContinuation to update its access time and thus it will stay alive. Is this sensible? Has anyone else ever tried something alike or solved this another way? Any comments welcome! Kind Regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cform,flow with dynamically connect to database
Le 13 févr. 06, à 08:13, zulhisham abu nawar a écrit : ...so my first question here is, can i use esql approach with cform(of course include flow)... You certainly can, but it's not recommended, there are more modern ways of editing database data with CForms. Have a look at either bricks-cms [1], which requires java skills, or at the samples based on jdbi [2] where you can program all database access in flowscript. -Bertrand [1] http://wiki.apache.org/cocoon/BricksCms [2] The "easy SQL database access" samples at http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/ , and corresponding source code smime.p7s Description: S/MIME cryptographic signature