Adding root context to cocoon samples
Hello, Probably, its been answered so many times but I couldn't find it in the archives. So, following is my question. I am able to successfully put cocoon2 samples in my Apache+Tomcat configuration and able to access under www.mydomain.com/cocoon by adding /cocoon context in mod_jk-auto.conf But I am having trouble adding root context to a cocoon sample application -- Hello World. That is when I key in 'www.mydomain.com', I want the web server to serve hello application(index.xml) (For that matter any cocoon application) Any help is appreciated. Sundar - 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]
[C2] Problems with Sample Forms
I'm using Windows NT4.0, Jdk1.3.1, Tomcat3.2.1, and C2.0b2. Most of the Examples seem to work fine including the various database examples under Sample Forms. However, if I stop tomcat and restart, the database examples no longer work! To update my installation I deleted my 'j:\jakarta-tomcat-3.2.1\webapps\cocoon' directory, removed the old cocoon.war file, and deleted my 'j:\jakarta-tomcat-3.2.1\work' directory, then did the following build: call build.bat -Dinstall.war=j:\jakarta-tomcat-3.2.1\webapps -Dinclude.webapp.libs=yes clean install The only work round I have at the moment is to delete my 'j:\jakarta-tomcat-3.2.1\webapps\cocoon' directory so that it is reinstalled from the cocoon.war file when I restart. If I look in cocoon.log two relevant messages seem to be: DEBUG 22893 [cocoon ] (Thread-26): org.apache.avalon.excalibur.datasource.JdbcConnection: could not be instantiated. java.sql.SQLException: File input/output error: j:\jakarta-tomcat-3.2.1\webapps/cocoon/WEB-INF/db/cocoondb.backup and DEBUG 25907 [cocoon ] (Thread-26): org.apache.avalon.excalibur.datasource.JdbcConnection: could not be instantiated. java.sql.SQLException: The database is already in use by another process Have I done something wrong or is this a bug? I've had the problem for quite a while now (under previous downloads), has anybody else suffered this? Any help or comment would be appreciated. Many thanks, Peter. - 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: (urgent)ESQL question
Hi ALL How to pass values from one XSP page to another XSP page plz help me out. Thanks Ramesh.V ***Confidential Notice This e-mail communication may contain information that is confidential and privileged. The information is intended to be for the use of the addressee only. If you are not the named addressee you should not disseminate, distribute or copy this e-mail: to do so could be a breach of confidence. Kshema Technologies Ltd., # 33/1, Lalbagh Road, Bangalore 560027, INDIA. Tel: (91) 80- 2995114/5/6 Fax: (91) 80 2272933 ** - 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]
Apache Cocoon2 Beta 1 Release
The Apache Cocoon team are proud to announce the first beta release of the Apache Cocoon2 XML sub project: Apache Cocoon is a 100% pure Java publishing framework that relies on W3C technologies to provide web content. The Apache Cocoon project aims to change the way web information is created, rendered and served. The Apache Cocoon paradigm is based on the fact that document content, style and logic are often created by different individuals or working groups. Apache Cocoon aims for a complete separation of the three layers, allowing the three layers to be independently designed, created and managed, reducing management overhead, increasing work reuse and reducing time to market. Apache Cocoon2 is a complete rewrite of the Apache Cocoon1 XML publishing framework that is supposed to remove all those design constraint that emerged from the Apache Cocoon1 experience. This release marks API stability of the project. The next release will primarily focus on documentation. The Cocoon team - 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]
R: Apache Cocoon2 Beta 1 Release
Great You are great!! I'm proud to be a Cocoon User list member. Where can I download the beta release ? From the CVS ? Does exists a binary version? Marco - Original Message - From: giacomo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 06, 2001 1:50 PM Subject: Apache Cocoon2 Beta 1 Release The Apache Cocoon team are proud to announce the first beta release of the Apache Cocoon2 XML sub project: Apache Cocoon is a 100% pure Java publishing framework that relies on W3C technologies to provide web content. The Apache Cocoon project aims to change the way web information is created, rendered and served. The Apache Cocoon paradigm is based on the fact that document content, style and logic are often created by different individuals or working groups. Apache Cocoon aims for a complete separation of the three layers, allowing the three layers to be independently designed, created and managed, reducing management overhead, increasing work reuse and reducing time to market. Apache Cocoon2 is a complete rewrite of the Apache Cocoon1 XML publishing framework that is supposed to remove all those design constraint that emerged from the Apache Cocoon1 experience. This release marks API stability of the project. The next release will primarily focus on documentation. The Cocoon team - 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: R: Apache Cocoon2 Beta 1 Release
On Wed, 6 Jun 2001, Marco Spinetti wrote: Great You are great!! I'm proud to be a Cocoon User list member. Where can I download the beta release ? From the CVS ? Does exists a binary version? Oops, forgot to mention it in the announcement. It's at the usual location: http://xml.apache.org/dist/cocoon Giacomo Marco - Original Message - From: giacomo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 06, 2001 1:50 PM Subject: Apache Cocoon2 Beta 1 Release The Apache Cocoon team are proud to announce the first beta release of the Apache Cocoon2 XML sub project: Apache Cocoon is a 100% pure Java publishing framework that relies on W3C technologies to provide web content. The Apache Cocoon project aims to change the way web information is created, rendered and served. The Apache Cocoon paradigm is based on the fact that document content, style and logic are often created by different individuals or working groups. Apache Cocoon aims for a complete separation of the three layers, allowing the three layers to be independently designed, created and managed, reducing management overhead, increasing work reuse and reducing time to market. Apache Cocoon2 is a complete rewrite of the Apache Cocoon1 XML publishing framework that is supposed to remove all those design constraint that emerged from the Apache Cocoon1 experience. This release marks API stability of the project. The next release will primarily focus on documentation. The Cocoon team - 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: R: Apache Cocoon2 Beta 1 Release
giacomo wrote: On Wed, 6 Jun 2001, Marco Spinetti wrote: Great You are great!! I'm proud to be a Cocoon User list member. Where can I download the beta release ? From the CVS ? Does exists a binary version? Oops, forgot to mention it in the announcement. It's at the usual location: http://xml.apache.org/dist/cocoon Does it have caching and content aggregation? Are there any other features still missing or is it feature-complete? Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - 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: R: Apache Cocoon2 Beta 1 Release
Ulrich Mayring wrote: giacomo wrote: On Wed, 6 Jun 2001, Marco Spinetti wrote: Great You are great!! I'm proud to be a Cocoon User list member. Where can I download the beta release ? From the CVS ? Does exists a binary version? Oops, forgot to mention it in the announcement. It's at the usual location: http://xml.apache.org/dist/cocoon Does it have caching and content aggregation? Are there any other features still missing or is it feature-complete? It is feature complete. - 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: AW: R: Apache Cocoon2 Beta 1 Release
Carsten Ziegeler wrote: Yes and yes. No and yes: The beta is feature-complete including caching and content aggregation. Without having seen it: great work, guys. The only thing missing is even more documentation. Wot no docs? :) Seriously, I think it's really cool that you guys plan to write some docs before writing more code. This puts some real pressure on me to upgrade - up to now I could always say to my boss: ah.. no docs, not feature-complete, Cocoon1 works, ... Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - 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: Saxon extra stuff problem, and comment from Michael Kay
Sylvain Wallez a écrit : Steven Punte a écrit : I send this question to Michael Kay, author of Saxon, and received the reply below. He seems to indicated that this is configurable, but I'm not sure of how to adjust cocoon to eliminate this extra information. Can anyone suggest how to achieve such a configuration to Saxon? Steve Punte snip/ Saxon is not in cause in this problem (or maybe only for the xmlns:xml declaration) and is compliant with the XSLT spec, while Xalan has some bugs with the namespace:: axis and the XSP engine relies on this bug. I patched the XSP engine for Cocoon 2 to avoid all these extraneous declarations, and obviously Cocoon 1 users need this patch also. I'll try to do it ASAP (I'm really busy these days, so don't expect it before tomorrow) and will notify you when it's done. Done : I updated org/apache/cocoon/processor/xsp/xsp-java.xsl Namespaces are now generated only once in XSPs compiled whith Saxon. Cheers -- Sylvain Wallez Anyware Technologies - http://www.anyware-tech.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]
No build.xml in Beta1?
The build.xml file seems to be missing in the beta1 dist. Is this right? Kind regards, ++john - 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: Checking request parameters ....... planing architecture.
If I understand your question, you want to check request parameters and then only do a query if all the request parameters are correct. I've done this by writing tags like this: xsl:template match=mylib:if-valid-query xsp:logic if (...) { xsl:apply-templates/ } /xsp:logic /xsl:template Then you write your XSP like so: mylib:check-parameters/ mylib:if-valid-query esql:connection ... /esql:connection /mylib:if-valid-query -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Checking request parameters ... planing architecture. I do not want to have java code in my xsp pages, therefore I want to write a taglibrary for checking request parameters. Examples of provided tags: date-format param=... message=...wrong date format.../ check-null param=... message=/ check-maxlength param=... message=...typed text too long.../ check-int param=... message=...wrong number format.../ check-empty param=... message=.../ the code for each tag will take the request parameter, check a condition and if it is wrong inserts a error message=.../ tag to the document, which will be displayed for the user. But, after checking parameters, I want to use esql:connection - to perform database operations. And I do not know how to make the execution of esql stuff dependent of tags for parameter checking? check-empty param=X message=Fill X field/ check-empty param=Y message=Fill X field/ date-format param=Z message=Type correct date in Z field/ esql:connection esql:poolHelpDesk/esql:pool esql:execute-query queryINSERT INTO DATA (X,Y,Z) VALUES ( esql:parameterrequest:get-parameter name =X//esql:parameter esql:parameterrequest:get-parameter name =Y//esql:parameter esql:parameterrequest:get-parameter name =Z//esql:parameter /query /esql:execute-query /esql:connection -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] - 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: (urgent)ESQL question
I'm not sure what you mean here. One XSP page doesn't generally call other XSP pages. If you mean, how do I set values in one XSP page, then use those values when the user goes to another XSP page, there are several possibilities, including storing values in the session, storing values in hidden fields on forms, etc. -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RE: (urgent)ESQL question Hi ALL How to pass values from one XSP page to another XSP page plz help me out. Thanks Ramesh.V - 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: Javascript XML/XSL
Your script tag looks fine. If it runs fine in html, then take a look at your html output by Cocoon. Both IE and Netscape allow you to view source for a page. You can easily see if there is some difference that is causing a problem. -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Javascript XML/XSL hi, I am facing some problems when i try to put some javascript and flash in my xsl file. May i know any solution to solve this problem. The flash run well on the IE, but not appear at the netscape 4.7. The javascript fail to run the menu type( the javascript to show the menu style) of javascript ( error is something undefined ). i separate the javascript file from the xsl file by: SCRIPT language=JavaScript1.2 src=../style/hierMenus.js/SCRIPT is this cause the error ? Note: the javascript run well on the html. Thank you. Kok Choon - 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: its urgent
Plenty of samples have been posted; search the list archives. Other information exists in the Cocoon documentation, code samples, and FAQ. I doubt anyone is going to write a general purpose manual on these topics in a hurry to meet your urgent need. :) So you might have better luck if you post a specific question about the errors you are getting. -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: its urgent HI ALL here i'm able to connect to database and its displaying values also but . i want to develop login screen kind of thing, i'm facing so many syntax errors . so i need Material on XSP and ESQL plz..it will help me alot. or some example programs ..if possible its very urgent..plz Thanks Ramesh - 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]
AW: No build.xml in Beta1?
-Ursprüngliche Nachricht- Von: John Schult [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 6. Juni 2001 16:02 An: Cocoon Users Betreff: No build.xml in Beta1? The build.xml file seems to be missing in the beta1 dist. Is this right? No unfortunately not. I will fix this in the next hour and update the distribution. Carsten Open Source GroupsunShine - b:Integrated Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn www.sundn.de mailto: [EMAIL PROTECTED] Kind regards, ++john - 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]
WMLScript
Hi, I know this is off topic, but anyone know any good WML mailing list out there ? thanks... - Tony -Original Message- From: Truhann van der Poel [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 6 de junho de 2001 11:25 To: [EMAIL PROTECTED] Subject: Cocoon and Sessions I am new to Cocoon and sessions. Are using C1.8.2. Can anybody send a beginner sample (or pointer to help-documentation) to setup/save/retrieve variables from a session. All the session:xxx tags in my xsp page create NullPointer's. Truhann - 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: Adding root context to cocoon samples
Sundar, there are probably multiple ways to approach this. I think you can change the docBase in the Context for your app in Tomcat's server.xml configuration file to point to your document root. Alternately, you can point Apache's DocumentRoot to your context. For instance, if your Cocoon application is in a directory /opt/tomcat/webapps/cocoon, you can edit Apache's httpd.conf and change DocumentRoot to be /opt/tomcat/webapps/cocoon. We've done this successfully. I can't remember if we had to modify the mod_jk-auto.conf to do it. If you end up having to modify that file, I suggest you take it out of Tomcat's directory and put it in with the Apache conf files, rename it to mod_jk.conf, and maintain it yourself. Before doing anything like this, though, I recommend getting familiar with Apache's documentation on configuring Apache (particularly about DocumentRoot, Directory, etc.) and Tomcat's documentation on configuring Tomcat contexts. -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Adding root context to cocoon samples Hello, Probably, its been answered so many times but I couldn't find it in the archives. So, following is my question. I am able to successfully put cocoon2 samples in my Apache+Tomcat configuration and able to access under www.mydomain.com/cocoon by adding /cocoon context in mod_jk-auto.conf But I am having trouble adding root context to a cocoon sample application -- Hello World. That is when I key in 'www.mydomain.com', I want the web server to serve hello application(index.xml) (For that matter any cocoon application) Any help is appreciated. Sundar - 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: Cocoon and Sessions
Truhann, you are probably doing everything right, but there is one small thing that the documentation doesn't cover very well. You need to set the create-session attribute to true in your xsp:page element, like this: xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; create-session=true Otherwise the session isn't created/retrieved and you get the exceptions as you describe. -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Cocoon and Sessions I am new to Cocoon and sessions. Are using C1.8.2. Can anybody send a beginner sample (or pointer to help-documentation) to setup/save/retrieve variables from a session. All the session:xxx tags in my xsp page create NullPointer's. Truhann - 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: Cocoon and Sessions
I bet your error is caused by not including the create session directive in the namespaces declaration. Anyway here's a very simple little login thingy, it takes stuff from a form and logs you in or redirects you back. ?xml version=1.0? ?cocoon-process type=xsp? ?cocoon-process type=xslt? ?xml-stylesheet href=login-html.xsl type=text/xsl? ?xml-stylesheet href=login-wml.xsl type=text/xsl media=wap? ?xml-stylesheet href=page-chtml.xsl type=text/xsl media=imode? xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:session=http://www.apache.org/1999/XSP/Session; create-session=true xsp:logic String sqlstring = ; String username =; String passwd = ; String UID=; final static char APOS = (char)39; final static char BLANK = (char)32; /xsp:logic page xsp:logic username = request.getParameter(username); passwd= request.getParameter(passwd); (username.replace(APOS,BLANK)).trim(); (passwd.replace(APOS,BLANK)).trim(); !--Get rid of case sensitivity-- username.toLowerCase(); passwd.toLowerCase(); sqlstring = SELECT * FROM users WHERE user_name = ' + username + '; /xsp:logic esql:connection esql:poolproject/esql:pool esql:execute-query esql:query xsp:exprsqlstring/xsp:expr /esql:query esql:results esql:row-results xsp:logic if(passwd.equals(esql:get-string column=passwd/)) { !--Set the session variable UID to the users UID and jump to their page-- session:set-attribute name=UID esql:get-string column=uid/ /session:set-attribute response.sendRedirect(response.encodeRedirectURL(menupage.xml)); } else response.sendRedirect(login.xml?error=1); /xsp:logic /esql:row-results /esql:results esql:no-results xsp:logicresponse.sendRedirect(login.xml?error=1);/xsp:logic /esql:no-results /esql:execute-query /esql:connection link href=login.xmlTry Again/link /page /xsp:page Then on every page which you should be logged in to see include this !--#-- !--Check if User has logged in-- try{session:get-attribute name=UID/;} catch (NullPointerException e) { response.sendRedirect(login.xml); } !--#-- --- Truhann van der Poel [EMAIL PROTECTED] wrote: I am new to Cocoon and sessions. Are using C1.8.2. Can anybody send a beginner sample (or pointer to help-documentation) to setup/save/retrieve variables from a session. All the session:xxx tags in my xsp page create NullPointer's. Truhann - 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] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.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-2.0b1 -- build fails
Hi folks Just now I downloaded the Cocoon-2.0b1.tar.gz (9930213 bytes) and tried to build it after setting my JAVA_HOME on a linux box. The build fails with the following message Regards Joseph Rajkumar == [rajkumar@gman CocoonTwo]$ ./build.sh -Dinclude.webapp.libs=yes webapp Buildfile: build.xml init: --- Apache Cocoon 2.0b1 [1999-2001] generate-java-code: Transforming into /home/rajkumar/CocoonTwo/build/cocoon/src/org/apache/cocoon/components/browser Loading stylesheet /home/rajkumar/CocoonTwo/src/org/apache/cocoon/components/browser/BrowserImpl.xsl Failed to read stylesheet BrowserImpl.xsl BUILD FAILED /home/rajkumar/CocoonTwo/build.xml:297: javax.xml.transform.TransformerConfigurationException: File file:/home/rajkumar/CocoonTwo/src/org/apache/cocoon/components/browser/BrowserImpl.xsl not found. --- Nested Exception --- Total time: 5 seconds - 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]
xsp:element and xinclude
I would like to include the content of a file into my xsp page. So I think I need to use this : (to generate the xinclude dynamicaly) xsp:element name=whatever xsp:attribute name=xinclude:hrefxsp:exprfile/xsp:expr/xsp:attrib ute xsp:attribute name=xinclude:parsexml/xsp:attribute /xsp:element But it's not work : I've got the whatever tag in my xml flow result but nothing from my file. Thanks for your help JC -- Profitez de l'offre spéciale Liberty Surf ! 50 h / 95 F TTC par mois tout compris pendant 3 mois http://register.libertysurf.fr/subscribe_fr/signup.php3 - 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]
Mixing XSL and XSP in a single stylesheet
Hi, I'm trying to write a data abstraction layer to retrieve records from an SQL database (using ESQL) and then to format these into an XML fragment (using XSLT) for onward transformation. It appears that the xsl: namespace elements are not being executed - can I do this in a single step, or do I need to tease it apart into two transformation steps? I've included the important code fragment below, with comments following the xsl statements that do not work. Any help will be greatly appreciated Cheers Adrian --- Code Fragment --- ?xml version="1.0"? ?cocoon-process type="xsp"??xml-stylesheet type="text/xsl" href="zdam/zdam2html.xsl"??cocoon-process type="xslt"? ?cocoon-format type="text/xsl"??cocoon-content type="text/plain"? xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:zdam="zenark.com/zdam" zdam:data esql:connection esql:driverpostgresql.Driver/esql:driver esql:dburljdbc:postgresql://193.120.120.11/zdam_test/esql:dburl esql:usernamesql/esql:username esql:passwordgarfield/esql:password esql:execute-query esql:query SELECT id,name,description,category,author,rev_id,status FROM latest_revisions /esql:query esql:results esql:row-results xsl:variable name="_REVID"esql:get-string column="rev_id"//xsl:variable xsl:variable name="_STATUS"esql:get-string column="status"//xsl:variable zdam:asset id="." name="." author="." category="." !--Works -- xsl:attribute name="id"esql:get-int column="id"//xsl:attribute !-- Fails -- xsl:attribute name="name"esql:get-string column="name"//xsl:attribute !-- Fails -- xsl:attribute name="author"esql:get-string column="author"//xsl:attribute !-- Fails -- xsl:attribute name="category"esql:get-string column="category"//xsl:attribute !-- Fails -- zdam:descriptionesql:get-string column="description"//zdam:description !--Works -- /esql:row-results /esql:results /esql:execute-query/esql:connection /zdam:data /xsp:page--- End Code Fragment ---
[C2] Reloading changed sitemap
Hi cocooners, I'm running cocoon 2 in weblogic 6.0 on Windows 2000, and there's a big problem in that the sitemap is not reloaded if I change it. In my understanding it should be reloaded as soon as it changes. Am I missing something ? Is the sitemap reloading working on other platforms ? Thanks, Csaba. - 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]
how to eliminate ......
stuff like this: xspCurrentNode.appendChild( document.createTextNode(\n\t\t\t\t\t) ); from XSP source code? Is there a switch, or something to do it? Regards, Oskar Werewka -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] - 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: Cocoon-2.0b1 -- build fails
I had the same problem. I copied the files from an earlier CVS (Monday) version I had. Also, during the build I got: prepare-src-22: Could not find file /usr/xml-cocoon2/src/org/apache/cocoon/environment/http/RequestWrapper22.jav a to copy. It compiles cleanly after copying that file from the same CVS version, but it does not run. :-( Tomcat 3.2.2, Cocoon2-b1 and Java 1.3.0 from blackdown (build Blackdown-1.3.0-RC1). I'm still working through the cocoon/WEB-INF/logs/cocoon.log file. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 8:14 AM To: cocoon-users Subject: Cocoon-2.0b1 -- build fails Hi folks Just now I downloaded the Cocoon-2.0b1.tar.gz (9930213 bytes) and tried to build it after setting my JAVA_HOME on a linux box. The build fails with the following message Regards Joseph Rajkumar == [rajkumar@gman CocoonTwo]$ ./build.sh -Dinclude.webapp.libs=yes webapp Buildfile: build.xml init: --- Apache Cocoon 2.0b1 [1999-2001] generate-java-code: Transforming into /home/rajkumar/CocoonTwo/build/cocoon/src/org/apache/cocoon/components/bro wser Loading stylesheet /home/rajkumar/CocoonTwo/src/org/apache/cocoon/components/browser/BrowserI mpl.xsl Failed to read stylesheet BrowserImpl.xsl BUILD FAILED /home/rajkumar/CocoonTwo/build.xml:297: javax.xml.transform.TransformerConfigurationException: File file:/home/rajkumar/CocoonTwo/src/org/apache/cocoon/components/browser/Br owserImpl.xsl not found. --- Nested Exception --- Total time: 5 seconds - 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]: Missing files in distribution - solved
It compiles much better now, thanks. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Carsten Ziegeler [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 9:28 AM To: [EMAIL PROTECTED]; Cocoon-Users@Xml. Apache. Org Subject: AW: [C2]: Missing files in distribution - solved And again my appologies... There was another bug in the build script for the distribution which made compiling impossible. I fixed this and redistributed the dist to the server. Now the distribution builds very well. Again sorry, hope things are not getting worse... Carsten Open Source GroupsunShine - b:Integrated Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn www.sundn.de mailto: [EMAIL PROTECTED] Carsten Ziegeler wrote: Hi, unfortunately some files were missing in the distribution of the beta1, e.g. the build.xml. Without wanting to cause big problems I just put a new distribution with the missing files in the dist directory of the xml.apache.org server. This is not the real solution I know, but creating a b2 only for the missing files is perhaps overdoing it. The build.xml file for the 2.1-dev and 2.0b1-dev are corrected, so only when you really build the dist for 2.0b1 the files are missing. Sorry for this problems, Carsten Open Source GroupsunShine - b:Integrated Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn www.sundn.de mailto: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [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: Turbine without ESQL
First, setup cocoon.properties (I'm creating a new pool called 'mypool' which connects to a postgresql database called mydb). processor.xsp.pool.database.mypool.driver=org.postgresql.Driver processor.xsp.pool.database.mypool.url=jdbc:postgresql://localhost/mydb processor.xsp.pool.database.mypool.username=myid processor.xsp.pool.database.mypool.password=mypassword processor.xsp.pool.database.mypool.maxConnections=3 processor.xsp.pool.database.mypool.expiryTime=360 (There may be more stuff needed to setup depending on your database) Now, just replace the following lines: esql:driverorg.postgresql.Driver/esql:driver esql:dburljdbc:postgresql://localhost/test/esql:dburl esql:usernametest/esql:username esql:passwordtest/esql:password with: esql:poolmypool/esql:pool Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Oskar Werewka [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 9:53 AM To: [EMAIL PROTECTED] Subject: Turbine without ESQL Can somebody just send me a fragment of code, which gets connections from Turbine pool? COCOON 1.8.2 It will be very niece for me ;) Thanks, Oskar Werewka -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] - 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: Cocoon 1.8.2 + SAXON: Failed to Compile Stylesheet ERROR
No Xalan-specific features. Besides, Saxon works properly when used from the command line on the same files. There is nothing in the Weblogic logs or console. Is there something I need to add to build.xml? William Bagby. -Original Message- From: Sylvain Wallez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 12:34 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon 1.8.2 + SAXON: Failed to Compile Stylesheet ERROR William Bagby a écrit : I am using Cocoon 1.8.2 on Weblogic 5.1, and I decided to switch from Xalan to Saxon to get a performance boost. The installation went (relatively) smoothly, but now I'm getting the following error when I attempt to view one of my pages: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected. at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.init(Compiled Code) at java.lang.Exception.init(Compiled Code) at javax.xml.transform.TransformerException.init(TransformerExcep tion.java:12 9) at javax.xml.transform.TransformerConfigurationException.init(Tra nsformerConf igurationException.java:41) at com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:119) at com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFac toryImpl.jav a:119) at org.apache.cocoon.transformer.SAXONTransformer.getTransformer(SA XONTransform er.java:309) at org.apache.cocoon.transformer.SAXONTransformer.transform(Compiled Code) at org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProce ssor.java:11 6) at org.apache.cocoon.Engine.handle(Compiled Code) at org.apache.cocoon.Cocoon.service(Cocoon.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) etc., etc... My next move is going through my XSL bit by bit to find this supposed error, but I'm hoping that maybe someone has encountered this error message. I tried the same XSL with Instant Saxon in XMLSpy and it worked fine. In addition, there are other pages that I'm able to view with Cocoon + Saxon. The above page worked with Cocoon + Xalan, even if it was slow as molasses in winter. Forgive me if this is off-topic, but it is at least Cocoon-related. Maybe I should post this to the XSL list? William Bagby. Does your stylesheet use Xalan-specific features that aren't handled by Saxon ? Along with this error, Saxon writes some more meaningful messages in (I guess) System.err which gets printed in my Tomcat console. You should check weblogic logs or console for this message. -- Sylvain Wallez Anyware Technologies - http://www.anyware-tech.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: [C2]: Missing files in distribution - solved
Hi Folks Yes it does. I got Cocoon-2.0b1.tar.gz (9926084 bytes) and it compiles just fine. I would appreciate some instructions on getting it to work with Tomcat-3.2.2. Regards Joseph Rajkumar Gary Clark wrote: It compiles much better now, thanks. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems - 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: Turbine without ESQL
Thank you, but I have written my question wrong, I would like to use turbine inside my java helper classes, so I have to use: org.apache.turbine.services.db.PoolBrokerService org.apache.turbine.util.db.pool.DBConnection Can you help me? And sorry again. First, setup cocoon.properties (I'm creating a new pool called 'mypool' which connects to a postgresql database called mydb). processor.xsp.pool.database.mypool.driver=org.postgresql.Driver processor.xsp.pool.database.mypool.url=jdbc:postgresql://localhost/mydb processor.xsp.pool.database.mypool.username=myid processor.xsp.pool.database.mypool.password=mypassword processor.xsp.pool.database.mypool.maxConnections=3 processor.xsp.pool.database.mypool.expiryTime=360 (There may be more stuff needed to setup depending on your database) Now, just replace the following lines: esql:driverorg.postgresql.Driver/esql:driver esql:dburljdbc:postgresql://localhost/test/esql:dburl esql:usernametest/esql:username esql:passwordtest/esql:password with: esql:poolmypool/esql:pool Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Oskar Werewka [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 9:53 AM To: [EMAIL PROTECTED] Subject: Turbine without ESQL Can somebody just send me a fragment of code, which gets connections from Turbine pool? COCOON 1.8.2 It will be very niece for me ;) Thanks, Oskar Werewka -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] - 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] -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] - 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 2 beta 1 bug?
Hi, thank you to Carsten and his team for their grat job! I've tried to install Cocoon 2 beta 1 and I noticed: 1) build.xml seems absent (yet indicated on this ml) 2) my /usr/local/jakarta-ant-1.3/ant.jar has been named ant_1_3.jar by me otherwise it isn't recognise (ANT_HOME is path is ok). I'm waiting for package's upgrade. With regards, Ciao Francesco Francesco Casalena L.U.G. Il Pinguino -- Virgilio Mail - Il tuo indirizzo E-mail gratis http://mail.virgilio.it - 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: Turbine without ESQL
Sorry, I'm still scratching my head with C2. Try xml.apache.org and go into the Turbine part of the site. I recall seeing some docs in there, but I don't recall exactly where they were. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Oskar Werewka [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 11:16 AM To: [EMAIL PROTECTED] Subject: RE: Turbine without ESQL Thank you, but I have written my question wrong, I would like to use turbine inside my java helper classes, so I have to use: org.apache.turbine.services.db.PoolBrokerService org.apache.turbine.util.db.pool.DBConnection Can you help me? And sorry again. First, setup cocoon.properties (I'm creating a new pool called 'mypool' which connects to a postgresql database called mydb). processor.xsp.pool.database.mypool.driver=org.postgresql.Driver processor.xsp.pool.database.mypool.url=jdbc:postgresql://localhost/mydb processor.xsp.pool.database.mypool.username=myid processor.xsp.pool.database.mypool.password=mypassword processor.xsp.pool.database.mypool.maxConnections=3 processor.xsp.pool.database.mypool.expiryTime=360 (There may be more stuff needed to setup depending on your database) Now, just replace the following lines: esql:driverorg.postgresql.Driver/esql:driver esql:dburljdbc:postgresql://localhost/test/esql:dburl esql:usernametest/esql:username esql:passwordtest/esql:password with: esql:poolmypool/esql:pool Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Oskar Werewka [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 9:53 AM To: [EMAIL PROTECTED] Subject: Turbine without ESQL Can somebody just send me a fragment of code, which gets connections from Turbine pool? COCOON 1.8.2 It will be very niece for me ;) Thanks, Oskar Werewka -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] - 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] -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] - 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: Turbine without ESQL
Can somebody just send me a fragment of code, which gets connections from Turbine pool? Yep... Snip of my code import org.apache.turbine.services.db.PoolBrokerService; import org.apache.turbine.util.db.pool.DBConnection; import org.apache.turbine.services.resources.TurbineResourceService ; static PoolBrokerService pool = PoolBrokerService.getInstance(); // Turbine pool of connections private Connection Conn = null ; // Connection private DBConnection db = null; // Pooled connection try { TurbineResourceService.setPropertiesFileName(C:/jakarta-tomcat-3.2.1/webapp s/tl/pool/TurbineResources.properties) ; } catch (IOException ioexp) { DebugPrint(IO error: + ioexp.getMessage() ) ; } db = pool.getConnection(); Conn = db.getConnection(); /Snip of my code This is what you want. Remember to have turbine-pool.jar in you servlet lib folder. You can see that I'm using the TurbineRessouces.properties to set the pooling conf, you could do it using the standard java Property class. HTH. - Tony - 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]
[C2]: with Tomcat 3.2.2
Here is what I have found so far with Tomcat 3.2.2 and C2 (RedHat 7.1, fresh install of Tomcat): - Follow the instruction at http://xml.apache.org/cocoon/cocoon2/install.html - Add the init-param as shown with Tomcat 4.0 (can someone verify this is needed?) - Set your DISPLAY variable if :0.0 is incorrect (sitemap will not compile without X11, Batik seems to be the cause) At this point, cocoon just does not respond. No error messages found yet (other then DB connections not made in cocoon.log). My browser (IE) has been waiting for 15 minutes and has not timed out, but the Linux box is at 0% cpu usage. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems - 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: use connection pool in esql
Did you restart your servlet server (Tomcat in my case)? The change won't take effect until you do. If you did, look in the log files of your servlet server and see if you can find out why the connection failed. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Fang Huang [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: use connection pool in esql Hi, I was trying to use connection pool in esql, but I still got error: java.lang.RuntimeException: Could not open pooled connection: mypool In cocoon.properties, I add mypool definition as follows: processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver processor.xsp.pool.database.mypool.url=jdbc:oracle:thin:@oracle.gl.umbc.ed u:1521:GL processor.xsp.pool.database.mypool.username=user processor.xsp.pool.database.mypool.password=user processor.xsp.pool.database.mypool.maxConnections=3 processor.xsp.pool.database.mypool.expiryTime=360 And in my xsp file, I use: esql:connection esql:poolmypool/esql:pool esql:execute-query ... I can get the correct results when I use esql:connection esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL/esql:dburl esql:usernameuser/esql:username esql:passworduser/esql:password esql:execute-query What's wrong with the connection pool? Thanks. Fang - 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: use connection pool in esql
somebody else just had a similar problem. Did you restart Cocoon after editing cocoon.properties? Did you edit the correct cocoon.properties (e.g., the one in the WEB-INF directory, not the one in the original cocoon directory)? -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: use connection pool in esql Hi, I was trying to use connection pool in esql, but I still got error: java.lang.RuntimeException: Could not open pooled connection: mypool In cocoon.properties, I add mypool definition as follows: processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver processor.xsp.pool.database.mypool.url=jdbc:oracle:thin: @oracle.gl.umbc.edu:1521:GL processor.xsp.pool.database.mypool.username=user processor.xsp.pool.database.mypool.password=user processor.xsp.pool.database.mypool.maxConnections=3 processor.xsp.pool.database.mypool.expiryTime=360 And in my xsp file, I use: esql:connection esql:poolmypool/esql:pool esql:execute-query ... I can get the correct results when I use esql:connection esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL/esql:dburl esql:usernameuser/esql:username esql:passworduser/esql:password esql:execute-query What's wrong with the connection pool? Thanks. Fang - 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: use connection pool in esql
I have the same configuration, and it is working? Did you restart cocoon after hanging cocoon.properties? Hi, I was trying to use connection pool in esql, but I still got error: java.lang.RuntimeException: Could not open pooled connection: mypool In cocoon.properties, I add mypool definition as follows: processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver processor.xsp.pool.database.mypool.url=jdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL processor.xsp.pool.database.mypool.username=user processor.xsp.pool.database.mypool.password=user processor.xsp.pool.database.mypool.maxConnections=3 processor.xsp.pool.database.mypool.expiryTime=360 And in my xsp file, I use: esql:connection esql:poolmypool/esql:pool esql:execute-query ... I can get the correct results when I use esql:connection esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL/esql:dburl esql:usernameuser/esql:username esql:passworduser/esql:password esql:execute-query What's wrong with the connection pool? Thanks. Fang - 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] -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] - 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]
Internal server error
Hi Folks I am using latest Cocoon-2.0b1 with Tomcat-3.2.2 and following the instructions to the letter and this is what I get Regards Joseph Rajkumar Instructions followed: http://xml.apache.org/cocoon2/install.html PS: why is the sitemap hander's sitemap NOT available and how can I make it available == Cocoon 2 - Internal server error type internal-server-error message The sitemap handler's sitemap is not available. description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ exception org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. path-info stacktrace org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93) 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:853) 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) Title: Internal server error Cocoon 2 - Internal server errortype internal-server-errormessage The sitemap handler's sitemap is not available.description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.sender org.apache.cocoon.servlet.CocoonServletsource Cocoon servletrequest-uri/cocoon/exceptionorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.path-infostacktraceorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93) 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:853) 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) - 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]
Installation - Update -
Just a note for the Cocoon guys.. I was abt to install Cocoon on a different combination not listed in the table at the foll: site http://xml.apache.org/cocoon/install.html The combo goes as follows: JDK1.3.1 Tomcat 3.2.1 Apache Web Server 1.3.19 Keep up the good work. All the best, Anand Chauhan MS(CS) Jan 2002 New York University - 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]
pl reply
Dear sir, Installing Cocoon on Apache Tomcat on linux server i followed your all instruction after that i am facing this problem pl rectify my problem ASAP http://localhost:8080/cocoon/samples/index.xml when i execute this this type of error is coming type=text/html Cocoon Live Show Copyright © 1999-2000 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: use connection pool in esql
I restarted tomcat, and it works now. But there is an exception java.lang.Exception: The logfile= property and the turbine.logs= property in the TurbineResources.properties file are null or could not be found. Where is the TurbineResources.properties file? Fang On Wed, 6 Jun 2001, Gary Clark wrote: Did you restart your servlet server (Tomcat in my case)? The change won't take effect until you do. If you did, look in the log files of your servlet server and see if you can find out why the connection failed. Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems -Original Message- From: Fang Huang [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 11:32 AM To: [EMAIL PROTECTED] Subject:use connection pool in esql Hi, I was trying to use connection pool in esql, but I still got error: java.lang.RuntimeException: Could not open pooled connection: mypool In cocoon.properties, I add mypool definition as follows: processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver processor.xsp.pool.database.mypool.url=jdbc:oracle:thin:@oracle.gl.umbc.ed u:1521:GL processor.xsp.pool.database.mypool.username=user processor.xsp.pool.database.mypool.password=user processor.xsp.pool.database.mypool.maxConnections=3 processor.xsp.pool.database.mypool.expiryTime=360 And in my xsp file, I use: esql:connection esql:poolmypool/esql:pool esql:execute-query ... I can get the correct results when I use esql:connection esql:driveroracle.jdbc.driver.OracleDriver/esql:driver esql:dburljdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL/esql:dburl esql:usernameuser/esql:username esql:passworduser/esql:password esql:execute-query What's wrong with the connection pool? Thanks. Fang - 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: Internal server error
What is your OS? Are you running a headless server? You should take a look in your cocoon.log which should be in $TOMCAT_HOME/webapps/cocoon/WEB-INF/log/ and see if there are any error messages just before this one. This should tell you what is causing the sitemap compilation to fail. eirik Rajkumar, Joseph wrote: Hi Folks I am using latest Cocoon-2.0b1 with Tomcat-3.2.2 and following the instructions to the letter and this is what I get Regards Joseph Rajkumar Instructions followed: http://xml.apache.org/cocoon2/install.html PS: why is the sitemap hander's sitemap NOT available and how can I make it available == Cocoon 2 - Internal server error type internal-server-error message The sitemap handler's sitemap is not available. description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ exception org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. path-info stacktrace org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93) 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:853) 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) Cocoon 2 - Internal server error --- type internal-server-error message The sitemap handler's sitemap is not available. description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ exception org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. path-info stacktrace org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93) 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:853) 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) --- - 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] begin:vcard n:Dentz;Eirik tel;work:212-455-9830 x-mozilla-html:TRUE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;3 fn:Eirik Dentz end:vcard - 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: Internal server error
Comment out every entry in your sitemap.xmap file that contains 'svg' minus the quotes. sitemap.xmap is located in the webapps/cocoon directory. You might have to uncompress the war archive to modify it. Restart tomcat, and everything should work EXCEPT for the svg stuff. If you want to use the svg stuff, you're out of luck till somebody fixes that problem. Rajkumar, Joseph wrote: Hi Folks I am using latest Cocoon-2.0b1 with Tomcat-3.2.2 and following the instructions to the letter and this is what I get Regards Joseph Rajkumar Instructions followed: http://xml.apache.org/cocoon2/install.html PS: why is the sitemap hander's sitemap *NOT* available and how can I make it available == Cocoon 2 - Internal server error type internal-server-error message The sitemap handler's sitemap is not available. description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ exception org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. path-info stacktrace org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93) 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:853) 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) Cocoon 2 - Internal server error *type* internal-server-error *message*_The sitemap handler's sitemap is not available._ *description*_org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available._ *sender* org.apache.cocoon.servlet.CocoonServlet *source* Cocoon servlet *request-uri* /cocoon/ *exception* org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. *path-info* *stacktrace* org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93) 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:853) 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) - 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: AW: R: Apache Cocoon2 Beta 1 Release
On Wed, 6 Jun 2001, Ulrich Mayring wrote: Carsten Ziegeler wrote: Yes and yes. No and yes: The beta is feature-complete including caching and content aggregation. Without having seen it: great work, guys. The only thing missing is even more documentation. Wot no docs? :) Seriously, I think it's really cool that you guys plan to write some docs before writing more code. This puts some real pressure on me to upgrade - up to now I could always say to my boss: ah.. no docs, not feature-complete, Cocoon1 works, ... This was the only reason to state that beta 2 will have mainly more docs to make you upgrande sooner than later ;) We badly need your comments about C2 because you're one of the most critical person around here I know of. Giacomo - 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] Reloading changed sitemap
On Wed, 6 Jun 2001, Csaba Nagy wrote: Hi cocooners, I'm running cocoon 2 in weblogic 6.0 on Windows 2000, and there's a big problem in that the sitemap is not reloaded if I change it. In my understanding it should be reloaded as soon as it changes. Am I missing something ? Is the sitemap reloading working on other platforms ? If you are using the default setup you might notice that the first request after you changed the sitemap doesn't reflect it. If you wait a few seconds and retry you should see the changes. This is due to the fact that the regeneration of the sitemap class is done in a background thread. Giacomo Thanks, Csaba. - 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: Internal server error
Hi Folks Thanks to eirik.dentz and Bryan Murphy who gave me a clue as to the possible problem. So I downloaded a fresh jakarat-tomcat-3.2.2 and Cocoon-2.0B1 on my laptop running mandrake. Followed the instructions on the cocoon2 web page and build cocoon.war and had it working in a few minutes. If you try to install it and run it the very first time over the network on a different machine, you will run into the problem I ran into with the Internal server error. So try to install and run it on the console and there after you can access Cocoon from any where on the network Regards Joseph Rajkumar PS: Hopefully this will be fixed in beta-2. If you are interested in simulating this problem, try installing tomcat3.2.2 and cocoon-2.0 while you are logged into the machine on which you are installing from another machine. - 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]
AW: Cocoon 1.8.2 + SAXON: Failed to Compile Stylesheet ERROR
Hi William No Xalan-specific features. Besides, Saxon works properly when used from the command line on the same files. Then it seems to be a problem with the current working directory. Do you use xsl:include or xsl:import with relative paths in your xsl files. Try to change these paths to absolute paths. And Saxon may create (eventually) your pages. HTH, Eccy - 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: Adding root context to cocoon samples
Hello Christopher, Since I do not want to touch my current site, I created xml.mydomain.com(virtual domain) and changed the DocumentRoot to the Hello example dir. The problem is when I go to that site , I get the listing of file under the directory index.xml WEB-INF ... rather than translated index.xml. My concern is, how do I tell apache whenever it comes across *.xml send it to tomcat(ultimately to Cocoon 2) Thanks, Sundar On Wednesday 06 June 2001 07:43, [EMAIL PROTECTED] wrote: Sundar, there are probably multiple ways to approach this. I think you can change the docBase in the Context for your app in Tomcat's server.xml configuration file to point to your document root. Alternately, you can point Apache's DocumentRoot to your context. For instance, if your Cocoon application is in a directory /opt/tomcat/webapps/cocoon, you can edit Apache's httpd.conf and change DocumentRoot to be /opt/tomcat/webapps/cocoon. We've done this successfully. I can't remember if we had to modify the mod_jk-auto.conf to do it. If you end up having to modify that file, I suggest you take it out of Tomcat's directory and put it in with the Apache conf files, rename it to mod_jk.conf, and maintain it yourself. Before doing anything like this, though, I recommend getting familiar with Apache's documentation on configuring Apache (particularly about DocumentRoot, Directory, etc.) and Tomcat's documentation on configuring Tomcat contexts. -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Adding root context to cocoon samples Hello, Probably, its been answered so many times but I couldn't find it in the archives. So, following is my question. I am able to successfully put cocoon2 samples in my Apache+Tomcat configuration and able to access under www.mydomain.com/cocoon by adding /cocoon context in mod_jk-auto.conf But I am having trouble adding root context to a cocoon sample application -- Hello World. That is when I key in 'www.mydomain.com', I want the web server to serve hello application(index.xml) (For that matter any cocoon application) Any help is appreciated. Sundar - 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] -- Sundar Narayanasamy Fourthstage Technologies 3030 North Third Street, 7th Floor Phoenix, AZ 85012 Office - 602-776-0883 ext.222 Email - [EMAIL PROTECTED] http://www.fourthstage.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]
[C2] sitemap recompile issue
Cocoon2-b1 Tomcat 3.2.2 JDK 1.3.0 RedHat Linux 7.1 Although the sitemap compiles correctly at startup, if I modify the sitemap.xmap file, I get the following messages in the log after every request. The procedure I used was: 1) Stop Tomcat 2) Touch sitemap.xmap 3) Start Tomcat 4) Access a cocoon generated web page 5) Touch sitemap.xmap 6) Refresh web page Looking in cocoon.log, there are no ERROR messages after loading the page the first time (step 4). However, after touching sitemap.xmap to make cocoon think the file was modified, I start getting ERRORs in the log file. The sitemap is the default one with all references to svg commented out. These are all of the messages for Thread-33 in cocoon.log (which is generating the error). Any ideas/pointers? DEBUG 84246 [cocoon ] (Thread-33): Making URL from file:/usr/jakarta-tomcat-3.2.2/webapps/cocoon/sitemap.xmap DEBUG 84250 [cocoon ] (Thread-33): ComponentFactory creating new instance of org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage. DEBUG 85020 [cocoon ] (Thread-33): Holding object in memory. Key: jar:file:/usr/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/lib/cocoon.jar!/or g/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl DEBUG 85021 [cocoon ] (Thread-33): ComponentFactory decommissioning instance of org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage. ERROR 85022 [cocoon ] (Thread-33): Error compiling sitemap Gary A. Clark Systems Programmer Software Services Group JELD-WEN Information Systems - 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: Internal server error/sitemap handler's sitemap is notavailable
Glad you got it working. I have a little more time now and I wanted offer a bit more that may, or may not be helpful to others on this list. I am rather new to Java, XML and Cocoon so it would be great if those of you who know otherwise could correct me where appropriate. Background: I ran into the sitemap handler's sitemap is not available error while trying to install Cocoon 2.0a7 on a headless Debian/Linux (2.2.18 kernel) box with the Blackdown 1.3.0 j2sdk and Tomcat 3.2.2. After searching the mailing list archives and seeing that a lot of other people were running into the same error message and a couple of days of research, this is my understanding of the problem and one possible solution (it worked for me, YMMV :) After digging around a bit and following various threads on the list I realized that the sitemap compilation failure could be traced back to this line in my Cocoon.log: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. It seems that it is the batik.jar, that triggers this error. This is why commenting out all of the .SVG stuff in the sitemap is one way to get the sitemap to compile, though without all of the cool SVG stuff, which I guess many can do without, but it is a wonderful thing... Donald Ball offered this link which made me realize that this is a well documented problem in the java.awt and not actually a bug in Cocoon or even batik. http://www.geocities.com/marcoschmidt.geo/java-image-coding.html of the 3 solutions offered, I chose to go with Xvfb after doing a bit of re-search on Xvfb using google and: http://search.java.sun.com/Search/java Fortunately it was available as a .deb from the debian ftp servers. There are .rpms available too. A google or rpmfind search should turn them up. Once it was installed it was just a matter of starting it up: shell$ Xvfb :0 -screen 0 640x480x8 and setting the display variable: shell$ export DISPLAY=:0 The one other thing that you'll probably need to check is that the user that cocoon(tomcat) is running as has permission to connect to the xserver. Whew! hope that saves someone some time. eirik From: [EMAIL PROTECTED] (Rajkumar, Joseph) Organization: Orion Scientific Systems, Inc. Reply-To: [EMAIL PROTECTED] Date: Wed, 06 Jun 2001 17:55:41 -0400 To: [EMAIL PROTECTED] Subject: Re: Internal server error Hi Folks Thanks to eirik.dentz and Bryan Murphy who gave me a clue as to the possible problem. So I downloaded a fresh jakarat-tomcat-3.2.2 and Cocoon-2.0B1 on my laptop running mandrake. Followed the instructions on the cocoon2 web page and build cocoon.war and had it working in a few minutes. If you try to install it and run it the very first time over the network on a different machine, you will run into the problem I ran into with the Internal server error. So try to install and run it on the console and there after you can access Cocoon from any where on the network Regards Joseph Rajkumar PS: Hopefully this will be fixed in beta-2. If you are interested in simulating this problem, try installing tomcat3.2.2 and cocoon-2.0 while you are logged into the machine on which you are installing from another machine. - 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]
Cocoon in offline
hi, May i know how to use cocoon in offline(means generate html file offline) ? Thank you. Kok Choon E-mail: [EMAIL PROTECTED] Date: 06/07/01 Time: 21:19:55 This message was sent by Z-Mail Pro - from NetManage NetManage - delivers Standards Based IntraNet Solutions - 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: Cocoon and Sessions
Hi Declan if possible can u plz send me those XSL pages also it will very helpful to me. thanks rammi -Original Message- From: declan kelly [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 8:26 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon and Sessions I bet your error is caused by not including the create session directive in the namespaces declaration. Anyway here's a very simple little login thingy, it takes stuff from a form and logs you in or redirects you back. ?xml version=1.0? ?cocoon-process type=xsp? ?cocoon-process type=xslt? ?xml-stylesheet href=login-html.xsl type=text/xsl? ?xml-stylesheet href=login-wml.xsl type=text/xsl media=wap? ?xml-stylesheet href=page-chtml.xsl type=text/xsl media=imode? xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:session=http://www.apache.org/1999/XSP/Session; create-session=true xsp:logic String sqlstring = ; String username =; String passwd = ; String UID=; final static char APOS = (char)39; final static char BLANK = (char)32; /xsp:logic page xsp:logic username = request.getParameter(username); passwd= request.getParameter(passwd); (username.replace(APOS,BLANK)).trim(); (passwd.replace(APOS,BLANK)).trim(); !--Get rid of case sensitivity-- username.toLowerCase(); passwd.toLowerCase(); sqlstring = SELECT * FROM users WHERE user_name = ' + username + '; /xsp:logic esql:connection esql:poolproject/esql:pool esql:execute-query esql:query xsp:exprsqlstring/xsp:expr /esql:query esql:results esql:row-results xsp:logic if(passwd.equals(esql:get-string column=passwd/)) { !--Set the session variable UID to the users UID and jump to their page-- session:set-attribute name=UID esql:get-string column=uid/ /session:set-attribute response.sendRedirect(response.encodeRedirectURL(menupage.xml)); } else response.sendRedirect(login.xml?error=1); /xsp:logic /esql:row-results /esql:results esql:no-results xsp:logicresponse.sendRedirect(login.xml?error=1);/xsp:logic /esql:no-results /esql:execute-query /esql:connection link href=login.xmlTry Again/link /page /xsp:page Then on every page which you should be logged in to see include this !--#-- !--Check if User has logged in-- try{session:get-attribute name=UID/;} catch (NullPointerException e) { response.sendRedirect(login.xml); } !--#-- --- Truhann van der Poel [EMAIL PROTECTED] wrote: I am new to Cocoon and sessions. Are using C1.8.2. Can anybody send a beginner sample (or pointer to help-documentation) to setup/save/retrieve variables from a session. All the session:xxx tags in my xsp page create NullPointer's. Truhann - 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] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.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] ***Confidential
AW: [C2]: Missing files in distribution - solved
And again my appologies... There was another bug in the build script for the distribution which made compiling impossible. I fixed this and redistributed the dist to the server. Now the distribution builds very well. Again sorry, hope things are not getting worse... Carsten Open Source GroupsunShine - b:Integrated Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn www.sundn.de mailto: [EMAIL PROTECTED] Carsten Ziegeler wrote: Hi, unfortunately some files were missing in the distribution of the beta1, e.g. the build.xml. Without wanting to cause big problems I just put a new distribution with the missing files in the dist directory of the xml.apache.org server. This is not the real solution I know, but creating a b2 only for the missing files is perhaps overdoing it. The build.xml file for the 2.1-dev and 2.0b1-dev are corrected, so only when you really build the dist for 2.0b1 the files are missing. Sorry for this problems, Carsten Open Source GroupsunShine - b:Integrated Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn www.sundn.de mailto: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [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]