Re: class and package
found the error. At 09:54 24/02/2003 +0100, you wrote: I'm trying to link my classes into cocoon but It seem that nothing works. I have two classes : Generator and Access : Generator is supposed to use Access (create an object) but it doesn't work. private Access access = new Access(); --send a cannot resolve symbol error. - 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]
session:set-attribute !error!
When I write session:set-attribute name=userxsp:expruser/xsp:expr/session:set-attribute I get an error : java.lang.NullPointerException But I don't understand, If I take the line, make a copy-paste of the same line it works. Then after some refreshes it don't work again! I don't understand! Why??? I'm sure xsp:expruser/xsp:expr is correct, and session:set-attribute name=user is correct to! Thanks for your help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please Help: Problems with Cocoon2 V2.03 with Bea WebLogic5.1
Hallo, I have problems running Cocoon2 2.0.3 with Bea WebLogic 5.1. When starting the web-server I receive the following exception: Fr Feb 22 16:58:40 CET 2002:I WebAppServletContext-cocoon Pre-Loading servlet Cocoon2 Fr Feb 22 16:58:40 CET 2002:E WebAppServletContext-cocoon Error instantiating servlet: org.apache.cocoon.servlet.CocoonServlet java.lang.NoClassDefFoundError: org/apache/avalon/framework/context/Context at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:469) at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:453) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:361) at weblogic.servlet.internal.ServletContextImpl.preloadServlet(ServletContextImpl.java:752) at weblogic.servlet.internal.ServletContextImpl.preloadServlets(ServletContextImpl.java:726) at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:683) at weblogic.t3.srvr.HttpServer.start(HttpServer.java:479) at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1393) at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879) at java.lang.reflect.Method.invoke(Native Method) at weblogic.Server.startServerDynamically(Server.java:140) at weblogic.Server.main(Server.java:97) at weblogic.Server.main(Server.java:58) My start-command is: JAVA_CLASSPATH=.\lib\weblogic510sp12boot.jar;.\classes\boot;.\eval\cloudscape\lib\cloudscape.jar WEBLOGIC_CLASSPATH=c:\jdk1.3.1_06\lib\tools.jar;.\lib\cocoon\cocoon-2.0.3.jar;.\lib\cocoon\avalon-framework-4.1.2.jar;.\lib\cocoon\avalon-excalibur-4.1.jar;.\lib\cocoon\batik-libs-1.1.1.jar;.\lib\cocoon\bsf-2.2.jar;.\lib\cocoon\fop-0.20.3rc.jar;.\lib\cocoon\jakarta-regexp-1.2.jar;.\lib\cocoon\jstyle.jar;.\lib\cocoon\logkit-1.0.1.jar;.\lib\cocoon\rhino-1.5r3.jar;.\lib\cocoon\xalan-2.3.1.jar;.\lib\cocoon\xercesImpl-2.0.0.jar;.\lib\cocoon\xml-apis.jar;.\lib\cocoon\xt-19991105.jar;.\license;.\lib\weblogic510sp12.jar;.\classes;.\lib\weblogicaux.jar;.\myserver\serverclasses start-command: c:\jdk1.3.1_06\bin\java -ms64m -mx64m -classpath .\lib\weblogic510sp12boot.jar;.\classes\boot;.\eval\cloudscape\lib\cloudscape.jar -Dweblogic.class.path=c:\jdk1.3.1_06\lib\tools.jar;.\lib\cocoon\cocoon-2.0.3.jar;.\lib\cocoon\avalon-framework-4.1.2.jar;.\lib\cocoon\avalon-excalibur-4.1.jar;.\lib\cocoon\batik-libs-1.1.1.jar;.\lib\cocoon\bsf-2.2.jar;.\lib\cocoon\fop-0.20.3rc.jar;.\lib\cocoon\jakarta-regexp-1.2.jar;.\lib\cocoon\jstyle.jar;.\lib\cocoon\logkit-1.0.1.jar;.\lib\cocoon\rhino-1.5r3.jar;.\lib\cocoon\xalan-2.3.1.jar;.\lib\cocoon\xercesImpl-2.0.0.jar;.\lib\cocoon\xml-apis.jar;.\lib\cocoon\xt-19991105.jar;.\license;.\lib\weblogic510sp12.jar;.\classes;.\lib\weblogicaux.jar;.\myserver\serverclasses -Dweblogic.home=. -Djava.security.manager -Djava.security.policy==.\weblogic.policy -Dweblogic.system.disableWeblogicClassPath=true weblogic.Server Any idea whats wrong? -- Uwe Gergerbegin:vcard n:Gerger;Uwe Gerger tel;work:089 382 35687 x-mozilla-html:FALSE org:BMW AG;TG-53 version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. (FH) adr;quoted-printable:;;Helene-Mayer-Ring 4=0D=0A=0D=0A01.03/075.0-8;München;Bayern;80809;Bundesrepublik Deutschland fn:Uwe Gerger end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOW DO I BUILD THE WAR FILE?
Chance, Sam USA wrote: Great! I think what is happening tome is that because I am behind a firewall, I can't connect to the CVS server, so I download the snapshots which lag... Anyone know how to get around the firewall problem in order to connect to CVS server? http://cvsgrab.sourceforge.net/ /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: String replacement in Cocoon
Ah, I see. If you're using XSP and assigning the strings to variables, the escaping is taken care of automatically for you: I didn't know that. That would work if I had only a single insert statemment, but unfortunately, I'm looping over a collection of nodes in an xml document and generating an insert for each node of the collection. With this approach, it seems I'd have to write the java to extract the collection and then loop, generating an esql insert statement for each. It feels ad hoc even if I could make it work quickly. For right now, rather than generating SQL where special characters have to be escaped, I've decided to use cocoon to generate a text file where the characters do not need to be escaped and then use SQLLDR to load the data. I believe my previous problem was my failure to recognize an XSP page can only be a generator. In order to do what I want, I actually need to write a transformer, which I'll learn to do later when I have a little more time. I-Lin Kuo, Ann Arbor, MI Macromedia Certified ColdFusion 5.0 Advanced Developer Sun Certified Java 2 Programmer Ann Arbor Java Users Group (http://www.aajug.org) _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: String replacement in Cocoon
On Mon, 24 Feb 2003, I-Lin Kuo wrote: I didn't know that. That would work if I had only a single insert statemment, but unfortunately, I'm looping over a collection of nodes in an xml document and generating an insert for each node of the collection. With this approach, it seems I'd have to write the java to extract the collection and then loop, generating an esql insert statement for each. It feels ad hoc even if I could make it work quickly. Ah, ouch. One thought does occur to me: would it be worth storing the XML in an XML db like XIndice instead? It would save the XML-Text conversion step, and you'd be able to use XPath to pull text back out. I believe my previous problem was my failure to recognize an XSP page can only be a generator. In order to do what I want, I actually need to write a transformer, which I'll learn to do later when I have a little more time. Good luck! Andrew. -- Andrew SavoryEmail: [EMAIL PROTECTED] Managing Director Tel: +44 (0)870 741 6658 Luminas Internet Applications Fax: +44 (0)700 598 1135 This is not an official statement or order.Web:www.luminas.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon as a DataMapper framework
Hi, I was thinking about a data mapper framework, a framework which can take data from a source and write to another destination. An application scenario could be taking an xml somewhere (XML DB, HTML forms) and then writing it to a traget XML or even Relational DB. Then I was thinking why not to use cocoon to do it. I had some doubts, the nice thing could be that I write mainly the xml files for transformation and the pipelines, and then the framework works for me, my doubts are that coccon is too 'content delivery oriented' to apply such features. is cocoon in your opinion enough flexible to use it in such a scenario with not a great load of coding? Has somebody experienced such an application scenario for coccoon? One limitation immediately came to my mind is that cocoon works with a request from client, is it possible to call a pipeline programmatically? Thank you very much n advance for suggestions and opinions. Luca -- Luca Zago Senior IT Developer _ E-TREE S.p.a. Via Fonderia 43 - 31100 Treviso (Italy) phone +39.0422.3107 fax +39.0422.310888 http://www.e-tree.com http://www.webanana.com _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I handle session expiration event
Is there a way to handle session expiration events with cocoon ? I would like to launch some cleaning job when a session expires, is it possible ? Vincent
RE: Cocoon as a DataMapper framework
Hi Luca, I'm writing a web-application (servlets + POJO) that use Cocoon for presentation, so my application is Controller+Model, and Cocoon is View (plus Controller if I need), MVC model speaking. My application generate data (response) in XML, and then I forward the original request using /view alias, pointing to the main Cocoon servlet. AFAK, i's a servlet, so you can call it like another one ... Regards. Laurent -Message d'origine- De : Luca Zago [mailto:[EMAIL PROTECTED] Envoye : lundi 24 fevrier 2003 14:27 A : [EMAIL PROTECTED] Objet : Cocoon as a DataMapper framework Hi, I was thinking about a data mapper framework, a framework which can take data from a source and write to another destination. An application scenario could be taking an xml somewhere (XML DB, HTML forms) and then writing it to a traget XML or even Relational DB. Then I was thinking why not to use cocoon to do it. I had some doubts, the nice thing could be that I write mainly the xml files for transformation and the pipelines, and then the framework works for me, my doubts are that coccon is too 'content delivery oriented' to apply such features. is cocoon in your opinion enough flexible to use it in such a scenario with not a great load of coding? Has somebody experienced such an application scenario for coccoon? One limitation immediately came to my mind is that cocoon works with a request from client, is it possible to call a pipeline programmatically? Thank you very much n advance for suggestions and opinions. Luca -- Luca Zago Senior IT Developer _ E-TREE S.p.a. Via Fonderia 43 - 31100 Treviso (Italy) phone +39.0422.3107 fax +39.0422.310888 http://www.e-tree.com http://www.webanana.com _ - 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 can I handle session expiration event
Hi (bonjour)Vincent, you can certainly look at HttpSessionListener, as Cocoon is a java web-application after all. Regards.Laurent. -Message d'origine-De: MAHE Vincent FTRD/DIH/REN [mailto:[EMAIL PROTECTED]Envoyé: lundi 24 février 2003 15:08À: [EMAIL PROTECTED]Objet: How can I handle session expiration event Is there a way to handle session expiration events with cocoon ? I would like to launch some cleaning job when a session expires, is it possible ? Vincent
Re: How can I handle session expiration event
Is there a way to handle session expiration events with cocoon ? I would like to launch some cleaning job when a session expires, is it possible ? I think no. :-( Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon as a DataMapper framework
Hi Laurent, yes sure, this is for sure a workaround. Bu my doubts are more about the architecture of cocoon. For example how to implement a service that take an xml from a source and write it on dB without sending the request by an HTTP Connection? Is it possible to make an XML persistence (like a serializer could be) to a relational DB? Cocoon could have all the methods to do it, through a configurable pipeline for example, I was wondering if it could be possible to do it by an API outside the webapp framework? Regards, Luca Laurent Comte wrote: Hi Luca, I'm writing a web-application (servlets + POJO) that use Cocoon for presentation, so my application is Controller+Model, and Cocoon is View (plus Controller if I need), MVC model speaking. My application generate data (response) in XML, and then I forward the original request using /view alias, pointing to the main Cocoon servlet. AFAK, i's a servlet, so you can call it like another one ... Regards. Laurent -Message d'origine- De : Luca Zago [mailto:[EMAIL PROTECTED] Envoye : lundi 24 fevrier 2003 14:27 A : [EMAIL PROTECTED] Objet : Cocoon as a DataMapper framework Hi, I was thinking about a data mapper framework, a framework which can take data from a source and write to another destination. An application scenario could be taking an xml somewhere (XML DB, HTML forms) and then writing it to a traget XML or even Relational DB. Then I was thinking why not to use cocoon to do it. I had some doubts, the nice thing could be that I write mainly the xml files for transformation and the pipelines, and then the framework works for me, my doubts are that coccon is too 'content delivery oriented' to apply such features. is cocoon in your opinion enough flexible to use it in such a scenario with not a great load of coding? Has somebody experienced such an application scenario for coccoon? One limitation immediately came to my mind is that cocoon works with a request from client, is it possible to call a pipeline programmatically? Thank you very much n advance for suggestions and opinions. Luca -- Luca Zago Senior IT Developer _ E-TREE S.p.a. Via Fonderia 43 - 31100 Treviso (Italy) phone +39.0422.3107 fax +39.0422.310888 http://www.e-tree.com http://www.webanana.com _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Alternate request/response mechanisms for Cocoon (was Re: Cocoonas a DataMapper framework)
Luca, I have also been considering such an idea. I have not spent the time to look into Cocoon's architecture in enough detail yet, but it seems I would just need to set up my own class that performs all the duties that the Cocoon servlet performs. I recently had the opportunity to meet with some other members of this list, and we tossed the idea around. Someone mentioned that there is currently work in progress to abstract the request/response model because of the command line interface. It would seem that if one wanted to use Cocoon as a data pipeline for a different type of application than command line or HTTP, one would want to sync up with the people doing this. My particular idea was to repurpose Cocoon's pipeline architecture as an EAI front end. That is, it would be responsible for communications between organizations and applications. I have recently been looking around to see if there is any other appropriately licensed software that is more suited to this particular use case, but so far haven't found any. However, I have found the werkflow project to be interesting if considered in conjunction with Cocoon. Anyone else been thinking along these lines? -- Ryan Hoegg ISIS Networks http://www.isisnetworks.net Luca Zago wrote: Hi Laurent, yes sure, this is for sure a workaround. Bu my doubts are more about the architecture of cocoon. For example how to implement a service that take an xml from a source and write it on dB without sending the request by an HTTP Connection? Is it possible to make an XML persistence (like a serializer could be) to a relational DB? Cocoon could have all the methods to do it, through a configurable pipeline for example, I was wondering if it could be possible to do it by an API outside the webapp framework? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please Help: Problems with Cocoon2 V2.03 with Bea WebLogic5.1
Hi Uwe, unfortunately I can't really help - apart from the fact that it seems really difficult to install Cocoon in Bea 5.x. We managed to get Cocoon running in the 6.x series - and there is information here: http://xml.apache.org/cocoon/installing/index.html Sorry I can't be more help on this. Have you searched the archives? Regards from Paderborn Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblogs: http://radio.weblogs.com/0103021/ http://www.oreillynet.com/weblogs/author/1014 = -Original Message- From: Uwe Gerger [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:55 AM To: [EMAIL PROTECTED] Subject: Please Help: Problems with Cocoon2 V2.03 with Bea WebLogic5.1 Hallo, I have problems running Cocoon2 2.0.3 with Bea WebLogic 5.1. When starting the web-server I receive the following exception: Fr Feb 22 16:58:40 CET 2002:I WebAppServletContext-cocoon Pre-Loading servlet Cocoon2 Fr Feb 22 16:58:40 CET 2002:E WebAppServletContext-cocoon Error instantiating servlet: org.apache.cocoon.servlet.CocoonServlet java.lang.NoClassDefFoundError: org/apache/avalon/framework/context/Context at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStu bImpl.java:469) at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletS tubImpl.java:453) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletSt ubImpl.java:442) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletSt ubImpl.java:361) at weblogic.servlet.internal.ServletContextImpl.preloadServlet(Servle tContextImpl.java:752) at weblogic.servlet.internal.ServletContextImpl.preloadServlets(Servl etContextImpl.java:726) at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:683) at weblogic.t3.srvr.HttpServer.start(HttpServer.java:479) at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1393) at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879) at java.lang.reflect.Method.invoke(Native Method) at weblogic.Server.startServerDynamically(Server.java:140) at weblogic.Server.main(Server.java:97) at weblogic.Server.main(Server.java:58) My start-command is: JAVA_CLASSPATH=.\lib\weblogic510sp12boot.jar;.\classes\boot;.\eval \cloudscape\lib\cloudscape.jar WEBLOGIC_CLASSPATH=c:\jdk1.3.1_06\lib\tools.jar;.\lib\cocoon\cocoo n-2.0.3.jar;.\lib\cocoon\avalon-framework-4.1.2.jar;.\lib\cocoon\a valon-excalibur-4.1.jar;.\lib\cocoon\batik-libs-1.1.1.jar;.\lib\co coon\bsf-2.2.jar;.\lib\cocoon\fop-0.20.3rc.jar;.\lib\cocoon\jakart a-regexp-1.2.jar;.\lib\cocoon\jstyle.jar;.\lib\cocoon\logkit-1.0.1 .jar;.\lib\cocoon\rhino-1.5r3.jar;.\lib\cocoon\xalan-2.3.1.jar;.\l ib\cocoon\xercesImpl-2.0.0.jar;.\lib\cocoon\xml-apis.jar;.\lib\coc oon\xt-19991105.jar;.\license;.\lib\weblogic510sp12.jar;.\classes; .\lib\weblogicaux.jar;.\myserver\serverclasses start-command: c:\jdk1.3.1_06\bin\java -ms64m -mx64m -classpath .\lib\weblogic510sp12boot.jar;.\classes\boot;.\eval\cloudscape\lib \cloudscape.jar -Dweblogic.class.path=c:\jdk1.3.1_06\lib\tools.jar;.\lib\cocoon\co coon-2.0.3.jar;.\lib\cocoon\avalon-framework-4.1.2.jar;.\lib\cocoo n\avalon-excalibur-4.1.jar;.\lib\cocoon\batik-libs-1.1.1.jar;.\lib \cocoon\bsf-2.2.jar;.\lib\cocoon\fop-0.20.3rc.jar;.\lib\cocoon\jak arta-regexp-1.2.jar;.\lib\cocoon\jstyle.jar;.\lib\cocoon\logkit-1. 0.1.jar;.\lib\cocoon\rhino-1.5r3.jar;.\lib\cocoon\xalan-2.3.1.jar; .\lib\cocoon\xercesImpl-2.0.0.jar;.\lib\cocoon\xml-apis.jar;.\lib\ cocoon\xt-19991105.jar;.\license;.\lib\weblogic510sp12.jar;.\class es;.\lib\weblogicaux.jar;.\myserver\serverclasses -Dweblogic.home=. -Djava.security.manager -Djava.security.policy==.\weblogic.policy -Dweblogic.system.disableWeblogicClassPath=true weblogic.Server Any idea whats wrong? -- Uwe Gerger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I handle session expiration event
thanks, I have found some good links dealing with this class. I've just added my HttpSessionListener derived class to my webappin the web.xml file: listener listener-classmyClass/listener-class /listener and it seems to work fine. Vincent -Message d'origine-De: Laurent Comte [mailto:[EMAIL PROTECTED]Envoyé: lundi 24 février 2003 15:15À: [EMAIL PROTECTED]Objet: RE: How can I handle session expiration event Hi (bonjour)Vincent, you can certainly look at HttpSessionListener, as Cocoon is a java web-application after all. Regards.Laurent. -Message d'origine-De: MAHE Vincent FTRD/DIH/REN [mailto:[EMAIL PROTECTED]Envoyé: lundi 24 février 2003 15:08À: [EMAIL PROTECTED]Objet: How can I handle session expiration event Is there a way to handle session expiration events with cocoon ? I would like to launch some cleaning job when a session expires, is it possible ? Vincent
Deploy with portal/auth
Hi. I want to deploy Cocoon with the beta version of the authorisation and portal webapps, initially on my Windows laptop for demo but latterly on a Linux platform. Is this available in a simple war? Or do I need to go through the build? If the latter, are there any simple instructions somewhere (I'm sure I came across some once while Google-ing but cannot find them again)? Apologies if this a faq - just point me at the answer if it is in a web page somewhere. Many thanks, Tony. __ Tony Linde Phone: +44 (0)116 223 1292 AstroGrid Project ManagerFax:+44 (0)116 252 3311 Dept of Physics Astronomy Mobile: +44 (0)7753 603356 University of Leicester Email: [EMAIL PROTECTED] Leicester, UK LE1 7RH Web:http://www.astrogrid.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Live/demo portal sites
Are there any live sites using the Cocoon portal webapp? Or even usable demos? Thanks, Tony. __ Tony Linde Phone: +44 (0)116 223 1292 AstroGrid Project ManagerFax:+44 (0)116 252 3311 Dept of Physics Astronomy Mobile: +44 (0)7753 603356 University of Leicester Email: [EMAIL PROTECTED] Leicester, UK LE1 7RH Web:http://www.astrogrid.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Portal: usable now? Usable in future?
Hi, I am PM of a project that needs to deploy a workable but customisable portal as one of its components. The team working on this has set up a Jetspeed-based solution using the demo site. I was wondering how usable the Cocoon portal webapp is and whether anyone has compared it to the Jetspeed one. Also, is work still continuing on the Auth and Portal webapps? And is there a release date for them? We have to release incremental builds of the project but the final release isn't until end of 2004 so I'm happy for us to work with beta code (and even contribute to it if it adds to our project functionality) as long as it seems a viable long-term project. What are the long-term prospects of the Portal? Thanks, Tony. __ Tony Linde Phone: +44 (0)116 223 1292 AstroGrid Project ManagerFax:+44 (0)116 252 3311 Dept of Physics Astronomy Mobile: +44 (0)7753 603356 University of Leicester Email: [EMAIL PROTECTED] Leicester, UK LE1 7RH Web:http://www.astrogrid.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deploy with portal/auth
You have to build Cocoon to get a portal demo running. If you are refering to 2.0.x, you have to include the scratchpad part of cocoon. This is described in detail (I hope :) ) in the installation documentation of cocoon. If you are refering to 2.1 (the CVS HEAD) you have a problem :), the build system is currently changing and the samples are not included in the webapp. But as soon as this works again, you have to build the webapp and this again is described in the installation documentation. HTH Carsten -Original Message- From: Tony Linde [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:24 PM To: Cocoon-Users-List Subject: Deploy with portal/auth Hi. I want to deploy Cocoon with the beta version of the authorisation and portal webapps, initially on my Windows laptop for demo but latterly on a Linux platform. Is this available in a simple war? Or do I need to go through the build? If the latter, are there any simple instructions somewhere (I'm sure I came across some once while Google-ing but cannot find them again)? Apologies if this a faq - just point me at the answer if it is in a web page somewhere. Many thanks, Tony. __ Tony Linde Phone: +44 (0)116 223 1292 AstroGrid Project ManagerFax:+44 (0)116 252 3311 Dept of Physics Astronomy Mobile: +44 (0)7753 603356 University of Leicester Email: [EMAIL PROTECTED] Leicester, UK LE1 7RH Web:http://www.astrogrid.org - 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: Portal: usable now? Usable in future?
The portal and authentication framework are used in production since years now - I don't have any links handy right now :( So, you can call the framework usable and stable. I can't compare the cocoon portal with jetspeed, because that wouldn't be objective enough, I fear. But if you want to use Cocoon anyway, use the Cocoon portal; if you want to build your application based on XML and XSLT (for example for multi-channel), use the cocoon portal. If jetspeed provides everything you need know and in the foreseen future, well...aeh...use the jetspeed portal of course. In general, I guess the cocoon portal is more flexible because of it's XML/XSLT nature - so you can add new features, integrate new portlets without writing one line java code; it's just a matter of configuration. The development of the cocoon portal will continue and it will be even more powerfull and extensible than it is now. Just a teaser: What do you think of a portal that can run cocoon portlets and jetspeed based portlets at the same time? Carsten -Original Message- From: Tony Linde [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:35 PM To: Cocoon-Users-List Subject: Portal: usable now? Usable in future? Hi, I am PM of a project that needs to deploy a workable but customisable portal as one of its components. The team working on this has set up a Jetspeed-based solution using the demo site. I was wondering how usable the Cocoon portal webapp is and whether anyone has compared it to the Jetspeed one. Also, is work still continuing on the Auth and Portal webapps? And is there a release date for them? We have to release incremental builds of the project but the final release isn't until end of 2004 so I'm happy for us to work with beta code (and even contribute to it if it adds to our project functionality) as long as it seems a viable long-term project. What are the long-term prospects of the Portal? Thanks, Tony. __ Tony Linde Phone: +44 (0)116 223 1292 AstroGrid Project ManagerFax:+44 (0)116 252 3311 Dept of Physics Astronomy Mobile: +44 (0)7753 603356 University of Leicester Email: [EMAIL PROTECTED] Leicester, UK LE1 7RH Web:http://www.astrogrid.org - 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]
Cocoon on Resin
When ever I try to deploy the Cocoon portal on Resin I get this error: 500 Servlet Exception java.lang.IllegalStateException: can't clear response after writing headers at com.caucho.server.http.ResponseStream.clear(ResponseStream.java:201) at com.caucho.server.http.Response.reset(Response.java:1256) at com.caucho.server.http.Response.reset(Response.java:1238) at org.apache.cocoon.servlet.CocoonServlet.service (CocoonServlet.java:1115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96) at com.caucho.server.http.Invocation.service(Invocation.java:311) at com.caucho.server.http.CacheInvocation.service (CacheInvocation.java:135) at com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:342) at com.caucho.server.http.RunnerRequest.handleConnection (RunnerRequest.java:272) at com.caucho.server.TcpConnection.run(TcpConnection.java:137) at java.lang.Thread.run(Thread.java:536) You can go visit the page at http://www.atlantalinklist.com/cocoon2/sunspotdemo http://www.atlantalinklist.com/cocoon2/sunspotdemo - portal Does anyone know how to fix it?
Re: Cocoon on Resin
Hello Sean, 24 Feb 2003, 17:05:27: SM Does anyone know how to fix it? are you sure you have set up the cocoon to work with sunRise and the those other quite 'fragile' components? because as you see other examples on your server do work fine -- Bye, ilfrinmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Portal: usable now? Usable in future?
Hi Carsten, production since years now - I don't have any links handy right now :( So, you can call the framework usable and stable. Maybe someone else can jump in. would be useful in the 'sales pitch'! The development of the cocoon portal will continue and it will be even more powerfull and extensible than it is now. Excellent. Just a teaser: What do you think of a portal that can run cocoon portlets and jetspeed based portlets at the same time? Since we're developing all from scratch, I'd rather settle on a single approach from the beginning but, since the jetspeed approach has been out for a while longer, it sounds a good idea. Cheers, Tony. -Original Message- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] Sent: 24 February 2003 15:47 To: [EMAIL PROTECTED] Subject: RE: Portal: usable now? Usable in future? The portal and authentication framework are used in production since years now - I don't have any links handy right now :( So, you can call the framework usable and stable. I can't compare the cocoon portal with jetspeed, because that wouldn't be objective enough, I fear. But if you want to use Cocoon anyway, use the Cocoon portal; if you want to build your application based on XML and XSLT (for example for multi-channel), use the cocoon portal. If jetspeed provides everything you need know and in the foreseen future, well...aeh...use the jetspeed portal of course. In general, I guess the cocoon portal is more flexible because of it's XML/XSLT nature - so you can add new features, integrate new portlets without writing one line java code; it's just a matter of configuration. The development of the cocoon portal will continue and it will be even more powerfull and extensible than it is now. Just a teaser: What do you think of a portal that can run cocoon portlets and jetspeed based portlets at the same time? Carsten -Original Message- From: Tony Linde [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:35 PM To: Cocoon-Users-List Subject: Portal: usable now? Usable in future? Hi, I am PM of a project that needs to deploy a workable but customisable portal as one of its components. The team working on this has set up a Jetspeed-based solution using the demo site. I was wondering how usable the Cocoon portal webapp is and whether anyone has compared it to the Jetspeed one. Also, is work still continuing on the Auth and Portal webapps? And is there a release date for them? We have to release incremental builds of the project but the final release isn't until end of 2004 so I'm happy for us to work with beta code (and even contribute to it if it adds to our project functionality) as long as it seems a viable long-term project. What are the long-term prospects of the Portal? Thanks, Tony. __ Tony Linde Phone: +44 (0)116 223 1292 AstroGrid Project ManagerFax:+44 (0)116 252 3311 Dept of Physics Astronomy Mobile: +44 (0)7753 603356 University of Leicester Email: [EMAIL PROTECTED] Leicester, UK LE1 7RH Web:http://www.astrogrid.org - 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: JPEG/PNG IN IE???
Thank you for the reply! I have an application that generates SVG files (well-formed XML). I am trying to pass the pure SVG file to the Cocoon svg2jpeg (or svg2png) serializer and on to the client (IE). I'm using IE ver 6.0 w/ SP1. Sam -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 11:15 PM To: [EMAIL PROTECTED] Subject: Re: JPEG/PNG IN IE??? Sam Are you trying to deliver pure SVG or are you embedding it is an object in HTML page (and, if so, how) - also, what version of IE are you using? Derek [EMAIL PROTECTED] 24/02/2003 07:36:09 Ok...I'm trying to get cocoon to deliver (serialize) and (SVG) XML document. It works okay in Netscape and Amaya (except the sides are cut off. But in IE (6.0) I just get a white screen with the little x in the corner... I checked the archives but didn't see the same problem...Any Ideas? ...please... Thank you, Sam - 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]
fatal error thrown by current cvs build
I'm getting the following error message from cocoon when it tries to render some of the html pages in my site: sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet cause You cannot lookup components on a disposed ComponentLocator Here's the backtrace in the error log: ERROR (2003-02-24) 03:12.00:561 [access] (/hero/animation/Hierarchy/HERO_HUMANS_AVARS/Avars_Top.html) PoolThread-9/CocoonServlet: Problem with Cocoon servlet java.lang.IllegalStateException: You cannot lookup components on a disposed ComponentLocator at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:160) at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:259) at org.apache.cocoon.components.treeprocessor.InvokeContext.getProcessingPipeline(InvokeContext.java:190) at org.apache.cocoon.components.treeprocessor.sitemap.GenerateNode.invoke(GenerateNode.java:100) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143) Strangely, it only seems to happen in pages with framesets. I don't see this in 2.0.4. Any ideas? I know this isn't a lot of information to go on. What other info can I send? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
possible bug in current cocoon.xconf
I get a lot of error messages about failures to find various deli-related config files when running the current cvs cocoon. This change seems to have fixed the problem: --- /home/miles/work/cocoon.xconf 2003-02-24 10:21:27.0 -0800 +++ ../cocoon.xconf 2003-02-24 03:23:23.0 -0800 @@ -942,7 +942,7 @@ | device that runs on. +-- deli class=org.apache.cocoon.components.deli.DeliImpl -parameter name=deli-config-file value=resources/deli/config/deliConfig.xml/ +parameter name=deli-config-file value=WEB-INF/deli/config/deliConfig.xml/ /deli miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cheap Cocoon Hosting
I went to the Cocoon website and it gives a list of hosting providers that will support Cocoon. I have a hosting provider but they just told me there is no way they were going to do anything for Cocoon. Does any use a hosting company that is cheap and has Cocoon support and what is your experience? Thanks -Original Message- From: ilfrin [mailto:[EMAIL PROTECTED] Sent: Mon 2/24/2003 11:40 AM To: [EMAIL PROTECTED] Cc: Subject: Re: Cocoon on Resin Hello Sean, 24 Feb 2003, 17:05:27: SM Does anyone know how to fix it? are you sure you have set up the cocoon to work with sunRise and the those other quite 'fragile' components? because as you see other examples on your server do work fine -- Bye, ilfrinmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cheap Cocoon Hosting
aoindustries.com come recommended. They host cocoondev.org. positiveinternet.com in the UK host servlets on their Z-account, which means that they _should_ be able to host Cocoon. Regards, Upayavira I went to the Cocoon website and it gives a list of hosting providers that will support Cocoon. I have a hosting provider but they just told me there is no way they were going to do anything for Cocoon. Does any use a hosting company that is cheap and has Cocoon support and what is your experience? Thanks -Original Message- From: ilfrin [mailto:[EMAIL PROTECTED] Sent: Mon 2/24/2003 11:40 AM To: [EMAIL PROTECTED] Cc: Subject: Re: Cocoon on Resin Hello Sean, 24 Feb 2003, 17:05:27: SM Does anyone know how to fix it? are you sure you have set up the cocoon to work with sunRise and the those other quite 'fragile' components? because as you see other examples on your server do work fine -- Bye, ilfrinmailto:[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: XPath problems in Cocoon?
Anna Afonchenko wrote: But when I tried to apply this stylesheet using cocoon, I still got the empty root element root/ as a result. That's because strip-space doesn't apply if the input is delivered through a SAX pipeline (although the spec is a bit ambiguous about this. Actually, your expression is ugly. What's wrong with select=a[following-sibling::*[1][self::a]] This means select a elements where the following element (disregarding any text node) is also an a element. This is not quite equivalent to your expression but will give the same result for your XML source, and it will work regardless whether whitespace nodes are stripped. There's half a zillion other possibilities to express the same or similar conditions. If you give a description of the effect you want to achieve, a proper expression can be formulated. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JPEG/PNG IN IE???
Chance, Sam USA [EMAIL PROTECTED] writes: Ok...I'm trying to get cocoon to deliver (serialize) and (SVG) XML document. It works okay in Netscape and Amaya (except the sides are cut off. But in IE (6.0) I just get a white screen with the little x in the corner... Are you using a transparent background? IE has some problems with that. A nice workaround is Sleight (http://www.youngpup.net/?request=/snippets/sleight.xml) Cheers Martin -- Martin Lüthi [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing cocoon datasource from a servlet
Does anybody know how to access a cocoon datasource (DataSourceComponent) from a standard servlet? Thx, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XPath problems in Cocoon?
J.Pietschmann wrote: Actually, your expression is ugly. What's wrong with select=a[following-sibling::*[1][self::a]] This means select a elements where the following element (disregarding any text node) is also an a element. She mentioned, that no non-whitespace-character text must between the both a/s. And so it seems, that the expression must be ugly. But of course using self::a instead of name()='a' is simpler and more reliable according namespace issues. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SVG Font Embedder for Cocoon
[This is an abridged version of a HOWTO posted at the Cocoon Wiki: http://wiki.cocoondev.org/Wiki.jsp?page=Embedding_SVG_Fonts] *Introduction* Using server-generated SVG in a multi-lingual or with complex layout inevitably leads to frustration over fonts. A map with multi-lingual text carefully layed out using the Bitstream Cyberbit font will be riddled with 'missing character' squares when rendered on a client's machine that lacks Cyberbit. The SVG specification does offer a solution to this problem: scalable font glyphs can be described within an svg:font element. With these, the client renders text using the appropriate SVG glyphs, not relying on font descriptions from the client's operating environment. But it would be completely impractical to render the entire, e.g., Cyberbit font as an SVG font and expect the client machine to upload this with each view. What is needed is a mechanism that appends to an SVG document only those glyphs necessary for it to be rendered. As it turns out, the marvellous Batik SVG Graphics2D environment has just this ability. I've tapped into it to make an xslt transformation (extended with xalan/java) which takes any SVG document and adds to it the glyphs necessary for its viewing. The result is a somewhat heavier document, but one that is completely portable. An example: http://heml.mta.ca/heml-cocoon/map.svgz? url=docs/source/heml/newton.xmlmapName=britainfontName=Melmo *Use* To use the SVGFontEmbedder, you'll need to ensure that: 1. Your Cocoon environment has the Batik jar file. Check WEB-INF/libs for a file called something like batik-all.jar. (I've tested this with Cocoon 2.0.4, which comes with the 1.5b2 Batik code.) 2. You can process an xslt file with Xalan. Xalan is the default xslt processor in Cocoon, but some people have patched in support for Saxon because of its superior speed. (It should be noted that, at present, its speed comes at the cost of being able to pass off its elements to java processes as DOM objects, a deal-breaker for me.) You'll also need to download two files: 1. heml-cocoon.jar from any Heml release v.0_5.4 or greater, found at http://heml.mta.ca/releases 2. svgEmbedFonts.xsl, the latest version of which is easiest to aquire at its view cvs page Install heml-cocoon.jar in your $COCOON_HOME/WEB-INF/libs directory, and put svgEmbedFonts.xsl wherever your xsl files usually reside. Emend your sitemap to transform your SVG files just before they are serialized as svg+xml. (Incidentally, there is no point in using this transformation before rasterizing SVG to jpg or png, since your server will have access to its own fonts when rasterizing.) For instance, an appropriate part of my sitemap looks like this: map:transform src=xslt/util/svgEmbedFonts.xsl/ Once Cocoon is duly restarted, etc., your SVG should now have the necessary svg:glyph elements automagically added. *Caveats* 1. This code will only recognize fonts specified with the font-family=MY_FONT attribute notation. You can't use style=font-family: MY_FONT and expect this process to assign the right font to your text. On the positive side, the font-family can be specified on the svg:text element or any of its ancestors, just like in any honest SVG document. -- Bruce Robertson, Dept. of Classics, Mount Allison University http://heml.mta.ca -- Bruce Robertson, Dept. of Classics, Mount Allison University http://heml.mta.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deploy with portal/auth
I tried doing a build (be patient with me - I'm from a Win VB dev background) using: build -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes webapp Then deployed the .war file - got the Cocoon start page up okay but: 1. all the docs were empty (I got that with the package installation I installed a while back as well). 2. I ran the portal sample, but when I logged in with guest/guest (or cocoon/cocoon), I got: type fatal message null description java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/sunspotdemo-portal path-info sunspotdemo-portal stack-trace java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869 ) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871 ) ... at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:533) at java.lang.Thread.run(Thread.java:536) Any ideas what I did wrong? Cheers, Tony. -Original Message- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] Sent: 24 February 2003 15:42 To: [EMAIL PROTECTED] Subject: RE: Deploy with portal/auth You have to build Cocoon to get a portal demo running. If you are refering to 2.0.x, you have to include the scratchpad part of cocoon. This is described in detail (I hope :) ) in the installation documentation of cocoon. If you are refering to 2.1 (the CVS HEAD) you have a problem :), the build system is currently changing and the samples are not included in the webapp. But as soon as this works again, you have to build the webapp and this again is described in the installation documentation. HTH Carsten -Original Message- From: Tony Linde [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:24 PM To: Cocoon-Users-List Subject: Deploy with portal/auth Hi. I want to deploy Cocoon with the beta version of the authorisation and portal webapps, initially on my Windows laptop for demo but latterly on a Linux platform. Is this available in a simple war? Or do I need to go through the build? If the latter, are there any simple instructions somewhere (I'm sure I came across some once while Google-ing but cannot find them again)? Apologies if this a faq - just point me at the answer if it is in a web page somewhere. Many thanks, Tony. __ Tony Linde Phone: +44 (0)116 223 1292 AstroGrid Project ManagerFax:+44 (0)116 252 3311 Dept of Physics Astronomy Mobile: +44 (0)7753 603356 University of Leicester Email: [EMAIL PROTECTED] Leicester, UK LE1 7RH Web:http://www.astrogrid.org - 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]
disposed componentlocator problem again
It looks this problem shows up whenver a client makes several requests to the server in short order. Pages with several images, for example, show up with many broken images but some of the images appear upon reload. Any ideas? I'm running cocoon-cvs from today in Jetty-4.2.8 with Sun's 1.4.1_01 jdk. miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cinclude transformer VERY slow
Dear all, I'm playing around with the CInclude transformer and the Directory generator for aggregation in latest 2.1(within the included Jetty engine). I've chosen this way and not the Aggregate one cause I want the included files to be dynamically select. Anyway, each time I request the URL, the pipeline gets executed correctly but it takes ages to render the result. I only have three very very small files (700 bytes) in the directory. When I run my pipleine I first get the list of files using the Directory Generator, then make an XSL trasnformation so I get something like this: ?xml version=1.0 encoding=UTF-8 ? page xmlns:cinclude=http://apache.org/cocoon/include/1.0; cinclude:include src=n_2003_02_24.news.xml element=included / cinclude:include src=n_2003_02_23_1.news.xml element=included / cinclude:include src=n_2003_02_23_0.news.xml element=included / /page Next step in my pipeline is to apply the CInclude transformer. As I said, it renders but it takes some 1m30s. Of course, this is not acceptable. I tried switching to the CachingCIncludeTransformer and also to the XIncludeTransformer but unfortunately I had the same results. Does anybody had this problem? Thanks for reading. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
presentation help needed: Cocoon apps
Hello! I already wrote here, that I'm preparing a presentation on Cocoon. I'm almost done. I've one section left, which is about types of tasks/projects, where Cocoon can be used most effectively. I have this so far: Portals - obvious, I can say something about portal project too WebServices - both as a web service provider and consumer Publishing and document processing - obvious EAI and/or (Data mining and reporting)- Cocoon's aggregation from data sources can be used for system integration - this is my favourite! Also, I'd love to get a project where I can use Cocoon vs OLAP. I've a feeling that Cocoon's going to beat OLAP Ok, if you have any other suggestions, they'll be appreciated and considered cheers, Argyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: presentation help needed: Cocoon apps
Hi Argyn, I'm not sure if you would consider this to fall under portals, but you might also want to include its use as a platform for web applications. You could talk about XMLForms and Actions. -- Ryan Hoegg ISIS Networks http://www.isisnetworks.net Argyn wrote: Hello! I already wrote here, that I'm preparing a presentation on Cocoon. I'm almost done. I've one section left, which is about types of tasks/projects, where Cocoon can be used most effectively. I have this so far: Portals - obvious, I can say something about portal project too WebServices - both as a web service provider and consumer Publishing and document processing - obvious EAI and/or (Data mining and reporting)- Cocoon's aggregation from data sources can be used for system integration - this is my favourite! Also, I'd love to get a project where I can use Cocoon vs OLAP. I've a feeling that Cocoon's going to beat OLAP Ok, if you have any other suggestions, they'll be appreciated and considered cheers, Argyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: presentation help needed: Cocoon apps
Do you mean just plain web application? It's Struts' territory :) Seriously, Cocoon has a steep learning curve. So, it's hard to sell it, unless there's something special in the webapp, imho. If I propose Cocoon as a platform for generic webapps, then I must be able to defend this view. I'm not sure that I can do it. I've to give more thought on this though. thanks, Argyn -Original Message- From: Ryan Hoegg [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:12 PM To: [EMAIL PROTECTED] Subject: Re: presentation help needed: Cocoon apps Hi Argyn, I'm not sure if you would consider this to fall under portals, but you might also want to include its use as a platform for web applications. You could talk about XMLForms and Actions. -- Ryan Hoegg ISIS Networks http://www.isisnetworks.net Argyn wrote: Hello! I already wrote here, that I'm preparing a presentation on Cocoon. I'm almost done. I've one section left, which is about types of tasks/projects, where Cocoon can be used most effectively. I have this so far: Portals - obvious, I can say something about portal project too WebServices - both as a web service provider and consumer Publishing and document processing - obvious EAI and/or (Data mining and reporting)- Cocoon's aggregation from data sources can be used for system integration - this is my favourite! Also, I'd love to get a project where I can use Cocoon vs OLAP. I've a feeling that Cocoon's going to beat OLAP Ok, if you have any other suggestions, they'll be appreciated and considered cheers, Argyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HOW DO I BUILD THE WAR FILE?
Downloading from CVS right now using the cvsgrab tool! Perfect! Thank you! SAm -Original Message- From: Steven Noels [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 3:02 AM To: [EMAIL PROTECTED] Subject: Re: HOW DO I BUILD THE WAR FILE? Chance, Sam USA wrote: Great! I think what is happening tome is that because I am behind a firewall, I can't connect to the CVS server, so I download the snapshots which lag... Anyone know how to get around the firewall problem in order to connect to CVS server? http://cvsgrab.sourceforge.net/ /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - 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]
Error running the cocoon war file on Tomcat 4.0.4
Hello All,I downloaded the source code for cocoon version 2.0.4, and ran the webapp task to create the war file. I then copied the war file into my web app folder on Tomcat 4.0.4.However upon stopping and restarting Tomcat several times, it was not able to see the "cocoon" webapp. I then went through the Tomcat log files and found the following message :HostConfig[localhost] Error deploying web application directory cocoonjava.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0)Now upon going through the user's mail archive, I stumbled across someone who had a similar problem, except that he had the wrong version of the JVM. However, my JAVA_HOME environment variable points to E:\j2sdk1.4.1_01, which is version 1.4 and greater. Is it possible that Tomcat is using some other JDK version, or JVM ? Please help if you know what the problem is.Thanks in advance.Shainal GosaiSoftware DeveloperW :(011) 5193149Fax :(011) 5193100Cell :0829018263 __ Global Technology www.glotec.co.za Disclaimer: This message contains confidential information for the addressee named above. If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy or take any action in reliance on it. Any views expressed in this message are those of the individual sender unless otherwise stated.
Embedding SVG Fonts
The list may be interested in a Xalan/xslt/java/batik process that adds embedded font descriptions to SVG documents, making them portable. HOWTO posted at the Cocoon Wiki: http://wiki.cocoondev.org/Wiki.jsp? page=Embedding_SVG_Fonts Sample document at: http://heml.mta.ca/heml-cocoon/map.svgz? url=docs/source/heml/newton.xmlmapName=britainfontName=Melmo Yrs, -- Bruce Robertson, Dept. of Classics, Mount Allison University http://heml.mta.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SVG Font Embedder for Cocoon
[This is an abridged version of a HOWTO posted at the Cocoon Wiki: http://wiki.cocoondev.org/Wiki.jsp?page=Embedding_SVG_Fonts] *Introduction* Using server-generated SVG in a multi-lingual or with complex layout inevitably leads to frustration over fonts. A map with multi-lingual text carefully layed out using the Bitstream Cyberbit font will be riddled with 'missing character' squares when rendered on a client's machine that lacks Cyberbit. The SVG specification does offer a solution to this problem: scalable font glyphs can be described within an svg:font element. With these, the client renders text using the appropriate SVG glyphs, not relying on font descriptions from the client's operating environment. But it would be completely impractical to render the entire, e.g., Cyberbit font as an SVG font and expect the client machine to upload this with each view. What is needed is a mechanism that appends to an SVG document only those glyphs necessary for it to be rendered. As it turns out, the marvellous Batik SVG Graphics2D environment has just this ability. I've tapped into it to make an xslt transformation (extended with xalan/java) which takes any SVG document and adds to it the glyphs necessary for its viewing. The result is a somewhat heavier document, but one that is completely portable. An example: http://heml.mta.ca/heml-cocoon/map.svgz? url=docs/source/heml/newton.xmlmapName=britainfontName=Melmo *Use* To use the SVGFontEmbedder, you'll need to ensure that: 1. Your Cocoon environment has the Batik jar file. Check WEB-INF/libs for a file called something like batik-all.jar. (I've tested this with Cocoon 2.0.4, which comes with the 1.5b2 Batik code.) 2. You can process an xslt file with Xalan. Xalan is the default xslt processor in Cocoon, but some people have patched in support for Saxon because of its superior speed. (It should be noted that, at present, its speed comes at the cost of being able to pass off its elements to java processes as DOM objects, a deal-breaker for me.) You'll also need to download two files: 1. heml-cocoon.jar from any Heml release v.0_5.4 or greater, found at http://heml.mta.ca/releases 2. svgEmbedFonts.xsl, the latest version of which is easiest to aquire at its view cvs page Install heml-cocoon.jar in your $COCOON_HOME/WEB-INF/libs directory, and put svgEmbedFonts.xsl wherever your xsl files usually reside. Emend your sitemap to transform your SVG files just before they are serialized as svg+xml. (Incidentally, there is no point in using this transformation before rasterizing SVG to jpg or png, since your server will have access to its own fonts when rasterizing.) For instance, an appropriate part of my sitemap looks like this: map:transform src=xslt/util/svgEmbedFonts.xsl/ Once Cocoon is duly restarted, etc., your SVG should now have the necessary svg:glyph elements automagically added. *Caveats* 1. This code will only recognize fonts specified with the font-family=MY_FONT attribute notation. You can't use style=font-family: MY_FONT and expect this process to assign the right font to your text. On the positive side, the font-family can be specified on the svg:text element or any of its ancestors, just like in any honest SVG document. -- Bruce Robertson, Dept. of Classics, Mount Allison University http://heml.mta.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HOW DO I BUILD THE WAR FILE?
build war peace sarge ;) -Original Message- From: Chance, Sam USA [mailto:[EMAIL PROTECTED] Sent: zondag 23 februari 2003 4:36 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: HOW DO I BUILD THE WAR FILE? I'm sorry, but I'm a newbie...Can someone please tell me how to build Cocoon2.1 to include the war file? ...please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon loading error
I'm pretty new to this. But I have a routine that runs fine on my computer, however when I deploy it to the server I get this following error. Any ideas!? please respond to [EMAIL PROTECTED] Thanks ERROR (2003-02-21) 04:23.04:102 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Exception reloading java.lang.ClassNotFoundException: org.apache.cocoon.Cocoon at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:88) at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1227) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generators and external applications...
Hello, I have successfully configured and used Cocoon 2.0.3 on Linux to generate HTML and PDF files on the fly from XML source files. I've used primarily DocBook source, but I have a few other types of source files. Part of what I want to do is generate complex documents from multiple source locations. The DocBook source files contain tags which are used by external programs (in this case RefDB) to generate information for the final document. While part of this process is the application of stylesheets, part of it is the execution of a separate client program which retrieves the information from a database. My question is how can I run an external program/script and have the final output be what is sent to the Transformer for display? I'm guessing I'm missing something really obvious because no one else seems to ask this question. My initial observation was that I would need to write a Generator to do the work I need done by the RefDB client application. My second observation was I might be able to use Jython or JavaScript to execute the program for me using the ScriptGenerator. For the case of JavaScript, I think I'm limited in its ability to access the server OS. Jython should be able to do the trick, but it seems a little kludgy to write a script which simply calls an executable on the OS and forwards the XML output. Is there an easy way to do this? Am I destined to write a Generator? I looked at XSP, but my initial observation was that it probably wouldn't work, but I might have missed something here also. Thanks, Al - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: presentation help needed: Cocoon apps vs other apps?
Coming in from the side there were some earlier threads where it was suggested that a full-scale web- application should not be created in either Struts or solely in Cocoon - but the EJB, with Cocoon as the presentation front-end, were the way to go your opinion may differ widely, of course, but its worth reading those threads to see what the arguments are. We also have developers here that are "sold" on Struts - I would like to better understand where and how these two approaches differ or overlap; how to know which one to choose and, ideally, how and where they can actually work together! My 2c Derek [EMAIL PROTECTED] 25/02/2003 07:22:56 Do you mean just plain web application?It's Struts' territory :) Seriously, Cocoon has a steep learning curve. So,it's hard to "sell" it, unless there's something special in the webapp,imho. If I propose Cocoon as a platform for generic webapps, then I must beable to defend this view. I'm not sure that I can do it.I've to give more thought on this though.thanks,Argyn -Original Message- From: Ryan Hoegg [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:12 PM To: [EMAIL PROTECTED] Subject: Re: presentation help needed: Cocoon apps Hi Argyn, I'm not sure if you would consider this to fall under "portals", but you might also want to include its use as a platform for web applications. You could talk about XMLForms and Actions. -- Ryan Hoegg ISIS Networks http://www.isisnetworks.net Argyn wrote: Hello! I already wrote here, that I'm preparing a presentation on Cocoon. I'm almost done. I've one section left, which is about types of tasks/projects, where Cocoon can be used most effectively. I have this so far: Portals - obvious, I can say something about portal project too WebServices - both as a web service provider and consumer Publishing and document processing - obvious EAI and/or (Data mining and reporting)- Cocoon's aggregation from data sources can be used for system integration - this is my favourite! Also, I'd love to get a project where I can use Cocoon vs OLAP. I've a feeling that Cocoon's going to beat OLAP Ok, if you have any other suggestions, they'll be appreciated and considered cheers, Argyn - 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]-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy."
cocoon-2.1-dev how to run
For anyone interested in trying cocoon-2.1-dev I discovered that to run it you have to set the variable JETTY_WEBAPP to build/cocoon-2.1-dev/webapp because the default setting (build/webapp) doesn't point to the right location. INSTALL.txt must be fixed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JPEG/PNG IN IE???
Sam OK - what does your sitemap look like i.t.o. the pipeline related to the SVG? Also, you can try and display the SVG via an object tag embedded in an HTML page... I have never tried with "pure" SVG and I know IE is sometimes very sticky about displaying non-HTML files (eg. to get a PDF output to work I had to use a .pdf extension in the URI?!) Derek [EMAIL PROTECTED] 24/02/2003 07:47:31 Thank you for the reply!I have an application that generates SVG files (well-formed XML). I am trying to pass the "pure" SVG file to the Cocoon svg2jpeg (or svg2png) serializer and on to the client (IE). I'm using IE ver 6.0 w/ SP1.Sam-Original Message-From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 11:15 PMTo: [EMAIL PROTECTED]Subject: Re: JPEG/PNG IN IE???SamAre you trying to deliver "pure" SVG or are youembedding it is an object in HTML page (and, ifso, how) - also, what version of IE are you using?Derek [EMAIL PROTECTED] 24/02/2003 07:36:09 Ok...I'm trying to get cocoon to deliver (serialize) and (SVG) XMLdocument. It works okay in Netscape and Amaya (except the sides are"cut off". But in IE (6.0) I just get a white screen with the little"x" in the corner...I checked the archives but didn't see the same problem...Any Ideas?...please...Thank you,Sam-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]-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy."
mod_proxy and getRemoteHost()
I've been experimenting with using mod_proxy as a connector as described here: http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy I like it a lot but have run into a snag. All my request.getRemoteHost() calls return 127.0.0.1. Does anyone know a way around this. Otherwise I can't use it :-( Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]