Session-Timeout
Hi I was wondering where i can define the session timeout for my cocoon application. I get errors if i try to set it anywhere in the web.xml with the following entry: session-config session-timeout60/session-timeout /session-config --- How can i change the default timeout value of my webapp ? thanx mike - 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: How to get URL parameters in an xsp:logic area ?
Hi! You can use the xsp-request:get-parameter name=bar/ tag even inside the a xsp:logic tag. so you can do: xsp:logic String myString = xsp-request:get-parameter name=bar/; /xsp:logic (xsp-request must be mapped to http://apache.org/xsp/request/2.0 ) greetings mike - Original Message - From: Ganael LAPLANCHE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 4:03 PM Subject: How to get URL parameters in an xsp:logic area ? Hi ! I'd like to acces an URL variable in an xsp:logic area ??? I call my page with : http:///foo.xml?bar=hello and would like to get the value of bar into a string element to re-use it. How would you do that ? Must be simple... but I'm a newbie... :) Thank you, Ganael. - 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: How to get URL parameters in an xsp:logic area ?
Hmmm I´ve testet mixing POST and GET parameters and it works fine here (tomcat 404, cocoon203, msie6x) Maybe your browser cannot mix the methods do this... Try submitting the GET parameter as a hidden param in the form.. input type=hidden name=bar value=foo/ (or did i misunderstand you?) greetings mike - Original Message - From: Ganael LAPLANCHE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 5:05 PM Subject: Re: How to get URL parameters in an xsp:logic area ? I works fine with a hand-typed URL, but If the URL is requested by a form (action=url?foo=bar), it doesn't work... I can't acces to my variable (even if it appears in the URL area of my navigator). Do you have any idea ??? Many thanks... On Mon, 2002-08-26 at 16:11, Michael Mangeng wrote: Hi! You can use the xsp-request:get-parameter name=bar/ tag even inside the a xsp:logic tag. so you can do: xsp:logic String myString = xsp-request:get-parameter name=bar/; /xsp:logic (xsp-request must be mapped to http://apache.org/xsp/request/2.0 ) greetings mike - Original Message - From: Ganael LAPLANCHE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 4:03 PM Subject: How to get URL parameters in an xsp:logic area ? Hi ! I'd like to acces an URL variable in an xsp:logic area ??? I call my page with : http:///foo.xml?bar=hello and would like to get the value of bar into a string element to re-use it. How would you do that ? Must be simple... but I'm a newbie... :) Thank you, Ganael. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error no connections in the pool with mySQL?
Hi Which version of Cocoon are you using? You only mentioned Cocoon 2.0 which isn´t enought. Cocoon 2.0.2 has a problem with the connection pooling caused by the JDBC update in JDK 1.4.0. I had a similar problem - a update to cocoon 2.0.3 solved my problem. greetings mike - Original Message - From: Derek Hohls [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 16, 2002 2:24 PM Subject: Re: Error no connections in the pool with mySQL? Thanks for the suggestion - I see it was it was all lowercase on my machine too - however, when I changed it to 'mySQL' here, and restarted Tomcat, I did not get any errors on my machine - in other words, the case doesnt not affect the problem happening on the client machine. so I dont think this is the cause (unfortunately). [EMAIL PROTECTED] 16/08/2002 02:12:20 --org.gjt.mm.mySQL.Driver I define mine as org.gjt.mm.mysql.Driver instead... __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Usage of in URLs
Hi Since is a special char you have to mark it as character data. urlhttp://www.foo.com/some-path?arg1=value1![CDATA[]]arg2=value2/url greetings mike - Original Message - From: Themba Mbatha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 12, 2002 8:19 PM Subject: Usage of in URLs Hi all; Perhaps this has been asked. I need to show a url as in urlhttp://www.foo.com/some-path?arg1=value1arg2=value2/url into the transformed XML. I am getting errors with Cocoon (the generator, in particular) each time it encounters an character. I am told this is an XML problem but I was wondering if anyone has had to deal with this type of problem. Thanx. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon mysql
Hi Jessica You do not have to mention a JARs in contextroot/WEB-INF/lib/ in web.xml. Restoring the old web.xml and restart tomcat. If the error is still there, try to locate it in contextroot/WEB-INF/logs/*.logs. greetings mike - Original Message - From: Jessica Niewint [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 09, 2002 5:20 PM Subject: Cocoon mysql Ok I want to connect to mysql and I heard that there will be problems with jdk1.4. and the mm.mysql.driver ... so I actually have: jdk 1.2.2 cocoon 2.0.3 tomcat 4.0.4 ... everything works fine until I try to implement the mm.mysql.driver (2.0.14). I downloaded the driver , unjared it. I tried to install the driver by enter the extra-classpath for the driver in the $COCOON_HOME/WEB-INF/web.xml file (my ABSOLUTE-PATH-TO-ARCHIVE is /jdbc/mm.mysql-2.0.14/mm.mysql-2.0.14-bin.jar) and by copy the mm.mysql-2.0.14-bin.jar file into the $COCOON_HOME/WEB-INF/lib directory and add in both cases to the load-class element in the web.xml file org.gjt.mm.msyql.Driver ... When I try to open the httpd://localhost:8181/cocoon page I got an internal server error ... so what did I forget ? Where was I wrong ??? - 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]
Connection pooling w. 1.4.0.
Hi I know about the connection pooling problem with 1.4.0. So i´ve used 1.3.1 so far. Now i need to update to 1.4.0 and I´m wondering what i can do to use connection pooling with 1.4.0 thanx for help greetings mike - 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: php-xml-cocoon-html | wml --- query string lost
I haven´t done anything with PHPcocoon yet but i think you have to use the PHPGenerator. Since you are not specifing a generator to the map:generate tag cocoon uses the filegenerator (if this is the default one in your sitemap). try using: map:generate src="http://localhost/test/getSomething.php" type="php" while you use: map:components map:generator map:generator name="php" src="...path-to-phpgenerator..."/ ... hope this is correct ;-) greetings mike - Original Message - From: Zein To: [EMAIL PROTECTED] Sent: Sunday, July 07, 2002 9:05 PM Subject: php-xml-cocoon-html | wml --- query string lost hi, iam new to cocoon and want to parse a xml document which is made by a php-file. i call the file like this: http://localhost:8080/cocoon/test/getSomething.php?foo1=testfoo2=test2foo3=test3 my sitemap entry looks like this: map:match pattern="test/getSomething.php" map:generate src="http://localhost/test/getSomething.php map:parameter name="use-request-parameter" value="true"/ /map:generate map:select type="browser" --- snipp - no problems here /map:select /map:match but it does notwork. cocoon does not call the source file with the query string, so the variables in my phpfile are empty. i also tried out something like this: map:match pattern="test/getSomething.php*" map:generate src="http://localhost/test/getSomething.php{1} map:parameter name="use-request-parameter" value="true"/ /map:generate but the same problem. does anyone knowwhat's wrong with mysitemap entry and how i can fix it? i would be very grateful if someone could help me and thank you in advance. i use cocoon 2.0.1 with tomcat 4.0.3. regards, zein dowe
Re: Multiple Instances / Second does not serve data...
Hi Log file - messages? One common problem is that the hypersonic sql db cannot startup on the second machine because the port is blocked from the first hsqldb instance. Search for hsql in the 2nd cocoon.xconf and change the port or deaktivate the whole db if this is the problem. greetings mike - Original Message - From: Alexander Schatten [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 05, 2002 11:24 AM Subject: Multiple Instances / Second does not serve data... I am not sure, whether this is a Cocoon core topic, I would say, it is moreless a Tomcat problem? so maybe anyone has an idea either: for our test server I wanted to run two parallel Cocoon instances on one Linux server on different ports: (1) I made two directories each containing the same tomcat/cocoon version (2) I started the first one on port 9000 (changed Connector port=9000 and server port to 8005). This one runs, and serves correctly (3) the second one is set to port 8080 (default) and the server port to 8010 (4) I start the second one. both seem to run, and I also can shutdown both correctly, but only port 9000 (the first one) serves data (Tomcat, as well as cocoon), to the second one on port 8080 the browser is connecting (no error message), but no data is served... any ideas? thank you in advance! Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DatabaseAuthenticatorAction
Hi You can use both the formval and the dbauth action. if you get no error from the formvalidator action but null from the dbauth action, the supplied username and password is invalid. greetings mike - Original Message - From: Chris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 01, 2002 10:59 AM Subject: DatabaseAuthenticatorAction Hi guys A question about the DatabaseAuthenticatorAction action. It works and all so I'm not worried about configuring anything. It's more to do with getting error messages back from it. If I use the FormValidatorAction then I can parse the feedback in XSP using the form-validator logicsheet. Is there any similar way of parsing the feedback if I use the DatabaseAuthenticatorAction? It's all very well telling a user that a required field is null but I want to tell that same user that the username/password combination is invalid. TIA. Chris - 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]
Esql build error
Hi I´ m trying to build the actual CVS sources. After the warnings about the missings libs (php, jndi, ...) i get the following error and the build process stops: ... Compiling with Java 1.4, debug on, optimize off, deprecation off Compiling 524 source files to /home/m1k3/xml-cocoon2-newest/build/cocoon/classes /home/m1k3/xml-cocoon2-newest/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:66: org.apache.cocoon.components.language.markup.xsp.EsqlConnection should be declared abstract; it does not define setHoldability(int) in org.apache.cocoon.components.language.markup.xsp.EsqlConnection public class EsqlConnection implements Connection { ^ 1 error BUILD FAILED ### whats wrong ? thanx and greetings mike - 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: Unicode-Problems
Hi I´m not sure if you can set the encoding in the map:serialize tag. AFAIK you have to set it in the map:serializeR tag. example: map:components ... map:serializers ... map:serializer type=html... encodingISO-8859-1/encoding /map:serializer .. /map:serializers ... /map:components If his doesn´t work either, add the encoding tag to the xslt transformer tag in map:transformers as well. hope i could help. greetings mike - Original Message - From: Torsten Reiners [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 5:44 PM Subject: Unicode-Problems Hi, we are using Cocoon 2.0.2. Using the following entry in the sitemap map:match pattern=winfo/ map:generate src=/home/vorms/website/mathml/math_test.xml/ map:transform src=/home/vorms/website/mathml/page2html.xsl/ map:serialize encodingISO-8859-1/encoding /map:serialize /map:match we want transform a XML-file to HTML BUT keeping the unicodes. Currently, the serializer (to our understanding) transforms, e.g., #8721; into sum; which is something we do not want. Is there any way to tell cocoon to keep the unicode characters?? Sincerely Torsten -- __ __ _ OO\| O__ O\__/O / O /O O\ / O O | -.oOOo--oOOo.- Torsten Reiners Tel:++49-531-3913214 [EMAIL PROTECTED]Fax:++49-531-3918144 http://server3.winforms.phil.tu-bs.de/~treiners TU Braunschweig Abteilung Allgemeine Betriebswirtschaftslehre, Wirtschaftsinformatik und Informationsmanagement Abt-Jerusalem-Str.7 38106 Braunschweig, Germany Other EMails: [EMAIL PROTECTED] [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]
ESQL, Multiple Queries
Hi I´m wondering how i can do multiple selects with the esql logicsheet. thanx mike
Re: ESQL, Multiple Queries
Hi thanx it works perfectly. greetings mike - Original Message - From: Derek Hohls [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 9:54 AM Subject: Re: ESQL, Multiple Queries Mike Suggest you work through the IBM Developer Works Tutorial - Cocoon 2: Build database-driven sites (05/30/2002) it explains things nesting/grouping really clearly... http://www-105.ibm.com/developerworks/education.nsf/dw/xml-onlinecourse-byne west?OpenDocumentCount=500 Derek [EMAIL PROTECTED] 12/06/2002 09:53:30 Hi I m wondering how i can do multiple selects with the esql logicsheet. thanx mike - 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: Tomcat/cocoon encoding problem
Hi thanx for your help but i´ve already solved the problem with the help of Jan Uyttenhove. My locale settings on the linux box had to be changed too. I´ve written this points together: (hope they help if sombody get the same probs): -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- How to use german umlauts on english *nix systems: Set *nix locale to de_AT (or de_DE): localedef -c -i de_AT -f ISO-8859-1 de_AT Set LANG (system environment var) to de_AT (or de_DE) export LANG='de_AT' Before starting Tomcat set: $CATALINA_OPTS to '-Dfile.encoding=ISO8859_1' sitemap.xmap: Use encodingISO-8859-1/encoding in the according (e.g. html) map:serializer tag. XML/XSP: Use: ?xml version=1.0 encoding=ISO-8859-1? -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- greetings mike - Original Message - From: KOZLOV Roman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 9:17 AM Subject: Re: Tomcat/cocoon encoding problem Hi Michael, Did you set the proper encoding for used cocoon's components (generator, transformer and so on)? I imagine that serializer has it because you wrote that the result XML encoding is ok. What about other components? Roman Michael Mangeng wrote: That didn´t do it ;-( *searching* thanx anywaymike - Original Message - From: Jan Uyttenhove To: [EMAIL PROTECTED] Sent: Friday, June 07, 2002 5:30 PM Subject: RE: Tomcat/cocoon encoding problem Try to start the jvm (tomcat startup) with property -Dfile.encoding=ISO8859_1Maybe you should choose another encoding, I used ISO8859_1 to solve a similar problem with french characters.Hope this helps.Greetz,Janvisit us @ http://www.xume.be -Original Message- From: Michael Mangeng [mailto:[EMAIL PROTECTED]] Sent: vrijdag 7 juni 2002 16:47 To: [EMAIL PROTECTED] Subject: Tomcat/cocoon encoding problem Hi I´ve set the encoding of both the xsp and the xml serializer correctly. After i request the xml i get the right encoding - ISO-8859-1 in the ?xml ... ? tag but german umlaut´s like äöü are replaced by '?'. I´ve noticed the same problem when i use beans on my JSP Pages (without cocoon; only tomcat)(Using äöü on a jsp works - but as soon as i set the data in a bean and then request it back - i have äöü instead of the umlauts in my string). I´m using linux 2.4.17, jdk1.3.1, tomcat 4.1.2alpha and cocoon2.0.2. So... Is there a anywhere a setting for the jvm, tomcat or cocoon that the umlauts are correctly displayed ? greetingsmike - 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: Tomcat/cocoon encoding problem
That didn´t do it ;-( *searching* thanx anyway mike - Original Message - From: Jan Uyttenhove To: [EMAIL PROTECTED] Sent: Friday, June 07, 2002 5:30 PM Subject: RE: Tomcat/cocoon encoding problem Try to start the jvm (tomcat startup) with property -Dfile.encoding=ISO8859_1 Maybe you should choose another encoding, I used ISO8859_1 to solve a similar problem with french characters. Hope this helps. Greetz, Jan visit us @ http://www.xume.be -Original Message-From: Michael Mangeng [mailto:[EMAIL PROTECTED]]Sent: vrijdag 7 juni 2002 16:47To: [EMAIL PROTECTED]Subject: Tomcat/cocoon encoding problem Hi I´ve set the encoding of both the xsp and the xml serializer correctly. Afteri requestthe xml i get the right encoding - ISO-8859-1 in the ?xml ... ? tag but german umlaut´s like äöü are replacedby '?'. I´ve noticed the same problem when i use beans on my JSP Pages (without cocoon; only tomcat) (Using äöü on a jsp works - but as soon as i set the data in a bean and then request it back - i have äöü instead of the umlauts in my string). I´m using linux 2.4.17, jdk1.3.1, tomcat 4.1.2alpha and cocoon2.0.2. So... Is there a anywhere a setting for the jvm, tomcat or cocoonthatthe umlauts arecorrectly displayed ? greetings mike
Tomcat/cocoon encoding problem
Hi I´ve set the encoding of both the xsp and the xml serializer correctly. Afteri requestthe xml i get the right encoding - ISO-8859-1 in the ?xml ... ? tag but german umlaut´s like äöü are replacedby '?'. I´ve noticed the same problem when i use beans on my JSP Pages (without cocoon; only tomcat) (Using äöü on a jsp works - but as soon as i set the data in a bean and then request it back - i have äöü instead of the umlauts in my string). I´m using linux 2.4.17, jdk1.3.1, tomcat 4.1.2alpha and cocoon2.0.2. So... Is there a anywhere a setting for the jvm, tomcat or cocoonthatthe umlauts arecorrectly displayed ? greetings mike
Re: mm.mysql-2.0.14 + JRE1.4.0 + Cocoon2.0.2 problem resolution?
Hi Yes... i would like to know that too. After several frustrating days i´ve discovered that i simply have to use jdk1.3.1... But thats no solution... only a 'workaround'... Such things would be _VERY_ important to be noted somewhere in the docus and not only, very good hidden, somewhere in the mailing list archives.. greetings mike - Original Message - From: Jonathan Layes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 03, 2002 4:23 PM Subject: mm.mysql-2.0.14 + JRE1.4.0 + Cocoon2.0.2 problem resolution? Hi all, I have found a few snippits in the mailing list archives that indicate that mm.mysql-2.0.14 + JRE1.4.0 + Cocoon2.0.2 is a bad combination. Has anyone figured out why they are not working together? Is there a known solution? FWIW, I'm getting the ubiquitous message: org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available which isn't very informative, unfortunately. Thanks, Jonathan - 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]
Database pooling problems
Hi My problem with cocoon is that i cannot get a pooled connection. (tomcat 4.1.2-le, jdk1.4.0, cocoon 2.0.2) Instead i get the followind error message: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available I can see in the mysql log that cocoon creates the connection. But it does no querys. each time i access the dbauthaction it does a new connect, a SHOW VARIABLES query and a QUIT. web.xml: (the mm mysql driver lib is in ...webapproot/WEB-INF/lib) init-param param-nameload-class/param-name param-valueorg.gjt.mm.mysql.Driver/param-value /init-param cocoon.xconf: jdbc name=test pool-controller min=2 max=10/ dburljdbc:mysql://localhost:3306/test/dburl usertest/user password/ /jdbc sitemap: ... map:actions map:action name=dbAuth src=org.apache.cocoon.acting.DatabaseAuthenticatorAction/ ... map:match pattern=login map:act type=dbAuth map:parameter name=descriptor value=context://pubs/tms/xml/descriptors/auth.xml/ map:generate type=serverpages src=xsp/index.xsp/ map:transform src=xsl/index.xsl/ map:serialize/ /map:act map:read src=html/login.html mime-type=text/html/ /map:match auth.xml: root connectiontest/connection table name=users select dbcol=user to-session=u_user type=string request-param=user/ select dbcol=pass to-session=u_pass type=string request-param=pass/ /table /root i´va no clue whats wrong because all except database related things wirk (even the formvalaction is working). greetings mike - 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]
Database access problem - Linux
HiI´ve encountered a funny Problem. I´ve started developing a little webappwhich uses esql to grab data from the db, the DatabaseAuthenticatorAction tologin and a self written action to auth the user at each request whichsimply checks for a attribute in the session. I´ve started creating thiswebapp under WinXP, J1.4.0, Tomcat 4.0.4-b2 and Cocoon2.0.2. Now i´ve packedall into a .war and deployed this on a linux2.4.17 box with Tomcat4.0.4-b3,J1.4.0 and Cocoon2.0.2. (Database is a mysqld @ linux. The WinXP connects tothe linux mysqld, the linux box to itself.)With WinXP the Authentification works fine. After a correct login the usercan see the index page, menues, etc.With Linux i cannot do the Login. All is exactly the same. (TheFormValidationActione all works, The dbAuth not.).Errorpage shows:org.apache.cocoon.ProcessingException: Exception inServerPagesGenerator.generate(): java.lang.RuntimeException: Could not getthe datasourceorg.apache.avalon.excalibur.datasource.NoValidConnectionException: No validJdbcConnection class available... but there IS is a connection...Wathing the mysql-log shows each time i make a login-request:###020526 23:19:16 2 Connect tms@localhost on 2 Init DB tms 2 Query SHOW VARIABLES###... with a view Quits... (pooling) But there is no query.Thats the DatabaseAuthenticatorAction...Then i´ve started to make some test pages.I´ve discovered that as soon as i use the esql logicsheet on a page itgenerates the "No valid JdbcConnection class available" error. But i do not know why because tomcat definitly creats theconnections.In web.xml i´m using: init-param param-nameload-class/param-name param-valueorg.gjt.mm.mysql.Driver/param-value /init-paramcocoon.xconf: jdbc name="tms" pool-controller min="2" max="10"/ dburljdbc:mysql://hermes.vis.at:3306/tms/dburl usertms/user password***/password /jdbcOn my testpages i´m using a simply query to show a value. There cannot be atypo because it works with WinXP. Any ideas?greetingsmike
Database Access Problems with Linux
Hi I´ve encountered a funny Problem. I´ve started developing a little webapp which uses esql to grab data from the db, the DatabaseAuthenticatorAction to login and a self written action to auth the user at each request which simply checks for a attribute in the session. I´ve started creating this webapp under WinXP, J1.4.0, Tomcat 4.0.4-b2 and Cocoon2.0.2. Now i´ve packed all into a .war and deployed this on a linux2.4.17 box with Tomcat4.0.4-b3, J1.4.0 and Cocoon2.0.2. (Database is a mysqld @ linux. The WinXP connects to the linux mysqld, the linux box to itself.) With WinXP the Authentification works fine. After a correct login the user can see the index page, menues, etc. With Linux i cannot do the Login. All is exactly the same. (The FormValidationActione all works, The dbAuth not.). Errorpage shows: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available ... but there IS is a connection... Wathing the mysql-log shows each time i make a login-request: ### 020526 23:19:16 2 Connect tms@localhost on 2 Init DB tms 2 Query SHOW VARIABLES ### ... with a view Quits... (pooling) But there is no query. Thats the DatabaseAuthenticatorAction... Then i´ve started to make some test pages. I´ve discovered that as soon as i use the esql logicsheet on a page it generates the No valid JdbcConnection class available error. But i do not know why because tomcat definitly creats the connections. In web.xml i´m using: init-param param-nameload-class/param-name param-valueorg.gjt.mm.mysql.Driver/param-value /init-param cocoon.xconf: jdbc name=tms pool-controller min=2 max=10/ dburljdbc:mysql://hermes.vis.at:3306/tms/dburl usertms/user password***/password /jdbc On my testpages i´m using a simply query to show a value. There cannot be a typo because it works with WinXP. Any ideas? greetings mike - 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]
Databases Action
Hi I was wondering how i can access a pooled db connection within a action... in the turorial at http://xml.apache.org/cocoon/developing/datasources.htmlis mentioned in the action example: import org.apache.cocoon.Roles;- the problem is that this class doesn´t exist in cocoon-2.0.2.jar is there another way to access the db or from where can i get this org.apache.cocoon.Roles class ? greetings mike
Re: Actions Programming
Hi here more information... my hello_world.xsp: --- ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; paraHello xsp-request:get-parameter name=hello/./para /xsp:page --- = There is no typo and the XSP Namespace is declared... sitemap: map:components ... map:actions map:action name=hw src=vis.HelloWorldAction/ /map:actions ... /map:components map:pipelines map:pipeline map:match pattern=hw map:act type=hw map:generate type=serverpages src=xsp/{world}_world.xsp/ /map:act map:serialize/ /map:match ... -- HelloWorldAction.java: --- ... package declaration, bunch of imports, class start, method start Map sitemapParams = new HashMap(); sitemapParams.put(world, hello); Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT); request.setAttribute(hello, world); return sitemapParams; --- i hop this will help.. greetings mike - 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]
Actions Programming
Hi I´ve encountered a little/funny problem when trying to recreate the simple hello world action. I´ve used the sample code (without the org.xml.sax.EntityResolver import because i think i do not need it here). Cocoon realizes that it needs to replace {world} with 'hello' in the stiemap as set in the siteParams hashmap in the class. But when i request the file via a web browser, i can only see quote Hello . /quote There is no typo in the class where i do a request.setAttribute("hello", "world") to request.. which is objectModel.get(Constants.REQUEST_OBJECT); The strange thing here is that the class for itself is loaded successfully (without that, cocoon would not know that it has to replace {world} with hello in the sitemap... Any ideas ? greetings mike austria