Is this a case for Cocoon?
Hello! I am wondering whether Cocoon is the solution to my problem: I am working for a university who wants me to redesign their homepage. It has to be accessible to everyone (i.e. needs to conform to the Web Accessibility Guidelines) and be dead easy in maintanance. The problems I have encountered so far are: There will be many different people who will edit, update, maintain or expand the pages. These people in most cases have never seen an html code. In fact what they love to do is saving a word doc into html and loading it onto the server. But all pages are supposed to be in valid XHTML, controled by CSS. Is this a case for Cocoon? Could secretaries load up their word docs (and whatever else they get into their hands) and the rest Cocoon does for them? I.e. generate XML from Word and tranform it into valid, accessible XHTML code? I would be grateful for your opinions! Do you know of any university who is using Cocoon? Ines - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this a case for Cocoon?
hi ines if your people never have seen an html then they will produce very simple html output paragraphs, with or without titles, images , bulets and tables (nothing more is needed im most cases) so u can design a simple collection of elements and a xsd schema that describe those element and there attributes then you can give an xml editor and this schema to those people this is an easy way to make people create xml files in the way u want then u have to create a machine that will run unter cocoon who will be the presentation layer for this xml files there is a project we work on and soon will be free for download that make exactly what u want. (this not final for the moment but if you are familiar with xml.xsl.javascript i thing that u can use it) and all this under cocoon contact me direct if you want more informations Stavros S. Kounis http://www.osmosis.gr [EMAIL PROTECTED] On Fri, 3 Jan 2003, Ines Robbers wrote: Hello! I am wondering whether Cocoon is the solution to my problem: I am working for a university who wants me to redesign their homepage. It has to be accessible to everyone (i.e. needs to conform to the Web Accessibility Guidelines) and be dead easy in maintanance. The problems I have encountered so far are: There will be many different people who will edit, update, maintain or expand the pages. These people in most cases have never seen an html code. In fact what they love to do is saving a word doc into html and loading it onto the server. But all pages are supposed to be in valid XHTML, controled by CSS. Is this a case for Cocoon? Could secretaries load up their word docs (and whatever else they get into their hands) and the rest Cocoon does for them? I.e. generate XML from Word and tranform it into valid, accessible XHTML code? I would be grateful for your opinions! Do you know of any university who is using Cocoon? Ines - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon bug found
Hi, As stated in earlier posts, JSP in Cocoon2.0.4 in WebLogic7 simply does *not* work. This has to go down as a bug in the way the request is passed in to the dispatcher in the method 'executeJSP' in 'JspEngineImplNamedDispatcherInclude' The exception javax.servlet.ServletException: Original request not available is thrown at the call rd.include( request, response ); I don't know how to trace this further so I guess onwards to Bugzilla is the next step. Charlene PS - I also tried JspEngineImplWLS which is *not* included by default in Cocoon2.0.4 (but -is- there in the src package) but this code no longer compiles with WebLogic 7 as the class weblogic.servlet.internal.ServletContextImpl no longer exists, and trying ServletContext also failed PPS - I know no-one seems to be interested in JSP with Cocoon but for HTML forms (though not for reports) there really is nothing better. And since WebLogic is one of the leading App Servers(?) I would expect it to be supported by Cocoon - almost, but not quite. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this a case for Cocoon?
Ines Robbers wrote: Hello! I am wondering whether Cocoon is the solution to my problem: I am working for a university who wants me to redesign their homepage. It has to be accessible to everyone (i.e. needs to conform to the Web Accessibility Guidelines) and be dead easy in maintanance. The problems I have encountered so far are: There will be many different people who will edit, update, maintain or expand the pages. These people in most cases have never seen an html code. In fact what they love to do is saving a word doc into html and loading it onto the server. But all pages are supposed to be in valid XHTML, controled by CSS. Is this a case for Cocoon? I think Cocoon can be the solution to your problem, but with some Content Management functionality added. Could secretaries load up their word docs (and whatever else they get into their hands) and the rest Cocoon does for them? I.e. generate XML from Word and tranform it into valid, accessible XHTML code? I would be grateful for your opinions! Do you know of any university who is using Cocoon? The University of Zurich is using Wyona, which is a CMS based on Cocoon. You might want to contact Roger Stupf: http://www.unipublic.unizh.ch/ssi_unipublic/impressum.html HTH Michael Ines - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File dowloading
Hi, I am having some trouble with the following. I want users to be able to download some zip (or any type) files. So, I have put in the sitemap the following: map:match pattern=course-material/**.zip map:act type=action-retrieve-lecture-notes map:read type=resource src=LectureNotes/{../1}.zip mime-type=application/zip / /map:act map:redirect-to uri=../lecture-notes / /map:match The action simply checks if the user is allowed to access the zip files. And if not, the user is being redirected to a login page (../lecture-notes). The login form makes use of the same action (action-retrieve-lecture-notes); this action ensures also that the user is pointed to the appropriate file that is to be downloaded (and this depends on some login information, including some course id). All this works quite nicely, except that the map:read does not really start up a download process. That is, it causes all the steps necessarily and the user is being asked what to do with the file (save it, open it, etc) like any other download process, but the file that is being downloaded has a file size of zero. But the file that is accessed locally is the correct one: I have checked the cocoon log files. There is no problem with the file itself (I have placed it into a publically accessible location served directly by the Apache webserver and had no problems with downloading the file.) So what to do? I was thinking that it is maybe some caching issue. Some of the files to be downloaded can be fairly large (there is one file of about 20 Mb). I am using cocoon-2.0.2-dev, java k1.4.0_01 and Tomcat 4.0.4. Thanks for any help. -- Andre H. Juffer | Phone: +358-8-553 1683 The Biocenter and| Fax: +358-8-553-1141 the Dep. of Biochemistry | Email: [EMAIL PROTECTED] University of Oulu, Finland | WWW: http://www.biochem.oulu.fi/Biocomputing/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon bug found
More likely a WebLogic bug? --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, As stated in earlier posts, JSP in Cocoon2.0.4 in WebLogic7 simply does *not* work. This has to go down as a bug in the way the request is passed in to the dispatcher in the method 'executeJSP' in 'JspEngineImplNamedDispatcherInclude' The exception javax.servlet.ServletException: Original request not available is thrown at the call rd.include( request, response ); I don't know how to trace this further so I guess onwards to Bugzilla is the next step. Charlene PS - I also tried JspEngineImplWLS which is *not* included by default in Cocoon2.0.4 (but -is- there in the src package) but this code no longer compiles with WebLogic 7 as the class weblogic.servlet.internal.ServletContextImpl no longer exists, and trying ServletContext also failed PPS - I know no-one seems to be interested in JSP with Cocoon but for HTML forms (though not for reports) there really is nothing better. And since WebLogic is one of the leading App Servers(?) I would expect it to be supported by Cocoon - almost, but not quite. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Refer to request parameter in XSL
Hi I am trying to refer to the variablesI pass in request query string in the XSL Forachieving itI have done this setting in the sitemap map:transformer logger="sitemap.transformer.xslt" name="xslt" pool-grow="2" pool-max="32" pool-min="8" src="" use-request-parameterstrue/use-request-parameters use-browser-capabilities-dbfalse/use-browser-capabilities-db /map:transformer I pass the request in browser as follows: http://localhost:8080/cocoon/home?name=mod2 If I refer to the parameter "name" in the XSL as $name , it gives the following exception Could not find variable with the name of mid Please tell,as to how to refer the request variable in the XSL Thanx INTIQUA International Intelligent Solutions, Quality Execution Note: The information and data contained in this message (and attachments) may be privileged and confidential and protected from disclosure to any party or parties apart from the intended recipient. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.
sendmail.xsl - how do I format email messages?
Hi I'm trying to use sendmail.xsl to create a text email formatted with newlines, but somewhere along the line (I'm not sure where), these newlines are being stripped. I'm simply doing: sendmail:body First line. Second line. /sendmail:body and the result is: First line. Second line. Does anyone know how to fix this? Thanks for any assistance, Ryan - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Refer to request parameter in XSL
Before you can refer to the parameter in your stylesheet as $name you'll have to declare it. xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=name/ ... /xsl:stylesheet HTH Judith -Ursprüngliche Nachricht- Von: Kavita Bansal [SMTP:[EMAIL PROTECTED]] Gesendet am: Freitag, 3. Januar 2003 15:29 An: '[EMAIL PROTECTED]' Betreff: Refer to request parameter in XSL Hi I am trying to refer to the variables I pass in request query string in the XSL For achieving it I have done this setting in the sitemap map:transformer logger=sitemap.transformer.xslt name=xslt pool-grow=2 pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer use-request-parameterstrue/use-request-parameters use-browser-capabilities-dbfalse/use-browser-capabilities-db /map:transformer I pass the request in browser as follows: http://localhost:8080/cocoon/home?name=mod2 If I refer to the parameter name in the XSL as $name , it gives the following exception Could not find variable with the name of mid Please tell, as to how to refer the request variable in the XSL Thanx INTIQUA International Intelligent Solutions, Quality Execution Note: The information and data contained in this message (and attachments) may be privileged and confidential and protected from disclosure to any party or parties apart from the intended recipient. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing parameters to a logicsheet tag using xsp:param
Dear all, I'm trying to write a logicsheet that accepts dynamic parameters from the XSP page (e.g. maybe request parameters, or session attributes), and uses them to request data from our application. I'd like the xsp code to look something like this: xsp:logic String sortParameter = request.getParameter(sort); /xsp:logic data parameters:categories xsp:param name=sortBy xsp:exprsortParameter/xsp:expr /xsp:param /parameters:categories /data What do I need to put in my logicsheet code to pick up the sortParameter value? At the moment I've got the following: xsl:template match=parameters:categories xsl:variable name=sortBy xsl:choose xsl:when test=sortBy xsl:call-template name=get-nested-content xsl:with-param name=content select=parameters:sortBy/ /xsl:call-template /xsl:when /xsl:choose /xsl:variable xsp:logic System.out.println(Got value: + xsl:copy-of select=$sortBy /); /xsp:logic /xsl:template xsl:template name=get-nested-content xsl:param name=content/ xsl:choose xsl:when test=$content/* xsl:apply-templates select=$content/*/ /xsl:when xsl:otherwisexsl:value-of select=$content//xsl:otherwise /xsl:choose /xsl:template Sorry if this is a stupid question, but I've been unable to find any documentation that describes this. I'd be very grateful for any help! Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon the solution?
Hello! I am wondering whether Cocoon is the solution to my problem: I am working for a university who wants me to redesign their homepage. It has to be accessible to everyone (i.e. needs to conform to the Web Accessibility Guidelines) and be dead easy in maintanance. The problems I have encountered so far are: There will be many different people who will edit, update, maintain or expand the pages. These people in most cases have never seen an html code. In fact what they love to do is saving a word doc into html and loading it onto the server. But all pages are supposed to be in valid XHTML, controled by CSS. Is this a case for Cocoon? Could secretaries load up their word docs (and whatever else they get into their hands) and the rest Cocoon does for them? I.e. generate XML from Word and tranform it into valid, accessible XHTML code? I would be grateful for your opinions! Do you know of any university who is using Cocoon? Ines - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing parameters to a logicsheet using xsp:param
I'm trying to write a logicsheet that accepts dynamic parameters from the XSP page (e.g. maybe request parameters, or session attributes), and uses them to request data from our application. I'd like the xsp code to look something like this: xsp:logic String sortParameter = request.getParameter(sort); /xsp:logic data parameters:categories xsp:param name=sortBy xsp:exprsortParameter/xsp:expr /xsp:param /parameters:categories /data What do I need to put in my logicsheet code to pick up the sortParameter value? At the moment I've got the following: xsl:template match=parameters:categories xsl:variable name=sortBy xsl:choose xsl:when test=sortBy xsl:call-template name=get-nested-content xsl:with-param name=content select=parameters:sortBy/ /xsl:call-template /xsl:when /xsl:choose /xsl:variable xsp:logic System.out.println(Got value: + xsl:copy-of select=$sortBy /); /xsp:logic /xsl:template xsl:template name=get-nested-content xsl:param name=content/ xsl:choose xsl:when test=$content/* xsl:apply-templates select=$content/*/ /xsl:when xsl:otherwisexsl:value-of select=$content//xsl:otherwise /xsl:choose /xsl:template Sorry if this is a stupid question, but I've been unable to find any documentation that describes this. I'd be very grateful for any help! Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting Parameters from a Database Action
Correction: I'm running Cocoon 2.0.4. -Original Message- From: Jacob Arnold [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 2:01 PM To: '[EMAIL PROTECTED]' Subject: Getting Parameters from a Database Action I'm having trouble getting some parameters from a database add action. The key param is passed through fine, but the value param is not. I'm using Cocoon 2.0.3. The pipeline in my sitemap is as follows: map:match pattern=timesheets/add-activity.html map:act set=process map:parameter name=descriptor value=descriptors/activity.xml/ map:aggregate element=document map:part src=cocoon:/menu.xsp strip-root=true/ map:part src=cocoon:/timesheets/add-activity.xsp?TimesheetDetail_ID={TimesheetDetail _ID}amp;TimesheetMaster_ID={TimesheetMaster_ID} strip-root=true/ /map:aggregate map:transform src=stylesheets/encode-html.xsl/ map:serialize/ /map:act map:aggregate element=document map:part src=cocoon:/menu.xsp strip-root=true/ map:part src=cocoon:/timesheets/add-activity.xsp strip-root=true/ /map:aggregate map:transform src=stylesheets/encode-html.xsl/ map:serialize/ /map:match A portion of my descriptor is below: table name=TimesheetDetail keys key param=id dbcol=TimesheetDetail_ID type=long mode=manual/ /keys values value param=TimesheetMaster_ID dbcol=TimesheetMaster_ID type=long/ /values /table So I'm getting TimesheetDetail_ID, but in my core.log I see the following for TimesheetMaster_ID: WARN [core.manager] (/encode/timesheets/add-activity.html) Thread-8/AbstractSitemap: Substitute: value not found for TimesheetMaster_ID while evaluating cocoon:/timesheets/add-timesheet.xsp?TimesheetDetail_ID={TimesheetDetail_ID} TimesheetMaster_ID={TimesheetMaster_ID} I've tried {../TimesheetMaster_ID} and other variations. Any ideas? I'd rather not switch to modular database actions just yet. Thanks, J - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems resolving internal paths
Anybody know a simple equivalent to use in XSL? Tim [EMAIL PROTECTED] 01/02/03 02:30PM If you are using XSP, then you can get the current path with: xsp:exprresolver.resolve().getSystemId()/xsp:expr Or the current path with a filename on the end with: xsp:exprresolver.resolve(somefile.ext).getSystemId()/xsp:expr Tim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon the solution?
Cocoon would definately be a good choice technically. However what you'll have to fight is the mindset of people desiring to use MS Word as their authoring tool. You could try to use a tool such as DocSoft's (http://www.docsoft.com) Word-to-XML converter. However it creates generic presentation XML and therefore you'll lose the control over the look and feel of the site. I'm in the same battle now of trying to integrate an XML editor for people to author with into our business process. People are comfortable with Word and resist change. Darren On Friday, January 3, 2003, at 12:43 PM, Ines Robbers wrote: Hello! I am wondering whether Cocoon is the solution to my problem: I am working for a university who wants me to redesign their homepage. It has to be accessible to everyone (i.e. needs to conform to the Web Accessibility Guidelines) and be dead easy in maintanance. The problems I have encountered so far are: There will be many different people who will edit, update, maintain or expand the pages. These people in most cases have never seen an html code. In fact what they love to do is saving a word doc into html and loading it onto the server. But all pages are supposed to be in valid XHTML, controled by CSS. Is this a case for Cocoon? Could secretaries load up their word docs (and whatever else they get into their hands) and the rest Cocoon does for them? I.e. generate XML from Word and tranform it into valid, accessible XHTML code? I would be grateful for your opinions! Do you know of any university who is using Cocoon? Ines - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Darren Petrie [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsp-response confusion
Why is the xsp-response:send-redirect not work in the following xsp snippet? ...xmlns:xsp-response=http://apache.org/xsp/response/2.0;. esql:no-results xsp-response:send-redirect url=generic-error/ /esql:no-results esql:error-results xsp-response:send-redirect url=generic-error/ /esql:error-results /esql:execute-query - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon 204 - core.log - [become bigger without requests]
hi people i have compile and install the latest cocoon 2.0.4 redhat 7.1 java 1.3 tomcat 4 we plan to replace cocoon2rc1 in our prodaction machine the problem is that core.log file become bigger avery second when we dont ask any page cocoon add every second the entry: DEBUG (2003-01-03) 21:04.45:443 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 12818096 in ths machine whe have cocoon2rc1 working without problem for the last 14 months is something strange happend here? he have to be completly sure that everything work fine before replace cocoon in this machine is there any answer ebout this problem? thanx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with user authentification handler
i try to make site in this design: main sitemap and two subsitemap i have mounted this two sites in main sitemap. sitemap1 --- . map:actions map:action name=sunRise-auth src=org.apache.cocoon.sunshine.sunrise.acting.AuthAction handlers handler name=UserHandler xmlns:map=http://apache.org/cocoon/sitemap/1.0; xmlns:sunshine=http://sunshine.sundn.de/sunshine/1.0; redirect-to uri=cocoon://login/ authentication uri=http://localhost/cocoon/elza/user/make_authorize/ !---- /handler /handlers /map:action /map:actions . --- sitemap2 --- .. map:actions map:action name=sunRise-auth src=org.apache.cocoon.sunshine.sunrise.acting.AuthAction handlers handler name=TeacherHandler xmlns:map=http://apache.org/cocoon/sitemap/1.0; xmlns:sunshine=http://sunshine.sundn.de/sunshine/1.0; redirect-to uri=cocoon://login/ authentication uri=http://localhost/cocoon/elza/teacher/make_authorize/ !---- /handler /handlers /map:action /map:actions . --- when i login in one subsite all its OK, but when i try to login into second dont work, i must stop tomcat, and login then. If one auth_handler is being using , it doesnt find the second handler. i obtain this error: - Cocoon 2 - Internal server error *type* fatal *message* _Handler not found: TeacherHandler_ *description* _org.apache.cocoon.ProcessingException: Handler not found: TeacherHandler_ *sender* org.apache.cocoon.servlet.CocoonServlet *source* Cocoon servlet *stack-trace* org.apache.cocoon.ProcessingException: Handler not found: TeacherHandler at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:752) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122) at org.apache.cocoon.www.elza.project.elza.teacher.sitemap_xmap.matchN100CB(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza/teacher\sitemap_xmap.java:1004) at org.apache.cocoon.www.elza.project.elza.teacher.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza/teacher\sitemap_xmap.java:624) at org.apache.cocoon.www.elza.project.elza.teacher.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza/teacher\sitemap_xmap.java:550) at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308) at org.apache.cocoon.www.elza.project.elza.sitemap_xmap.matchN101C1(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza\sitemap_xmap.java:1593) at org.apache.cocoon.www.elza.project.elza.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza\sitemap_xmap.java:1296) at org.apache.cocoon.www.elza.project.elza.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza\sitemap_xmap.java:1215) at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308) at org.apache.cocoon.www.sitemap_xmap.matchN1037E(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4100) at org.apache.cocoon.www.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3206) at org.apache.cocoon.www.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3119) at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152) at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
RE: sitemap flow based on requestor's URL?
That sounds like it could work; and is a very powerful technique in general. Thanks Wayne -Original Message- From: Timothy Larson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 3:05 PM To: [EMAIL PROTECTED] Subject: Re: sitemap flow based on requestor's URL? You could make your XSP into an action: http://wiki.cocoondev.org/Wiki.jsp?page=XSPAction Then you could use the action's indication of success or failure to redirect to different places: map:match pattern=*.html map:act type=xsp-action src=some.xsp map:redirect-to uri=some-place.html/ /map:act map:redirect-to uri=other-place.html/ /map:match Tim [EMAIL PROTECTED] 01/02/03 02:42PM I want to direct flow through the sitemap based on whether the requestor is inside or outside my firewall. Everyone external to the firewall will appear to cocoon to have the same URL. I need external visitors to be directed to a login page. Internal visitors should be automatically assigned a session object so they dont have to login and can directly access protected area of the sitemap. I'd like to be able to do this using sitemap logic but the only way I find to get access to the requestor's URL is with xsp:get-remote-address. If I must use an xsp page for this, I can test the URL and create a session if it's an internal URL. but then I would need to follow this up with a redirect to the protected area. any suggestions for an approach to the solution greatly appreciated. Wayne Wayne Brandes, DO MPH Director of Healthcare Informatics American Institutes for Research Prospect Center 10720 Columbia Pike Silver Spring, MD 20901 [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[more] cocoon 204 - core.log - [become bigger without requests]
the core.log entry is: DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM total Memory: 66650112 DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 24154624 DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: Memory is low = false On Fri, 3 Jan 2003, Cocoon User wrote: hi people i have compile and install the latest cocoon 2.0.4 redhat 7.1 java 1.3 tomcat 4 we plan to replace cocoon2rc1 in our prodaction machine the problem is that core.log file become bigger avery second when we dont ask any page cocoon add every second the entry: DEBUG (2003-01-03) 21:04.45:443 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 12818096 in ths machine whe have cocoon2rc1 working without problem for the last 14 months is something strange happend here? he have to be completly sure that everything work fine before replace cocoon in this machine is there any answer ebout this problem? thanx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [more] cocoon 204 - core.log - [become bigger without requests]
Stavros, change the log level in logkit.xconf to FATAL or (better) ERROR. Anyway, this is not a bug... it is a feature :) Best regards, P.S. By the way, it writes those lines every ten seconds, not every one second. - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 8:24 PM To: [EMAIL PROTECTED] Subject: [more] cocoon 204 - core.log - [become bigger without requests] the core.log entry is: DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM total Memory: 66650112 DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 24154624 DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: Memory is low = false On Fri, 3 Jan 2003, Cocoon User wrote: hi people i have compile and install the latest cocoon 2.0.4 redhat 7.1 java 1.3 tomcat 4 we plan to replace cocoon2rc1 in our prodaction machine the problem is that core.log file become bigger avery second when we dont ask any page cocoon add every second the entry: DEBUG (2003-01-03) 21:04.45:443 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 12818096 in ths machine whe have cocoon2rc1 working without problem for the last 14 months is something strange happend here? he have to be completly sure that everything work fine before replace cocoon in this machine is there any answer ebout this problem? thanx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [more] cocoon 204 - core.log - [become bigger without requests]
Open WEB-INF/logkit.xconf Look for the line: category name=manager log-level=DEBUG And change it to: category name=manager log-level=ERROR That should work... Litrik De Roy www.litrik.com - Original Message - From: Cocoon User [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 03, 2003 8:23 PM Subject: [more] cocoon 204 - core.log - [become bigger without requests] the core.log entry is: DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM total Memory: 66650112 DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 24154624 DEBUG (2003-01-03) 16:57.03:764 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: Memory is low = false On Fri, 3 Jan 2003, Cocoon User wrote: hi people i have compile and install the latest cocoon 2.0.4 redhat 7.1 java 1.3 tomcat 4 we plan to replace cocoon2rc1 in our prodaction machine the problem is that core.log file become bigger avery second when we dont ask any page cocoon add every second the entry: DEBUG (2003-01-03) 21:04.45:443 [core.store.janitor] (Unknown-URI) Unknown-thread/StoreJanitorImpl: JVM free Memory: 12818096 in ths machine whe have cocoon2rc1 working without problem for the last 14 months is something strange happend here? he have to be completly sure that everything work fine before replace cocoon in this machine is there any answer ebout this problem? thanx Stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon the solution?
The best thing to do to change this is contribute to the Jakarta POI project's HDF component. jakarta.apache.org/poi -- HDF is in its infancy but with contribution could be successful for Cooon serializers and generators to transform between the formats! Darren Petrie wrote: Cocoon would definately be a good choice technically. However what you'll have to fight is the mindset of people desiring to use MS Word as their authoring tool. You could try to use a tool such as DocSoft's (http://www.docsoft.com) Word-to-XML converter. However it creates generic presentation XML and therefore you'll lose the control over the look and feel of the site. I'm in the same battle now of trying to integrate an XML editor for people to author with into our business process. People are comfortable with Word and resist change. Darren On Friday, January 3, 2003, at 12:43 PM, Ines Robbers wrote: Hello! I am wondering whether Cocoon is the solution to my problem: I am working for a university who wants me to redesign their homepage. It has to be accessible to everyone (i.e. needs to conform to the Web Accessibility Guidelines) and be dead easy in maintanance. The problems I have encountered so far are: There will be many different people who will edit, update, maintain or expand the pages. These people in most cases have never seen an html code. In fact what they love to do is saving a word doc into html and loading it onto the server. But all pages are supposed to be in valid XHTML, controled by CSS. Is this a case for Cocoon? Could secretaries load up their word docs (and whatever else they get into their hands) and the rest Cocoon does for them? I.e. generate XML from Word and tranform it into valid, accessible XHTML code? I would be grateful for your opinions! Do you know of any university who is using Cocoon? Ines - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Darren Petrie [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sendmail.xsl - how do I format email messages?
On Sat, 4 Jan 2003 01:36:35 +1100 Ryan Heise [EMAIL PROTECTED] wrote: . sendmail:body First line. Second line. /sendmail:body and the result is: First line. Second line. Does anyone know how to fix this? Well, this behaviour is due to the way the sendmail logicsheet works. Look at src/java/org/apache/cocoon/components/language/markup/xsp/java/sendmail .xsl and I think, you' ll understand. Here is, what I've done and it worked for me. ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0; email xsp:logic ... StringBuffer body = new StringBuffer(); body.append(bla bla : ); body.append(name); body.append(\n); ... /xsp:logic sendmail:send-mail sendmail:charsetISO-8859-1/sendmail:charset sendmail:from.../sendmail:from sendmail:to../sendmail:to sendmail:ccxsp:exprcc_address/xsp:expr/sendmail:cc sendmail:subject./sendmail:subject !-- Modify the next line to point to your mail server -- sendmail:smtphostlocalhost/sendmail:smtphost sendmail:bodyxsp:exprbody.toString()/xsp:expr/sendmail:body /sendmail:send-mail /email /xsp:page -- MfG/Regards Frank Ridderbusch Since I have taken all the Gates out of my computer, it finally works!! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ESQL taglib missing in action
Now that I have a small bit of time to return to this... Correct me if I'm wrong, but assuming ESQL is being invoked, the following XSP page should return either an error, or no output at all: --- ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/xsp/SQL/v2; esql:connection /esql:connection /xsp:page --- Unfortunately, the content generated from the above: --- esql:connection xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/xsp/SQL/v2; /esql:connection --- The ESQL XSL page should transform that into something else. The .java file generated for the XSP page does not pull in any of the imports that the XSL specifies. I can't see any alternative other than Cocoon isn't invoking the XSL for the ESQL taglib. -- John R. Daily[EMAIL PROTECTED] Director of TechnologyProgeny Linux Systems Master of the ephemeral epiphany - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Orion 1.5.3 and cocoon2.1 - help complete deployment
I tried deploying cocoon2.1 which I have recently downloaded and compiled, it deploys fine on Tomcat 4.1.12 but not on Orion 1.5.3. It is only partially working on Orion 1.5.3, partially since I can use http://localhost:/ which becomes http://localhost:/documents/index.html which is the main page and I can click on all the menu items or the links within the page without much of a problem. However if I typed in http://localhost:/samples/welcome which should go to the sample pages, I get an error instead: org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: Resource not found file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap Steps I have done are: 1. remove from /u01/OJSP/j3ee/orion/ xalan.jar,xerces.jar, and jaxp.jar and replaced those with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and xml-apis.jar accordingly. 2. put cocoon.war at /u01/OJSP/j3ee/orion/applications/ 3. in orion/server.xml added application name=cocoon path=../applications/cocoon / 4. in orion/application.xml added web-module id=default path=../applications/ / and library path=../applications/cocoon/cocoon/WEB-INF/lib/ library path=../applications/cocoon/cocoon/WEB-INF/classes/ 5. in orion/default-web-site.xml added web-app application=cocoon name=cocoon root=/ / 6. in orion/lib/ I added cocoon.jar 7. I think I started orion, for cocoon.war to expand then stop, and restarted. Then I have to modify the cocoon dir to look like this orion/applications/cocoon/cocoon/- added one dir above, I dont know why I must, but I did. orion/applications/cocoon/cocoon/META-INF/application.xml -- this is not same application.xml as in orion/config/, the file content is like so: ?xml version=1.0? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN http://java.sun.com/j2ee/dtds/application_1_2.dtd; application display-nameCocoon servlet/display-name descriptionCocoon/description module web web-uricocoon/web-uri context-root//context-root /web /module /application 8. on orion/config/global-web-application.xml I commented out the servlet servlet-namexsl... block 9. downloaded the batik-all-1.5b.2.jar per candlelightsotware.com to replaced the current one (I did verify current one can't be unjarred) 10. restarted orion and browsed http://localhost:/ result is posted above. Am I missing a step, or botched a step here? please help complete the steps. Why would the documents work but the samples does not? I surmised that it does not want to go to the submount, is the configs on orion wrong? This same cocoon.war works on Tomcat 4.1.12 without the application.xml modification I have to do for orion. Fyi, I never was able to get cocoon+orion before after so many tries, this time it is partial success. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon the solution?
Darren Petrie wrote: Cocoon would definately be a good choice technically. However what you'll have to fight is the mindset of people desiring to use MS Word as their authoring tool. You could try to use a tool such as DocSoft's (http://www.docsoft.com) Word-to-XML converter. However it creates generic presentation XML and therefore you'll lose the control over the look and feel of the site. I've heard of a commercial plugin for MS Word which lets you create content based on a DTD. It is called 'Tagless Editor'[1], but I didn't find the time to test-drive it yet, so I cannot tell whether this is really useable or not. I also do not know anything about their pricing, but this *might* be a solution for organisations with end-users not capable or willing to use anything else than their favorite GUI-editor. However, I don't think this solves Ines' problem, and I doubt Cocoon is the solution either, at least not Cocoon alone. I would suggest to check out the Sunspot portal, which /could/ be useful for this purpose, but to look at other CMS (content management systems) as well. I'd say Cocoon is a very flexible *platform* for XML-based applications, which enables one to *build* a CMS, for example, but Cocoon itself is definitely not an out-of-the-box CMS solution. regards, chris [1] http://www.i4i.com/product_TE.htm - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Confused About Realms
Today I wanted to try a Tomcat security setup. I created and populated tables in a (Sybase) database and edited server.xml per examples in the Goodwill Apress book. I get an exception on startup, Tomcat fails to initialize. I didn't expect this because I am also running Cocoon with a connection pool, so I know that it can find the Sybase JDBC jar. I also know that the host, socket and login are correct. I hope someone can give me a tip on the exception. Is the jar not found until later in the startup process? Here is the server.xml entry: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.sybase.jdbc2.jdbc.SybDriver connectionURL=jdbc:sybase:Tds:ods6:4100?user=username;password=mypassword userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / I also added entries to web.xml for my apps, but it doesn't seem to be getting there? Here is the exception from catalina.out: Starting service Tomcat-Standalone Apache Tomcat/4.0.4 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver LifecycleException: Exception opening database connection: java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ESQL taglib missing in action
I'm trying a different approach, and now I'm getting Java exceptions in Tomcat's logs. Here is my XSP. Switching to dbpool doesn't change the exception. ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; esql:connection esql:execute-query esql:driverorg.postgresql.Driver/esql:driver esql:dburldbname=kb2/esql:dburl esql:usernamejdaily/esql:username esql:querySELECT id from xml_document/esql:query esql:results table esql:row-results esql:get-int column=title/ /esql:row-results /esql:results esql:no-results Sorry, no results! /esql:no-results esql:error-resultsesql:get-message //esql:error-results /esql:execute-query /esql:connection /xsp:page Clearly, now the ESQL XSL file is being invoked, because the generated .java file includes SQL functionality. However, I'm getting this from Tomcat's log: 2003-01-03 16:19:47 StandardWrapperValve[Cocoon2]: Servlet.service() for servlet Cocoon2 threw exception java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.reset(CoyoteResponseFacade.java:251) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) Again, this is Cocoon 2.0.4, Tomcat 4.1.18, and Java 1.4.1-beta. The postgresql driver exists in web.xml. Thanks. -- John R. Daily[EMAIL PROTECTED] Director of TechnologyProgeny Linux Systems Master of the ephemeral epiphany - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Confused About Realms
I seem to solve my own problems frequently after posting to this list... I moved the Sybase jar file from $CATALINA_HOME/lib to $CATALINA_HOME/common/lib and it worked. It seems that Cocoon's connection pools can function with the jar in the root lib, but realms can not. Moving the jar to common/lib allows both realms and the connection pool to work. However now I have a new question. I really want to password protect cocoon URLs. I added a security-constraint to webapps/cocoon/web.xml, but this breaks cocoon. Anyone know the correct way to use realms for cocoon? On Fri, 3 Jan 2003, Jeff Sexton wrote: Today I wanted to try a Tomcat security setup. I created and populated tables in a (Sybase) database and edited server.xml per examples in the Goodwill Apress book. I get an exception on startup, Tomcat fails to initialize. I didn't expect this because I am also running Cocoon with a connection pool, so I know that it can find the Sybase JDBC jar. I also know that the host, socket and login are correct. I hope someone can give me a tip on the exception. Is the jar not found until later in the startup process? Here is the server.xml entry: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.sybase.jdbc2.jdbc.SybDriver connectionURL=jdbc:sybase:Tds:ods6:4100?user=username;password=mypassword userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / I also added entries to web.xml for my apps, but it doesn't seem to be getting there? Here is the exception from catalina.out: Starting service Tomcat-Standalone Apache Tomcat/4.0.4 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver LifecycleException: Exception opening database connection: java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Confused About Realms
On Fri, 3 Jan 2003, Jeff Sexton wrote: I seem to solve my own problems frequently after posting to this list... I moved the Sybase jar file from $CATALINA_HOME/lib to $CATALINA_HOME/common/lib and it worked. It seems that Cocoon's connection pools can function with the jar in the root lib, but realms can not. Moving the jar to common/lib allows both realms and the connection pool to work. However now I have a new question. I really want to password protect cocoon URLs. I added a security-constraint to webapps/cocoon/web.xml, but this breaks cocoon. Anyone know the correct way to use realms for cocoon? I get this in catalina.out: Starting service Tomcat-Standalone Apache Tomcat/4.0.4 PARSE error at line 245 column 11 org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). Starting service Tomcat-Apache Apache Tomcat/4.0.4 What causes this are these lines at the top of Cocoon's web.xml: ?xml version=1.0 encoding=ISO-8859-1? !-- This is the web-app configurations that allow Cocoon to work under Apache Tomcat. Please, follow the installation section of the documentation for more information about installing Cocoon on Tomcat -- !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app security-constraint web-resource-collection web-resource-nameMy Applications/web-resource-name url-pattern/MyApps/*/url-pattern /web-resource-collection auth-constraint role-nameMyRole/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameMy Applications/realm-name /login-config etc. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DB2 with Cocoon
Hello, this is my first time connecting IBMs DB2 with cocoon. Cocoon succesfully finds the drivers and connects correctly. But I get strange SQL Errors like: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0104N Auf SELECT 1 folgte das unerwartete Token END-OF-STATEMENT. Zu den möglichen Token gehören: table_expr. SQLSTATE=42601 Before I used MySQL, which doesn't have something like a db schema. As I know in DB2 you always must set a correct schema before queriing. I guess the problem causes from the fact that I didn't set a schema in my ESQL XSP. But how should I do that?? Who can help me out? Rob - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installation question
I installed Tomcat 4.1.18 with Cocoon 2.0.4 and followed the installation instructions pertaining to integration with Tomcat 4.0.3 and got it to work. Cheers, JW - Original Message - From: edel claire ryder [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 28, 2002 6:26 AM Subject: installation question Hi, I was wondering if someone could help me with this problem. I have just installed cocoon and when I try to access http://localhost:8080/cocoon, I get the following error: type internal-server-error message org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xalan}content-handler' property! description java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xalan}content-handler' property! sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet exception java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xalan}content-handler' property! request-uri /cocoon/ path-info stacktrace java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xalan}content-handler' property! at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:433) at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518) at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc h(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat eCode(LogicsheetCodeGenerator.java:130) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate Code(AbstractMarkupLanguage.java:275) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:309) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:271) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:188) at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at java.lang.Thread.run(Thread.java:536) I have Tomcat 1.4.18 installed and jdk1.4.1 I created the 'endorsed' directory under %JAVA_HOME%/jre/lib and copied the latest stable versions of the xerces and xalan jars to this directory. Any ideas ? Any help would be really appreciated. Thanks, --edel. . _ MSN 8 with e-mail virus protection service: 3 months FREE*. http://join.msn.com/?page=features/virusxAPID=42PS=47575PI=7324DI=7474S U= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_eliminatevi ruses_3mf - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon the solution?
Hi Ines snip/ In fact what they love to do is saving a word doc into html and loading it onto the server. But all pages are supposed to be in valid XHTML, controled by CSS. Yes - you can store the pages on the server as Word-HTML, and with Cocoon use the HTMLGenerator to convert them to XHTML, use some stylesheets to remove any Word rubbish, include transformer or aggregate transformer to aggregate content with navigation elements, etc, and publish the results as XHTML. Con - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Confused About Realms
Jeff - You'll need to change the DTD for Cocoon's web.xml to version 2.3, thusly: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; Cheers, Lajos -- galatea.com Cocoon training, consulting support Book: Cocoon Developer's Handbook (SAMS) Jeff Sexton wrote: I seem to solve my own problems frequently after posting to this list... I moved the Sybase jar file from $CATALINA_HOME/lib to $CATALINA_HOME/common/lib and it worked. It seems that Cocoon's connection pools can function with the jar in the root lib, but realms can not. Moving the jar to common/lib allows both realms and the connection pool to work. However now I have a new question. I really want to password protect cocoon URLs. I added a security-constraint to webapps/cocoon/web.xml, but this breaks cocoon. Anyone know the correct way to use realms for cocoon? On Fri, 3 Jan 2003, Jeff Sexton wrote: Today I wanted to try a Tomcat security setup. I created and populated tables in a (Sybase) database and edited server.xml per examples in the Goodwill Apress book. I get an exception on startup, Tomcat fails to initialize. I didn't expect this because I am also running Cocoon with a connection pool, so I know that it can find the Sybase JDBC jar. I also know that the host, socket and login are correct. I hope someone can give me a tip on the exception. Is the jar not found until later in the startup process? Here is the server.xml entry: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.sybase.jdbc2.jdbc.SybDriver connectionURL=jdbc:sybase:Tds:ods6:4100?user=username;password=mypassword userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / I also added entries to web.xml for my apps, but it doesn't seem to be getting there? Here is the exception from catalina.out: Starting service Tomcat-Standalone Apache Tomcat/4.0.4 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver LifecycleException: Exception opening database connection: java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [PATCH QUEUE] Summary January 4 2003
--- This mail is generated automatically using Jakarta Ant. Contents are automatically downloaded from Apache's Bugzilla. --- Please do not reply to this mail. --- *** COCOON PATCH QUEUE UPDATE patches in queue: 26 *** --- 9075:[PATCH] Contribution of SAP R/3(r) connectivity components --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9075 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 9728:[PATCH] CocoonServlet getClassPath() enhancements Tomcat4 --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9728 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 11533:[PATCH] Replacement for AvalonToCocoonSource --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11533 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 11549:[PATCH] Replace LogKitManageable through LoggerManageable --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11549 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12235:[PATCH] XPathTransformer --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 12993:[PATCH] New version of CastorTransformer (includes marshalli --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12993 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 13220:[PATCH] build dist-bin broken in HEAD --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13220 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 13247:[PATCH] PNG output of SVGSerializer broken in HEAD --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13247 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14048:[PATCH] No-cache enhancement for ResourceReader component --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14048 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14117:[PATCH] AuthAction fails in sub-requests --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14117 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14144:[Patch] add CompressionFilter declaration to web.xml --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14144 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14327:[PATCH] JSPEngineImpl response charset should be specified w --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14327 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14700:[Patch] IOUtils.java recognize .. in Path --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14700 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14845:[PATCH] Patch to generate a key with new resources in XMLDBT --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14845 REVIEWER:[EMAIL PROTECTED] RESOLUTION: STATUS: NEW --- 14986:[PATCH] Enables velocitygenerator to get objects from reques --- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14986 REVIEWER:[EMAIL PROTECTED] RESOLUTION: