Sitemap variables substitution limits
Hi all, Does anyone know why I can't use the following syntax: map:match pattern=* map act type='{0}' . /map:act /map:match What are the limits of variables substitution? I have used them successfully e.g. in the pattern and src attributes. Can they be used for every attribute? Thanks in advance for any hint. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon Portal in the wild?
Hi, I want to gain an overview of how widespread the Cocoon portal is in use out there. If you are using the portal in some application then it would be great to hear about it. Either by a mail to the list or to me. If you can't disclose the exact project and/or company then perhaps send me an anonymized description :-) I will put the results up on the wiki. Thanks Matthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice - use db xmldb of or file system for simple xml (xhtml) documents
To be honest if I had free XML DB that had supported XQuery 3 months ago (eXist haven't even mentioned about it) I would definetely use XML DB - for simplicity reasons :-) Well I think you might have just missed this feature since it was added on *November 22, 2003 (almost exactly 3 Months ago). Well if I count correctly November 22 was almost exactly 2 months ago. Any way - I needed it at middle of October. Now I'll probably incorporate it in version 2.0 of my system :-) Regards, Marcin Okraszewski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for data persistance method recommendation
Antonio Gallardo wrote: Yes, I know I can pass collection of objects. But I'm afraid of memory usage if the collections are huge. :) But I think I'll do as you said, in the future maybe a iterator will be able to be passed :) This is a good question, but as usually we can paginate the output, then there cannot be to big collections at all. Also OJB can use some lazy load that will load objects only if they are requested. There are also proxies for beans, etc. See the features of OJB. Hmm, in the OJB Faq there is: Q: How to page and sort? A: .. There is no paging support in OJB. OJB is concerned with Object/Relational mapping and not with application specific presentation details like presenting a scrollable page of items. .. But using the techniques you mentioned paginating is not necessary to restrict collections size. I looked on the OJB Block (Cocoon 2.1.3) and I noticed that there is only OJB - JDO components, can I use ODMG or PB API? Can I safely update OJB Block from CVS to my Cocoon 2.1.3 installation? I have also question about OJB Block samples. I think the flow (employee.js) contains to much code. In my opinion there should be only one Employee class used in flow and EmployeeImpl should be hidden from the flow view. In every flow function I will need to get PM factory component, instantiate my bean, instantiate my persistent bean, call OJB method passing bean and factory... But I see problem to do it in my way: you need to get PM factory in the flow and pass it in the persistence objects method calls. Is the way to use OJB in Cocoon presented in the sample OK? And are you using that way in your other Cocoon/OJB projects? Regards, mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for data persistance method recommendation
Brian McCallister wrote: I misread your statement - you are looking at collections coming back from the query, not object referenced collections. In this case the proxy-prefetch limit won't help you, however passing the lazy loading collection as the return value from whatever your query/repository/etc service is should do that for you =) OK. Thnx for advice. I'll try to incorporate lazy loading later when I get base implementation :) Is JDO API stable in OJB? I've found notice that it is not finished yet. But maybe this is outdated. Regards, mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[xsp-session-fw][authentication] getting role
Hi, I'm using the Authentication framework and was trying to retreive the 'role' of a user by using the session. (just using the sitemap parameter {role} works fine) In an XSP I used the following line: String role = xsp-session-fw:getxml context="authentication" path="/authentication/role" as="string"/; I expected to get the full value of 'role', but got only a part of it. Apparently that line does not get every text node from the role element, but just the first one. (If I retreive it as a documentfragment, all is fine but I do want it as a string and don't want to parse the node itself!) Is this a bug?? If not, what is the meaning of the 'as="string"'?? Greetings, Jan
XML / postgresql and blob
Hello, first of all, I must say that I am an (happy) beginner with cocoon and postgresql. I created a postgres database in which I store blob (Binary Large OBjet such as jpeg images). Though, I use sql:query to do all of my queries but I really don't know how to access to a blob. in PHP the code will be something like : ?php $db = pg_connect(dbname=db-pfe host=localhost user=apache); pg_freeresult(pg_exec($db, begin)); $lo = pg_loopen($db, 164907, r); header(Content-type: image/jpeg); pg_loreadall($lo); pg_loclose($lo); pg_freeresult(pg_exec($db, rollback)); pg_close($db); ? My main problem is the use of lo_open lo_read and others in XML/XSL. (I do not find any example on the web with these funtions) thank you in advance, Stephane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[map:aggregate] passing sitemap parameter
Hi, I tried to pass a parameter within my aggregation: ... map:aggregate element="Document"map:part src="" strip-root="true"map:parameter name="test" value="testval"//map:part/map:aggregate ... map:match pattern="index"map:generate type="serverpages" src=""map:parameter name="test" value="{test}"//map:generatemap:serialize type="xml"//map:match When I show the parameter test, it always is empty. I looked at the logs, but when the part is called, I don't see where the parameter gets passed: sitemap.log: Current Sitemap Parameters:LEVEL 1PARAM: '0' VALUE: 'index' that's all! Why can't I pass parameters to a part? Or am I doing something wrong? setup: cocoon cvs head 2.1, updated yesterday Greetings, Jan
RE: [map:aggregate] passing sitemap parameter
You must set a parameter to a value, thorugh an action or a matcher. In this case, who sets the test parameter? David -Mensaje original- De: Jan Hoskens [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 21 de enero de 2004 10:48 Para: [EMAIL PROTECTED] Asunto: [map:aggregate] passing sitemap parameter Hi, I tried to pass a parameter within my aggregation: ... map:aggregate element=Document map:part src="" strip-root=true map:parameter name=test value=testval/ /map:part /map:aggregate ... map:match pattern=index map:generate type=serverpages src=""> map:parameter name=test value={test}/ /map:generate map:serialize type=xml/ /map:match When I show the parameter test, it always is empty. I looked at the logs, but when the part is called, I don't see where the parameter gets passed: sitemap.log: Current Sitemap Parameters: LEVEL 1 PARAM: '0' VALUE: 'index' that's all! Why can't I pass parameters to a part? Or am I doing something wrong? setup: cocoon cvs head 2.1, updated yesterday Greetings, Jan
Re: DateInputModule : formatting
Nevermind, I get the date directly from inside xsp : util:time format=dd-MM-/ works fine Julien - Original Message - From: julien bloit [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 7:05 PM Subject: DateInputModule : formatting Hi, I'm confused because although I've read several threads about the question, I can't seem to get a final solution to formatting the result from DateInputModule. http://wiki.cocoondev.org/Wiki.jsp?page=InputModules article mentions the problem about format attributes not working, and also says that nested format/ tags work fine. I've tried format using format tags in cocoon.xconf , in the component-instance tag of DateInputModule (and restarted tomcat) : fr-formatdd-MM-/fr-format and tried passing the date to an xsp : map:parameter name=mydate value={date:fr-format}/ - date outputs with default format. Is there something I'm missing? (I use cocoon-2.1.3) - 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: Looking for data persistance method recommendation
mirko dijo: Antonio Gallardo wrote: Yes, I know I can pass collection of objects. But I'm afraid of memory usage if the collections are huge. :) But I think I'll do as you said, in the future maybe a iterator will be able to be passed :) This is a good question, but as usually we can paginate the output, then there cannot be to big collections at all. Also OJB can use some lazy load that will load objects only if they are requested. There are also proxies for beans, etc. See the features of OJB. Hmm, in the OJB Faq there is: Q: How to page and sort? A: .. There is no paging support in OJB. OJB is concerned with Object/Relational mapping and not with application specific presentation details like presenting a scrollable page of items. .. But using the techniques you mentioned paginating is not necessary to restrict collections size. As mentioned before you can use lazy loads to do this. I looked on the OJB Block (Cocoon 2.1.3) and I noticed that there is only OJB - JDO components, can I use ODMG or PB API? Yes. Can I safely update OJB Block from CVS to my Cocoon 2.1.3 installation? Yes. I have also question about OJB Block samples. I think the flow (employee.js) contains to much code. In my opinion there should be only one Employee class used in flow and EmployeeImpl should be hidden from the flow view. In every flow function I will need to get PM factory component, instantiate my bean, instantiate my persistent bean, call OJB method passing bean and factory... I don't remember too much about the samples. At that time the OJB integration with Cocoon does not exist at all. Some people talked about that but nothing more. Also woody and flow was very new too. The samples just showed the idea is viable. I am planning to refactor the samples after I end the current work and write some better samples. I think it is a good idea to have 2 classes from the SoC point of view. The employee.class are the data (a bean). The employeeImpl.class is the model in the MVC paradigm. For more info about that, please review the devel archives I posted some mails while trying to do the all thing work. If you prefer other approach you are free to do it as you consider convenient. This was just a sample. :-D But I see problem to do it in my way: you need to get PM factory in the flow and pass it in the persistence objects method calls. Yes. This is the way we found. Is the way to use OJB in Cocoon presented in the sample OK? And are you using that way in your other Cocoon/OJB projects? Yes. 2 project are using more or less the same approach. Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [map:aggregate] passing sitemap parameter
Hmm, that wasn't to smart of me, I was treating the map:part more or less like a generator/transformer, but it only calls the pipeline. Thanks for reminding me, David! Greetings, Jan - Original Message - From: Carmona Perez, David To: [EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 10:54 AM Subject: RE: [map:aggregate] passing sitemap parameter You must set a parameter to a value, thorugh an action or a matcher. In this case, who sets the test parameter? David -Mensaje original-De: Jan Hoskens [mailto:[EMAIL PROTECTED]Enviado el: miércoles, 21 de enero de 2004 10:48Para: [EMAIL PROTECTED]Asunto: [map:aggregate] passing sitemap parameter Hi, I tried to pass a parameter within my aggregation: ... map:aggregate element="Document"map:part src="" strip-root="true"map:parameter name="test" value="testval"//map:part/map:aggregate ... map:match pattern="index"map:generate type="serverpages" src=""map:parameter name="test" value="{test}"//map:generatemap:serialize type="xml"//map:match When I show the parameter test, it always is empty. I looked at the logs, but when the part is called, I don't see where the parameter gets passed: sitemap.log: Current Sitemap Parameters:LEVEL 1PARAM: '0' VALUE: 'index' that's all! Why can't I pass parameters to a part? Or am I doing something wrong? setup: cocoon cvs head 2.1, updated yesterday Greetings, Jan
Re: [map:aggregate] passing sitemap parameter
Well, why can't we pass parameter to a map:part. I think it should be possible. Is there a reason why it is not the case? (like break Soc,...) Le Mercredi 21 Janvier 2004 11:10, Jan Hoskens a écrit : Hmm, that wasn't to smart of me, I was treating the map:part more or less like a generator/transformer, but it only calls the pipeline. Thanks for reminding me, David! Greetings, Jan - Original Message - From: Carmona Perez, David To: [EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 10:54 AM Subject: RE: [map:aggregate] passing sitemap parameter You must set a parameter to a value, thorugh an action or a matcher. In this case, who sets the 'test' parameter? David -Mensaje original- De: Jan Hoskens [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 21 de enero de 2004 10:48 Para: [EMAIL PROTECTED] Asunto: [map:aggregate] passing sitemap parameter Hi, I tried to pass a parameter within my aggregation: ... map:aggregate element=Document map:part src=cocoon:/index strip-root=true map:parameter name=test value=testval/ /map:part /map:aggregate ... map:match pattern=index map:generate type=serverpages src=pages/index.xsp map:parameter name=test value={test}/ /map:generate map:serialize type=xml/ /map:match When I show the parameter test, it always is empty. I looked at the logs, but when the part is called, I don't see where the parameter gets passed: sitemap.log: Current Sitemap Parameters: LEVEL 1 PARAM: '0' VALUE: 'index' that's all! Why can't I pass parameters to a part? Or am I doing something wrong? setup: cocoon cvs head 2.1, updated yesterday Greetings, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [map:aggregate] passing sitemap parameter
this probably does not this work either? map:aggregate element=Document map:part src=cocoon:/index?test=testval strip-root=true/ /map:aggregate map:match pattern=index map:generate type=serverpages src=pages/index.xsp map:parameter name=test value={request-param:test}/ /map:generate map:serialize type=xml/ /map:match or better you could do map:part src=cocoon:/index/testval strip-root=true/ map:match pattern=index/* map:generate type=serverpages src=pages/index.xsp map:parameter name=test value={1}/ Jan Hoskens wrote: Hi, I tried to pass a parameter within my aggregation: ... map:aggregate element=Document map:part src=cocoon:/index strip-root=true map:parameter name=test value=testval/ /map:part /map:aggregate ... map:match pattern=index map:generate type=serverpages src=pages/index.xsp map:parameter name=test value={test}/ /map:generate map:serialize type=xml/ /map:match When I show the parameter test, it always is empty. I looked at the logs, but when the part is called, I don't see where the parameter gets passed: sitemap.log: Current Sitemap Parameters: LEVEL 1 PARAM: '0' VALUE: 'index' that's all! Why can't I pass parameters to a part? Or am I doing something wrong? setup: cocoon cvs head 2.1, updated yesterday Greetings, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File downloading problem
Hi, Id like to make some Word and PDF files downloadable from my application, based on Cocoon 2.1.2 / Tomcat 4.1.18. Here is the problem I meet: - The first click on the link gives the following message : Internet Explorer cannot download toto.doc from localhostInternet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later. - If I click OK and try again, then the downloading comes successful. I know that this question has already been raised before, but the proposed solutions (consisting in adding a set-header action before the reader in the map:match) didnt solve my problem. Here is an extract of my sitemap: !-- Word files -- map:match pattern=resources/**.doc map:read mime-type=application/msword src=""> /map:match !-- PDF files -- map:match pattern=resources/**.pdf map:read mime-type=application/pdf src=""> /map:match Many thanks in advance for your help Antoine
Sitemap viewer, using the sitemap in a creative way - educational context
[Context: I'm working on a university lab set-up for content management issues, using Cocoon to demonstrate stuff about topic maps, ontologies] Folks, Is there some way to directly access the sitemap from within the Java code I attach to Cocoon? I'd like to query the sitemap to find out how some given URL will be processed, i.e. what components are used. Cocoon is an all-XML, self-describing system. The inner workings of the software can be understood by looking at the XML-information inside it. If I could access and publish the structure of the sitemap, students could browse it and see how their stuff gets processed. I'd love to have a self-explaining Any ideas? Sandor -- Information and Computing Sciences, Utrecht University Contact information, see: http://www.cs.uu.nl/people/sandor/ Our minds are harnessed by knowledge, by the hill and the will to succeed. From: Fish, Vigil in a wilderness of mirrors - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [map:aggregate] passing sitemap parameter
An aggregation part calls another pipeline, this pipeline can also be accessed from an external client and these cannot pass sitemap parameters. If however you do need to pass (yess Jorg, it does work!) a parameter, u need to build the URI to call the pipeline with request-parameters as index.html?param=value I do have another strange setup with sitemap parameters (here the origin of the former problem really lays ): I use an authentication and then call a resource within that pipeline, it would be easy to have the 'role' sitemap parameter (available after the authentication action) in the resource, and then further down the line. I can pass the parameter simply to the resource, but then because of the former issue, will have to pass it further as a request parameter.(still following??) map:match pattern=**.html map:act type=auth-protect map:parameter name=handler value=VbAuthenticationHandler/ map:call resource=AggregatedPage map:parameter name=role value={role}/ /map:call /map:act /map:match This does pass it to the resource, and then I'll have to use it as map:part src=index.html?role={role}/ Well this is my first guess, if it does not work, you'll notice!:-) Greetings, Jan - Original Message - From: Nicolas Toper [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 11:14 AM Subject: Re: [map:aggregate] passing sitemap parameter Well, why can't we pass parameter to a map:part. I think it should be possible. Is there a reason why it is not the case? (like break Soc,...) Le Mercredi 21 Janvier 2004 11:10, Jan Hoskens a écrit : Hmm, that wasn't to smart of me, I was treating the map:part more or less like a generator/transformer, but it only calls the pipeline. Thanks for reminding me, David! Greetings, Jan - Original Message - From: Carmona Perez, David To: [EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 10:54 AM Subject: RE: [map:aggregate] passing sitemap parameter You must set a parameter to a value, thorugh an action or a matcher. In this case, who sets the 'test' parameter? David -Mensaje original- De: Jan Hoskens [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 21 de enero de 2004 10:48 Para: [EMAIL PROTECTED] Asunto: [map:aggregate] passing sitemap parameter Hi, I tried to pass a parameter within my aggregation: ... map:aggregate element=Document map:part src=cocoon:/index strip-root=true map:parameter name=test value=testval/ /map:part /map:aggregate ... map:match pattern=index map:generate type=serverpages src=pages/index.xsp map:parameter name=test value={test}/ /map:generate map:serialize type=xml/ /map:match When I show the parameter test, it always is empty. I looked at the logs, but when the part is called, I don't see where the parameter gets passed: sitemap.log: Current Sitemap Parameters: LEVEL 1 PARAM: '0' VALUE: 'index' that's all! Why can't I pass parameters to a part? Or am I doing something wrong? setup: cocoon cvs head 2.1, updated yesterday Greetings, 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]
Re: [GT] Next week, GetTogether in Bern, Switzerland
Hi Bertrand I'm interested in Cocoon and am in Switzerland, so I've invited myself to your meeting. I hope this is OK. I've put the dates I can manage onto the Wiki. Regards Steve On 21 Jan 2004, at 07:29, Bertrand Delacretaz wrote: This is just an informal dinner, no big event this time. Please have a look at http://wiki.cocoondev.org/Wiki.jsp?page=CocoonUserGroupSwitzerland if you're interested. Michael Gerzabek kindly offered to coordinate the event. See you there! -Bertrand - 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: Sitemap viewer, using the sitemap in a creative way - educational context
It would be nice to have a visual editor for the sitemap to edit, view and debug it. I've been looking for such a beast for over a year, but the best I have found is Pollo. Pollo is great in its own way, but is text-based. I like pictures and could imagine something like a UML editor for the sitemap, but I don't have the time or the skills to knock it up. It might make an interesting semester project for your students though... Steve On 21 Jan 2004, at 11:24, Sandor Spruit wrote: [Context: I'm working on a university lab set-up for content management issues, using Cocoon to demonstrate stuff about topic maps, ontologies] Folks, Is there some way to directly access the sitemap from within the Java code I attach to Cocoon? I'd like to query the sitemap to find out how some given URL will be processed, i.e. what components are used. Cocoon is an all-XML, self-describing system. The inner workings of the software can be understood by looking at the XML-information inside it. If I could access and publish the structure of the sitemap, students could browse it and see how their stuff gets processed. I'd love to have a self-explaining Any ideas? Sandor -- Information and Computing Sciences, Utrecht University Contact information, see: http://www.cs.uu.nl/people/sandor/ Our minds are harnessed by knowledge, by the hill and the will to succeed. From: Fish, Vigil in a wilderness of mirrors - 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: A bug in XPath Directory Generator?
On 21.01.2004 07:26, Markus Vaterlaus wrote: Hi Joerg, hi list, the output of the stylesheet lokks like that: item key=version.xerces2Xerces-J 2.4.0/item item key=version.xalan2_2Xalan Java 2.5.0/item item key=java.version1.4.1_02/item Do you see any conflicts or potential problems? Unfortunately not :) The above is ok as with JDK 1.4.1 you would have Xalan 2.2.D11 and with 1.4.2 Xalan 2.4. So the above shows that you are using the expected XML libraries in TOMCAT/common/endorsed. Now I don't know exactly how to go on with your problem. The behaviour points to problems with SAX events, so having a look at the output of the log transformer after the xpath directory generator might give some hints. If it is really the XDG that has a bug or if you want to just test it, you can also try the normal DG and include the files via C/XInclude. Joerg On 20.01.2004 00:54, Joerg Heinicke wrote: Hello all, today I encountered a strange behaviour in the XPath Directory Generator. I was using it on a directory with about 600 files. If I was specifying the attribute value for the parameter xpath as root (/, see below), the generated output could only be processed by cocoon in a transformer generating an html page. ... map:generate type=xpathdirectory src=content map:parameter name=xpath value=// map:parameter name=xmlFiles value=\.x.*$/ /map:generate ... Using the same generator with an other matcher to generate a PDF did not work: An error message was shown, stating that fo:flow needs block level children. However, using content view, manually saving the resulting file and transforming it worked. After quite a while I changed the value of xpath from / to /therootelement and everything worked fine. Is there a bug in the xpath directory generator or am I doing something wrong? Such behaviour often points to problem with the XML libraries. What does the environment check say? Try the stylesheet at http://xml.apache.org/xalan-j/faq.html#environmentcheck. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing non-dynamic downloads.
Greetings Doctor Cummings, On 20 Jan 2004, at 16:18, James Cummings wrote: Now from this page of downloads there will be links to some downloads in a variety of formats (zip/tgz/pdf). All of these are preprocessed and I don't want to use the zip serializer to assemble a zip file on the fly or anything like that. How do I allow the user to have any file under this sent to them? I just want it to be a normal html link like a href=foo.tgzFoo/a and foo.tgz to be passed through in the same way it does if I had it outside of cocoon. You need to set up entries for the various file extensions: map:match pattern=downloads/*.pdf map:read src=resources/pdf/{1}.pdf/ /map:match You can optionally add a MIME type: map:match pattern=downloads/*.zip map:read src=resources/zip/{1}.zip mime-type=application/zip/ /map:match But what do I serialize it as? I don't want to have separate rules for each of the possible file types, and they are going to be pre-cooked and sat there in the downloads/ directory. No serializing, just passing through. You *could* do a generic matcher, but you'd probably want to use the regexp matcher for that: map:match type=regexp pattern=some pattern here that splits on '.' and places content in {1}.{2} map:read src=resources/{2}/{1}.{2}/ /map:match hope that helps! Andrew. -- Andrew Savory, Managing Director, Luminas Limited Tel: +44 (0)870 741 6658 Fax: +44 (0)700 598 1135 Web: http://www.luminas.co.uk/ Orixo alliance: http://www.orixo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sitemap viewer, using the sitemap in a creative way - educational context
Stephen Winnall dijo: It would be nice to have a visual editor for the sitemap to edit, view and debug it. I've been looking for such a beast for over a year, but the best I have found is Pollo. Pollo is great in its own way, but is text-based. I like pictures and could imagine something like a UML editor for the sitemap, but I don't have the time or the skills to knock it up. It might make an interesting semester project for your students though... Hi: There is a interesting graphical notation that Stefano presented at Gent2003. Maybe this could be the base to write the sitemap in a graphical way and then generate the sitemap.xmap: http://wiki.cocoondev.org/Wiki.jsp?page=GT2003Stefano the presentation is at: http://apache.mirrors.hoobly.com/cocoon/events/gt2003/ Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [xsp-session-fw][authentication] getting role
Hi, This is a bug, in my opinion. I already posted it in the dev mailing list (but haven't got an answer yet). Here's my work around: Think of role, instead of name xsp:logic org.w3c.dom.DocumentFragment fragment = xsp-session-fw:getxml as=object context=authentication path=/authentication/data/name/ StringBuffer name = new StringBuffer(); for(int i = 0; ilt; fragment.getChildNodes().getLength(); i++){ name.append(fragment.getChildNodes().item(i).getNodeValue()); } /xsp:logic Now the whole string is saved in the variable name, you can use now for your perpose. Hope that helped, Good luck, Stephanie Hi, I'm using the Authentication framework and was trying to retreive the 'role' of a user by using the session. (just using the sitemap parameter {role} works fine) In an XSP I used the following line: String role = xsp-session-fw:getxml context=authentication path=/authentication/role as=string/; I expected to get the full value of 'role', but got only a part of it. Apparently that line does not get every text node from the role element, but just the first one. (If I retreive it as a documentfragment, all is fine but I do want it as a string and don't want to parse the node itself!) Is this a bug?? If not, what is the meaning of the 'as=string'?? Greetings, Jan -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [xsp-session-fw][authentication] getting role
On 21.01.2004 12:23, Stephanie Zohner wrote: Hi, This is a bug, in my opinion. I already posted it in the dev mailing list (but haven't got an answer yet). Does an entry on bugzilla exist? Antonio, I don't want to point on you, but wasn't that your extension (getxml)?? Joerg Here's my work around: Think of role, instead of name xsp:logic org.w3c.dom.DocumentFragment fragment = xsp-session-fw:getxml as=object context=authentication path=/authentication/data/name/ StringBuffer name = new StringBuffer(); for(int i = 0; ilt; fragment.getChildNodes().getLength(); i++){ name.append(fragment.getChildNodes().item(i).getNodeValue()); } /xsp:logic Now the whole string is saved in the variable name, you can use now for your perpose. Hope that helped, Good luck, Stephanie Hi, I'm using the Authentication framework and was trying to retreive the 'role' of a user by using the session. (just using the sitemap parameter {role} works fine) In an XSP I used the following line: String role = xsp-session-fw:getxml context=authentication path=/authentication/role as=string/; I expected to get the full value of 'role', but got only a part of it. Apparently that line does not get every text node from the role element, but just the first one. (If I retreive it as a documentfragment, all is fine but I do want it as a string and don't want to parse the node itself!) Is this a bug?? If not, what is the meaning of the 'as=string'?? Greetings, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [xsp-session-fw][authentication] getting role
Hi Stephanie: The code was not designed to retrieve all the nodes, just the first node while using as=string. But of course this can change. How we can separate every node in the returned string? Or we don't need a separation char at all? Please comments. Best Regards, Antonio Gallardo Stephanie Zohner dijo: Hi, This is a bug, in my opinion. I already posted it in the dev mailing list (but haven't got an answer yet). Here's my work around: Think of role, instead of name xsp:logic org.w3c.dom.DocumentFragment fragment = xsp-session-fw:getxml as=object context=authentication path=/authentication/data/name/ StringBuffer name = new StringBuffer(); for(int i = 0; ilt; fragment.getChildNodes().getLength(); i++){ name.append(fragment.getChildNodes().item(i).getNodeValue()); } /xsp:logic Now the whole string is saved in the variable name, you can use now for your purpose. Hope that helped, Good luck, Stephanie Hi, I'm using the Authentication framework and was trying to retrieve the 'role' of a user by using the session. (just using the sitemap parameter {role} works fine) In an XSP I used the following line: String role = xsp-session-fw:getxml context=authentication path=/authentication/role as=string/; I expected to get the full value of 'role', but got only a part of it. Apparently that line does not get every text node from the role element, but just the first one. (If I retreive it as a documentfragment, all is fine but I do want it as a string and don't want to parse the node itself!) Is this a bug?? If not, what is the meaning of the 'as=string'?? Greetings, Jan -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - 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-session-fw][authentication] getting role
Joerg Heinicke dijo: On 21.01.2004 12:23, Stephanie Zohner wrote: Hi, This is a bug, in my opinion. I already posted it in the dev mailing list (but haven't got an answer yet). Does an entry on bugzilla exist? Antonio, I don't want to point on you, but wasn't that your extension (getxml)?? lol. :- Yes, I already posted a mail requesting some ideas to improve the tag. Thanks for the remainder. :-DD Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [xsp-session-fw][authentication] getting role
Joerg Heinicke dijo: On 21.01.2004 12:23, Stephanie Zohner wrote: Hi, This is a bug, in my opinion. I already posted it in the dev mailing list (but haven't got an answer yet). Does an entry on bugzilla exist? Antonio, I don't want to point on you, but wasn't that your extension (getxml)?? It's not a bug, it is a feature! lol. ;-) Best Regards, Antonio Gallardo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication framework problem
Hi Nesto, not a complete answer, but some pointers that might help you: 1) writing a simple action that checks the user parameters (username/password) provided through a web form, with those stored in the database. Here the problem, for me, is to write java code that reuse the connection pool set for other pipelines (but at a transform level). I have no idea... You need to get hold of the DataSourceSelector to get hold of a pooled connection: 1.Write an action that extends ServiceableAction. 2.Overwrite the service method: public void service(ServiceManager manager) throws ServiceException { this.dbselector = (ServiceSelector) manager.lookup(DataSourceComponent.ROLE + Selector); super.service(manager); } [I am assuming dbSelector is a private field of the action of class ...avalon.framework.service.ServiceSelector.] 3. Overwrite the dispose method to release the component: public void dispose() { this.manager.release(this.dbselector); super.dispose(); } Now you can use the dbselector anywhere in your action code to obtain a datasource which in turn can give you a connection: DataSourceComponent datasource = (DataSourceComponent)this.dbselector.select(nameofyourpool); Connection conn = datasource.getConnection(); conn is of class java.sql.Connection, so from here you should be able to get on yourself using JDBC. NOTE: I am still not very experienced with avalon and components, so the code might not be ideal, but it works for me. If someone has corrections, I'd be happy to hear them. For a good example of obtaining a pooled connection and using it, look at the SQLTransformer. 2) customize the authentication resource, to use the existing authentication framework. But Where can I add the custom code that queries my database? Do I Have to change only the AuthAction class? I don't know the authentication-framework particularly well, but the authentication handler takes a uri that has to return some xml to grant authorization or not, doesn't it? You could just write an esql-xsp-page to query your database and return the xml accordingly. That would probably be a lot easier than the action-approach, if you're already using the framework. HTH Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [xsp-session-fw][authentication] getting role
How we can separate every node in the returned string? Or we don't need a separation char at all? I don't think we need a separation because we have no influence on which part of the string is in which node. I can't think of any usage. I think it's rather irritating to get only a part of the string. From the user's point of view this behaviour is rather unintuitive. Regards, Stephanie -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to make back button on woody form (flow)?
How to make back button on woody form (flow)? Can I define any widget for that? -- Hubert Trzewik Prosystel Sp. z o.o. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [portal] Linking to portal pages
Alex I'm not sure to understand what your problem is. When you declare a coplet attribute in the copletinstancedata dir, it's like a local variable where the scope is the coplet itself. Laurent -Message d'origine- De : Alex Romayev [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 janvier 2004 17:08 À : [EMAIL PROTECTED] Objet : RE: [portal] Linking to portal pages OK, I'm almost there! The reason for the error was that I was using parameters/news-id rather than attributes/news-id. Now one question: easier to show with an example: This works: map:match pattern=news-item.portlet map:generate src=news.xml/ map:transform src=filter-news-item.xsl map:parameter name=news-id value={coplet:attribute/news-id}/ /map:transform map:transform src=news-item2html.xsl/ map:serialize type=xml/ /map:match However, this does't (notice, that the attribute is being used by another pipeline, which is called by the coplet pipeline): map:match pattern=news-item.portlet map:generate src=cocoon:/news-item.resouce/ map:transform src=news-item2html.xsl/ map:serialize type=xml/ /map:match map:match pattern=news-item.resource map:generate src=news.xml/ map:transform src=filter-news-item.xsl map:parameter name=news-id value={coplet:attribute/news-id}/ /map:transform map:serialize type=xml/ /map:match Any ideas? Thanks, -Alex --- Alex Romayev [EMAIL PROTECTED] wrote: Hi Laurent, Thanks again for your help, -Alex == copletinstancedata/portal.xml: The calling coplet: coplet-instance-data id=news-summary-1 name=standard coplet-datanews-summary/coplet-data /coplet-instance-data The coplet being called, requires news-id parameter (no default): coplet-instance-data id=news-item-1 name=standard coplet-datanews-item/coplet-data attribute namenews-id/name value xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=java:java.lang.String/value /attribute /coplet-instance-data == portlets.xmap: map:match pattern=home/news-summary.portlet map:generate src=cocoon://site/home/news-summary.resource/ map:transform src=portal/styles/html/portlets/home/news-summary.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:act type=locale map:transform type=i18n map:parameter name=locale value={locale}/ /map:transform /map:act map:transform type=portal-coplet / map:serialize type=xml/ /map:match map:match pattern=news/news-news-item.portlet map:aggregate element=module map:part src=cocoon://site/content/news.processed.xml/ map:part src=cocoon://site/content/family.processed.xml/ /map:aggregate map:transform src=portal/xslt/news/join-with-people.xsl/ map:transform src=portal/xslt/news/news-item.xsl map:parameter name=news-id value={coplet:attributes/news-id}/ /map:transform map:transform src=portal/styles/html/portlets/home/news-summary.xsl/ map:act type=locale map:transform type=i18n map:parameter name=locale value={locale}/ /map:transform /map:act map:transform type=portal-coplet / map:serialize type=xml/ /map:match === news-summary.xsl cl:links cl:link layout=maintab value=3 path=aspectDatas/tab/ cl:link layout=newstab value=2 path=aspectDatas/tab/ cl:link coplet=news-item-1 value=[EMAIL PROTECTED] path=parameters/news-id/ cl:contentRead more/cl:content /cl:links --- Laurent Trillaud [EMAIL PROTECTED] wrote: Alex Can you give snippets of your copletinstancedata/portal.xml file and your sitemap.xmap? Laurent -Message d'origine- De : Alex Romayev [mailto:[EMAIL PROTECTED] Envoyi : mardi 20 janvier 2004 00:21 @ : [EMAIL PROTECTED] Objet : RE: [portal] Linking to portal pages Laurent, I think I'm almost there, however I'm getting an error and I believe it is because I don't quite understand your point #2 and making some mistake there. The error that I get is: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.commons.jxpath.JXPathException: Exception trying to set value with xpath parameters/news-id; Cannot set property /parameters/news-id, path does not match a changeable location. Please see my comments below. Thanks, -Alex --- Laurent Trillaud [EMAIL PROTECTED] wrote: Alex Yes, but it's a bad idea, because you haven't insurance about coplets synchronization, and you will not have the benefit of the history record of the portal. The good design is to use coplet attributes.
use parameter from sitemap in java transformer
Hi, ive written a transformer in java, map:transformer name=addLinks src=de.amacont.dom.transformation.LinkTransformer/ which works well. Now I want to use a parameter in it, which I can set in the sitemap, like map:transform type=addLinks map:parameter name=componentTag value=span/ /map:transform I dont know how to, though. I know who I can use such a parameter in XSL Stylesheets, but Java? How do I instantiate them? My transformer extends from AbstractDOMTransformer and just implements the transform(Document) method. Thx for your help stefan
RE: How to access http-request parameters in a coplet
Stefan Acces to any context is not different from a coplet or from the sitemap. Use inputmodule. You have one for http request an a lot of sample in your cocoon http://localhost:/samples/modules/request.xsp Laurent De: Stefan Eichenhofer [mailto:[EMAIL PROTECTED] Envoyé: mardi 20 janvier 2004 16:59 À: [EMAIL PROTECTED] Objet: How to access http-request parameters in a coplet Hi everyone, is there a possibilty to directly access the http request parameters from within a coplet? Or, more generally, how are params passed to a coplet? thnx for help stefan
AW: use parameter from sitemap in java transformer
Thanx for your quick answer. However It didn't work. I overwrote the setup method in my transformer like this had to catch the ParameterException public void setup(SourceResolver resolver,Map objectModel,String src, Parameters par) throws ProcessingException, SAXException, IOException { if (par.isParameter(componentTag)) { try { this.COMP_TAG = par.getParameter(componentTag); }catch (ParameterException pe) { System.out.println(Failed to get parameter \componentTag\ from sitemap!); } } } ):, but the parameter COMP_TAG stays on the default initialization value, no matter how I change the parameter in the sitemap. When is the setup method called? I tried to put a system.out.println into setup(), but it didn't even show up in the console :o stefan -Ursprüngliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Jorg Heymans Gesendet: Mittwoch, 21. Januar 2004 14:04 An: [EMAIL PROTECTED] Betreff: Re: use parameter from sitemap in java transformer override the setup() method public void setup( SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { if (par.isParameter(myparameter)) { this.parameter = par.getParameter(myparameter); } Stefan Pietschmann wrote: Hi, ive written a transformer in java, map:transformer name=addLinks src=de.amacont.dom.transformation.LinkTransformer/ which works well. Now I want to use a parameter in it, which I can set in the sitemap, like map:transform type=addLinks map:parameter name=componentTag value=span/ /map:transform I dont know how to, though. I know who I can use such a parameter in XSL Stylesheets, but Java? How do I instantiate them? My transformer extends from AbstractDOMTransformer and just implements the transform(Document) method. Thx for your help stefan - 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: Cocoon CLI Request params
Sorry Upayavira, I must have skipped your reply. I'm not sure I understood your explaination right. You say the CLI handles request params, in the way that you hardcode it in the URL src-Attribute. Is that right? But how can I set the request params dynamically? In case I use the command line parameter method I can generate a text file with my urls (including the request params) in my command line before I call cocoon cli, but how can I do it when I want to use the Xconf method? Regards, Stephanie Stephanie Zohner wrote: Hi, Sorry, for contacting you directy. I posted my problem in the cocoon users mailing list before, but did not get any reply. I'm just trying to get a better understanding of the cocoon command line interface. The configuration is quite tricky but with the help of the mailing list I could run a simple example, at least. However, my problem now is: How can I configure request parameters for one of the URLS in the cli.xconf? Can I hand request params over to a defined uri when I call the cocoon cli? Thanks for your help, Stephanie Stephanie, You did get a reply. I replied on the list. You can see my reply at: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=107463604109759w=2 As I say there, if you feel like helping to improve request parameter handling, I'd happily help you... Regards, Upayavira -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make back button on woody form (flow)?
I don't think there's a woody widget for that purpose (submit button), but i use the following: Create as many input with type=submit buttons as you like, use the same name for each button and assign a different value for each. Then in your flow just check that requestobject(name)=value and choose the appropriate action. (thus everything you do with submit buttons can be used also, of course) e.g. input type=submit name=submit_action value=Cancel align=center/ Stops the flow and does not safe any data input type=submit name=submit_action value=Ok align=center/ Stops flow and does save data Greetings, Jan - Original Message - From: Hubert Trzewik (Prosystel) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 1:54 PM Subject: How to make back button on woody form (flow)? How to make back button on woody form (flow)? Can I define any widget for that? -- Hubert Trzewik Prosystel Sp. z o.o. [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: How to build a flexible menu system - example anyone?
You can also use http://www.brainjar.com/dhtml/menubar/ No complex javascript, all can be generate server side by cocoon. Laurent Trillaud -Message d'origine- De : [EMAIL PROTECTED] [mailto:pfennig63- [EMAIL PROTECTED] Envoyé : mardi 20 janvier 2004 17:13 À : [EMAIL PROTECTED] Objet : How to build a flexible menu system - example anyone? Hi fellow Cocoon users, I concider myself still a novice with Cocoon, but I love it already. Here is my desire: I'd like to build a flexible menu system into my generated websites. It should be simple but flexible. I tried to backport the Forrest Menu system, but got stuck with technical issues (see earlier post). Can anyone point me to an example of a flexible menu system implemented in Cocoon. Example or Demo for a start is fine. Thanks a million Ko = [EMAIL PROTECTED] Conficio - www.conficio.com P.O.Box 1062, Melrose, MA 02176 Tel: +1 (781) 632 5773 - 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: use parameter from sitemap in java transformer
Hi Stefan, you need to implement Parameterizable interface in your transformer... Something like: public class LinkTransformer ... implements Parameterizable { ... public void parameterize(Parameters params) throws ParameterException { try { value = params.getParameter( componentTag); } catch(ParameterException pe) ... } the parametrize method is invoked each time the component is requested... Hope this helps Rui On Wed, 2004-01-21 at 12:51, Stefan Pietschmann wrote: Hi, ive written a transformer in java, map:transformer name=addLinks src=de.amacont.dom.transformation.LinkTransformer/ which works well. Now I want to use a parameter in it, which I can set in the sitemap, like map:transform type=addLinks map:parameter name=componentTag value=span/ /map:transform I dont know how to, though. I know who I can use such a parameter in XSL Stylesheets, but Java? How do I instantiate them? My transformer extends from AbstractDOMTransformer and just implements the transform(Document) method. Thx for your help stefan -- Rui Alberto L. Gonalves [EMAIL PROTECTED] PT Inovao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for data persistance method recommendation
On Jan 21, 2004, at 4:11 AM, mirko wrote: Hmm, in the OJB Faq there is: Q: How to page and sort? A: .. There is no paging support in OJB. OJB is concerned with Object/Relational mapping and not with application specific presentation details like presenting a scrollable page of items. .. Hmm, the functionality is very new (just went in either late December or early January) so information probably hasn't propogated yet. I know there are configuration descriptions in the metadata config document. The best docs are still probably as comments in the repository.dtd in cvs at the moment. I have written the (limited still) docs on the proxy-prefetch stuff after the last release, and right now the site is only updated when a release is pushed. btw - it may be worth moving this discussion to [EMAIL PROTECTED] at this point =) On the Cocoon block and using OJB from flow, etc: As mentioned, I use OJB in two cocoon apps I am working on. One is in production (woo hoo!) and the other is under development. In both cases I do not expose OJB directly to Cocoon. I provide a set of services into application functionality and make these available from flow. The services use OJB. Remember that Cocoon, really, is just a big servlet so you can do any Java stuff you want to in it. -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [xsp-session-fw][authentication] getting role
This may be related to something that I found in the AbstractDOMTransformer where it would only return a portion of the data from a tag: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26219 Joerg Heinicke seemed to think the problem was not in the ADT but perhaps in some lower-level class. Maybe these two problems have the same root cause. Morley -Original Message- From: Antonio Gallardo [mailto:[EMAIL PROTECTED] Sent: Wednesday January 21, 2004 6:36 AM To: [EMAIL PROTECTED] Subject: Re: [xsp-session-fw][authentication] getting role Joerg Heinicke dijo: On 21.01.2004 12:23, Stephanie Zohner wrote: Hi, This is a bug, in my opinion. I already posted it in the dev mailing list (but haven't got an answer yet). Does an entry on bugzilla exist? Antonio, I don't want to point on you, but wasn't that your extension (getxml)?? It's not a bug, it is a feature! lol. ;-) 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: Logicsheet not working, anyone help?
I believe the problem is in your catch-all template in your logicsheet: xsl:template match=@*|node() xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template because this is AFTER your template matching abc:datetime, and not at a lower priority, it gets applied instead of your abc:datetime template. Change the above template to have priority=-2 and you'll get better results. -Christopher |-+ | | Tommy Smith| | | [EMAIL PROTECTED]| | | .com| | || | | 01/21/2004 09:46 | | | AM | | | Please respond to| | | users| | || |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Logicsheet not working, anyone help? | --| Hi, I am trying to get my first logic sheet up and running but with little success. I'm working through the Cocoon Developers Handbook. web page is rendered but not logicsheet output. Can anyone spot what is wrong? Sorry for the length of mail Logic sheet ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://apache.org/xsp; xmlns:abc=http://samspublishing.com/abc/1.0; version=1.0 xsl:template match=xsp:page xsp:page xsl:apply-templates select=@*/ xsp:structure xsp:includejava.util.Date/xsp:include /xsp:structure xsp:logic Date now = new Date(); /xsp:logic xsl:apply-templates/ /xsp:page /xsl:template xsl:template match=abc:datetime The current time is xsp:exprnow/xsp:expr /xsl:template xsl:template match=@*|node() xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template xsl:template match=text() xsl:value-of select=. / /xsl:template /xsl:stylesheet main.xsp entry*** ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:abc=http://samspublishing.com/abc/1.0; page page-titleWelcome to ABC Software/page-title content titleHello!/title paragraph abc:datetime/ Welcome to the ABC Software support website. On this site, you will be able to submit support requests, track open requests and view your support contract bills. /paragraph paragraph abc:datetime/ /paragraph /content /page /xsp:page ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB Samples
On Jan 20, 2004, at 6:32 PM, Antonio Gallardo wrote: Can you post the error? I think it can be related to a non enhanced classes. Best Regards, Antonio Gallardo here it is: Original Exception: com.sun.jdori.model.ModelFatalException: Missing JDO metadata for enhanced class 'org.apache.cocoon.ojb.samples.Department'. at com.sun.jdori.common.model.jdo.JDOModelImpl.lookupXMLMetadata(Unknown Source) at com.sun.jdori.common.model.jdo.JDOModelImpl.getJDOClass(Unknown Source) at com.sun.jdori.common.model.jdo.JDOModelImpl.getJDOClass(Unknown Source) at com.sun.jdori.common.model.runtime.RuntimeJavaType.getJDOClass(Unknown Source) at com.sun.jdori.common.state.StateManagerImpl.initializePC(Unknown Source) at com.sun.jdori.common.state.StateManagerImpl.init(Unknown Source) at com.sun.jdori.common.state.StateManagerFactory.newInstance(Unknown Source) at com.sun.jdori.common.CacheManagerImpl.makePersistent(Unknown Source) at com.sun.jdori.common.PersistenceManagerImpl.makePersistentInternal(Unkno wn Source) at com.sun.jdori.common.PersistenceManagerImpl.makePersistent(Unknown Source) at com.sun.jdori.common.PersistenceManagerWrapper.makePersistent(Unknown Source) at org.apache.cocoon.www.samples.ojb.jdo.xsp.demo1_xsp.generate(org.apache. cocoon.www.samples.ojb.jdo.xsp.demo1_xsp:188) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe nerator.java:263) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process XMLPipeline(AbstractProcessingPipeline.java:557) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe line.processXMLPipeline(AbstractCachingProcessingPipeline.java:196) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process (AbstractProcessingPipeline.java:501) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke( SerializeNode.java:155) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i nvoke(PreparableMatchNode.java:165) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P ipelineNode.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(TreePro cessor.java:371) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro cessor.java:312) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun tNode.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i nvoke(PreparableMatchNode.java:165) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P ipelineNode.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(TreePro cessor.java:371) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro cessor.java:312) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun tNode.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i nvoke(PreparableMatchNode.java:165) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P ipelineNode.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(TreePro cessor.java:371) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro cessor.java:312) at org.apache.cocoon.Cocoon.process(Cocoon.java:656) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java: 1112) at
REPOST Re: XSP Action, Bug?
I did another update (cocoon 2.1 cvs head) today, but still I get an error if I use an xsp action in the following setup: map:match... map:act type="serverpages" src="" map:call function="package" !--some parameters, yes I did change my {1} to {../1} when Iuse the action, if I leave the action out I use {1} and then itworks-- /map:call /map:act ...!--doesn't get here-- /map:match I did use the same setup under the Cocoon Release 2.1.3 version and there it did work fine! I now get another error, not referencing the serverpagesgenerator anymore but the pipeline itself [sitemap.handled-errors] (/cocoon/cocoontest/blabla.html) http8080-Processor2/PipelineNode: Failed to execute pipeline.org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerExceptionat org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:564) Anything broken? Any others that get the same error with xsp actions? Greetings, Jan - Original Message - From: Jan Hoskens To: [EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 10:24 AM Subject: XSP Action Hi, I've updated my cvs head today and tried to run my site. Whenever I want to use an xsp action, I get a nullpointer exception: ERROR (2004-01-20) 10:17.08:730 [sitemap.handled-errors] (/cocoon/cocoontest/index.html) http8080-Processor2/PipelineNode: java.lang.NullPointerExceptionat org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:198)at org.apache.cocoon.acting.ServerPagesAction.act(ServerPagesAction.java:169) My actions DID WORK in the release version 2.1.3! Is there anything broken in the current cvs head version ? Thanks, Jan
authentication only one login per account
Hello everybody Can I somehow prevent someone to use an account, which is already logged in? I'd like to limit the access, so that only one person at a time can log into the same account. How can I get the info, if someone is already logged in with this account? Thanks Ciao Dominik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: use parameter from sitemap in java transformer
ztrange :) This has worked for me exactly like this a million times before. Are you seeing anything in error.log? Alternatively the parameterizable interface that Rui suggests should also work, although for me setup() is more clear. setup() is called on each pipeline component during pipeline setup. Try putting extensive logging everywhere, i have a feeling something is not happening like you think it is, but can't pinpoint it (how's that for a useless vague statement eh :) Jorg Stefan Pietschmann wrote: Thanx for your quick answer. However It didn't work. I overwrote the setup method in my transformer like this had to catch the ParameterException public void setup(SourceResolver resolver,Map objectModel,String src, Parameters par) throws ProcessingException, SAXException, IOException { if (par.isParameter(componentTag)) { try { this.COMP_TAG = par.getParameter(componentTag); }catch (ParameterException pe) { System.out.println(Failed to get parameter \componentTag\ from sitemap!); } } } ):, but the parameter COMP_TAG stays on the default initialization value, no matter how I change the parameter in the sitemap. When is the setup method called? I tried to put a system.out.println into setup(), but it didn't even show up in the console :o stefan -Ursprngliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Jorg Heymans Gesendet: Mittwoch, 21. Januar 2004 14:04 An: [EMAIL PROTECTED] Betreff: Re: use parameter from sitemap in java transformer override the setup() method public void setup( SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { if (par.isParameter(myparameter)) { this.parameter = par.getParameter(myparameter); } Stefan Pietschmann wrote: Hi, ive written a transformer in java, map:transformer name=addLinks src=de.amacont.dom.transformation.LinkTransformer/ which works well. Now I want to use a parameter in it, which I can set in the sitemap, like map:transform type=addLinks map:parameter name=componentTag value=span/ /map:transform I dont know how to, though. I know who I can use such a parameter in XSL Stylesheets, but Java? How do I instantiate them? My transformer extends from AbstractDOMTransformer and just implements the transform(Document) method. Thx for your help stefan - 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: Cocoon CLI Request params
Hi, I'm still fighting with request params in CLI xconf. For testing I added the request params to the URI src attribute (see below). The called pipeline inserts an xml element in an existing xml file. 1. problem: When I run cocoon cli with this xconf file, the generation is completed with no errors but instead of one xml element, two element are added to the xml-file. So it seems that the defined pipeline is called twice instead of only once. But what command does produce this behaviour? When I call the pipeline in the browser everything works fine. 2. problem: Can I configure request-params with the command line parameter method, too? How is the syntax for the url in the command line then? Regards, Stephanie Sorry Upayavira, I must have skipped your reply. I'm not sure I understood your explaination right. You say the CLI handles request params, in the way that you hardcode it in the URL src-Attribute. Is that right? But how can I set the request params dynamically? In case I use the command line parameter method I can generate a text file with my urls (including the request params) in my command line before I call cocoon cli, but how can I do it when I want to use the Xconf method? Regards, Stephanie Stephanie Zohner wrote: Hi, Sorry, for contacting you directy. I posted my problem in the cocoon users mailing list before, but did not get any reply. I'm just trying to get a better understanding of the cocoon command line interface. The configuration is quite tricky but with the help of the mailing list I could run a simple example, at least. However, my problem now is: How can I configure request parameters for one of the URLS in the cli.xconf? Can I hand request params over to a defined uri when I call the cocoon cli? Thanks for your help, Stephanie Stephanie, You did get a reply. I replied on the list. You can see my reply at: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=107463604109759w=2 As I say there, if you feel like helping to improve request parameter handling, I'd happily help you... Regards, Upayavira -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logicsheet not working, anyone help?
Thanks for the reply. I tried as you suggested, but still don't see any output from logicsheet. xsl:template match=@*|node() priority=-2 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template From: Christopher Painter-Wakefield [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Logicsheet not working, anyone help? Date: Wed, 21 Jan 2004 09:57:20 -0500 I believe the problem is in your catch-all template in your logicsheet: xsl:template match=@*|node() xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template because this is AFTER your template matching abc:datetime, and not at a lower priority, it gets applied instead of your abc:datetime template. Change the above template to have priority=-2 and you'll get better results. -Christopher |-+ | | Tommy Smith| | | [EMAIL PROTECTED]| | | .com| | || | | 01/21/2004 09:46 | | | AM | | | Please respond to| | | users| | || |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Logicsheet not working, anyone help? | --| Hi, I am trying to get my first logic sheet up and running but with little success. I'm working through the Cocoon Developers Handbook. web page is rendered but not logicsheet output. Can anyone spot what is wrong? Sorry for the length of mail Logic sheet ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://apache.org/xsp; xmlns:abc=http://samspublishing.com/abc/1.0; version=1.0 xsl:template match=xsp:page xsp:page xsl:apply-templates select=@*/ xsp:structure xsp:includejava.util.Date/xsp:include /xsp:structure xsp:logic Date now = new Date(); /xsp:logic xsl:apply-templates/ /xsp:page /xsl:template xsl:template match=abc:datetime The current time is xsp:exprnow/xsp:expr /xsl:template xsl:template match=@*|node() xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template xsl:template match=text() xsl:value-of select=. / /xsl:template /xsl:stylesheet main.xsp entry*** ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:abc=http://samspublishing.com/abc/1.0; page page-titleWelcome to ABC Software/page-title content titleHello!/title paragraph abc:datetime/ Welcome to the ABC Software support website. On this site, you will be able to submit support requests, track open requests and view your support contract bills. /paragraph paragraph abc:datetime/ /paragraph /content /page /xsp:page ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance analysis/optimization?
Joerg: Your request was somewhat unspecific. Is your application slow in a specific part, is it just a feeling that the whole application is somewhat slow or do you need just information in general? The client has just said it's slow without yet providing any more detail. I'm waiting for more info...but in the meantime figured I would start investigating the options and tools that are available for Perf Tuning, hence my post. Did you do an analysis of your critical parts (e.g. using profiling pipelines)? How do I use profiling pipelines? Not familiar with that... Thanks! Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: esql: How to protect table/column name parameters from exploits?
On Cocoon Users list, Conal Tuohy wrote: Lars Huttar wrote: HOWEVER... if the request parameter is not to be used as a literal value but as a table or column name, esql:parameter doesn't work. E.g. in SELECT count(*) TOTAL FROM xsp-request:get-parameter name=table/ where xsp-request:get-parameter name=column / is not null If I try to wrap the above xsp-request:get-parameter elements with esql:parameter elements, the query fails. If I treat the table parameter that way, I get an invalid table name error. If I do that to the column parameter, the Select selects all rows. In other words, it's acting as though the table name or column name were put in quotes. SO... Given that the table name and column name could be vulnerable to URL exploits, how do I protect them in esql? Any suggestions? Do you really want users to be able to access any table? I suggest probably not. Hmm, good point. You could use a Selector to check that the table parameter falls into a set of allowed values. http://cocoon.apache.org/2.1/userdocs/selectors/requestparameter-selector.html Or the WildcardRequestParameterMatcher which would allow you specify the list of tables as a single regular expression I believe (though I've not done this myself). http://cocoon.apache.org/2.1/userdocs/concepts/matchers_selectors.html#Using+Matchers Thanks for the suggestions and the insight. Come to think of it, some of the cases where table/column names are passed as parameters could be done as internal-only pipelines. But not all. So we might have to do some pattern-matching as you suggested. I *think* this is only an issue in our sanity checks utility (checking that all the tables and columns have some data in them, that sort of thing). So those particular XSP pages needn't be part of the application when it goes into production. Anyway, thanks again. Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance analysis/optimization?
On Wed, Jan 21, 2004 at 11:02:51AM -0500, Andrzej Jan Taramina wrote: How do I use profiling pipelines? Not familiar with that... http://wiki.cocoondev.org/Wiki.jsp?page=Profiling http://cocoon.apache.org/2.1/userdocs/concepts/profiler.html --Tim Larson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for data persistance method recommendation
Brian McCallister wrote: btw - it may be worth moving this discussion to [EMAIL PROTECTED] at this point =) OK. But at this moment I don't have more OJB specific questions. If I have I will ask there. On the Cocoon block and using OJB from flow, etc: As mentioned, I use OJB in two cocoon apps I am working on. One is in production (woo hoo!) and the other is under development. In both cases I do not expose OJB directly to Cocoon. I provide a set of services into application functionality and make these available from flow. The services use OJB. Remember that Cocoon, really, is just a big servlet so you can do any Java stuff you want to in it. I think I will do similiar and as the FAQ suggests I will break my model into entities and business classes and call them from Cocoon's flow. Only business classes will eventually handle OJB specific method calls. Could you show some example code of your services you are using from Cocoon? Oh, is this OJB or Cocoon question? :) Regards, mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for data persistance method recommendation
Antonio Gallardo wrote: ... I think it is a good idea to have 2 classes from the SoC point of view. The employee.class are the data (a bean). The employeeImpl.class is the model in the MVC paradigm. ... Sorry but I thougt model=data in MVC. Then separating it is just strange for me. You have situations where you have two objects that represents the same domain object. In my opinion from SoC point of view the flowscript developer should use only one type of domain objects (pass it to view, bind it to woody, etc), and let the data developer decide if it is mapped to OJB or plain JDBC code. Reagrds, mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for data persistance method recommendation
Could you show some example code of your services you are using from Cocoon? Oh, is this OJB or Cocoon question? :) Sure, part of it is a time tracking application where employees can clock in and clock out, here is the clock in and clock out flow: function pub_clockIn() { checkAccess() time.clockIn(user.uid); showTimeTrackerHome(); } function pub_clockOut() { checkAccess() var form = new Form(forms/timeTrackerClockOut.xml); var model = form.getModel(); model.lunch = time.getAverageLunchFor(user.uid); form.showForm(TimeTrackerClockOut, {user: user}); time.clockOut(user.uid, model.lunch); showTimeTrackerHome(); } the global time variable (time.clockIn(...) time.clockOut(...)) is one of the services accessing OJB. My services are populated into the global scope when the user successfully logs in (which authenticates against an ldap, using a different service). The global user variable is populated on successful login as well and is basically a caching wrapper around an ldap InetOrgPerson, the uid is treated as a unique identifier for related database lookups (the time tracking system uses a database via OJB, the user management an ldap via JNDI). The time service looks like: public class TimeService { private TimeRepository rep = Factory.getTimeRepository(); /** * Create a new Entry with a start time of now * @param uid * @return */ public Entry clockIn(String uid) { Transaction tx = null; try { tx = rep.currentTransaction(); tx.begin(); Account account = rep.findAccountFor(uid); Entry entry = account.clockIn(); return entry; } catch (Exception e) { tx.rollback(); return null; } finally { if (tx != null tx.isInProgress()) tx.commit(); } } public Entry clockOut(String uid, double lunch) { Transaction tx = null; try { tx = rep.currentTransaction(); tx.begin(); Account account = rep.findAccountFor(uid); Entry e = account.clockOut(); e.setLunch(lunch); return e; } finally { if (tx != null tx.isInProgress()) tx.commit(); } } public BigDecimal getAverageLunchFor(String uid) { Account a = findAccountFor(uid); Iterator entries = a.getEntries().iterator(); int count = 0; double total = 0; while (entries.hasNext() count++ 10) { Entry entry = (Entry) entries.next(); total += entry.getLunch(); } return new BigDecimal(total / count); } ... } The TimeRepository is a gateway to the persistence services (the OJB stuff) and is used by the time service to find persistent classes. The service delegates most thinking to the classes it retrieves (this isn't factored perfectly at the moment). public class TimeRepository extends Repository { public Account findAccountFor(String uid) { OTMConnection conn = null; Transaction tx = null; boolean auto = false; try { conn = getBroker().getConnection(); tx = getBroker().currentTransaction(); auto = !tx.isInProgress(); if (auto) tx.begin(); OQLQuery query = conn.newOQLQuery(); query.create(select accounts from + Account.class.getName() + where uid = $1); query.bind(uid); Iterator itty = conn.getIteratorByOQLQuery(query); Account a = itty.hasNext() ? (Account) itty.next() : null; return a; } catch (Exception e) { System.err.println(e.getMessage()); e.printStackTrace(); tx.rollback(); } finally { if (auto tx != null tx.isInProgress()) tx.commit(); if (auto conn != null !conn.isClosed()) conn.close(); } return null; } which extends a general repository used as a base to provide persistence services to a number of repositories =) public class Repository { private static final OTMBroker broker = new OTMBroker(); public OTMBroker getBroker() { return broker; } public Transaction currentTransaction() { return broker.currentTransaction(); } public void clearCache() { broker.clearCache(); } } It uses an OTMBroker whose only real role is to handle the transaction-per-thread semantics we use: public class OTMBroker { private Kit kit; private PBKey key; private ThreadLocal conn; public OTMBroker() { conn = new ThreadLocal(); this.kit = SimpleKit.getInstance(); this.key = PersistenceBrokerFactory.getDefaultKey(); } public OTMConnection getConnection() {
Re: Cooon vs JSP/Struts
Tommy Smith wrote: All, I have no practical experience with JSP/Struts. The little I have studied about Cocoon impresses me, however, I am a little biased as I am familar with Oracle's XSQL framework. Can anyone objectively compare/contrast Cocoon JSP/Struts as a framework to deliver web content? http://wiki.cocoondev.org/Wiki.jsp?page=CocoonCompared may be a good starting point... you could also search this list for similar threads. Regards, --- Luca Morandini [EMAIL PROTECTED] http://www.lucamorandini.it --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon CLI Request params
Hi Upayavira Thanks for your help, so far. My CLI command should call a pipeline which inserts an xml fragment in an existing xml file (using the source writing Transformer). So a very simple task (from the CLI point of view). Now to my second problem: WHat do you mean by tack the request parameters onto the end of the URI? I tried with this: cocoon cli -c build\webapp -d build/output -C build/webapp/WEB-INF/cocoon.xconf -w build/work archive-runner/insertRun?time=testdate=testarchive-label=testnumber-of-run=testarchive-run-version=test However the CLI interprets the request params as input parameter and prompts to insert a date, and so on. Did I understand you wrong? Regards, Stephanie Stephanie Zohner wrote: Hi, I'm still fighting with request params in CLI xconf. For testing I added the request params to the URI src attribute (see below). The called pipeline inserts an xml element in an existing xml file. 1. problem: When I run cocoon cli with this xconf file, the generation is completed with no errors but instead of one xml element, two element are added to the xml-file. So it seems that the defined pipeline is called twice instead of only once. But what command does produce this behaviour? When I call the pipeline in the browser everything works fine. Yup. Once to get the links and once to get the page. If you switch off 'confirm-extensions', I think that should get you down to one. 2. problem: Can I configure request-params with the command line parameter method, too? How is the syntax for the url in the command line then? Yes. Any parameters without switches will be taken as URIs. Just tack the request parameters onto the end of the URI and you'll be done. What is it you are trying to achieve with the CLI? (I've got an answer planned to your previous post - no time right now). Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon CLI Request params
Hi Upayavira Thanks for your help, so far. My CLI command should call a pipeline which inserts an xml fragment in an existing xml file (using the source writing Transformer). So a very simple task (from the CLI point of view). Now to my second problem: WHat do you mean by tack the request parameters onto the end of the URI? I tried with this: cocoon cli -c build\webapp -d build/output -C build/webapp/WEB-INF/cocoon.xconf -w build/work archive-runner/insertRun?time=testdate=testarchive-label=testnumber-of-run=testarchive-run-version=test However the CLI interprets the request params as input parameter and prompts to insert a date, and so on. Did I understand you wrong? Regards, Stephanie Stephanie Zohner wrote: Hi, I'm still fighting with request params in CLI xconf. For testing I added the request params to the URI src attribute (see below). The called pipeline inserts an xml element in an existing xml file. 1. problem: When I run cocoon cli with this xconf file, the generation is completed with no errors but instead of one xml element, two element are added to the xml-file. So it seems that the defined pipeline is called twice instead of only once. But what command does produce this behaviour? When I call the pipeline in the browser everything works fine. Yup. Once to get the links and once to get the page. If you switch off 'confirm-extensions', I think that should get you down to one. 2. problem: Can I configure request-params with the command line parameter method, too? How is the syntax for the url in the command line then? Yes. Any parameters without switches will be taken as URIs. Just tack the request parameters onto the end of the URI and you'll be done. What is it you are trying to achieve with the CLI? (I've got an answer planned to your previous post - no time right now). Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link Livesites: Cocoon 2.0
Title: Monitoraggio dell'ambiente marino Cocoon version: 2.0.3 URI: http://www.sidimar.ipzs.it/sdm/index.html Summary: The application shows the health of Italian seas by means of maps, lab. analysis and charts. The website is under the aegis of the Italian Environment Ministry. Italian version only :( Regards, P.S. It's an app we've completed last year, but has not been listed on cocoon.apache.org yet... hope to make it to the list this time. --- Luca Morandini [EMAIL PROTECTED] http://www.lucamorandini.it --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logicsheet not working, anyone help?
Nothing else catches my eye. Here's a couple of things to try: 1) Touch the source XSP (main.xsp) - sometimes logicsheet changes don't get picked up by Cocoon the way they are supposed to after just changing the logicsheet 2) Simplify the problem - strip the code down to the bare minimum to debug, for instance: a) modify your sitemap entry to serialize to XML after doing the server-pages generator step (strip out the XSLT step) b) strip your main.xsp to something like xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:abc=http://samspublishing.com/abc/1.0; page dateabc:datetime//date /page /xsp:page 3) look at the generated java source for your XSP page - under your Tomcat work directory good luck! -Christopher |-+ | | Tommy Smith| | | [EMAIL PROTECTED]| | | .com| | || | | 01/21/2004 10:28 | | | AM | | | Please respond to| | | users| | || |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Re: Logicsheet not working, anyone help? | --| Thanks for the reply. I tried as you suggested, but still don't see any output from logicsheet. xsl:template match=@*|node() priority=-2 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template From: Christopher Painter-Wakefield [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Logicsheet not working, anyone help? Date: Wed, 21 Jan 2004 09:57:20 -0500 I believe the problem is in your catch-all template in your logicsheet: xsl:template match=@*|node() xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template because this is AFTER your template matching abc:datetime, and not at a lower priority, it gets applied instead of your abc:datetime template. Change the above template to have priority=-2 and you'll get better results. -Christopher |-+ | | Tommy Smith| | | [EMAIL PROTECTED]| | | .com| | || | | 01/21/2004 09:46 | | | AM | | | Please respond to| | | users| | || |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Logicsheet not working, anyone help? | --| Hi, I am trying to get my first logic sheet up and running but with little success. I'm working through the Cocoon Developers Handbook. web page is rendered but not logicsheet output. Can anyone spot what is wrong? Sorry for the length of mail Logic sheet ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://apache.org/xsp; xmlns:abc=http://samspublishing.com/abc/1.0; version=1.0 xsl:template match=xsp:page xsp:page xsl:apply-templates select=@*/ xsp:structure xsp:includejava.util.Date/xsp:include /xsp:structure xsp:logic Date now = new Date(); /xsp:logic xsl:apply-templates/ /xsp:page /xsl:template xsl:template match=abc:datetime The current time is xsp:exprnow/xsp:expr /xsl:template xsl:template match=@*|node() xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template xsl:template match=text() xsl:value-of select=. / /xsl:template /xsl:stylesheet main.xsp entry*** ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:abc=http://samspublishing.com/abc/1.0;
sitemap compilation and entity catalog resolver in 2.0.4
Title: sitemap compilation and entity catalog resolver in 2.0.4 Hello Apologies in advance if this seems like a stupid question, but in 2.0.4 does the sitemap compiler make use of the entity catalog resolver? If not, could it be as simple as invoking a catalog resolver within SitemapManager.java? e.g. 113 p = (Parser)this.manager.lookup(Parser.ROLE); 114 CatalogResolver cr = new CatalogResolver(); 115 p.setEntityResolver(cr); etc Thanks jon
Re: Cocoon CLI Request params
Stephanie Zohner wrote: Hi Upayavira Thanks for your help, so far. My CLI command should call a pipeline which inserts an xml fragment in an existing xml file (using the source writing Transformer). So a very simple task (from the CLI point of view). Now to my second problem: WHat do you mean by tack the request parameters onto the end of the URI? I tried with this: How does: cocoon cli -c build\webapp -d build/output -C build/webapp/WEB-INF/cocoon.xconf -w build/work archive-runner/insertRun?time=testdate=testarchive-label=testnumber-of-run=testarchive-run-version=test work? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: use parameter from sitemap in java transformer
You're right Marco. I got confused! My apologies! On Wed, 2004-01-21 at 17:10, Marco Rolappe wrote: overriding the setup method (SiteMapModelComponent interface IIRC) is the way to go, he must have made a mistake somewhere. and getting sitemap parameters won't work via the Parameterizable interface AFAIK; the parameterize() method will provide a component's configuration as Parameters converted from a Configuration object. -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Jorg Heymans Gesendet: Mittwoch, 21. Januar 2004 16:18 An: [EMAIL PROTECTED] Betreff: Re: AW: use parameter from sitemap in java transformer ztrange :) This has worked for me exactly like this a million times before. Are you seeing anything in error.log? Alternatively the parameterizable interface that Rui suggests should also work, although for me setup() is more clear. setup() is called on each pipeline component during pipeline setup. Try putting extensive logging everywhere, i have a feeling something is not happening like you think it is, but can't pinpoint it (how's that for a useless vague statement eh :) Jorg Stefan Pietschmann wrote: Thanx for your quick answer. However It didn't work. I overwrote the setup method in my transformer like this had to catch the ParameterException public void setup(SourceResolver resolver,Map objectModel,String src, Parameters par) throws ProcessingException, SAXException, IOException { if (par.isParameter(componentTag)) { try { this.COMP_TAG = par.getParameter(componentTag); }catch (ParameterException pe) { System.out.println(Failed to get parameter \componentTag\ from sitemap!); } } } ):, but the parameter COMP_TAG stays on the default initialization value, no matter how I change the parameter in the sitemap. When is the setup method called? I tried to put a system.out.println into setup(), but it didn't even show up in the console :o stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Rui Alberto L. Gonalves [EMAIL PROTECTED] PT Inovao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The requested URI /cocoon/samples/welcome/ was not found ????
Hello, I've checked out from CVS cocoon2 as of 1/20/04. Built the webapp war just fine on my Fedora box with java version 1.4.2_02 to include the samples. Ran the ./cocoon.sh servlet to test and got the welcome page. Checked out the samples and really like the direction woody is taking. So I moved the war file to tomcat 5.1.16, copied the lib/endorsed/x* to the jakarta-tomcat/common/endorsed dir. Started tomcat, went to http://localhost:8080/cocoon and saw a beautiful welcome page. Clicked on the samples link and got an error Resource not found file:/opt/jakarta-tomcat/webapps/cocoon/samples/welcome/sitemap.xmap Ok, I've looked to see if there are some jars missing, or not included, but I do not see anything. Any ideas? Thanks. -- Brian Millett - Technologist Rex May I ask what you are discussing here? 'The only thing that matters, the truth.' Ah yes, the favorite song of the legally ignorant. -- Guinevere Corey and Sheridan, There All The Honor Lies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sitemap compilation and entity catalog resolver in 2.0.4
AFAIK entity resolving using catalogues works already with 2.0.4. We had already two threads this week about it. What's the reason for your request? The SitemapManager is not the correct place for it as every XML parsing should use the resolver. Joerg On 21.01.2004 19:31, Jon Tonberg wrote: Hello Apologies in advance if this seems like a stupid question, but in 2.0.4 does the sitemap compiler make use of the entity catalog resolver? If not, could it be as simple as invoking a catalog resolver within SitemapManager.java? e.g. 113 p = (Parser)this.manager.lookup(Parser.ROLE); 114 CatalogResolver cr = new CatalogResolver(); 115 p.setEntityResolver(cr); etc Thanks jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REPOST Re: XSP Action, Bug?
Can you please post it on the dev list? Antonio started a thread about broken XSP action today. http://marc.theaimsgroup.com/?t=10746829691r=1w=2 Joerg On 21.01.2004 16:05, Jan Hoskens wrote: I did another update (cocoon 2.1 cvs head) today, but still I get an error if I use an xsp action in the following setup: map:match... map:act type=serverpages src=actions/myaction.xsp map:call function=package !--some parameters, yes I did change my {1} to {../1} when I use the action, if I leave the action out I use {1} and then it works-- /map:call /map:act ...!--doesn't get here-- /map:match I did use the same setup under the Cocoon Release 2.1.3 version and there it did work fine! I now get another error, not referencing the serverpagesgenerator anymore but the pipeline itself [sitemap.handled-errors] (/cocoon/cocoontest/blabla.html) http8080-Processor2/PipelineNode: Failed to execute pipeline. org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:564) Anything broken? Any others that get the same error with xsp actions? Greetings, Jan - Original Message - From: Jan Hoskens To: [EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 10:24 AM Subject: XSP Action Hi, I've updated my cvs head today and tried to run my site. Whenever I want to use an xsp action, I get a nullpointer exception: ERROR (2004-01-20) 10:17.08:730 [sitemap.handled-errors] (/cocoon/cocoontest/index.html) http8080-Processor2/PipelineNode: java.lang.NullPointerException at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:198) at org.apache.cocoon.acting.ServerPagesAction.act(ServerPagesAction.java:169) My actions DID WORK in the release version 2.1.3! Is there anything broken in the current cvs head version ? Thanks, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: AW: use parameter from sitemap in java transformer
Hi again, Below you can see what's in my sitemap an in the transformer currently. The transformer is still working fine, the parameter not. With some system.out's I've found out, that it doesn't seem to go into the if-loop in setup(). When I try a system.out.println(par.toString()) it doesn't give me anything, so it seems to me the parameter isn't passed to the setup method. Anything I need to specify in the sitemap perhaps to make my transformer work with parameters? Oh, and thanks a lot for your help so far ;) stefan map:transformer name=addLinks src=de.amacont.dom.transformation.LinkTransformer/ ... ... map:transform type=addLinks map:parameter name=componentTag value=comp/ /map:transform --- public class LinkTransformer extends AbstractDOMTransformer { ... private String COMP_TAG = span; ... public void setup(...)throws ProcessingException, SAXException, IOException{ if (par.isParameter(componentTag)) { try { this.COMP_TAG = par.getParameter(componentTag); } catch (ParameterException pe) {...} } } public Document transform(Document docu) { .} -Ursprüngliche Nachricht- Von: Rui Alberto L. Gonçalves [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Januar 2004 20:51 An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Betreff: Re: AW: AW: use parameter from sitemap in java transformer You're right Marco. I got confused! My apologies! On Wed, 2004-01-21 at 17:10, Marco Rolappe wrote: overriding the setup method (SiteMapModelComponent interface IIRC) is the way to go, he must have made a mistake somewhere. and getting sitemap parameters won't work via the Parameterizable interface AFAIK; the parameterize() method will provide a component's configuration as Parameters converted from a Configuration object. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Jorg Heymans Gesendet: Mittwoch, 21. Januar 2004 16:18 An: [EMAIL PROTECTED] Betreff: Re: AW: use parameter from sitemap in java transformer ztrange :) This has worked for me exactly like this a million times before. Are you seeing anything in error.log? Alternatively the parameterizable interface that Rui suggests should also work, although for me setup() is more clear. setup() is called on each pipeline component during pipeline setup. Try putting extensive logging everywhere, i have a feeling something is not happening like you think it is, but can't pinpoint it (how's that for a useless vague statement eh :) Jorg Stefan Pietschmann wrote: Thanx for your quick answer. However It didn't work. I overwrote the setup method in my transformer like this had to catch the ParameterException public void setup(SourceResolver resolver,Map objectModel,String src, Parameters par) throws ProcessingException, SAXException, IOException { if (par.isParameter(componentTag)) { try { this.COMP_TAG = par.getParameter(componentTag); }catch (ParameterException pe) { System.out.println(Failed to get parameter \componentTag\ from sitemap!); } } } ):, but the parameter COMP_TAG stays on the default initialization value, no matter how I change the parameter in the sitemap. When is the setup method called? I tried to put a system.out.println into setup(), but it didn't even show up in the console :o stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Rui Alberto L. Gonçalves [EMAIL PROTECTED] PT Inovação - 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: use parameter from sitemap in java transformer
from the facts given I suspect that you didn't correctly override the setup method. check carefully that the method signature is correct; check your imports (e.g. you might have imported excalibur's SourceResolver instead of cocoon's). -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Stefan Pietschmann Gesendet: Mittwoch, 21. Januar 2004 21:46 An: [EMAIL PROTECTED] Betreff: AW: AW: AW: use parameter from sitemap in java transformer Hi again, Below you can see what's in my sitemap an in the transformer currently. The transformer is still working fine, the parameter not. With some system.out's I've found out, that it doesn't seem to go into the if-loop in setup(). When I try a system.out.println(par.toString()) it doesn't give me anything, so it seems to me the parameter isn't passed to the setup method. Anything I need to specify in the sitemap perhaps to make my transformer work with parameters? Oh, and thanks a lot for your help so far ;) stefan map:transformer name=addLinks src=de.amacont.dom.transformation.LinkTransformer/ ... ... map:transform type=addLinks map:parameter name=componentTag value=comp/ /map:transform --- public class LinkTransformer extends AbstractDOMTransformer { ... private String COMP_TAG = span; ... public void setup(...)throws ProcessingException, SAXException, IOException{ if (par.isParameter(componentTag)) { try { this.COMP_TAG = par.getParameter(componentTag); } catch (ParameterException pe) {...} } } public Document transform(Document docu) { .} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I can't read tags from ErrorGenerator
Hi, The tags from ErrorGenerator appear to be blank in my xslt/error/Authentication.xsl file. I want to display all of the error tags (error:type, error:title, error:source, error:message, error:description and error:extra). Can anybody help me? I pulled the top of the CVS tree last week. I define the proper namespace: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; xmlns:error=http://apache.org/cocoon/error/2.0; and I access the values as: xsl:template match=error table tr td pAuthentication Error/p pThe server message is: xsl:value-of select=//error:message//p pThe description is: xsl:value-of select=//error:description//p /td /tr tr td xsl:for-each select=//error:extra h5xsl:value-of select=@error:description//h5 pxsl:value-of select=.//p /xsl:for-each /td /tr /table /xsl:template My sitemap.xmap: map:selector logger=sitemap.selector.exception name=exception src=org.apache.cocoon.selection.ExceptionSelector exception class=com.mycompany.errorhandling.ApplicationException name=PasswordWrong/ /map:selector map:handle-errors map:select type=exception map:when test=PasswordWrong map:generate type=serverpages src=xsp/error/loginError.xsp/ map:transform src=xslt/error/Authentication.xsl/ map:serialize/ /map:when /map:select /map:handle-errors Thanks, Diane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [xsp-session-fw][authentication] getting role
Hi Morley: Thanks for the suggestion, but this thread is not related to the bug. We are requesting just the firstnode in this case. Best Regards, Antonio Gallardo Morley Howell dijo: This may be related to something that I found in the AbstractDOMTransformer where it would only return a portion of the data from a tag: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26219 Joerg Heinicke seemed to think the problem was not in the ADT but perhaps in some lower-level class. Maybe these two problems have the same root cause. Morley -Original Message- From: Antonio Gallardo [mailto:[EMAIL PROTECTED] Sent: Wednesday January 21, 2004 6:36 AM To: [EMAIL PROTECTED] Subject: Re: [xsp-session-fw][authentication] getting role Joerg Heinicke dijo: On 21.01.2004 12:23, Stephanie Zohner wrote: Hi, This is a bug, in my opinion. I already posted it in the dev mailing list (but haven't got an answer yet). Does an entry on bugzilla exist? Antonio, I don't want to point on you, but wasn't that your extension (getxml)?? It's not a bug, it is a feature! lol. ;-) 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: OJB Samples
leo leonid dijo: On Jan 20, 2004, at 6:32 PM, Antonio Gallardo wrote: Can you post the error? I think it can be related to a non enhanced classes. Best Regards, Antonio Gallardo and here is the error for the second (woody) sample and in the jetty output I found the following line: [JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false Original Exception: javax.jdo.JDOUserException: Given object is not a valid OID. Similar like before, we changed the OJB lib and don't updated the samples. Thanks for pointing out this problem. Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]