Internal server error
Title: Internal server error Hello all, I am trying to run cocoon2b1 on solaris 8. I have tomcat3.2.2,and have the following in my tomcat/lib directory servlet_2.2.jar,xalan-2.0.1.jar,xerces_1_4_0.jar , jasper.jar, I get this error. Can someone help me out. Thanx, Raghu Cocoon 2 - Internal server error type internal-server-error message Exception in Handler description org.apache.cocoon.ProcessingException: Exception in Handler:org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri/cocoon/ embedded exceptionorg.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap embedded exception stacktraceorg.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:161) at org.apache.cocoon.sitemap.Handler.run(Handler.java:224) at java.lang.Thread.run(Thread.java:484) org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:127) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:118) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:243) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:158) at org.apache.cocoon.sitemap.Handler.run(Handler.java:224) at java.lang.Thread.run(Thread.java:484) exceptionorg.apache.cocoon.ProcessingException: Exception in Handler:org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap path-info stacktraceorg.apache.cocoon.ProcessingException: Exception in Handler:org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:257) at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:167) at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:169) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:90) at org.apache.cocoon.Cocoon.process(Cocoon.java:293) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) org.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:161) at org.apache.cocoon.sitemap.Handler.run(Handler.java:224) at java.lang.Thread.run(Thread.java:484) org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:127) at
XSP Transformer...
I am a newbie in Cocoon but i see one bug limit of XSP: is not a transformer but only a generator. I think that should be useful using an XSP page to filter/manage an XML stream. Is for you a good or a bad idea? The only way to do that with current versions of cocoon is writing a custom transformer... Bye bye, Paolo Scaffardi AIRVENT SAM S.p.A. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: xml compressing
Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jg = jg Thanks and have great day jg srini jg jg Do You Yahoo!? jg Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com -- Best regards, Andrewmailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: Action to modify request parameters
Does this mean that sitemap parameters override request parameters of the same name? Form: Set request parameter --- Filter action: Get request parameter Alter parameter Save in sitemap parameter --- DatabaseAddAction: use sitemap parameter instead of request parameter with same name Otherwise, I cannot chain these actions without altering the code in DatabaseAddAction (which I am trying not to do) Thanks, Chris -Original Message- From: Jörn Heid [mailto:[EMAIL PROTECTED]] Sent: 04 September 2001 19:14 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters I think not. But you can use sitemap params (that's the preferred way for actions). And this works with the sitemap, other actions, xslt... -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. September 2001 19:34 An: Cocoon-Users Betreff: C2: Action to modify request parameters Hi All, I'm writing an action that is a pre-filter to DatabaseAddAction that modifies request parameters before they are sent to the database. In the map() method of my action I can get the parameters using: Request req = (Request)objectModel.get(Constants.REQUEST_OBJECT); String my_param = (String)request.getParameter(my_param); // process parameter here But there is no request.setParameter() to return the updated value to the request. Is this possible? (I hope so) Thanks, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK Email: [EMAIL PROTECTED] Tel: +44 (0)1279 450100 Fax: +44 (0)1279 450102 Check out FIPA-OS at http://fipa-os.sourceforge.net/ This message may contain information proprietary to Emorphia so any unauthorised disclosure, copying or distribution of its contents is strictly prohibited. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: Action to modify request parameters
This is what I thought :( So it is not possible to use another action to modify the request parameters that will be picked up by DatabaseAddAction since I would have to put the updated values into the sitemap parameters and DatabaseAddAction only looks in the request parameters? Guess I'll have to subclass the DatabaseXAction classes in order to filter the parameters. Thanks, Chris -Original Message- From: Jörn Heid [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 10:22 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters No. There are two maps. -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. September 2001 11:14 An: [EMAIL PROTECTED] Betreff: RE: C2: Action to modify request parameters Does this mean that sitemap parameters override request parameters of the same name? Form: Set request parameter --- Filter action: Get request parameter Alter parameter Save in sitemap parameter --- DatabaseAddAction: use sitemap parameter instead of request parameter with same name Otherwise, I cannot chain these actions without altering the code in DatabaseAddAction (which I am trying not to do) Thanks, Chris -Original Message- From: Jrn Heid [mailto:[EMAIL PROTECTED]] Sent: 04 September 2001 19:14 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters I think not. But you can use sitemap params (that's the preferred way for actions). And this works with the sitemap, other actions, xslt... -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. September 2001 19:34 An: Cocoon-Users Betreff: C2: Action to modify request parameters Hi All, I'm writing an action that is a pre-filter to DatabaseAddAction that modifies request parameters before they are sent to the database. In the map() method of my action I can get the parameters using: Request req = (Request)objectModel.get(Constants.REQUEST_OBJECT); String my_param = (String)request.getParameter(my_param); // process parameter here But there is no request.setParameter() to return the updated value to the request. Is this possible? (I hope so) Thanks, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK Email: [EMAIL PROTECTED] Tel: +44 (0)1279 450100 Fax: +44 (0)1279 450102 Check out FIPA-OS at http://fipa-os.sourceforge.net/ This message may contain information proprietary to Emorphia so any unauthorised disclosure, copying or distribution of its contents is strictly prohibited. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2: Action to modify request parameters
Why you don't want to use request attributes? They are the right place of holding this kind of information and passing between different processing layers: actions, pages, etc. - Original Message - From: Chris Newland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 1:30 PM Subject: RE: C2: Action to modify request parameters This is what I thought :( So it is not possible to use another action to modify the request parameters that will be picked up by DatabaseAddAction since I would have to put the updated values into the sitemap parameters and DatabaseAddAction only looks in the request parameters? Guess I'll have to subclass the DatabaseXAction classes in order to filter the parameters. Thanks, Chris -Original Message- From: Jörn Heid [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 10:22 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters No. There are two maps. -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. September 2001 11:14 An: [EMAIL PROTECTED] Betreff: RE: C2: Action to modify request parameters Does this mean that sitemap parameters override request parameters of the same name? Form: Set request parameter --- Filter action: Get request parameter Alter parameter Save in sitemap parameter --- DatabaseAddAction: use sitemap parameter instead of request parameter with same name Otherwise, I cannot chain these actions without altering the code in DatabaseAddAction (which I am trying not to do) Thanks, Chris -Original Message- From: Jrn Heid [mailto:[EMAIL PROTECTED]] Sent: 04 September 2001 19:14 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters I think not. But you can use sitemap params (that's the preferred way for actions). And this works with the sitemap, other actions, xslt... -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. September 2001 19:34 An: Cocoon-Users Betreff: C2: Action to modify request parameters Hi All, I'm writing an action that is a pre-filter to DatabaseAddAction that modifies request parameters before they are sent to the database. In the map() method of my action I can get the parameters using: Request req = (Request)objectModel.get(Constants.REQUEST_OBJECT); String my_param = (String)request.getParameter(my_param); // process parameter here But there is no request.setParameter() to return the updated value to the request. Is this possible? (I hope so) Thanks, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK Email: [EMAIL PROTECTED] Tel: +44 (0)1279 450100 Fax: +44 (0)1279 450102 Check out FIPA-OS at http://fipa-os.sourceforge.net/ This message may contain information proprietary to Emorphia so any unauthorised disclosure, copying or distribution of its contents is strictly prohibited. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: Action to modify request parameters
Hi Konstantin, Sorry for appearing stupid but I still don't see how attributes can help me. here is the original situation: 1) Form is submitted and form values are set into request *parameters* 2) DatabaseAddAction reads request *parameters* and puts them into database. But I need to manipulate the parameters first so I thought I'd put an action between the form and the DatabaseAddAction which alters the request parameters: 1) Form values set into request *parameters* 2) My action reads values from request *parameters* I cannot set new values back into request parameters If I set the new values into request attributes then the DatabaseAddAction ignores these and reads the original values from the request parameters. If I set the new values into sitemap parameters then the DatabaseAddAction ignores these and reads the original values from the request parameters. 3) DatabaseAddAction reads request *parameters* Request attributes are different from request parameters aren't they? Thanks for your patience, Chris -Original Message- From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 10:43 To: [EMAIL PROTECTED] Subject: Re: C2: Action to modify request parameters Why you don't want to use request attributes? They are the right place of holding this kind of information and passing between different processing layers: actions, pages, etc. - Original Message - From: Chris Newland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 1:30 PM Subject: RE: C2: Action to modify request parameters This is what I thought :( So it is not possible to use another action to modify the request parameters that will be picked up by DatabaseAddAction since I would have to put the updated values into the sitemap parameters and DatabaseAddAction only looks in the request parameters? Guess I'll have to subclass the DatabaseXAction classes in order to filter the parameters. Thanks, Chris -Original Message- From: Jrn Heid [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 10:22 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters No. There are two maps. -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. September 2001 11:14 An: [EMAIL PROTECTED] Betreff: RE: C2: Action to modify request parameters Does this mean that sitemap parameters override request parameters of the same name? Form: Set request parameter --- Filter action: Get request parameter Alter parameter Save in sitemap parameter --- DatabaseAddAction: use sitemap parameter instead of request parameter with same name Otherwise, I cannot chain these actions without altering the code in DatabaseAddAction (which I am trying not to do) Thanks, Chris -Original Message- From: Jrn Heid [mailto:[EMAIL PROTECTED]] Sent: 04 September 2001 19:14 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters I think not. But you can use sitemap params (that's the preferred way for actions). And this works with the sitemap, other actions, xslt... -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. September 2001 19:34 An: Cocoon-Users Betreff: C2: Action to modify request parameters Hi All, I'm writing an action that is a pre-filter to DatabaseAddAction that modifies request parameters before they are sent to the database. In the map() method of my action I can get the parameters using: Request req = (Request)objectModel.get(Constants.REQUEST_OBJECT); String my_param = (String)request.getParameter(my_param); // process parameter here But there is no request.setParameter() to return the updated value to the request. Is this possible? (I hope so) Thanks, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK Email: [EMAIL PROTECTED] Tel: +44 (0)1279 450100 Fax: +44 (0)1279 450102 Check out FIPA-OS at http://fipa-os.sourceforge.net/ This message may contain information proprietary to Emorphia so any unauthorised disclosure, copying or distribution of its contents is strictly prohibited. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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
Re: Re[2]: xml compressing
Hmm - seems to me that the pages need to be redesigned ... good webpage design = smaller and faster w/out throwing more technology at the issue (you can always allow people to get more/heavier/bigger stuff if they *choose* to do so...) YMMV [EMAIL PROTECTED] 05/09/2001 11:13:03 Hi java guru,Tuesday, September 04, 2001, 8:38:37 PM, you wrote:jg Hi.,jg Correct me if wrong..jg 1. The xml/xsl rendering in c2 is done on server side.jg Then why do u need to compress the xml/xsp for clientjg side?But if i even generate HTML-files, anyway i want/can compress theirs fordecrease traffic. I want to learn this aspect, because it's can bevery useful for me. My pages are too large (many tables, texts,images - 50-60k)jg 2. The xsp/sitemap precompilation process is injg faq..Please try it...Well, i do this.jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hellojg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jg =jg Thanks and have great dayjg srinijg jg Do You Yahoo!?jg Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com-- Best regards,Andrew mailto:[EMAIL PROTECTED]-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faqs.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
xsp xincluding
Hello cocoon-users, how to do xsp xincluding? Because xinclude is a transformer, i can't push it before xsp generator in sitemap pipeline... But i can't also do xsp processing later because of xsp is a generator and i must place it first in pipeline... What i can do? -- Best regards, Andrew mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Could not connect to Oracle8i database
Hi I am not able to connect to Oracle8i database.Exception states that could not connect to datasource you cannot get a poolable before the pool is initialized. java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: You cannot get a Poolable before the pool is initialized Following are the settings made in Coccon.xconf pool-controller min=5 max=10 oradb=true/ dburljdbc:oracle:thin:@216.236.194.50:1521:SSIPL/dburl usersystem/user passwordmanager/password web.xml init-param param-nameload-class/param-name param-value oracle.jdbc.driver.OracleDriveror /param-value The database driver is classes102.zip and I am able to connect to the same database with same driver with standalone java application. Environment is Tomcat 4, C2 windows2000 Prior to this I connected to mySql database sucessfully. Any help on this will be highly appreciated Thanks Ankush - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2: Action to modify request parameters
Hi Konstantin, Sorry for appearing stupid but I still don't see how attributes can help me. here is the original situation: 1) Form is submitted and form values are set into request *parameters* 2) DatabaseAddAction reads request *parameters* and puts them into database. But I need to manipulate the parameters first so I thought I'd put an action between the form and the DatabaseAddAction which alters the request parameters: 1) Form values set into request *parameters* 2) My action reads values from request *parameters* I cannot set new values back into request parameters If I set the new values into request attributes then the DatabaseAddAction ignores these and reads the original values from the request parameters. If I set the new values into sitemap parameters then the DatabaseAddAction ignores these and reads the original values from the request parameters. 3) DatabaseAddAction reads request *parameters* Request attributes are different from request parameters aren't they? Yes, request attributes are used exactly for the tasks similar to yours. You can have an action, which get request parameters and put them into attributes (it can be a single object, holding all the necessary data) and you have to change DatabaseAddAction to make it use attributes instead of parameters (or ask in cocoon-dev to do it). I'm not familiar with the DatabaseAddAction, but as I can see, it explicitly uses request parameters and there's no other option now. Other solution can be creating a new request with new parameters, but it's not a good way. kot Thanks for your patience, Chris -Original Message- From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 10:43 To: [EMAIL PROTECTED] Subject: Re: C2: Action to modify request parameters Why you don't want to use request attributes? They are the right place of holding this kind of information and passing between different processing layers: actions, pages, etc. - Original Message - From: Chris Newland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 1:30 PM Subject: RE: C2: Action to modify request parameters This is what I thought :( So it is not possible to use another action to modify the request parameters that will be picked up by DatabaseAddAction since I would have to put the updated values into the sitemap parameters and DatabaseAddAction only looks in the request parameters? Guess I'll have to subclass the DatabaseXAction classes in order to filter the parameters. Thanks, Chris -Original Message- From: Jrn Heid [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 10:22 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters No. There are two maps. -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. September 2001 11:14 An: [EMAIL PROTECTED] Betreff: RE: C2: Action to modify request parameters Does this mean that sitemap parameters override request parameters of the same name? Form: Set request parameter --- Filter action: Get request parameter Alter parameter Save in sitemap parameter --- DatabaseAddAction: use sitemap parameter instead of request parameter with same name Otherwise, I cannot chain these actions without altering the code in DatabaseAddAction (which I am trying not to do) Thanks, Chris -Original Message- From: Jrn Heid [mailto:[EMAIL PROTECTED]] Sent: 04 September 2001 19:14 To: [EMAIL PROTECTED] Subject: AW: C2: Action to modify request parameters I think not. But you can use sitemap params (that's the preferred way for actions). And this works with the sitemap, other actions, xslt... -Ursprngliche Nachricht- Von: Chris Newland [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. September 2001 19:34 An: Cocoon-Users Betreff: C2: Action to modify request parameters Hi All, I'm writing an action that is a pre-filter to DatabaseAddAction that modifies request parameters before they are sent to the database. In the map() method of my action I can get the parameters using: Request req = (Request)objectModel.get(Constants.REQUEST_OBJECT); String my_param = (String)request.getParameter(my_param); // process parameter here But there is no request.setParameter() to return the updated value to the request. Is this possible? (I hope so) Thanks, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK Email: [EMAIL PROTECTED] Tel: +44 (0)1279 450100 Fax: +44 (0)1279 450102
Publishing Engine could not be initialized.
java.lang.RuntimeException: Error creating org.apache.cocoon.transformer.XalanTransformer: make sure the needed classes can be found in the classpath (org/apache/xalan/xpath/xml/XMLParserLiaison) I'm trying to just set up Cocoon with Tomcat, no Apache yet. I've symlinked the necessary .jar files to the Tomcat /lib directory reather than doing a copy as per README, could this be part of the problem? I also noticed that the xalan.jar that comes from Sun is more recent than the one shipped with the Cocoon package. I've tried both, same problem. Tomcat works fine. Suggestions? Thanks - Tod --- java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) Cocoon-1.8 Tomcat 3.2.3 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: xml compressing
Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jg = jg Thanks and have great day jg srini jg jg Do You Yahoo!? jg Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com -- Best regards, Andrew mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Thanks and have great day srini Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon error when generating graphics in PDFs
Hi all, I would like to include graphics in PDF documents rendered by Cocoon. The problem we have is, that it simply does not work. Cocoon throws an exception about a method not defined in the AWT. We are running Cocoon 1.8.2 and JVM 1.1.8. The stylesheets are checked and validated by a manual FOP conversion, we are using full classified URLs, so can't be the reason neither. i read about X-references recently. is that a clue? Thanks, Stephan The error is Cocoon 1.8.2 Error found handling the request. java.lang.NoSuchMethodError: java.awt.image.ColorModel: method hasAlpha()Z not found at org.apache.fop.image.GifJpegImage.loadImage(GifJpegImage.java:94) at org.apache.fop.image.AbstractFopImage.getBitmaps(AbstractFopImage.java:233) at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:108) at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:970) at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:183) at org.apache.fop.apps.Driver.render(Driver.java:444) at org.apache.cocoon.formatter.FO2PDFFormatter.format(FO2PDFFormatter.java:159) at org.apache.cocoon.Engine.handle(Engine.java:401) at org.apache.cocoon.Cocoon.service(Cocoon.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java) Warning: this page has been dynamically generated. Copyright (c) 1999-2001 The Apache XML Project. All rights reserved. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re[2]: xml compressing
Whether browsers support compression (usually either gzip or zip I think) is sent as part of the header of the request. It is then up to the server to do any compression (of the supported type) it desires. To my knowledge: Apache httpd can compress it's output. TC 4 I think can (it's a filter applied after the content has been generated) C2 doesn't. I _don't_ know if it's possible / desired. You can't compress the html+images though, only one thing at once as it t'were. Don't take what I say as gospel - I've been wrong before ;) J. -Original Message- From: java guru [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 05 September 2001 2:01 pm To: [EMAIL PROTECTED]; Andrew Answer Subject: Re: Re[2]: xml compressing Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jg = jg Thanks and have great day jg srini jg jg Do You Yahoo!? jg Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com -- Best regards, Andrew mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Thanks and have great day srini Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered
Re: Re[2]: xml compressing
Excuse-me if this is out-of-subject or if I didn't properly understood the previous message but the server-side can send a compressed page with a Response-Header content-Encoding gzip for exemple indicating that the page is compressed and the client-side can decompressed the page to display it. But to do that, it is better for the server (or a servlet) to check the request-header to see if it contains the header accept-encoding gzip indicating that the browser is able to decompressed the page with gzip Xavier Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jg = jg Thanks and have great day jg srini jg jg Do You Yahoo!? jg Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com -- Best regards, Andrew mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Thanks and have great day srini Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: xml compressing
Hi., I feel sorry for leading this topic off cocoon2. Hope this will not extend beyond limits. But., yes, you can do that all., but as already someone explains you cannot bundle all html+images together in this method..and this kinda stuff is highly client dependent... --- Xavier Renard [EMAIL PROTECTED] wrote: Excuse-me if this is out-of-subject or if I didn't properly understood the previous message but the server-side can send a compressed page with a Response-Header content-Encoding gzip for exemple indicating that the page is compressed and the client-side can decompressed the page to display it. But to do that, it is better for the server (or a servlet) to check the request-header to see if it contains the header accept-encoding gzip indicating that the browser is able to decompressed the page with gzip Xavier Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jg = jg Thanks and have great day jg srini jg jg Do You Yahoo!? jg Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com -- Best regards, Andrew mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Thanks and have great day srini Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] === message truncated === = Thanks and have great day srini Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com - Please
RE: Re[2]: xml compressing
You are right in the sense that apache and tc4 can compress the output(only supported formats).. 1. And if thats what we are talking about then there is compression/decompression all over the network starting at the server., network layers, hardwares like modems etc.. 2. I dont think so the so called webapps according to the servlet model are responsible/supposed to do..this kida job. I guess they depend on their server environment for that. 3. And I guess the orginal auther of this question was talking about compression utils like xmlppm. They are hardcore zipping mechanisms..NOT one of those server/browser supported and standard in-line compression mechanisms.. 4. And yes., you cant compress everything together(html+images).. so there is no point in saying that my html doc is 50 k big including images...'coz every link on the html is treated separate request to be filled by the browser... --- Morrison, John [EMAIL PROTECTED] wrote: Whether browsers support compression (usually either gzip or zip I think) is sent as part of the header of the request. It is then up to the server to do any compression (of the supported type) it desires. To my knowledge: Apache httpd can compress it's output. TC 4 I think can (it's a filter applied after the content has been generated) C2 doesn't. I _don't_ know if it's possible / desired. You can't compress the html+images though, only one thing at once as it t'were. Don't take what I say as gospel - I've been wrong before ;) J. -Original Message- From: java guru [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 05 September 2001 2:01 pm To: [EMAIL PROTECTED]; Andrew Answer Subject: Re: Re[2]: xml compressing Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jg = jg Thanks and have great day jg srini jg jg Do You Yahoo!? jg Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com -- Best regards, Andrew mailto:[EMAIL PROTECTED] - Please check that
RE: DatabaseXActions
Hi Andrew, I'm currently modifying the DatabaseAdd|Delete|UpdateAction actions to allow request parameters to be overriden with request attributes. This will allow me to pass my form data through another action which manipulates the values and sets them in request attributes before the DatabaseAddAction adds them into the database. Regards, Chris -Original Message- From: Andrew Answer [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 14:20 To: [EMAIL PROTECTED] Subject: DatabaseXActions Hello cocoon-users, i read thread named Action to modify request parameters and want to ask another questions. 1. I try to use DatabaseAddAction for getting form data. In descriptor file i setup column type as timestamp value param=datetime dbcol=fdatetime type=time-stamp/. How to set request parameter on NOW + 1 hour (for example)? I can get integer or string values from form through request parameters, but can't get timestamp. util:time format=.../ not work because of this is a string instead of date. xsp:logicrequest.setAttribute(date,new Date());/xsp:logic not work because DatabaseAddAction read real parameters only, not attributes (as i understand). Now i use Hsqldb and not need to convert Java datatypes into another. This actions work without converting types? 2. Anybody use DatabaseSelectAction? How it work? It present into my version (xml-cocoon2_20010831101539.tar.gz) of C2. When i use other database actions, i call cocoon-action through pressing button. How to run DatabaseSelectAction automatically when i open page? -- Best regards, Andrew mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Doesn't anyone know how to get the date of a requested XML-File ?
Hi again, sorry for posting this thing over and over again, but I simply never get a reply. I want to automaticaly display the date a requested XML-File that was requested was last modified. I think this type of action should occur quite frequently, so I hope one of you has an Idea how to access this parameter. This is how a page is called : XML( can containin XSP-Code but no XSP-PI ) - XSL - XML ( containing Code from original XML and XSL and XSP-PI ) - XSL - HTML-Output Plese help me. I'm sort of desperate. Thanx in adveance, Christofer Dutz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[4]: xml compressing
Hello java guru, I want to compress the traffic and search any methods for do this. It can be: 1. Using HTTP-Header and default browsers compression support. 2. Using browser plugins which do it and use autoinstall for upgrade clients. 3. Anybody what you want... I'm not spec in this area, but i'm not fool and know, what i need client support of my compression methods. xmlppm is a example of second way (if it really work as i think..). On the other hand, i agree what server environment is that place where this support should be tuned. I use Resin and try to ask to that. I read what tomcat use this feature and i will try to do that also. Wednesday, September 05, 2001, 8:19:11 PM, you wrote: jg You are right in the sense that apache and tc4 can jg compress the output(only supported formats).. jg 1. And if thats what we are talking about then there jg is compression/decompression all over the network jg starting at the server., network layers, hardwares jg like modems etc.. jg 2. I dont think so the so called webapps according jg to the servlet model are responsible/supposed to jg do..this kida job. I guess they depend on their server jg environment for that. jg 3. And I guess the orginal auther of this question was jg talking about compression utils like xmlppm. They are jg hardcore zipping mechanisms..NOT one of those jg server/browser supported and standard in-line jg compression mechanisms.. jg 4. And yes., you cant compress everything jg together(html+images).. jg so there is no point in saying that my html doc is 50 jg k big including images...'coz every link on the html jg is treated separate request to be filled by the jg browser... jg --- Morrison, John [EMAIL PROTECTED] wrote: Whether browsers support compression (usually jg either gzip or zip I think) is sent as part of the header of the request. It is then up to the server to do any compression (of the supported type) it desires. To my knowledge: Apache httpd can compress it's output. TC 4 I think can (it's a filter applied after the content has been generated) C2 doesn't. I _don't_ know if it's possible / desired. You can't compress the html+images though, only one thing at once as it t'were. Don't take what I say as gospel - I've been wrong before ;) J. -Original Message- From: java guru [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 05 September 2001 2:01 pm To: [EMAIL PROTECTED]; Andrew Answer Subject: Re: Re[2]: xml compressing Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg jg
C2B2 Sitemap compile failure - AbstractGenerator
Hi, Cocoon 2.0b2 JBoss 2.4.0 with tomcat 3.2.3 I have problem with compilation of sitemap.xmap where error is indicating class not found - org/apache/cocoon/generation/AbstractGenerator I have traced error to sitemap.xmap.java line where I load my own Generator which extends the AbstractGenerator sitemap.load_component (Sitemap.GENERATOR, my-Generator, org.mine.MyGenerator, cconf1, null); The org.mine.MyGenerator class can be found within WEB-INF/classes - which I assume is on the path as is cocoon2.0b2.jar in WEB-INF/lib. Any ideas - Thanks for any help Tony Cocoon.log extract --- ERROR 99969 [cocoon ] (Thread-36): Error compiling sitemap java.lang.NoClassDefFoundError: org/apache/cocoon/generation/AbstractGenerator at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava:446) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46) at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav a:212) at org.apache.cocoon.www.sitemap_xmap$Configurer.configGenerators(sitemap_xmap. java:410) --- Tony Goodwin Dact Ltd. 07775 918903 mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re[2]: xml compressing
Hi Thomas, comperssing is nice, but what ist about fire-walls!? at great industries they don't allow to get compressed files over net Klaus nbis - Röttgerweg 10 - 51371 Leverkusen phone: +49-214-206494-0 fax: +49-214-206494-44 email: [EMAIL PROTECTED] -Original Message- From: Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: Re: Re[2]: xml compressing I have been fiddling around alot with sending gzip compressed streams to a browser. and have the following info for anyone willing to experiment. if/what compression algorithms a browser can deal with is stated in the request header Accept-Encoding. values I have seen is deflate and gzip. NN4.06+, MSIE 4+ and NN6/Mozilla (M17+) accepts and automatically decodes an incoming gzipped HTML stream just fine, but ONLY if the server sends along appropiate info about this. Say you have some implementation that gzips up some data on the fly and wishes to send a gzip-chunk to the browser, these three headers are crucial for the browser to recognize the stream as gzip. Content-Length Content-Encoding: gzip Content-type: text/html if the browser accepts gzipped data, and these three headers are set correct, it'll work. I have been serving gzip compressed HTML with my apache for over two years now and over a slow connection this is a real boost. A vanilla ASCII file can be reduced with 80-90% of its original size. taking down a 65kB chunk to less than 5kB, is that a save or what. those interested in this should have a look at mod_gzip. Don't know how well it co-ops with a servlet engine, but its definitely worth a try if you'd ask me. my 2 cents Thomas. ___ [EMAIL PROTECTED] http://www.jet.st | http://www.saltstorm.net S_a_l_t_s_t_o_r_m - Original Message - From: Morrison, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 3:08 PM Subject: RE: Re[2]: xml compressing Whether browsers support compression (usually either gzip or zip I think) is sent as part of the header of the request. It is then up to the server to do any compression (of the supported type) it desires. To my knowledge: Apache httpd can compress it's output. TC 4 I think can (it's a filter applied after the content has been generated) C2 doesn't. I _don't_ know if it's possible / desired. You can't compress the html+images though, only one thing at once as it t'were. Don't take what I say as gospel - I've been wrong before ;) J. -Original Message- From: java guru [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 05 September 2001 2:01 pm To: [EMAIL PROTECTED]; Andrew Answer Subject: Re: Re[2]: xml compressing Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic.
Re: Publishing Engine could not be initialized.
I'm sorry, I don't know the source of your problem, but I can help a little bit. My setup is mostly like yours. The symbolic links shouldn't be a problem (I assume you are on some kind of *nix). My setup uses symlinks as well, and I've done that successfully on both Solaris and Linux. When you start Tomcat, it usually shows its classpath. Is it showing the xalan_1_2_D02.jar as part of its classpath? I think most people just dump their jars in the tomcat/lib directory, and let tomcat add them to the classpath. You can easily hack the tomcat.sh script for more control, though. Mine now reads its jars from a file. It seems like I've read about problems with JDK 1.3.1 on the list (I have JDK1.3.0). I don't remember the details, but you might want to search the archives. Maybe it is related somehow. -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Publishing Engine could not be initialized. java.lang.RuntimeException: Error creating org.apache.cocoon.transformer.XalanTransformer: make sure the needed classes can be found in the classpath (org/apache/xalan/xpath/xml/XMLParserLiaison) I'm trying to just set up Cocoon with Tomcat, no Apache yet. I've symlinked the necessary .jar files to the Tomcat /lib directory reather than doing a copy as per README, could this be part of the problem? I also noticed that the xalan.jar that comes from Sun is more recent than the one shipped with the Cocoon package. I've tried both, same problem. Tomcat works fine. Suggestions? Thanks - Tod --- java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) Cocoon-1.8 Tomcat 3.2.3 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic XSP
This approach is strongly discouraged. If you try to do it this way, your pages will take a long time to load, every time, because your second XSP program will have to be recompiled every single time. So, even if you can make it work, you won't *want* to. Is there some reason you are trying to do it this way? What is it you are trying to accomplish? Perhaps we can suggest a better approach. -Christopher Please respond to [EMAIL PROTECTED] To: cocoon-users [EMAIL PROTECTED] cc: Subject: Dynamic XSP Hi , I am using cocoon 1.8.2, My xsp page receives an request and it produces an another xsp page, i.e. my logic is request ---xsp1--xsl-1---xsp2--xsl-2--html--response I have done xsp1 and xsl-1 and i got xsp2 as a response. I need to process the result once again. How can i give the instruction to cocoon for that.. Any of you have experience like this? Expecting reply Thangadurai - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re[2]: xml compressing
yes you had a mime type of image who can not include code at the other side the firewall must extract the file, check it, compress and foreward it to the requested user we had problems with class files who are packed. if we leave it at class it works nice every company had other restrictions at secure Klaus -Original Message- From: Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 4:19 PM To: [EMAIL PROTECTED] Subject: Re: Re[2]: xml compressing they're not allowing GIF and JPEG then either ? I have hard to see that a firewall would filter out binary files unconditionally. I feel pretty sure saying that if you can get a GIF image thru the firewall, gzipped HTML should slip through aswell. /thomas. - Original Message - From: Klaus Bertram [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 4:02 PM Subject: RE: Re[2]: xml compressing Hi Thomas, comperssing is nice, but what ist about fire-walls!? at great industries they don't allow to get compressed files over net Klaus nbis - Röttgerweg 10 - 51371 Leverkusen phone: +49-214-206494-0 fax: +49-214-206494-44 email: [EMAIL PROTECTED] -Original Message- From: Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: Re: Re[2]: xml compressing I have been fiddling around alot with sending gzip compressed streams to a browser. and have the following info for anyone willing to experiment. if/what compression algorithms a browser can deal with is stated in the request header Accept-Encoding. values I have seen is deflate and gzip. NN4.06+, MSIE 4+ and NN6/Mozilla (M17+) accepts and automatically decodes an incoming gzipped HTML stream just fine, but ONLY if the server sends along appropiate info about this. Say you have some implementation that gzips up some data on the fly and wishes to send a gzip-chunk to the browser, these three headers are crucial for the browser to recognize the stream as gzip. Content-Length Content-Encoding: gzip Content-type: text/html if the browser accepts gzipped data, and these three headers are set correct, it'll work. I have been serving gzip compressed HTML with my apache for over two years now and over a slow connection this is a real boost. A vanilla ASCII file can be reduced with 80-90% of its original size. taking down a 65kB chunk to less than 5kB, is that a save or what. those interested in this should have a look at mod_gzip. Don't know how well it co-ops with a servlet engine, but its definitely worth a try if you'd ask me. my 2 cents Thomas. ___ [EMAIL PROTECTED] http://www.jet.st | http://www.saltstorm.net S_a_l_t_s_t_o_r_m - Original Message - From: Morrison, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 3:08 PM Subject: RE: Re[2]: xml compressing Whether browsers support compression (usually either gzip or zip I think) is sent as part of the header of the request. It is then up to the server to do any compression (of the supported type) it desires. To my knowledge: Apache httpd can compress it's output. TC 4 I think can (it's a filter applied after the content has been generated) C2 doesn't. I _don't_ know if it's possible / desired. You can't compress the html+images though, only one thing at once as it t'were. Don't take what I say as gospel - I've been wrong before ;) J. -Original Message- From: java guru [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 05 September 2001 2:01 pm To: [EMAIL PROTECTED]; Andrew Answer Subject: Re: Re[2]: xml compressing Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the
Strange Behaviour on Solaris-2.7
Hi Folks I have Apache-1.3.20, Tomcat-4.0B7, Cocoon-2.0B2 working with modweb_app on a box running Mandrake-Linux-8.0 and it works just fine. When I tried the same thing on Solaris, (remember everything was compiled from sources except Tomcat), I frequently get the following message, when I go to http://myhost/cocoon. The message is web application is not loaded. I am able to access the http://myhost/webapp-info/ page without any problem but I see the Deployment status as FALSE many times. While I was away to get a cup of coffee, my five-year old son, what hitting the shift-reload on Netscape-4.77 a couple of time, then suddenly, I see the welcome page for Cocoon-2 appearing. This erratic behaviour is occuring often. When I tried the Simple SQL page from the welcome page, I get the web application not deployed message, but then again when I do a shift-reload about three or four times, the expected page appears. I do not know where to look and why this is happening, any help would be greatly appreciated. If you wish to see the page in action, please let me know. Regards Joseph Rajkumar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can't output text before document element
Hi, im really new new to Cocoon and have a, as I think, trivial Question for people used to Cocoon. I'm sorry but I couldn't sind any Solution on the net. Im trying to learn how cocoon works so i copied the example from the cocoon website. Whe I try to acces this page i get the following error message: can't output text before document element the xml and xsl files are very simple, and i cant se any bug in them. ?xml version="1.0"??cocoon-process type="xslt"??xml-stylesheet href="testsheet.xsl" type="text/xsl"?pagetitleHello World!/titlecontent paragraphThis is my first Cocoon page!/paragraph/content/page the testsheet.xsl ?xml version="1.0"?xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/xsl:stylesheet Thx in advance for any hint.
Re: xsp xincluding
Hello, one way to deal with this issue is to have your xinclude url refer another pipeline defined in your sitemap. For example if I had the following fragment in my sitemap: sitemap.xmap: ... match pattern=/components/*.xsp generate type=xsp src=/components/{1}.xsp/ serialize type=xml/ /match ... Then, my xsp file had the following xinclude: ... xi:include href=cocoon://components/somefile.xsp/ ... This would only work if your xsp files are independent of each other. Another approach would be to use XSP logicsheets instead of xinclude. I am still new to Cocoon2 and learning as I go along, so take my advice with a grain of salt! Perhaps others on this list have can offer a better solution. Regards, --mike On Wed, 5 Sep 2001, Andrew Answer wrote: Hello cocoon-users, how to do xsp xincluding? Because xinclude is a transformer, i can't push it before xsp generator in sitemap pipeline... But i can't also do xsp processing later because of xsp is a generator and i must place it first in pipeline... What i can do? -- Best regards, Andrew mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Another Working System!
Cocoon 1.8.2 with/on: OS: Redhat 7.1 Webserver: Tomcat 3.2.3 Servlet Engine: Tomcat 3.2.3 JVM: IBM 1.3 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apidocs
Hi, my recent mails got no success. Maybe the object beginning with an A will help. I'd like to generate an xsl from an xsp (an example of this below) and save this it on my disk automatically (overwriting the previous one) and use it as a transformer for requests(I already know this part). I've found this in apidocs: public FileSavingEnvironment(java.lang.String uri, java.io.File context, java.util.Map attributes, java.util.Map parameters, java.util.Map links, java.io.OutputStream stream, org.apache.log.Logger log) throws java.net.MalformedURLException Unfortunatly, I don't know any java, and all this package stuff is chinese to me. I've read doc on xsp and logic, but I don't know at all what to do with this FileSavingEnvironment(): where to put it, what by any means are the parameters? My xsp to generate my xsl shoudl be like: xsp:logic doc_ID = xsp-request:get-parameter name=document_ID/; /xsp:logic esql:connection esql:poolnotions/esql:pool esql:execute-query esql:querySELECT * from xsp:expression {doc_ID}//esql:query esql:results xsl:template match=esql:get-string column='notionID'/ esql:get-string column=comment/ xsl:value-of select=. /xsl:template /esql:row-results /esql:results esql:no-results pSorry, no results in user_info/p /esql:no-results /esql:execute-query /esql:connection But how to make this be the stream for the FileSavingEnvironment(), that is mystery to me. Please, a bit of help. An answer or a link for a tutorial that goes directly to explaining the package stuff in apis, and how to do file management through cocoon or simply with the jdk. Cib France, Bordeaux, xml and gay pride. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fp taglibs - race conditions?
At 11:06 AM -0400 5/9/01, Elisa Green wrote: The project I am working on does not need a full-fledged database application so the simplicity of the fp taglibs is attractive, but I have been unable to find any information on managing race conditions? Is it best to look for another solution or does cocoon handle this? The FP Taglib in it's current state would not deal well with two people trying to modify the same file at the same time, if that is what you mean by a race condition. regards Jeremy -- ___ Jeremy Quinn Karma Divers webSpace Design HyperMedia Research Centre mailto:[EMAIL PROTECTED]http://www.media.demon.co.uk phone:+44.[0].20.7737.6831pager:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fp taglibs - race conditions?
Jeremy Quinn wrote: At 11:06 AM -0400 5/9/01, Elisa Green wrote: The project I am working on does not need a full-fledged database application so the simplicity of the fp taglibs is attractive, but I have been unable to find any information on managing race conditions? Is it best to look for another solution or does cocoon handle this? The FP Taglib in it's current state would not deal well with two people trying to modify the same file at the same time, if that is what you mean by a race condition. Yes, that is what I meant. Thank you. Elisa [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2b2] JSP Generator example fails with Error creating the resource Exception JspGenerator.generate()
Their is not jasper.jar in Tomcat 4.0-b7 or -b8, but their is a jasper-compiler.jar. Copying jasper-compiler.jar to cocoon/WEB-INF/lib works. Is this a Tomcat or Cocoon problem? Paul Spencer Vadim Gritsenko wrote: Copy jasper.jar into cocoon/WEB-INF/lib directory and restart tomcat. PS Latest tomcat betas do not expose jasper to webapps. Vadim -Original Message- From: Jon Peterson [mailto:[EMAIL PROTECTED]] Sent: Monday, September 03, 2001 11:15 PM To: [EMAIL PROTECTED] Subject: Re: [C2b2] JSP Generator example fails with Error creating the resource Exception JspGenerator.generate() Confirm that you have jasper.jar (or maybe jasper-runtime.jar) in $TOMCAT_HOME/lib. It's a bit confusing if it's not there, seeing that you're using Tomcat...I had this problem using Resin and doing this solved it. Jon - Original Message - From: Paul Spencer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 02, 2001 2:08 PM Subject: [C2b2] JSP Generator example fails with Error creating the resource Exception JspGenerator.generate() Using Cocoon 2.0-b2, Tomcat 4.0-b7, Java 1.3, Window NT4 SP5. I get the following error running the Jsp Generator example: Error Creating the resource Exception JspGenerator.generate() from source org.apache.cocoon.ProcessingException description org.apache.cocoon.ProcessingException: Exception JspGenerator.generate():java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet extra info java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineImpl.java :121) at org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:76) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:217) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:361) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN3B6(sitemap_xmap.java:5082) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2357) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2072) at org.apache.cocoon.sitemap.Handler.process(Handler.java:160) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103) at org.apache.cocoon.Cocoon.process(Cocoon.java:423) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:489) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1000) at
Re: Re[2]: xml compressing
I have been fiddling around alot with sending gzip compressed streams to a browser. and have the following info for anyone willing to experiment. if/what compression algorithms a browser can deal with is stated in the request header Accept-Encoding. values I have seen is deflate and gzip. NN4.06+, MSIE 4+ and NN6/Mozilla (M17+) accepts and automatically decodes an incoming gzipped HTML stream just fine, but ONLY if the server sends along appropiate info about this. Say you have some implementation that gzips up some data on the fly and wishes to send a gzip-chunk to the browser, these three headers are crucial for the browser to recognize the stream as gzip. Content-Length Content-Encoding: gzip Content-type: text/html if the browser accepts gzipped data, and these three headers are set correct, it'll work. I have been serving gzip compressed HTML with my apache for over two years now and over a slow connection this is a real boost. A vanilla ASCII file can be reduced with 80-90% of its original size. taking down a 65kB chunk to less than 5kB, is that a save or what. those interested in this should have a look at mod_gzip. Don't know how well it co-ops with a servlet engine, but its definitely worth a try if you'd ask me. my 2 cents Thomas. ___ [EMAIL PROTECTED] http://www.jet.st | http://www.saltstorm.net S_a_l_t_s_t_o_r_m - Original Message - From: Morrison, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 3:08 PM Subject: RE: Re[2]: xml compressing Whether browsers support compression (usually either gzip or zip I think) is sent as part of the header of the request. It is then up to the server to do any compression (of the supported type) it desires. To my knowledge: Apache httpd can compress it's output. TC 4 I think can (it's a filter applied after the content has been generated) C2 doesn't. I _don't_ know if it's possible / desired. You can't compress the html+images though, only one thing at once as it t'were. Don't take what I say as gospel - I've been wrong before ;) J. -Original Message- From: java guru [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 05 September 2001 2:01 pm To: [EMAIL PROTECTED]; Andrew Answer Subject: Re: Re[2]: xml compressing Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very useful for me. My pages are too large (many tables, texts, images - 50-60k) jg 2. The xsp/sitemap precompilation process is in jg faq..Please try it... Well, i do this. jg --- Andrew Answer [EMAIL PROTECTED] wrote: Hello jg cocoon-users, I have some questions about C2 environment... 1. Anybody know can i compress my xml/xsp files before publishing it? I want to use on-the-fly compressing util like XMLPPM (http://sourceforge.net/projects/xmlppm). It's can decrease my traffic. Need i change MIME-type of HTTP header for automatic decompression files on the user? May be i must change files extension? 2. Can I precompile my site into .class files for speed increasing? How to do this? -- Best regards, Andrew mailto:[EMAIL PROTECTED] jg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html
Cocoon2: BrowserImpl, filtering bytes
Hi, Does anyone know where I can get a little more info on the browser categories implementation for cocoon2? We're using media types to write different stylesheets to various media types with no issues, but I'm looking for a scalable way to filter the number of bytes sent to a particular device (particularly in the wap realm). I was looking at the rdf in org.apache.cocoon.components.browser.BrowserImpl.xml, and found the following particularly interesting line in the phone.com browser category: prf:WmlDeckSize1400/prf:WmlDeckSize Anyone know if this should actually limit the deck size for a response to a phone.com user-agent (I don't think it will, but that'd be cool!) Or- is it just a parameter available so that we can write code to limit based on the device. If the latter is the case, how do we access this parameter from an xsp page, and how do we add additional parameters? According the dtd for the sitemap, it doesn't look like we can add anything in that. If anyone has any info on these or links to info, it'd be greatly appreciated. I've cc'd the author on this message in case he/she (sorry, not sure if ovidiu is feminine/masculine) does not check this list (apologies in advance if itis not appropriate to cc authors). thanks in advance, cass __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: xml compressing
they're not allowing GIF and JPEG then either ? I have hard to see that a firewall would filter out binary files unconditionally. I feel pretty sure saying that if you can get a GIF image thru the firewall, gzipped HTML should slip through aswell. /thomas. - Original Message - From: Klaus Bertram [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 4:02 PM Subject: RE: Re[2]: xml compressing Hi Thomas, comperssing is nice, but what ist about fire-walls!? at great industries they don't allow to get compressed files over net Klaus nbis - Röttgerweg 10 - 51371 Leverkusen phone: +49-214-206494-0 fax: +49-214-206494-44 email: [EMAIL PROTECTED] -Original Message- From: Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: Re: Re[2]: xml compressing I have been fiddling around alot with sending gzip compressed streams to a browser. and have the following info for anyone willing to experiment. if/what compression algorithms a browser can deal with is stated in the request header Accept-Encoding. values I have seen is deflate and gzip. NN4.06+, MSIE 4+ and NN6/Mozilla (M17+) accepts and automatically decodes an incoming gzipped HTML stream just fine, but ONLY if the server sends along appropiate info about this. Say you have some implementation that gzips up some data on the fly and wishes to send a gzip-chunk to the browser, these three headers are crucial for the browser to recognize the stream as gzip. Content-Length Content-Encoding: gzip Content-type: text/html if the browser accepts gzipped data, and these three headers are set correct, it'll work. I have been serving gzip compressed HTML with my apache for over two years now and over a slow connection this is a real boost. A vanilla ASCII file can be reduced with 80-90% of its original size. taking down a 65kB chunk to less than 5kB, is that a save or what. those interested in this should have a look at mod_gzip. Don't know how well it co-ops with a servlet engine, but its definitely worth a try if you'd ask me. my 2 cents Thomas. ___ [EMAIL PROTECTED] http://www.jet.st | http://www.saltstorm.net S_a_l_t_s_t_o_r_m - Original Message - From: Morrison, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 05, 2001 3:08 PM Subject: RE: Re[2]: xml compressing Whether browsers support compression (usually either gzip or zip I think) is sent as part of the header of the request. It is then up to the server to do any compression (of the supported type) it desires. To my knowledge: Apache httpd can compress it's output. TC 4 I think can (it's a filter applied after the content has been generated) C2 doesn't. I _don't_ know if it's possible / desired. You can't compress the html+images though, only one thing at once as it t'were. Don't take what I say as gospel - I've been wrong before ;) J. -Original Message- From: java guru [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 05 September 2001 2:01 pm To: [EMAIL PROTECTED]; Andrew Answer Subject: Re: Re[2]: xml compressing Hi., Again., let me if i have mistaken anything.. 1. When we are talking about html over internet, we are talking about a server and a client(browser). You only have control over your side(server side). You DONT have control over the client(browser side). 2. Any compression mechanisms(let it be simple zip or xmlppm) requires two operations, compression and de-compression. And when you dont have control over the client side., how can u make sure the compressed docs gets de-compressed on the other end?. This can only be possible when u have control over both sides like B2B environment. 3. Now., again., if the kinda technique exists that enable one to compress whole html along with images and tables and send them over the network and there exists a client browser which understands all these and de-compress the stuff., then the internet world would have been somewhere else...No kidding.. Again., correct me if wrong... --- Andrew Answer [EMAIL PROTECTED] wrote: Hi java guru, Tuesday, September 04, 2001, 8:38:37 PM, you wrote: jg Hi., jg Correct me if wrong.. jg 1. The xml/xsl rendering in c2 is done on server side. jg Then why do u need to compress the xml/xsp for client jg side? But if i even generate HTML-files, anyway i want/can compress theirs for decrease traffic. I want to learn this aspect, because it's can be very