upload revisted
Hi Cocooners, Having read through the mailing list on 'upload' issue, I know that many people want to override the default upload behaviour. And Vadim, if I remember correctly, suggested have a look at the org.apache.cocoon.components.multipart package. So last night I was going through the package, having a little grasp of what it is. Then I go back and run upload.xsp, I am amazed how upload is done nicely and transparently. Just as it's done so transparently, I didn't manage to understand what's behind the scene. I really wonder how the package and the xsp work together. Would someone give a pointer? Thanks, Kenny __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Usage of in URLs
The problem with the ampersand in XML, is that it is used to denote the start of an entity. You can replace it... with an entity (amp;): urlhttp://www.foo.com/some-path?arg1=value1amp;arg2=value2/url Manos -Original Message- From: Michael Mangeng [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 9:42 PM To: [EMAIL PROTECTED] Subject: Re: Usage of in URLs Hi Since is a special char you have to mark it as character data. urlhttp://www.foo.com/some-path?arg1=value1![CDATA[]]arg2 =value2/url greetings mike - Original Message - From: Themba Mbatha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 12, 2002 8:19 PM Subject: Usage of in URLs Hi all; Perhaps this has been asked. I need to show a url as in urlhttp://www.foo.com/some-path?arg1=value1arg2=value2/url into the transformed XML. I am getting errors with Cocoon (the generator, in particular) each time it encounters an character. I am told this is an XML problem but I was wondering if anyone has had to deal with this type of problem. Thanx. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon is non-validating, any ideas why?
Please do not give up, Ian. Cocoon can certainly do validation as an XML framework now using DTDs. Perhaps later using other schema (Relax NG anyone?). Vadim was just saying that it is not a Concern of Cocoon, but that of the parser. We put a lot of work in six (?) months ago to ensure that Cocoon could do validation. In fact, we had it working nicely during build docs. However, then Bug 6200 was uncovered. and we had to turn it off by default in cocoon.xconf Please help to get it available again. Can you add any insight to the Bugzilla description? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6200 This is definitely a capability that i, for one, want to see in my XML Framework. Ian, you seem to be trying to trick the parser by supplying malformed SYSTEM identifiers and fake DTDs. That will never work. There is one way for small documents - add an internal DTD subset. See for example cocoon.roles --David - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] SunRise roles?
-Original Message- From: Per Kreipke [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 7:34 PM To: [EMAIL PROTECTED] Subject: [Q] SunRise roles? I can't figure out how or where the SunRise role part of authentication is used. It is used in the (sunSpot) portal framework for generating the profile of a user. But apart from that it's not use. Can it be used in the AuthAction to limit access by roles? You can write your own component for this, but afaik there is currently none already available. Is there an example of using them someplace? Besides the (big) portal code: I think, no. When are all the users with a given role queried? For a running system: never. Only the user management web application where you can add a new user, add roles etc. fetches all users for a given role to make them editable. Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
iPlanet and Coccon 2
Hi, i have deploy the cocoon.war file, my cocoon.war file is like the download file from xml.apache.org/cocoon but i've add a new file, ias-web.xml with this content: ?xml version=1.0 encoding=UTF-8? !DOCTYPE ias-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD iAS Web Application 1.0//EN' 'http://developer.iplanet.com/appserver/dtds/IASWebApp_1_0.dtd' ias-web-app servlet servlet-nameCocoon2/servlet-name guid{76004496-CC74-1D58-D07A-080020E1CBFC}/guid servlet-info stickyfalse/sticky encryptfalse/encrypt number-of-singles10/number-of-singles disable-reloadfalse/disable-reload /servlet-info /servlet session-info impllite/impl dsync-typedsync-distributed/dsync-type timeout-typelast-access/timeout-type securefalse/secure domain/domain path/path scope/scope /session-info /ias-web-app inside web-inf directory then when i deploy this file, whit command iasdeploy deploymodule -verbose cocoon.war the result is: $ iasdeploy deploymodule -verbose cocoon.war iasdeploy for iPlanet Application Server 6.0 SP2 Connected to LDAP server on Sun3500.soluziona.com port 1389 Sun3500:null Sun3500:10 kas deployment action ''J2EEInstallWar'' (/apps/iplanet/ias60sp2/ias/JAR/cocoon.war ) running. Sun3500:10 kas deployment action ''J2EEInstallWar'' (/apps/iplanet/ias60sp2/ias/JAR/cocoon.war ) running. Sun3500:webappreg -nodeprecated /apps/iplanet/ias60sp2/ias/JAR/cocoon.war 21 Sun3500:10 Connected to LDAP server on Sun3500.soluziona.com port 1389 Sun3500:10 The current input file= /apps/iplanet/ias60sp2/ias/JAR/cocoon.war Sun3500:10 AppComponentDescriptor: com.netscape.server.deployment.WebAppDescriptor Sun3500:10 All EnvEntries name: Sun3500:10 All Ejb-refs: Sun3500:10 All Resource-refs: Sun3500:10 WebAppName is cocoon Sun3500:10 [13/Aug/2002 11:16:33:9] info: GDS-007: finished a registry load Sun3500:10 WebAppName is cocoon Sun3500:10 [13/Aug/2002 11:16:35:2] info: GDS-007: finished a registry load Sun3500:10 [13/Aug/2002 11:16:35:3] info: GDS-007: finished a registry load Sun3500:10 java.util.zip.ZipException: invalid EXT descriptor signature Sun3500:10 at java.lang.Throwable.fillInStackTrace(Native Method) Sun3500:10 at java.lang.Throwable.fillInStackTrace(Compiled Code) Sun3500:10 at java.lang.Throwable.init(Compiled Code) Sun3500:10 at java.lang.Exception.init(Exception.java:42) Sun3500:10 at java.io.IOException.init(IOException.java:47) Sun3500:10 at java.util.zip.ZipException.init(ZipException.java:46) Sun3500:10 at java.util.zip.ZipInputStream.readEnd(Compiled Code) Sun3500:10 at java.util.zip.ZipInputStream.read(Compiled Code) Sun3500:10 at java.util.zip.ZipInputStream.closeEntry(Compiled Code) Sun3500:10 at java.util.zip.ZipInputStream.getNextEntry(Compiled Code) Sun3500:10 at com.netscape.server.deployment.Extractor.extractWAR(Compiled Code) Sun3500:10 at com.netscape.server.deployment.WebAppReg.extractContents(Unknown Source) Sun3500:10 at com.netscape.server.deployment.WebAppReg.main(Unknown Source) Sun3500:20 kas deployment action ''J2EEInstallWar'' (/apps/iplanet/ias60sp2/ias/JAR/cocoon.war ) complete. Sun3500: Finished deploying to Sun3500 at [13/Aug/2002 11:17:04] and then when i my browser put: http://myHost/NASApp/cocoon the result is a pge with this content: ERROR: Unknown Type of Request Please Check the URL SW Versions: iPlanet 6.0 SP2 Cocoon 2.0.3 Solaris SunOS 5.8 JDK 1.2.2 somebody can help me please thanks ___ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] What design environs are you using?
I have had a look around and the only systems that seem to be directly releated to cocoon are Jbuilder Enterpise and Pollo. Could somebody tell me if they are using a differnet IDE. Thanks Anthony ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] Further information on PM can be found at http://www.pmg.ie - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] What design environs are you using?
Have a look at sunBow. This is a plug-in for eclipse that contributes special tools for cocoon development. You can find more information here: http://radio.weblogs.com/0108489/ Martin - Original Message - From: Whalley, Anthony [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 12:19 PM Subject: [OT] What design environs are you using? I have had a look around and the only systems that seem to be directly releated to cocoon are Jbuilder Enterpise and Pollo. Could somebody tell me if they are using a differnet IDE. Thanks Anthony ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] Further information on PM can be found at http://www.pmg.ie - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange xinclude problem
I have just experienced the same problem when I tried using multiple xincludes: The following styleshhet works fine with the first xinclue only but throws out Failed to execute pipeline.: org.xml.sax.SAXParseException: Premature end of file. which is probably caused by some sort of problem with flow control between the two xinclude's John_ _ xsl:template match = /dailycollection xsl:for-each select = //@src:key xsl:element name=a xsl:attribute name=href xsl:value-of select=./ /xsl:attribute table width=100% border=1tr tdxi:include href=http://kun.rte.ie:8080/cocoon/{.}#xpointer(//NewsLines/HeadLine)//td tdxi:include href=http://kun.rte.ie:8080/cocoon/{.}#xpointer(/NewsML/NewsItem/NewsComponent/NewsItem/NewsComponent/NewsComponent/Metadata/Property[@FormalName='MediaName']/@Value)//td /tr/table /xsl:element /xsl:for-each /xsl:template Torsten Knodt wrote: Hello Albert, Hello Albert, thanks for your fast answer. I've a little strange problem with xinclude. I get a exception with Premature end of file, but accessing the URI (cocoon://...) directly works. Has someone a hint where to look at? Have you checked if it is a well formed xml file? I've checked it with xmllint, which gives no errors. Ok then. When I look into it, it also seems ok. And it is created via xml serializer, so I don't know, how it shouldn't be well formed. The xml serializer doesn't guarantee that the document is well formed, xmllint does. You may access it with cocoon:// but not with xinclude Is it possible to see, where exactly the problem is? A line number or the element would be a help. I don't know if a log transformer after the xinclude would be of any help... If you want to try it put xsl:transform type=log xsl:parameter name=logfile value=filename.log/ /xsl:transform I believe that as it is within a pipe a process will be thrown for each transform and it is not necessary that one has finished for the other to be started so you may log only until where it crashed... it's just an idea.. I've tried it. It looks OK in my opinion. It also ends with an endDocument. With kind regards Torsten Knodt ** The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please note that emails to, from and within RTÉ may be subject to the Freedom of Information Act 1997 and may be liable to disclosure. ** - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange xinclude problem
To follow up. I can confirm that using cocoon:// instead of http:// resolves the issue. John I have just experienced the same problem when I tried using multiple xincludes: The following styleshhet works fine with the first xinclue only but throws out Failed to execute pipeline.: org.xml.sax.SAXParseException: Premature end of file. which is probably caused by some sort of problem with flow control between the two xinclude's John_ _ xsl:template match = /dailycollection xsl:for-each select = //@src:key xsl:element name=a xsl:attribute name=href xsl:value-of select=./ /xsl:attribute table width=100% border=1tr tdxi:include href=http://kun.rte.ie:8080/cocoon/{.}#xpointer(//NewsLines/HeadLine)//td tdxi:include href=http://kun.rte.ie:8080/cocoon/{.}#xpointer(/NewsML/NewsItem/NewsComponent/NewsItem/NewsComponent/NewsComponent/Metadata/Property[@FormalName='MediaName']/@Value)//td /tr/table /xsl:element /xsl:for-each /xsl:template ** The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please note that emails to, from and within RTÉ may be subject to the Freedom of Information Act 1997 and may be liable to disclosure. ** - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: XSP Caching Cinclude
Hi Vadim, Yes, but how do i validate against a session attribute? The example shows just request.getParameter(param), Session.getAttribute gives an error. Is there anything I can do about the Cinclude? Michael -Ursprüngliche Nachricht- Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 12. August 2002 16:40 An: [EMAIL PROTECTED] Betreff: RE: XSP Caching Cinclude From: Michael Zehrer [mailto:[EMAIL PROTECTED]] Hi List, can someone explain the miracles of XSP caching to me. In my case I have a xsp generator, which includes data from the session, a taglib, and some static xml from the Cinclude transformer, I want at leat the Cincluded data to be cached. In XSP, you decide what and how to cache. See cacheable.xsp in examples. If you want to store several results of this XSP, you generate different keys. Then, you provide validity for each of these results. Vadim Michael - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stylesheet for loginpage
Hi, I have a loginpage in xml.And I would like to check the following condition: when a wrong user tries to login for the first name it should give a error message, login failed.Try again!.The samething should happen when the wrong user tries to login for the second time. If the wrong user tries to login for the third time my loginpage should just display a message, Access Denied and it should hide the textfields for username and password.How will my stylesheet look like? My xml file is as follows: root error times=oncelogin failed.Try again!/error error times=twicelogin failed.Try again!/error error times=thriceAccess Denied!/error /root If someone has idea how to write the stylesheet for the above, I would be very thankful,,, Kavitha. Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sunrise Authentication in Cocon-2.1-dev (12 aug)
Hi, I got a problem to make the authentication sample work with the lastest dev snapshot and Tomcat 4.1.8. Not even an Exception message or a stacktrace. The Login page always reload on itself. Any ideas or workaround? TIA johann
RE: cocoon is non-validating, any ideas why?
From: David Crossley [mailto:[EMAIL PROTECTED]] Please do not give up, Ian. Cocoon can certainly do validation as an XML framework now using DTDs. Perhaps later using other schema (Relax NG anyone?). Vadim was just saying that it is not a Concern of Cocoon, but that of the parser. Yup. We put a lot of work in six (?) months ago to ensure that Cocoon could do validation. In fact, we had it working nicely during build docs. However, then Bug 6200 was uncovered. and we had to turn it off by default in cocoon.xconf Please help to get it available again. Can you add any insight to the Bugzilla description? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6200 This is definitely a capability that i, for one, want to see in my XML Framework. Ian, you seem to be trying to trick the parser by supplying malformed SYSTEM identifiers and fake DTDs. That will never work. Agreed. I /discovered/ small tiny sentence in XML spec: http://www.w3.org/TR/REC-xml#dt-valid Definition: An XML document is valid if it has an associated document type declaration and if the document complies with the constraints expressed in it. There is one way for small documents - add an internal DTD subset. What about XSL files? From http://www.w3.org/TR/xslt#dtd: ... XML 1.0 DTDs do not support XML Namespaces and thus cannot correctly describe the allowed structure of an XSLT stylesheet See for example cocoon.roles PS I'm about to commit changes to treeprocessor-builtins.xml Vadim --David - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange xinclude problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello John, my original version has many xincludes, but the stripped down test version, with only one xinclude, I'm currently using has also the problem. And I have already used many xincludes. It works. With kind regards Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9WP99vxZktkzSmiwRAnr3AJsGWSPgXde9oM/85GIAS5QI77hgEwCfc2vT wIDZQv3WiZAYoR3q2XtzmYQ= =SpII -END PGP SIGNATURE- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange xinclude problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello John, I'm using cocoon://. I hadn't used http://. With kind regards Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9WQAwvxZktkzSmiwRAoGeAJ9zBnIXvakiz4AOsefEtk1Zjxc+9gCeIlJ3 NqwUf7txi6ZxbsYHHQM+/Ik= =+SZb -END PGP SIGNATURE- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSP Caching Cinclude
From: Michael Zehrer [mailto:[EMAIL PROTECTED]] Hi Vadim, Yes, but how do i validate against a session attribute? The example shows just request.getParameter(param), Session.getAttribute gives an error. request.getSession().getAttribute()? There is no 'session' field declared in the XSP, only local variable in generate() method. Which could be changed, btw... if it makes sense. Is there anything I can do about the Cinclude? There is CachingCIncludeTransformer. PS This topic was discussed some time ago Vadim Michael -Ursprüngliche Nachricht- Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 12. August 2002 16:40 An: [EMAIL PROTECTED] Betreff: RE: XSP Caching Cinclude From: Michael Zehrer [mailto:[EMAIL PROTECTED]] Hi List, can someone explain the miracles of XSP caching to me. In my case I have a xsp generator, which includes data from the session, a taglib, and some static xml from the Cinclude transformer, I want at leat the Cincluded data to be cached. In XSP, you decide what and how to cache. See cacheable.xsp in examples. If you want to store several results of this XSP, you generate different keys. Then, you provide validity for each of these results. Vadim Michael - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] What design environs are you using?
From: Whalley, Anthony [mailto:[EMAIL PROTECTED]] I have had a look around and the only systems that seem to be directly releated to cocoon are Jbuilder Enterpise and Pollo. Could somebody tell me if they are using a differnet IDE. IDEA www.intellij.com Vadim Thanks Anthony - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] What design environs are you using?
Eclipse (www.eclipse.org) together with the sunBow ( http://radio.weblogs.com/0108489/ ) and Tomcat plugin ( http://www.sysdeo.com/eclipse/tomcatPlugin.html ) rocks! johann - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 3:00 PM Subject: RE: [OT] What design environs are you using? From: Whalley, Anthony [mailto:[EMAIL PROTECTED]] I have had a look around and the only systems that seem to be directly releated to cocoon are Jbuilder Enterpise and Pollo. Could somebody tell me if they are using a differnet IDE. IDEA www.intellij.com Vadim Thanks Anthony - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XPath selector or XPath matcher
Vadim Gritsenko wrote: From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Is anybody working on a XPath selector or XPath matcher? These are not possible. Matchers, selectors and actions are processed *before* pipeline starts. They are used to *assemble* pipeline, and invoked when pipeline is not *completed* yet. What you can do is to write Transformer to react on XML, and if you use full-blown XPath, it will be DOMTransformer -- be prepared to buy more memory (it depends on intensity of your site, of course). Do you mean that I use a pipeline with a transformer to generate a new request and then call with this new request a resource or another pipeline? In More detail Original Request: article2523423.xml Pipeline with Transfomer (XPath) generates new request: article2523423.xml?language=en (where the XPath might be /article/meta/language) Resource resp. new another Pipeline matches to language=en (A resource can't be matched!?) If you want, you can go through -dev archive, this was discussed multiple times. I have situations where I would like to select the pipeline or at least the XSLT depending on the value of an attribute within the generated XML. If there is no such mecanism in Cocoon, you can code your XSLT stylesheets so they make the test by themselves. That's another option - do the same in XSLT. That is certainly an option, but I rather not put the matching/selecting mechanism into the XSLT. But if the approach from above does not work, then I probably will :-/ Michael Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XPath selector or XPath matcher
From: Michael Wechner [mailto:[EMAIL PROTECTED]] Vadim Gritsenko wrote: From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Is anybody working on a XPath selector or XPath matcher? These are not possible. Matchers, selectors and actions are processed *before* pipeline starts. They are used to *assemble* pipeline, and invoked when pipeline is not *completed* yet. What you can do is to write Transformer to react on XML, and if you use full-blown XPath, it will be DOMTransformer -- be prepared to buy more memory (it depends on intensity of your site, of course). Do you mean that I use a pipeline with a transformer to generate a new request and then call with this new request a resource or another pipeline? Include transformers do exactly this. In More detail Original Request: article2523423.xml Pipeline with Transfomer (XPath) generates new request: article2523423.xml?language=en (where the XPath might be /article/meta/language) Resource resp. new another Pipeline matches to language=en (A resource can't be matched!?) Resource can not be matched, pipeline can be. You can have pipeline matching article2523423.xml?language=en and your transformer can include result of this pipeline. Or, your transformer can generate include tags and then you can have include transformer to process these tags. Vadim If you want, you can go through -dev archive, this was discussed multiple times. I have situations where I would like to select the pipeline or at least the XSLT depending on the value of an attribute within the generated XML. If there is no such mecanism in Cocoon, you can code your XSLT stylesheets so they make the test by themselves. That's another option - do the same in XSLT. That is certainly an option, but I rather not put the matching/selecting mechanism into the XSLT. But if the approach from above does not work, then I probably will :-/ Michael Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange xinclude problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi John, I think with code you mean the xml having the xinclude element. Here is it. It's already a stripped down test version. Oh yes, I'm including from the same machine. What I've seen now is, that the content is included, but the error is still there. With kind regards Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9WQzfvxZktkzSmiwRAl0fAJoDqj9sKNvCmitd99e44m6Hrr72KACfVML1 Y9+TrFvbjeGppsOM/oaoifQ= =vhMh -END PGP SIGNATURE- ?xml version=1.0 encoding=UTF-8? links xmlns=http://hallo/content; xmlns:xlink=http://www.w3.org/1999/xlink; ilink xlink:href=index.xml xlink:type=simple xi:include xmlns:xi=http://www.w3.org/2001/XInclude; href=cocoon://content/index.xml/ /ilink /links - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upload revisted
Ok, I found out it is the CocoonServlet that does the upload behind the scene. Now I am to write an upload action extending AbstractAction, I just find out the Request object is not compatible to the default HttpServletRequest object. does anyone know how am I able to get HttpServletRequest? --- Kenny Chow [EMAIL PROTECTED] wrote: Hi Cocooners, Having read through the mailing list on 'upload' issue, I know that many people want to override the default upload behaviour. And Vadim, if I remember correctly, suggested have a look at the org.apache.cocoon.components.multipart package. So last night I was going through the package, having a little grasp of what it is. Then I go back and run upload.xsp, I am amazed how upload is done nicely and transparently. Just as it's done so transparently, I didn't manage to understand what's behind the scene. I really wonder how the package and the xsp work together. Would someone give a pointer? Thanks, Kenny __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SUMMARY] Re: XPath selector or XPath matcher
Vadim Gritsenko wrote: From: Michael Wechner [mailto:[EMAIL PROTECTED]] Vadim Gritsenko wrote: From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Is anybody working on a XPath selector or XPath matcher? These are not possible. Matchers, selectors and actions are processed *before* pipeline starts. They are used to *assemble* pipeline, and invoked when pipeline is not *completed* yet. What you can do is to write Transformer to react on XML, and if you use full-blown XPath, it will be DOMTransformer -- be prepared to buy more memory (it depends on intensity of your site, of course). Do you mean that I use a pipeline with a transformer to generate a new request and then call with this new request a resource or another pipeline? Include transformers do exactly this. In More detail Original Request: article2523423.xml Pipeline with Transfomer (XPath) generates new request: article2523423.xml?language=en (where the XPath might be /article/meta/language) Resource resp. new another Pipeline matches to language=en (A resource can't be matched!?) Resource can not be matched, pipeline can be. You can have pipeline matching article2523423.xml?language=en and your transformer can include result of this pipeline. Or, your transformer can generate include tags and then you can have include transformer to process these tags. That will work. Thanks a lot Michael Vadim If you want, you can go through -dev archive, this was discussed multiple times. I have situations where I would like to select the pipeline or at least the XSLT depending on the value of an attribute within the generated XML. If there is no such mecanism in Cocoon, you can code your XSLT stylesheets so they make the test by themselves. That's another option - do the same in XSLT. That is certainly an option, but I rather not put the matching/selecting mechanism into the XSLT. But if the approach from above does not work, then I probably will :-/ Michael Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Authentication Problem
Hi again, I checked-in a fix and it should work now. Could you please verify this? Thanks Carsten Carsten Ziegeler Chief Architect Open Source Group, SN AG -- Cocoon Consulting, Training and Projects -- mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de -Original Message- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: RE: Authentication Problem Hi, I think this error has the same reason as the one described here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11405 Could someone please test if changing the AbstractTextSerializer fixes all these problems? Carsten -Original Message- From: Bobby Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 8:01 PM To: [EMAIL PROTECTED] Subject: Re: Authentication Problem I suppose I should be more specific: I tried to access the page http://www.niac.usra.edu:8180/cocoon/samples/authentication/login and get an error. It is included in the previous email. I am using 2-1-dev from CVS today, 12 Aug 2002, using build command './build.sh -Dinclude.webapp.libs=yes webapp'. I used my name for login, which has been inserted in HSQLDB, not that it should matter. I am using Tomcat 4.0.2 on RH 7.3. Bobby Mitchell wrote: I'm having trouble getting the authentication samples to work in 2.1-dev, on Tomcat 4.0.2. I get the following error: java.lang.IllegalStateException at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(Http ResponseFacade.java:173) at org.apache.cocoon.environment.http.HttpResponse.sendRedirect(HttpR esponse.java:132) at org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEn vironment.java:198) at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRe director.java:115) at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINo de.invoke(RedirectToURINode.java:91) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok e(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok e(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:157) at
RE: [Q] SunRise roles?
I can't figure out how or where the SunRise role part of authentication is used. It is used in the (sunSpot) portal framework for generating the profile of a user. But apart from that it's not use. Ok. Can it be used in the AuthAction to limit access by roles? You can write your own component for this, but afaik there is currently none already available. Is there an example of using them someplace? Besides the (big) portal code: I think, no. When are all the users with a given role queried? For a running system: never. Only the user management web application where you can add a new user, add roles etc. fetches all users for a given role to make them editable. Ok. Follow up questions: - is there an equivalent call to HTTPServletRequest.isUserInRole() against the authentication context? - From what I can tell, the SunRise code doesn't support the notion of multiple roles per user. It makes the SunRise Authentication support not a complete replacement for container security. Perhaps that wasn't the goal but it's something people will look for. What's the background for that? Do you think it could be overcome easily (how?)? Aside: if I return a list of comma separated roles could the portal still be made to work? - I'm not clear why the SessionContextImpl doesn't implement some of the functions like getNodeList(String path). Thoughts for doing multiple roles: + comma separated list of roles inside role (yes, sounds flaky doesn't it). + add to the data section authentication IDper/ID roleunused/role data roles rolemanager/role roleibm/role roleadmin/role /roles /data /authentication But then I immediately ran into trouble trying to iterate over all the nested roles inside roles since SessionContextImpl doesn't implement some of the xpath functions. Aside: what contexts (besides 'sunRise') is the SessionContextImpl used instead of SimpleSessionContext? Per - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] SunRise roles?
Per Kreipke wrote: Follow up questions: - is there an equivalent call to HTTPServletRequest.isUserInRole() against the authentication context? No (not yet). From java code you can get the content of /authentication/role and test it against your value. From a pipeline, you have to get the role using session:getxml and then test it in a stylesheet...For such tests, I always wanted to add a session:testxml... - From what I can tell, the SunRise code doesn't support the notion of multiple roles per user. It makes the SunRise Authentication support not a complete replacement for container security. Perhaps that wasn't the goal but it's something people will look for. What's the background for that? Do you think it could be overcome easily (how?)? Yes, there are several solutions, as you pointed out below: Aside: if I return a list of comma separated roles could the portal still be made to work? Yes, it should still work. - I'm not clear why the SessionContextImpl doesn't implement some of the functions like getNodeList(String path). Reason is simple: Lazy developer. Send a patch :) Thoughts for doing multiple roles: + comma separated list of roles inside role (yes, sounds flaky doesn't it). It's not a nice solution, but should work. + add to the data section Yes, this is the solution others use (afaik). authentication IDper/ID roleunused/role data roles rolemanager/role roleibm/role roleadmin/role /roles /data /authentication But then I immediately ran into trouble trying to iterate over all the nested roles inside roles since SessionContextImpl doesn't implement some of the xpath functions. Again, this is only due to a lazy developer - you could implement them. Aside: what contexts (besides 'sunRise') is the SessionContextImpl used instead of SimpleSessionContext? What do you mean? Why the SessionContextImpl is used instead of the SimpleSessionContext? HTH Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Q] SunRise AuthAction nitpicking...
I see most actions returning empty maps by using either the EMPTY_MAP constant from the AbstractAction base class or creating their own unmodifiable map using Collections. But in AuthAction, the map is returned via: map = new HashMap(); as does SunRise.createMap() I'm not a Java expert so I just want to be sure that it's not a memory leak. I'm sure it gets garbage collected but isn't it cheaper to return a final static variable (EMPTY_MAP), especially since it happens on every request? Per - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication Problem
It works now ! Thanks johann - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 4:31 PM Subject: RE: Authentication Problem Hi again, I checked-in a fix and it should work now. Could you please verify this? Thanks Carsten Carsten Ziegeler Chief Architect Open Source Group, SN AG -- Cocoon Consulting, Training and Projects -- mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de -Original Message- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: RE: Authentication Problem Hi, I think this error has the same reason as the one described here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11405 Could someone please test if changing the AbstractTextSerializer fixes all these problems? Carsten -Original Message- From: Bobby Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 8:01 PM To: [EMAIL PROTECTED] Subject: Re: Authentication Problem I suppose I should be more specific: I tried to access the page http://www.niac.usra.edu:8180/cocoon/samples/authentication/login and get an error. It is included in the previous email. I am using 2-1-dev from CVS today, 12 Aug 2002, using build command './build.sh -Dinclude.webapp.libs=yes webapp'. I used my name for login, which has been inserted in HSQLDB, not that it should matter. I am using Tomcat 4.0.2 on RH 7.3. Bobby Mitchell wrote: I'm having trouble getting the authentication samples to work in 2.1-dev, on Tomcat 4.0.2. I get the following error: java.lang.IllegalStateException at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(Http ResponseFacade.java:173) at org.apache.cocoon.environment.http.HttpResponse.sendRedirect(HttpR esponse.java:132) at org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEn vironment.java:198) at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRe director.java:115) at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINo de.invoke(RedirectToURINode.java:91) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok e(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok e(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at
RE: [Q] SunRise AuthAction nitpicking...
Per Kreipke wrote: I see most actions returning empty maps by using either the EMPTY_MAP constant from the AbstractAction base class or creating their own unmodifiable map using Collections. But in AuthAction, the map is returned via: map = new HashMap(); as does SunRise.createMap() I'm not a Java expert so I just want to be sure that it's not a memory leak. I'm sure it gets garbage collected but isn't it cheaper to return a final static variable (EMPTY_MAP), especially since it happens on every request? It's not a memory leak - but it's a performance killer. Yes, these two places were overseen. I will fix this asap. Thanks for spotting these. Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] SunRise roles?
Follow up questions: - is there an equivalent call to HTTPServletRequest.isUserInRole() against the authentication context? No (not yet). From java code you can get the content of /authentication/role and test it against your value. From a pipeline, you have to get the role using session:getxml and then test it in a stylesheet...For such tests, I always wanted to add a session:testxml... - From what I can tell, the SunRise code doesn't support the notion of multiple roles per user. It makes the SunRise Authentication support not a complete replacement for container security. Perhaps that wasn't the goal but it's something people will look for. What's the background for that? Do you think it could be overcome easily (how?)? Yes, there are several solutions, as you pointed out below: Aside: if I return a list of comma separated roles could the portal still be made to work? Yes, it should still work. The portal kn - I'm not clear why the SessionContextImpl doesn't implement some of the functions like getNodeList(String path). Reason is simple: Lazy developer. Send a patch :) It's not inherent in the fact that the 'sunRise' context spans the authentication, request, response and application XML? There's no problem in your mind with returning NodeLists from across them? If not, I just might send that patch ;-) Thoughts for doing multiple roles: + comma separated list of roles inside role (yes, sounds flaky doesn't it). It's not a nice solution, but should work. And you mentioned above that the portal will accept comma delimited roles within role already (e.g. it isn't doing an equals() but some kind of tokenization? + add to the data section Yes, this is the solution others use (afaik). Really? Others have done this? Anyone posted anything? authentication IDper/ID roleunused/role data roles rolemanager/role roleibm/role roleadmin/role /roles /data /authentication But then I immediately ran into trouble trying to iterate over all the nested roles inside roles since SessionContextImpl doesn't implement some of the xpath functions. Again, this is only due to a lazy developer - you could implement them. They're already in SimpleSessionContext, I'll copy that code. Aside: what contexts (besides 'sunRise') is the SessionContextImpl used instead of SimpleSessionContext? What do you mean? Why the SessionContextImpl is used instead of the SimpleSessionContext? Well, that is the question really but I'm also curious when I use sunshine:getxml when I'm hitting SimpleSessionContext and when I'm hitting SessionContextImpl. Per - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stylesheet for loginpage
Hello Kavitha, the workflow looks not really good. Where do you store the number of failed logins? Don't pass the number of failed logins to the stylesheet but an error code, which changes after third failed login. Dependent on the error code, change the message. Regards, Joerg kavitha ramesh wrote: Hi, I have a loginpage in xml.And I would like to check the following condition: when a wrong user tries to login for the first name it should give a error message, login failed.Try again!.The samething should happen when the wrong user tries to login for the second time. If the wrong user tries to login for the third time my loginpage should just display a message, Access Denied and it should hide the textfields for username and password.How will my stylesheet look like? My xml file is as follows: root error times=oncelogin failed.Try again!/error error times=twicelogin failed.Try again!/error error times=thriceAccess Denied!/error /root If someone has idea how to write the stylesheet for the above, I would be very thankful,,, Kavitha. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon is non-validating, any ideas why?
inline:- Vadim Gritsenko wrote: From: David Crossley [mailto:[EMAIL PROTECTED]] Please do not give up, Ian. Cocoon can certainly do validation as an XML framework now using DTDs. Perhaps later using other schema (Relax NG anyone?). i'm currently investigating relaxng:- - jing seems the validator to use, any probs? - also relaxng has no way for docs to identify schema, any ideas? Vadim was just saying that it is not a Concern of Cocoon, but that of the parser. Yup. We put a lot of work in six (?) months ago to ensure that Cocoon could do validation. In fact, we had it working nicely during build docs. However, then Bug 6200 was uncovered. and we had to turn it off by default in cocoon.xconf Please help to get it available again. Can you add any insight to the Bugzilla description? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6200 once this thread is exhausted, i'll post a summary, get an account and add my 2p if it helps This is definitely a capability that i, for one, want to see in my XML Framework. Ian, you seem to be trying to trick the parser by supplying malformed SYSTEM identifiers and fake DTDs. That will never work. i tried two things:- 1. doctype with no validity info - i thought this was compliant but it seems not (i'm sure that systemid= has workedforme in the past) 2 so i wrote an xslt script to generate an ANY decl for every element and a CDATA #IMPLIED for every attribute - this is therefore the most minimum dtd necessary (not useful but *does* keep the parser happy) - i did this for treeprocessor and the parser moved on to the next document Agreed. I /discovered/ small tiny sentence in XML spec: http://www.w3.org/TR/REC-xml#dt-valid Definition: An XML document is valid if it has an associated document type declaration and if the document complies with the constraints expressed in it. looks like validity info *must* be given, oh well... There is one way for small documents - add an internal DTD subset. internal/external no difference, it seems that if parser is in validating mode the only accepted minimum is an ANY decl for each element and a CDATA #IMPLIED for every attribute, how does the relative location of these change anything? What about XSL files? From http://www.w3.org/TR/xslt#dtd: ... XML 1.0 DTDs do not support XML Namespaces and thus cannot correctly describe the allowed structure of an XSLT stylesheet the w3c did a hack through param entities, iirc (can't remember which dtd though) sure dtd's have no knowledge of namespaces, but through a param entity you could add a prefix to every element name you'd have to hard code the prefix, using multiple namespaces would be grim... i'm going to ditch dtd's, they are so crap :-( See for example cocoon.roles again the internal/external makes no difference, if the parser is validating then validity info must be given and the doc must conform apparently it is the availability of the declarations that makes parsing this work, not the use of an internal subset ian PS I'm about to commit changes to treeprocessor-builtins.xml Vadim --David - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Possible bug
I've realised that this matcher doesn't give the error but doesn't copy the nodes either: xsl:template match=@*|text() xsl:copy xsl:apply-templates/ /xsl:copy /xsl:template As soon as a you introduce a node() or * in the match attribute the error appears...I've also noticed that a matcher like i18n:* lets it work ok and copies the i18n nodes but not the other ones.. xsl:copy-of select=/ doesn't work. If this template is added every thing works (but once again not as I'd like) xsl:template match=* xsl:apply-templates/ /xsl:template So it seems it is not able to copy the nodes from the original stylesheet but a match like xsl:* it's been useless. Any suggestions? i don't see where you describe the bug. Sorry, the thread was 'Could not read resource file'. The thing is that the files and configuration of sitemap.xmap give an error where I think shouldn't be... The error is given by the file generator while if you erase the stylesheet matcher in fac-db.xsl or the sql transform in the pipe the error disappears I can't describe much more of the bug... it's just that we believe it should work but it does not :-( -Original Message- From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 6:56 PM To: [EMAIL PROTECTED] Subject: Possible bug I have tried to bring the configuration to the minimum to reproduce the errors.. it is really small now... do you think this could be a bug? Luca Morandini (under windows 2000) and I (under Linux) have been looking at this for hours and haven't found a reason for the error. This is for the sitemap.xmap file: map:match pattern=dins-facturacio map:generate src=docs/fac.xml/ map:transform src=stylesheets/fac.xsl/ map:transform src=stylesheets/fac-db.xsl/ map:transform type=sql map:parameter name=use-connection value=cocoon/ /map:transform map:serialize type=xml/ /map:match The other files are attached... A sql connection is also needed. Nothing else this should give the error. The error should go away by erasing the sql transform or erasing the stylesheet matcher in fac-db.xsl If it is really a bug... to whom should I report it? -- Albert Cervera Areny Dept. Informàtica Sedifa, S.L. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Albert Cervera Areny Dept. Informàtica Sedifa, S.L. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Albert Cervera Areny Dept. Informàtica Sedifa, S.L. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cinclude crashing catalina...?
I do not know exactly what happening, it is first time I experimenting with cinclude, but it seems crashing Tomcat 4.0.1. Cocoon 2.0.2 has declared in source xml: cinclude:include src="cocoon:/message"/ with correspondent pipeline: map:match pattern="message" map:generate src="xsp/message.xsp" type="serverpages"/ map:serialize type="xml"//map:match Logs are clean in Catalina as well as in Cocoon... Alex.
Re: Cinclude crashing catalina...?
FYI. The same thing happenning with xinclude... - Original Message - From: Alexander Smirnoff To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 3:26 PM Subject: Cinclude crashing catalina...? I do not know exactly what happening, it is first time I experimenting with cinclude, but it seems crashing Tomcat 4.0.1. Cocoon 2.0.2 has declared in source xml: cinclude:include src="cocoon:/message"/ with correspondent pipeline: map:match pattern="message" map:generate src="xsp/message.xsp" type="serverpages"/ map:serialize type="xml"//map:match Logs are clean in Catalina as well as in Cocoon... Alex.
Re: Cinclude crashing catalina...?
Of cause I included transformer! Even if I don't, - it should not crash the server... As I understand from mail archive it should work with cocoon:/ protocol. But it works fine with static xml files and *crash* catalina if I use cocoon:/ protocol... Alex. - Original Message - From: Andrew C. Oliver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 4:04 PM Subject: Re: Cinclude crashing catalina...? You have to include the cinclude or xinclude transformer in your pipeline. Instructions for CInclude may be found here: http://outerthought.net/wiki/Wiki.jsp?page=AddCIncludeToMinimalSitemap Alexander Smirnoff wrote: FYI. The same thing happenning with xinclude... - Original Message - *From:* Alexander Smirnoff mailto:[EMAIL PROTECTED] *To:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Sent:* Tuesday, August 13, 2002 3:26 PM *Subject:* Cinclude crashing catalina...? I do not know exactly what happening, it is first time I experimenting with cinclude, but it seems crashing Tomcat 4.0.1. Cocoon 2.0.2 has declared in source xml: cinclude:include src=cocoon:/message/ with correspondent pipeline: map:match pattern=message map:generate src=xsp/message.xsp type=serverpages/ map:serialize type=xml/ /map:match Logs are clean in Catalina as well as in Cocoon... Alex. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cinclude crashing catalina...?
Sorry. The pipeline you included didn't have it. Alexander Smirnoff wrote: Of cause I included transformer! Even if I don't, - it should not crash the server... As I understand from mail archive it should work with cocoon:/ protocol. But it works fine with static xml files and *crash* catalina if I use cocoon:/ protocol... Alex. - Original Message - From: Andrew C. Oliver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 4:04 PM Subject: Re: Cinclude crashing catalina...? You have to include the cinclude or xinclude transformer in your pipeline. Instructions for CInclude may be found here: http://outerthought.net/wiki/Wiki.jsp?page=AddCIncludeToMinimalSitemap Alexander Smirnoff wrote: FYI. The same thing happenning with xinclude... - Original Message - *From:* Alexander Smirnoff mailto:[EMAIL PROTECTED] *To:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Sent:* Tuesday, August 13, 2002 3:26 PM *Subject:* Cinclude crashing catalina...? I do not know exactly what happening, it is first time I experimenting with cinclude, but it seems crashing Tomcat 4.0.1. Cocoon 2.0.2 has declared in source xml: cinclude:include src=cocoon:/message/ with correspondent pipeline: map:match pattern=message map:generate src=xsp/message.xsp type=serverpages/ map:serialize type=xml/ /map:match Logs are clean in Catalina as well as in Cocoon... Alex. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cinclude crashing catalina...?
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Andrew C. Oliver Sorry. The pipeline you included didn't have it. ...not to mention that none of emails had definition of crash term. PS I should try mozilla too... Looks like it better works with html... Vadim Alexander Smirnoff wrote: Of cause I included transformer! Even if I don't, - it should not crash the server... As I understand from mail archive it should work with cocoon:/ protocol. But it works fine with static xml files and *crash* catalina if I use cocoon:/ protocol... Alex. - Original Message - From: Andrew C. Oliver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 4:04 PM Subject: Re: Cinclude crashing catalina...? You have to include the cinclude or xinclude transformer in your pipeline. Instructions for CInclude may be found here: http://outerthought.net/wiki/Wiki.jsp?page=AddCIncludeToMinimalSitemap Alexander Smirnoff wrote: FYI. The same thing happenning with xinclude... - Original Message - *From:* Alexander Smirnoff mailto:[EMAIL PROTECTED] *To:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Sent:* Tuesday, August 13, 2002 3:26 PM *Subject:* Cinclude crashing catalina...? I do not know exactly what happening, it is first time I experimenting with cinclude, but it seems crashing Tomcat 4.0.1. Cocoon 2.0.2 has declared in source xml: cinclude:include src=cocoon:/message/ with correspondent pipeline: map:match pattern=message map:generate src=xsp/message.xsp type=serverpages/ map:serialize type=xml/ /map:match Logs are clean in Catalina as well as in Cocoon... Alex. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication Problem
Thanks. It works for me, too. Carsten Ziegeler wrote: Hi again, I checked-in a fix and it should work now. Could you please verify this? Thanks Carsten Carsten Ziegeler Chief Architect Open Source Group, SN AG -- Cocoon Consulting, Training and Projects -- mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de -Original Message- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: RE: Authentication Problem Hi, I think this error has the same reason as the one described here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11405 Could someone please test if changing the AbstractTextSerializer fixes all these problems? Carsten -Original Message- From: Bobby Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 8:01 PM To: [EMAIL PROTECTED] Subject: Re: Authentication Problem I suppose I should be more specific: I tried to access the page http://www.niac.usra.edu:8180/cocoon/samples/authentication/login and get an error. It is included in the previous email. I am using 2-1-dev from CVS today, 12 Aug 2002, using build command './build.sh -Dinclude.webapp.libs=yes webapp'. I used my name for login, which has been inserted in HSQLDB, not that it should matter. I am using Tomcat 4.0.2 on RH 7.3. Bobby Mitchell wrote: I'm having trouble getting the authentication samples to work in 2.1-dev, on Tomcat 4.0.2. I get the following error: java.lang.IllegalStateException at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(Http ResponseFacade.java:173) at org.apache.cocoon.environment.http.HttpResponse.sendRedirect(HttpR esponse.java:132) at org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEn vironment.java:198) at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRe director.java:115) at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINo de.invoke(RedirectToURINode.java:91) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok e(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok e(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:327) at
sunrise and jdk1.4
Hi, I still get an exception when using sunRise together with jdk1.4. This is not happening when downgrading to jdk1.3. Any workaround? the exception is: java.lang.NullPointerException at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java: 869) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java: 871) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java: 871) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodeListFromPath(XMLUtil.ja va:836) at org.apache.cocoon.webapps.session.context.SimpleSessionContext.getXML(Simple SessionContext.java:173) at org.apache.cocoon.webapps.authentication.context.SessionContextImpl.addParam etersFromAuthenticationXML(SessionContextImpl.java:225 TIA, Johann - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Java Through Cocoon
Hey guys, I'm hoping you could help me out with a project I've been tasked with. I'm gonna ask the simple question now, and go into more detail below: How can one have a Logic Sheet helper class, that just runs a method stored in a new custom java class? And does anyone have an example of this. Something simple like a helloworld that would just type HelloWorld on the screen, but where the code to type helloworld wasn't stored in the logic sheet. Or better, the previous example modified to where I could pass my name as a variable that the helper java class would pick up and then pass over to the helloworld statement. So it would say, Hello David, instead of just something hard coded in the java code. Anyone have any ideas/reference materials? Thanks in advance for your help on this issue!! david **Begin More Detailed Explanation** I'm trying to figure out, how to access a custom made java program through a logic sheet/helper class type system. Specifically something like what I describe below: I have inside my logic sheet something that defines a TCAdmin instance, and then runs that instance. Without the lines I have in ***, and with the original example it works just fine. But the guts of the java code are actually IN the logic sheet. I want them outside the logic sheet and be able 2 call them. xsl:template match=xsp:page xsp:page xsl:apply-templates select=@*/ !-- Add needed imports -- xsp:structure xsp:includejava.util.Date/xsp:include xsp:includejava.text.SimpleDateFormat/xsp:include ***xsp:includeTCAdmin/xsp:include *** /xsp:structure !-- Add class-level logic: methods, variables -- xsp:logic![CDATA[ public static String formatDate(Date value, String format) { SimpleDateFormat formatter; ***TCAdmin tadm; *** ***tadm = new TCAdmin(); *** ***tadm.status(); *** format = format.trim(); if (format != null !.equals(format)) { formatter = new SimpleDateFormat(format); } else { formatter = new SimpleDateFormat(); } return formatter.format(value); } ]] /xsp:logic xsl:apply-templates/ /xsp:page /xsl:template When I try and access this I get the following error complaining about it not being able to access the TCAdmin Class: description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling simple_xsp: Line 72, column 24: class TCAdmin not found in class org.apache.cocoon.www.spain.simple_xsp Line 73, column 35: class TCAdmin not found in class org.apache.cocoon.www.spain.simple_xsp Line 0, column 0: 2 errors However, when I excecute this java class through dos using another java class it works exactly as you would think, typing the print statement that I have in the java class. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configure to support virtual directories
Title: Configure to support virtual directories Does anyone what is required to have Cocoon work as the default directory for a multiple site environment? Example would be www.abc.com docBase points to ../webapps/abc_cocoon And www.xyz.com docBase points to ../webapps/xyz_cocoon Will this work? Can there be two instances of cocoon working like this? Thanks in advance --
Re: Configure to support virtual directories
Hey, this is not a Cocoon thing. This is a question about the use of Tomcat or what ever JSPcontainer you use. Antonio Gallardo El Martes, 13 de Agosto de 2002 20:10, Greg Jones escribió: Does anyone what is required to have Cocoon work as the default directory for a multiple site environment? Example would be www.abc.com docBase points to ../webapps/abc_cocoon And www.xyz.com docBase points to ../webapps/xyz_cocoon Will this work? Can there be two instances of cocoon working like this? Thanks in advance -- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sunrise and jdk1.4
Did you create the endorsed directory for jdk1.4 and put xml-apis, xerces and xalan in it as explained in the installation docs? Carsten -Original Message- From: Johann Romefort [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 12:05 AM To: [EMAIL PROTECTED] Subject: sunrise and jdk1.4 Hi, I still get an exception when using sunRise together with jdk1.4. This is not happening when downgrading to jdk1.3. Any workaround? the exception is: java.lang.NullPointerException at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XML Util.java: 869) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XML Util.java: 871) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XML Util.java: 871) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodeListFromPath( XMLUtil.ja va:836) at org.apache.cocoon.webapps.session.context.SimpleSessionContext.get XML(Simple SessionContext.java:173) at org.apache.cocoon.webapps.authentication.context.SessionContextImp l.addParam etersFromAuthenticationXML(SessionContextImpl.java:225 TIA, Johann - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]