Re: Dynamic query in xsp:logic and esql:query
Yves - Why not build your select statement as a string variable inside an xsp:logic block after the root user tag, and then reference it thusly: esql:query xsp:exprmyQuery/xsp:expr /esql:query I do this all the time and it works perfectly. Regards, Lajos -- galatea.com Cocoon training, consulting support Book: Cocoon Developer's Handbook (SAMS) Yves Vindevogel wrote: Hi, I've got a form with one textbox (name) and a combobox (type) When the user presses submit, a searchpage is called where I execute this query (on postgres db) esql:query select * from vwProducts where upper(name) like upper('%xsp-request:get-parameter name=name/%') and typeoid = xsp-request:get-parameter name=type/ /esql:query This works Unfortunately, the combobox must be filled out. That's not exactly what I want because the user may let this one empty (selecting all with a certain name without regard to the type) In that case, my query should be (empty combobox) select * from vwProducts where upper(name) like upper('%xsp-request:get-parameter name=name/%') Something like this works too: esql:query xsp:logic select * from vwProducts where typeoid = + xsp-request:get-parameter name=type/ /xsp:logic /esql:query If I try this, I get errors : (Starts when I use an if-clause) esql:query xsp:logic if (xsp-request:get-parameter name=type/.equals(0)) { select * from vwProducts } else { select * from vwProducts where name like ('%product%') } ; xsp:logic /esql:query I've tried several methods, I get: Illegal start of expression on line . Method ValueOf() missing Anyone can help me out ?? - 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: Request: XSP for quering Google Web API
Attached is one from my and Jeremy's book. Lajos Lenya L. Khachaturov wrote: Hello, I've discovered that there exists an XSP for quering Google Web API. It was posted to this list by Ugo Cei at 04.19.2002. Could someone please send it to me? Or maybe there exist more advanced variants? -- galatea.com Cocoon training, consulting support Book: Cocoon Developer's Handbook ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:soap=http://apache.org/xsp/soap/3.0; results xsp:logic String query = ; try { query = request.getParameter(query); } catch (Exception e) { } /xsp:logic soap:call url=http://api.google.com:80/search/beta2; xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; xmlns:xsd=http://www.w3.org/1999/XMLSchema; ns1:doGoogleSearch xmlns:ns1=urn:GoogleSearch key xsi:type=xsd:stringYOUR_KEY_GOES_HERE/key q xsi:type=xsd:stringxsp:exprquery/xsp:expr/q start xsi:type=xsd:int0/start maxResults xsi:type=xsd:int10/maxResults filter xsi:type=xsd:booleantrue/filter restrict xsi:type=xsd:string/restrict safeSearch xsi:type=xsd:booleanfalse/safeSearch lr xsi:type=xsd:stringlang_en|lang_de/lr ie xsi:type=xsd:stringlatin1/ie oe xsi:type=xsd:stringlatin1/oe /ns1:doGoogleSearch /soap:call /results /xsp:page - 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: Dynamic query in xsp:logic and esql:query (partly solved)
I can't understand what you are doing w/out seeing the whole XSP. Typically I do this: xsp:page language=Java ... / html !-- This is your root user tag -- xsp:logic String myQuery = select * from vwProducts; !-- Or whatever logic you need to build the query string -- /xsp:logic !-- other tags, as appropriate -- esql:connection esql:poolpierrefabre/esql:pool esql:execute-query esql:queryxsp:exprmyQuery/xsp:expr/esql:query !-- rest of esql tags go here -- /esql:execute-query /esql:connection /html Lajos Yves Vindevogel wrote: Hi, I had tried this: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true html esql:connection esql:poolpierrefabre/esql:pool esql:execute-query xsp:logic String myQuery = select * from vwProducts ; /xsp:logic esql:query xsp:exprmyQuery/xsp:expr /esql:query And this didn't work !! I says: variable myQuery not found in class . When I do this, it works : Guess the first part of the problem already got me on the wrong way xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true xsp:logic String myQuery = select * from vwProducts ; /xsp:logic html esql:connection esql:poolpierrefabre/esql:pool esql:execute-query esql:query xsp:exprmyQuery/xsp:expr /esql:query NOW: When I do this: xsp:logic String myQuery; myQuery = select * from vwProducts ; /xsp:logic It still gives me class myQuery not found in class . It only works when I immediatly assign it (String s = jkml;) I can't do anything on the string afterwards ... How is that possible ?? Yves - Why not build your select statement as a string variable inside an xsp:logic block after the root user tag, and then reference it thusly: esql:query xsp:exprmyQuery/xsp:expr /esql:query I do this all the time and it works perfectly. Regards, Lajos -- galatea.com Cocoon training, consulting support - 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: Orion 1.5.3 and cocoon2.1 - help complete deployment
Don't know if you've checked this out already, but Steve Punte has Cocoon-Orion integration instructions at http://www.candlelightsoftware.com/orion-cocoon.html. Regards, Lajos e nio wrote: I tried deploying cocoon2.1 which I have recently downloaded and compiled, it deploys fine on Tomcat 4.1.12 but not on Orion 1.5.3. It is only partially working on Orion 1.5.3, partially since I can use http://localhost:/ which becomes http://localhost:/documents/index.html which is the main page and I can click on all the menu items or the links within the page without much of a problem. However if I typed in http://localhost:/samples/welcome which should go to the sample pages, I get an error instead: org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: Resource not found file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap Steps I have done are: 1. remove from /u01/OJSP/j3ee/orion/ xalan.jar,xerces.jar, and jaxp.jar and replaced those with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and xml-apis.jar accordingly. 2. put cocoon.war at /u01/OJSP/j3ee/orion/applications/ 3. in orion/server.xml added application name=cocoon path=../applications/cocoon / 4. in orion/application.xml added web-module id=default path=../applications/ / and library path=../applications/cocoon/cocoon/WEB-INF/lib/ library path=../applications/cocoon/cocoon/WEB-INF/classes/ 5. in orion/default-web-site.xml added web-app application=cocoon name=cocoon root=/ / 6. in orion/lib/ I added cocoon.jar 7. I think I started orion, for cocoon.war to expand then stop, and restarted. Then I have to modify the cocoon dir to look like this orion/applications/cocoon/cocoon/- added one dir above, I dont know why I must, but I did. orion/applications/cocoon/cocoon/META-INF/application.xml -- this is not same application.xml as in orion/config/, the file content is like so: ?xml version=1.0? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN http://java.sun.com/j2ee/dtds/application_1_2.dtd; application display-nameCocoon servlet/display-name descriptionCocoon/description module web web-uricocoon/web-uri context-root//context-root /web /module /application 8. on orion/config/global-web-application.xml I commented out the servlet servlet-namexsl... block 9. downloaded the batik-all-1.5b.2.jar per candlelightsotware.com to replaced the current one (I did verify current one can't be unjarred) 10. restarted orion and browsed http://localhost:/ result is posted above. Am I missing a step, or botched a step here? please help complete the steps. Why would the documents work but the samples does not? I surmised that it does not want to go to the submount, is the configs on orion wrong? This same cocoon.war works on Tomcat 4.1.12 without the application.xml modification I have to do for orion. Fyi, I never was able to get cocoon+orion before after so many tries, this time it is partial success. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- galatea.com Cocoon training, consulting support - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Confused About Realms
Jeff - You'll need to change the DTD for Cocoon's web.xml to version 2.3, thusly: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; Cheers, Lajos -- galatea.com Cocoon training, consulting support Book: Cocoon Developer's Handbook (SAMS) Jeff Sexton wrote: I seem to solve my own problems frequently after posting to this list... I moved the Sybase jar file from $CATALINA_HOME/lib to $CATALINA_HOME/common/lib and it worked. It seems that Cocoon's connection pools can function with the jar in the root lib, but realms can not. Moving the jar to common/lib allows both realms and the connection pool to work. However now I have a new question. I really want to password protect cocoon URLs. I added a security-constraint to webapps/cocoon/web.xml, but this breaks cocoon. Anyone know the correct way to use realms for cocoon? On Fri, 3 Jan 2003, Jeff Sexton wrote: Today I wanted to try a Tomcat security setup. I created and populated tables in a (Sybase) database and edited server.xml per examples in the Goodwill Apress book. I get an exception on startup, Tomcat fails to initialize. I didn't expect this because I am also running Cocoon with a connection pool, so I know that it can find the Sybase JDBC jar. I also know that the host, socket and login are correct. I hope someone can give me a tip on the exception. Is the jar not found until later in the startup process? Here is the server.xml entry: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.sybase.jdbc2.jdbc.SybDriver connectionURL=jdbc:sybase:Tds:ods6:4100?user=username;password=mypassword userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / I also added entries to web.xml for my apps, but it doesn't seem to be getting there? Here is the exception from catalina.out: Starting service Tomcat-Standalone Apache Tomcat/4.0.4 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver LifecycleException: Exception opening database connection: java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie trying samples from: Cocoon: Building XML Apps...
Hi Ray - I hope your other book is mine Jeremy's - Cocoon Developer's Handbook ;) The easiest configuration I've found is Tomcat 4.0.5 or greater, with JDK 1.3.x. I have been able to drop Cocoon 2.0.3/2.0.4 into Tomcat 4.0.5/4.0.6/4.1.12 without any problems. Just note that if you build 2.0.4 yourself, be sure in include the scratchpad libs. Regards, Lajos Ray Tayek wrote: hi, newbie here trying to run the samples from the above book on linux. dropped the war in to tomcat 4.0.1. with jdk1.4.1 and things went downhill fast. finaly gave up and installed 1.3.1_03 and the tomcat off the book's cd. (3.3.? final or something like that). (that's what the book says to do). has anyone made the sample work? if so, what versions of jdk and tomcat were you using? what versions of tomcat, jdk and jdkee would you recommend in general? (i have another cocoon book coming or i can roll my own samples or use the one that come with the download?. what is the easiest path to get started? thanks --- ray tayek http://home.attbi.com/~rtayek/ actively seeking mentoring or telecommuting work vice chair orange county java users group http://www.ocjug.org/ mailto:[EMAIL PROTECTED] hate spam? http://samspade.org/ssw/ - 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] -- galatea.com Cocoon training, consulting support - 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 install Cocoon with Apache?
Hi Soren - You can download a bundle called Az from http://www.galatea.com/az. It currently uses 2.0.3, but I'll be upgrading to 2.0.4 this weekend. It is available on Linux and Windows. Cheers, Lajos Sorin Marti wrote: Hi All, I'd like to set up Cocoon with apache. I did it with Tomcat and it was not a problem... but on the cocoon home-page there's nowhere described how to do it with apache... any suggestions? I am working - on Linux - cocoon 2.0.4 - apache 2.0.43 Thanks Sorin Marti - 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] -- galatea.com Cocoon training, consulting support - 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: Security and authentication
If you really didn't want to do it via web.xml, which I would recommend, you probably could have a pipeline for the resource that did a map:redirect and took your user to a fully-qualified secure URL. Lajos Miles Elam wrote: Is there a way to specify that a Cocoon resource only be accessed via a secure socket? Another way, most of the site would be Cocoon on an unencrypted channel, but you could specify that a particular URL would redirect to an https handler. This would be an equivalent to the servlet spec that allows an entry in web.xml to say that the resource is confidential. Is this possible now? --- Also, do the portal/authentication frameworks use the same mechanisms as the enclosing servlet container or do they use their own, Cocoon-specific mechanisms where authentication to one has no bearing on authentication to the other? - Miles - 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] -- galatea.com Cocoon training, consulting support - 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: starting cocoon with windows 2000
You should use 2.0.3 instead - it is the easiest version to install so far. Personally, I'd go with JDK 1.3.1, however, 'cause you'll have to recompile some jars for JDK 1.4. Lajos Ferran Urgell wrote: Hello! I'm new in the cocoon, and I'm using windows 2000, I would to install cocoon. which is the best configuration ? I would to try with JDK 4.0, Tomcat 4.0.6 and Cocoon 2.0.1. Is that ok for an easy installation ? Thanks Do you Yahoo!? Yahoo! Mail Plus http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com - Powerful. Affordable. Sign up now http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com -- galatea.com Cocoon training, consulting support - 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 Cobundle ? Please!
You can find my own integrated back of Apache, Tomcat and Cocoon at http://www.galatea.com/az. When 2.1 hits production, I'll have that version available as well. Regards, Lajos Christian Kissner wrote: Hi, this is a plea, from an experienced developer, to bundle working versions of cocoon with servlet engines. Just Tomcat would be enough. This is my story: 2 years ago I came across cocoon, liked the concept, and developed a cocoon-1.8 based application - see www.efonds24.de Every 3-5 months since then I start thinking along the similar lines and try to install cocoon 2.x on Jboss, Tomcat or whatever and notice IT DOES NOT WORK. I go back to the web site, read the parts about installing and replacing the XML parser, try that and find that IT STILL DOES NOT WORK I then guess, the tomcat/jboss/whatever codebase may have moved on or maybe the cocoon codebase moved on or my JDK ist out of date and maybe the documentation on the web site has not yet caught on. So I go back, read the mailing lists and fetch the latest releases, compile, fix and reinstall and find that ***NONE OF IT WORKS *** Now I may be a dumb idiot or simply out of luck, but I always think: HOW SAD... cocoon is great technology, but it would have much wider distribution if they could ease deployment and +--+ |JUST BUNDLE WORKING VERSIONS TOGETHER.| +--+ thanks for listening. - 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] -- galatea.com Cocoon training, consulting support - 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 Cobundle ? Please!
You mean a patched cocoon-2.0.3.jar? Sure, I can do that. The only actual change was to org.apache.cocoon.components.ExtendedComponentSelector.java in order to enable sub-sitemap inheritance of component definitions when using the interpreted sitemap. Lajos Murray Cumming wrote: On Fri, 2002-11-22 at 21:26, Lajos Moczar wrote: You can find my own integrated back of Apache, Tomcat and Cocoon at http://www.galatea.com/az. You are distributing a patched cocoon. It would be nice if you put the patch online too. -- galatea.com Cocoon training, consulting support - 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: Does cocoon support name based virtual hosting?
Sure, O Great One. Use the WildcardHostMatcher. Lajos GreatOne wrote: Does cocoon support name based virtual hosting? - 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] -- galatea.com Cocoon training, consulting support - 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: Latest Cocoon 2.1-dev scratchpad appears to depend on j2sdk 1.4.x
I just changed the relevant line to: fos = new FileOutputStream(file.getCanonicalPath(), append); Regards, Lajos Mark Eggers wrote: While trying to compile the lastest CVS version of cocoon, I ran into an issue with the scratchpad libraries: In part, from the file DelayedFileOutputStream.java: public void setFileOutputStream(File file, boolean append) throws FileNotFoundException { if (fos == null) { fos = new FileOutputStream(file, append); The form of FileOutputStream constructor used is new in 1.4. This will no longer compile in 1.3.x. /mde/ just my two cents . . . . __ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- galatea.com Cocoon training, consulting support - 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: Fatal error - how to test database connection?
Derek - Did you declare the MySQL jar in web.xml thusly? init-param param-nameload-class/param-name param-value org.gjt.mm.mysql.Driver /param-value /init-param And put the jar where Cocoon will find it? Regards, Lajos Derek Hohls wrote: I get the following fatal error when trying to load a sub-sitemap: FATAL_E (2002-10-29) 16:32.18:484 [cocoon ] (Unknown-URI) Unknown-thread/JdbcConnectionPool: Excalibur could not create any connections. Examine your settings to make sure they are correct. Make sure you can connect with the same settings on your machine. As far as I can tell I have set up the MySQL database permissions and cocoon.xconf file properly (i.e. in the same way as my other projects...): jdbc name=sbwq pool-controller min=5 max=50/ auto-committrue/auto-commit dburljdbc:mysql://localhost:3306/sbwq/dburl userusername/user passwordpassword/password /jdbc Does any one have a simple test file that I can use to connect with the same settings outside of Cocoon so I can try and pin down the source of the error? Thanks Derek -- galatea.com Cocoon training, consulting support - 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- vs. tomcat-authentication ???
Hussayn - It really depends on what you are more familiar with. I generally prefer Tomcat's realms, both because they take less programming and also because I can easily write a custom realm when I need to (and I have had to before). Although you can use a Realm to protect an entire Cocoon webapp, you can also use it to protect specific URI patterns as well. For one client, I used a custom realm to protect one particular subdirectory. On the other hand, Cocoon authentication is great for protected specific pipelines under specific situations. The fine-grained control you have with Cocoon will fit some projects better. Regards, Lajos SAXESS - Hussayn Dabbous wrote: Hy, while browsing through the cocoon docs, i realised, that cocoon offers an authentication mechanism on it's own. Since i'm developing webapplications using tomcat i naturally use the authentication Realms provided by tomcat. But when i want to use cocoon on top of tomcat, what shall i do: Either drop the cocoon authentication in favour of the tomcat auth. or vice versa ? Where can i find hints about advantages/disadvantages concerning the two approaches? any pointers or explanations are welcome ;-) regards, hussayn - 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] -- galatea.com Cocoon training, consulting support - 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 2.0.3 installation with Tomcat 4.0.1
Chris - Tomcat will automatically unpack the war file - you don't need to do so yourself. Also, I recommend you use a new version of Tomcat - like 4.0.5 or 4.1.12. These are preferred over 4.0.1. Lajos Chris Bovasso wrote: I have an install of Tomcat 4.0.1 and I downloaded the .gz file for cocoon 2.0.3 and I followed the (brief) instructions in the INSTALL file. I copied the cocoon.war file into my opt/jakarta/webapps/ directory and even copied it into opt/jakarta/webapps/cocoon/ and still I get nothing. What do I need to do with this cocoon.war file after I copy it into the webapps directory of tomcat? Chris Chris Bovasso www.edcomm.com 888 4 EDCOMM - 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] -- galatea.com Cocoon training, consulting support - 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: Sample Cocoon App
Check out Jeremy's and my book when it comes out in December - that has several fairly complex apps for your enjoyment - authentication, SOAP, internationalization, J2EE, portals, etc. Link is at http://www.amazon.com/exec/obidos/tg/detail/-/0672322579/002-9257316-7139204. Sadly, my name is not yet on the Amazon listing :-( Lajos Dave Bettin wrote: I am looking for a complex sample cocoon app. The app should take advantage of most cocoon features. Is anyone aware of such an app? Thanks, Dave __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- galatea.com Cocoon training, consulting support - 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: So close .. I think?
What about if you try http://domain/? You might need a pipeline in the main sitemap to catch a URL that ends in domain without the trailing slash: map:match pattern=domain map:redirect-to uri=domain// /map:match map:match pattern=domain/** map:mount uri-prefix=domain src=domain/ check-reload=yes/ /map:match Cheers, Lajos Marc G. Fournier wrote: Okay, as suggested, I replaced mod_webapp with mod_jk2, and if I go to http://domain now, it comes up with an error to the effect of: Cocoon 2 - Resource not found In my httpd.conf file, I have: # Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties JkLogFile /var/www/mod_jk.log JkLogLevel info where workers.properties just contains: === workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10 workers.java_home=/usr/local/jdk1.3.1 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Now, in my VirtualHost directive for the domain, I have: JkMount / ajp13 which is obviously wrong ... but what should it be? Basically, what I want, is for: http://domain to connect to http://domain:8009/cocoon/domain and use the sub-sitemap.xmap file properly ... but this is all new to me :( Again, if there is a good how to on this that I should be reading, please point me to it ... Thanks ... - 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] -- galatea.com Cocoon training, consulting support - 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: CVS of C2.0.4-dev
Olivier - Use cocoon_2_0_3_branch. Lajos ROSSEL Olivier wrote: I need C2.0.4-dev. I am currently getting the CVS of HEAD. I wonder if HEAD is either C2.0.4-dev? or C2.1-dev? If HEAD is not C2.0.4-dev, what are the instructions to get it? Note: may be this point should be clearly written in the docs or in the wiki. - 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] -- galatea.com Cocoon training, consulting support - 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: sub-sitemaps with mod_webapp ...
What OS are they running on? Unfortunately, mod_webapp is, well, sort of crappy. To be more politically correct, it is a work in progress, and has been known to cause problems like you describe (especially with Netscape on Windows). Why not use mod_jk? You can't beat the tried and true. However, if you must work with mod_webapp, I suggest making cocoon the default webapp in Tomcat (path= in the context tag). That way, each domain appears to be its own webapp under Tomcat. Then you point mod_webapp to each specific domain. That is what I do with mod_jk on my own site. Regards, Lajos -- galatea.com Cocoon training, consulting support Marc G. Fournier wrote: I have a client that we've got setup using Jakarta-Tomcat 4.x and Cocoon 2.x ... we have mod_webapp setup so that when you go to http://domain, it connects to the warp Connector through to /cocoon/domain, in which the client has a sitemap.xmap file ... If we go to http://domain:8083/cocoon/domain, everything loads up fine ... if we go to http://domain, we just get a directory listing that shows the sitemap.xmap file and the subdirectories ... So, from what I can tell, tomcat is setup right, its the mod_webapp stuff that isn't working right ... I'm not finding anything in the log files either, that are indicating a problem? I've searched through google, and the FAQs, and what HowTos I could find, but nothing seems to get into this ;( Is there one that I've missed? Is there something that I'm overlooking? Pointers to docs I can read (and bookmark) are most appreciated ... thanks ... - 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: local site setup
Hi Peter - Not a dumb question at all. In fact, until recently, you had to add your own build targets to build a clean example-less distribution. But now you can do: build.bat clean-webapp or build.sh clean-webapp. This gives you a clean war file, without any samples, that you can copy to your servlet container. Once you have a running app, then I suggest that when you rebuild Cocoon from the CVS sources, you copy the libs only from the build/cocoon/webapp/WEB-INF/lib directory. That way, you get the latest code but you don't have to mess up your sitemap.xmap and cocoon.xconf. That is, unless there are changes to those files in CVS. It is also a good idea to do your own work in a subdirectory of the main cocoon installation and have your own sub-sitemap. That way, all your stuff won't get stomped on if you happen to update the main sitemap. Good luck, Lajos Peter Koellner wrote: hi! i'm sure this must be some dumb beginner's question, since nobody seems to have asked it until now. ok. now i have got this bright new xml-cocoon2 from cvs, built it, copied the war file to tomcat3.3's webapps directory, got the whole site running. so far, so good. what i don't quite understand at the moment is how am i supposed to remove the whole demo site and add my own content without intermingling with the cocoon cvs tree? i mean, do i have to work inside the cocoon directory, which obviously was generated from the war file? or even inside the cocoon source repository? can't be, or can it? -- galatea.com Cocoon training, consulting support - 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: SPAM: Cocoon 2 Developers Wanted...
Whoops - sorry about the spam. I guess you have to do that at least once in your career ;) Lajos - 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 2 Developers Wanted...
Hi Ernst - I am not based in the area you are looking for, but I have extensive experience with Cocoon and am just wrapping up a book on it. My CV is attached. I do outsource as well as remote work. Please let me know if I can be of assistance. Regards, Lajos Moczar -- galatea.com Cocoon training, consulting support [EMAIL PROTECTED] wrote: Hi all, sorry for spamming, but we are looking for Cocoon 2 Developers to help us develop a challenging internet/intranet webapplication. We will need between 2-4 developers for a period of 3 - 6 Months. Since we already have a team working on that application, it would be great if you are based in Switzerland, Austria or Germany. Cheers and sorry for the spam Ernst === Ernst N usterer tel: +41 1 455 70 00 S w i s s r i s k fax: +41 1 455 70 01 Räffelstrasse 32mail: [EMAIL PROTECTED] 8045 Zürich *** * Visit us at European Banking Technology Fair (EBTF), Frankfurt * * Oct. 29 - 31, 2002 - Hall 5 * *** - 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] resume082802.doc Description: Binary data - 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 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?
Which is a matter of editing src/java/org/apache/cocoon/components/ExtendedComponentSelector.java, adding the following method at the end of the file and rebuilding Cocoon. public boolean hasComponent(Object hint) { boolean exists = super.hasComponent( hint ); if ( !exists this.parentSelector != null ) { exists = this.parentSelector.hasComponent( hint ); } return exists; } Lajos Vadim Gritsenko wrote: Christopher Watson wrote: Hello I'm having problems with a sub-sitemap I'm on 2.0.3 release. It works on tomcat 4.0.1 and 4.0.4 but doesn't with 4.1.10 or 4.1.12 The example subsitemap http://10.1.1.2:8080/cocoon203/sub/ shows the same problem. It's a problem of sitemap 'inheritance' as far as I can tell. The error I get from the example URL above is as follows .. Description:org.apache.avalon.framework.configuration.ConfigurationException : Type 'wildcard' is not defined for 'match' at file:/F:/jakarta-tomcat/webapps/cocoon203/sub/sitemap.xmap:21:26 True, the wildcard matcher component is not declared in the subsitemap, but used to 'inherit' it from the 'root' sitemap at file:/F:/jakarta-tomcat/webapps/cocoon203/sitemap.xmap in the above example. If I declare the lost wildcard matcher component in the subsitemap then it works, or at least, I get the next error caused by the failed 'inheritance' So I guess I have a workaround in declaring everything in the subsitemap, but this kind of defeats the object !? I've just done a clean install on tomcat 4.0.1 (works) and 4.1.10 (doesn't) to check my sanity on this! It's weird that the version of Tomcat should create this different behaviour. Does anyone have any idea what's going on? Seems you have switched to interpreted sitemap which (IIRC) in 2.0.3 release had some bugs. These were fixed later on, in 2.0.4-dev. Vadim Christopher - 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] -- galatea.com Cocoon training, consulting support - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it a good idea to avoid the use of xsp ?
Hi Gernot - Whether one method is a better or worse idea than another is largely dependent on how you implement it. Yes, XSPs do somewhat violate Separation of Concerns. And yes, you can compare XSPs to JSPs in terms of pitfalls. The fact is, that there are some things you can only do with XSPs. My own personal preference is to first look at alternatives to XSPs (like using SQLTransformer instead of XSP + ESQL logicsheet). Then, if I do use an XSP, I try to use logicsheets wherever possible. If I have xsp:logic blocks, I keep them TO A MINIMUM. If have more than say 2 such blocks, I typically make my own logicsheet. The extra time it takes to do this is well worth the savings in administration later on. Bottom line: there is no right or wrong way in Cocoon. Pick you approach, especially if you are comfortable with it. Just develop your own best practices to help you code cleanly and in a way that can easily be maintained later on. Regards, Lajos -- galatea.com Cocoon training, consulting support Gernot Koller wrote: Hi! First, thanks for your very quick replies to my last question! After quite some time discussing and evaluating we made a decision in favor of cocoon as presentation framework. One major argument for cocoon and against struts was that in jsp a strict seperation of logic (Java code) and presentation is not always encouraged. There was also fear that the same issues might apply to xsp and therefore the decision was made to use cocoon but to avoid the use of xsp. I'm very new to cocoon and by now only have a very vague idea about xsp and issues that might arise using xsp. So what do you think ? Is it a bad idea to use cocoon but not use xsp ? Is it generally possible to compare jsp and xsp in that way? Or are these fears inappropiate? thanks, Gernot -- DI Gernot Koller mailto:[EMAIL PROTECTED] phone:+43-676-340 55 52 Do you Yahoo!? Yahoo! News http://news.yahoo.com/ - Today's headlines - 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: JSP Server Page
Again, that's because you are using 2.0.2. JSPGenerator JSPReader are BROKEN in 2.0.2. Upgrade to 2.0.3 or search the mail archives for the patches I posted for these files in 2.0.2 Lajos Sushil Bhattarai wrote: Hi Like you suggested I put jasper-compiler.jar in WEB-INF/lib. The source already starts with / in the sitemap. Still I'm not able to run the sample link properly. The JSP Reader sample (welcome.htm) returns a blank page without any error and the JSP Generator sample (hello.jsp) throws out error java.lang.IllegalStateException at org.apache.catalina.connector.HttpResponseFacade.sendError(HttpResponseFacade.java:159) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1003) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:484) Any suggestions ??? Sushil From: Piroumian Konstantin Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' Subject: RE: JSP Server Page Date: Tue, 10 Sep 2002 11:21:36 +0400 You need jasper-compiler.jar (jasper.jar won't help). And you should use paths starting with '/' as source for the JSPGenerator and JSPReader, e.g.: -- Konstantin Piroumian -Original Message- From: Sushil Bhattarai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 12:24 AM To: [EMAIL PROTECTED] Subject: JSP Server Page Hi I have been unable to run the JSP demo that comes with Cocoon2.0.2. I saw in the discussion list that jasper.jar needs to be in WEB-INF/lib but that's not helping either. I'm running Cocoon on Catalina (Tomcat 4.0.1). Sushil _ Join the world's largest e-mail service with MSN Hotmail. Click Here - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: Chat with friends online, try MSN Messenger: Click Here http://g.msn.com/1HM1ENUS/c144??PS=47575 - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: -- galatea.com Cocoon training, consulting support
How do SOAP services work in 2.1?
Quick question - I've tested out the hello.service example (in the samples/hello-world subproject from 2.1) from my SOAP client, and received back the expected XML content in the SOAP response. Then I created my own 'service', by simply having my own pipeline spit out XML. My question is: how does Cocoon know to encapsulate the response in SOAP? I've searched the source code and can't see where the logic is. Any clues appreciated. Regards, Lajos -- galatea.com Cocoon training, consulting support - 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: JSP Server Page
Sushil - You need to patch JSPGenerator and/or JSPReader in 2.0.2 in order to make it work. Or, much easier, upgrade to 2.0.3 Regards, Lajos galatea.com Cocoon training, consulting support Sushil Bhattarai wrote: Hi I have been unable to run the JSP demo that comes with Cocoon2.0.2. I saw in the discussion list that jasper.jar needs to be in WEB-INF/lib but that's not helping either. I'm running Cocoon on Catalina (Tomcat 4.0.1). Sushil Join the world's largest e-mail service with MSN Hotmail. Click Here http://g.msn.com/1HM1ENUS/c157??PI=44364 - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: -- - 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: [Q] Form posting sitemap pattern...
Hi Per - If you were using the formval logicsheet and the FormValidatorAction, you'd have something like this: map:match pattern=newbook map:act type=form-validator map:parameter name=descriptor value=context://newbook-def.xml/ map:parameter name=validate-set value=add/ map:act type=db-insert map:parameter name=descriptor value=context://newbook-def.xml/ map:redirect-to uri=books/ /map:act /map:act map:generate type=serverpages src=addbook.xsp/ map:transform src=addbook.xsl/ map:serialize/ /map:match Here, the newbook pipeline is the action for your form and books is the pipeline for the display of books (not shown). When the newbook pipeline executes, the action validator tries to validate the posted form. If nothing was posted, or if the validation failed, execution drops outside that map:act block to the addbook.xsp page, which contains your form and which uses the formval logicsheet to access info on what failed during validation. If validation succeeds, then everything inside that map:act block gets executed which, as you can see, uses the DatabaseAddAction to insert the row in your database and then redirects the user to the books pipeline. Key to the DatabaseAddAction, FormValidatorAction and formval logicsheet is the descriptor file newbook-def.xml. All these concepts are discussed in the Cocoon documentation. The main gotcha here is the formval logicsheet is a bit clumsy to use, as you have to make sure you not only display validation errors to the user, but repopulate valid fields with the data the user already entered. Regards, Lajos galatea.com Cocoon training, consulting support Per Kreipke wrote: I can't quite figure out what the right way is to use actions to handle posting when there is an originating page, the form itself, a validator and an action. Scenario: - The user has a page which displays a collection of items of some sort (books). + page: books.xyz - clicking 'new' on the books page brings up a form for entering a new book's details + page: newbook.xyz - posting the book's details should validate the book's details (must have a title) + validator action: ValidateBook.java - Code adds the book to the book repository + add action: AddBook.java Flows: books.xyz - [new book] - newbook.xyz - [post] - ValidateBook - [ok] - AddBook - books.xyz books.xyz - [new book] - newbook.xyz - [post] - ValidateBook - [fail] - newbook.xyz Details: - to implement both flows above, I can't figure out what: + the 'action' target of the POST should be: books.xyz again, newbook.xyz? + what matcher to put the validate and add actions on Any help would be appreciated. A pointer to or an actual sample sitemap snippet would be great. FYI, I'm not using XMLForm and I'm using 2.0.3 Per - 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: could not add record/mysql
Wolfgang - Make sure you change the pool name not just in cocoon.xconf but anywhere you actually use the pool, like create-empl.xsp. Then bounce your servlet container so Cocoon will reread cocoon.xconf. If you do those things and still have problems, stop Tomcat, delete the work directory for the cocoon webapp, and then restart it. Regards, Lajos Wolfgang Weigel wrote: hi! i tried to change the example from http://localhost:8080/cocoon/tutorial/home.html by using a mysql-database. everything works fine if using the name personnel for the database-connection in the cocoon.xconf (jdbc logger=core.datasources.mysql name=personnel) as soon as i modify the name-parameter (e.g. mysql) i get the following exception: Message Could not add record Source org.apache.cocoon.ProcessingException Description org.apache.cocoon.ProcessingException: Could not add record: org.apache.avalon.framework.component.ComponentException: datasources: ComponentSelector could not find the component for hint: personnel Does anybody have a solution? bye wolfgang - 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] -- galatea.com Cocoon training, consulting support - 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]
Xms, Xmx, freememory and heapsize
Hi folks - In January, there was an excellent post (with the same subject line) by Peter Hargreaves describing his experiences and recommendations for setting -Xmx, freememory and heapsize. One of his recommendations was that the value of heapsize should be somewhat less than that of -Xmx (he suggested the difference could be the value of freememory, as a good rule of thumb). The logic was that Cocoon needed some free memory to run the StoreJanitor. If -Xmx and heapsize were the same, you could theoretically have a situation in which Cocoon would not have enough memory to free memory. But in some subsequent posts, I've seen it stated several times that -Xmx and heapsize should be the same. My question is whether anything changed in the 2.0.3 StoreJanitor implementation that makes Peter's suggestions irrelevant, or are they still valid? Thanks. Lajos -- galatea.com Cocoon training, consulting support - 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: clearing all caches
Delete Tomcat's work directory for your webapp ($CATALINA_HOME/work/Standalone/localhost ...) Lajos Vaskin Kissoyan wrote: I'm sometime seeing changes and sometimes not, how do I make sure everything is be reflected properly? Is there a way to clear Cocoon's cache directly, as I'm pretty sure its not in my browser cache or anywhere else that I can tell, and restargint Tomcat doesn't seem to do it either. Tomcat 4.04 Cocoon 2.0.3 Mozilla very recent Nightly Working on bonebreaker.zip from cocooncenter.de 's Creating a navigation Menu When I try to add new sections I have issues where I cannot see the new sections, I have edited and created new home.xml pages and everything. any help would be appreciated. - 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] -- galatea.com Cocoon training, consulting support - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.1 - empty pages?
Hi all - I successfully compiled the latest version of 2.1, only to find all the pages empty; i.e., nothing between the body tags. In error.log I get: ERROR (2002-07-29) 12:46.47:099 [access] (Unknown-URI) Unknown-thread/Cocoon Servlet: Cocoon servlet threw an Exception while trying to close stream. java.io.IOException: The stream has been closed Happens with IE and Netscape. Thanks. Lajos -- galatea.com Cocoon training, consulting support - 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: Java packages
You still can keep your concept of Application. I look at Cocoon as a framework, within which my applications run. I make each application a subdirectory off the main directory, and each has its own sitemap. The benefit is that I have a clean sitemap, (i.e. very few map:component definitions except those that are specific to the application, like actions) and then I have a certain degree of portability. I have development and deployment copies of my website, which is comprised of 4 such applications. When I want to roll a new version of an application, I jar up the appropriate directory, copy it to the production machine and unjar. All automated, too. A traditional Servlet Spec-based application is a different paradigm from a Cocoon-based application which, obviously can only run inside Cocoon. In a way, you are comparing apples and oranges. A Cocoon-based application does have certain ties to the framework: the application sitemap must be referenced in the main sitemap and it shares WEB-INF/libs and the settings in web.xml/cocoon.xconf. Unless, of course, you write your own class-loader that picks up jars from your application directory structure. Regards, Lajos galatea.com Cocoon training, consulting support Robert Bourdeau wrote: It's not that these solutions won't work, but they feel awkward and seem a little like hacks. I work in a shop where we have multiple virtual hosts running on a single server configuration, and within each virtual host, multiple applications. Further, there are dev, alpha, beta, and prod configurations of everything, so I expect to be able to configure my software to allow for the independent upgrade of a Cocoon application from dev to prod without interferring with any of my other applications (except for changes in the common components, Cocoon, Tomcat, etc.) Every application has WEB-INF directory, thus, it has all the libraries it needs and it does not interfere with other applications. When you upgrade one of the applications, you just replace application directory with the version of the new one, replacing all the libraries old application has with new versions. This does not affect any other application deployed in the system. So, what's the issue? Vadim You're calling Cocoon the application. For me, the application is my Environmental Treaty Information Service, and my Work Flow Management System, and my Guide to Global Population Projections, and my Collaborative Document Authoring Environment. These applications could all be XML applications supported by Cocoon, but in Cocoon they do not get their own WEB-INF directory. In JSP, they do. Now, yes, I could create subdirs in cocoon/WEB-INF/classes or create separate jars for each in the libs, and have my apps each include their own. I'm still mulling this over, and maybe this is all fine. Still mulling this over. In gneral, I'm wanting something as transparent as a an Apache module, or add on Tomcat core classes. Something more transparent than Cocoon current seems. Don't get me wrong. I think Cocoon is great. It's really fantastic. It's a steep learning curve, but I think it's worth the climb. This is a hunt for the right way to configure an environment for multiple developers, multiple projects, multiple computers, and a staged releases. Thanks for your comments! --- Bob - 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]
Debugging buggy XSL code
Hi all - At various times (or versions), I though I have seen Cocoon spit out messages about XSL errors, like The element type xsl:if must be terminated by a matching end-tag. In 2.0.2, these messages come at the Tomcat console window or logs. Wouldn't it be helpful to capture these messages and add them to Cocoon error page? It would certainly help me - the Transform error: null pointer exception doesn't mean very much. If someone has an idea of where the change needs to be made, unless it has already been done, I'll gladly look into doing it. Regards, Lajos -- galatea.com Cocoon training, consulting support - 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]
[SUMMARY] JspReader/JspGenerator in 2.0.2
Hi all - I've seen several rather frustrated posts from users trying to figure out how to make JspReader and/or JspGenerator work in Cocoon 2.0.2. This email describes how. JspReader Edit src/java/org/apache/cocoon/reading/JSPReader.java and replace the following lines (119-132): // KP: A hacky way of source resolving. // Why context:// protocol returns not a string in URL format, // but a system-dependent path with 'file:' prefix? String contextDir = new File(httpContext.getRealPath(/)).toURL().t oExternalForm(); src = this.resolver.resolve(this.source); String url = src.getSystemId(); if(url.startsWith(contextDir)) { // File is located under contextDir, using relative file name url = url.substring(contextDir.length()); } if (url.startsWith(file:)) { // we need a relative path url = url.substring(5); } with the following: String url = this.source; // -- debug info -- src = resolver.resolve(url); System.out.println(Resolved to: + src); java.net.URL resURL = httpContext.getResource(.); System.out.println(. resource is: + resURL); // -- end debug -- // absolute path is processed as is if (!url.startsWith(/)) { // get current request path String servletPath = httpRequest.getServletPath(); // remove file part servletPath = servletPath.substring(0, servletPath.lastIndexOf(' /') + 1); url = servletPath + url; } JspGenerator Edit src/java/org/apache/cocoon/generation/JspGenerator.java and replace the following lines (106-113): src = this.resolver.resolve(this.source); String url = src.getSystemId(); // Guarantee src parameter is a file if (!url.startsWith(file:/)) throw new IOException(Protocol not supported: + url); url = url.substring(5); getLogger().debug(JspGenerator executing JSP: + url); with the following: String url = this.source; // absolute path is processed as is if (!url.startsWith(/)) { // get current request path String servletPath = httpRequest.getServletPath(); // remove file part servletPath = servletPath.substring(0, servletPath.lastIndexOf(' /') + 1); url = servletPath + url; } The rebuild Cocoon and replace your existing cocoon-2.0.2.jar with the new one in build/cocoon/webapp/WEB-INF/lib. Don't forget to copy jasper-compiler.jar from $CATALINA_HOME/lib to WEB-INF/lib (or whatever JSP compiler you choose to use). Finally, if you are using a sub-sitemap, any references to JSP files in pipelines with either JspReader or JspGenerator must have the path starting from the root cocoon context and MUST start with a leading forward slash. Thus, if you have a sub-sitemap in a directory called abc, with a JSP file in abc/jsps/hello.jsp, the src attribute of either component should be something like: src=/abc/jsps/hello.jsp Cheers, Lajos -- galatea.com Cocoon training, consulting support - 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]
Getting parameters to SQLTransformer
I think I know the answer, but is there any way to construct dynamic queries using SQLTransformer? Specifically, I'd like to build the where clause of my query using either a session attribute or a sitemap parameter. I've been thru the code and don't see that it can be done, but I thought I'd ask just the same ... I'm on 2.0.2. Regards, Lajos -- galatea.com Cocoon training, consulting support - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting parameters to SQLTransformer
Hi Luca - I agree that the SPs are the way to go - when I was a DBA, I used to enforce their use all the time. What I was after here was to include sitemap/request/session parameters into the XML file during the generation phase, so that the complete query would be passed to the transformer. I have gone the XSL route before, and I guess that is what I'll stick with now. Thanks, Lajos Luca Morandini wrote: Lajos, the substitution in SQL Transformer uses parameters defined in the sitemap, which don't fit your bill I presume... ...but, being it a transformer, you can feed it any SQL you have built from whatever source (XSL, XSP, plain XML file, ...), including any parameters of your choice. This is not the same as dynamic parameters though, it is like dynamic SQL. What I would suggest is the use of stored procedures, with an XSL building the statement, hence: 1) max flexibility in the value of parameters (build them as you like, from whatever source you like) 2) min performance penalty (the real SQLs are already been parsed when the stored procedure was submitted to the DBMS) Not to mention the SoC it enforces. And if your DBMS doesn't support SPs ? Use dynamic SQL by using stylesheets or XSPs: after all, this is what a lot of people does with ASP anyway. Hope this helps, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 10:18 PM To: [EMAIL PROTECTED] Subject: Getting parameters to SQLTransformer I think I know the answer, but is there any way to construct dynamic queries using SQLTransformer? Specifically, I'd like to build the where clause of my query using either a session attribute or a sitemap parameter. I've been thru the code and don't see that it can be done, but I thought I'd ask just the same ... I'm on 2.0.2. Regards, Lajos -- galatea.com Cocoon training, consulting support - 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] -- galatea.com Cocoon training, consulting support - 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: Lucene and cocoon-view
Hi Maha - Do you have a message in core.log from SimpleLuceneXMLIndexerImpl saying something about Ignoring ... ? Check that the view is working correctly: call http://localhost:8080/cocoon/myapps?cocoon-view=content and make sure it is returning XML with a mime-type of text/xml. If not, Lucene will ignore it. Of course, http://localhost:8080/cocoon/myapps has to be a real URI. Regards, Lajos galatea.com Cocoon training, consulting support Maha Al-Yahya wrote: Hi Lajos, Good for you, but unfourtunately I'm still having a problem running the search on my webapp. I use the sample search with cocoon and input the base URL as: http://localhost:8080/cocoon/myapps (Iwant cocoon to search all documents in myapps directory) in myapps sub-sitemap I put the following within components: map:views map:view name=content from-label=content map:serialize type=xml/ /map:view map:view name=links from-position=last map:serialize type=links/ and in the pipeline section of myapps sitemap like this: map:match pattern=*.* map:generate src=documents/{1}.{2}.xml/ map transform src=stylesheets/{2}.xsl label=content/ map:serialize/ /map:match However when I click on create button, the created false value turns to true and when I see the statistics page everthing is zero and If I search for any word nothing appears. I checked the log files but nothing helped. Any advice or suggestions? Cheers, Maha On Thu, 20 Jun 2002, Lajos Moczar wrote: I found my problem; just an oopsee (yes, this is a technical term ;) ), nothing wrong with Cocoon 2.0.2. I had defined a view called content but fat-fingered the map:views section into the map:components section. Once I fixed that, Lucene worked like a charm. Lajos leo leonid wrote: On Thursday, June 20, 2002, at 04:12 Uhr, M Al-yahya wrote: Hi Leo, I'm using Cocoon's latest release cocoon 2.0.2 and Tomcat 4.0.4-b3 Cheers, Maha hmm... I never used the 2.0.2 release, I always used the CVS version, and everything was fine till beginning of may (long after the 2.0.2 release) (On may 8 I sent my first mail about this problem to this list.) Thats why I connected this problem with 2.1-dev. Anyway, I now use the 2.0.3 branch and where view-labels within aggregation and indexing the docs is possible. But the problem exits (still or again) in the CVS HEAD branch. /Leo leo leonid wrote: On Thursday, June 20, 2002, at 02:57 Uhr, M Al-yahya wrote: Hello, I'm experimenting with cocoon XML search using lucene. You are using the the 2.1-dev version of cocoon, right? At http://localhost:8080/cocoon/search/create if I input the base URL as it is : http://localhost:8080/cocoon/documents/index.html the creation goes on well and the search is good. However, if I input the base URL: http://localhost:8080/cocoon/mywebapp/index.html the index statistics shows everything 0 and I don't see anything helpful in the logs. I think it has to do with the statement The base url should be cocoon-view aware of content-labels links, and content. I've read the concepts/view section of the documentation but could not figure out what must I do to make my XML files cocoon-view aware. everything right, only something prevents the 2.1-dev version from interpreting labels within an aggregation Any suggestions? writing a patch or waiting for the bug fix or using cocoon 2.03 :-( /Leo Cheers, Maha - 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] - 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: URL rewriting solution in FAQ does not do the trick
Why not do this in $CATALINA_HOME/conf/server.xml: Context path= docBase=cocoon debug=0 reloadable=true/ Regards, Lajos Robert Bourdeau wrote: This is more of an Apache question than a Cocoon question, but hopefully someone will know what I'm doing wrong here. Setup: SPARC Solaris 2.7, Apache 1.3.24 w/mod_webapp (Warp), and Tomcat 4.0.1 Goal: Eliminate cocoon from the URL Constraints: Want all my custom content (XML, stylesheets, etc.) to be removed from the Cocoon tree so I can upgrade Cocoon separately. Must use Apache to receive request. URL mapping has to be done per virtual host. I looked at the FAQ, and followed the instructions. I rebuilt Apache with mod_rewrite enabled, then added the followed code to my httpd.conf: VirtualHost myhost.mydomain:80 ServerName myhost.mydomain DocumentRoot /myhost.mydomain/htmls IfModule mod_rewrite.c RewriteEngine on RewriteLog /var/adm/www/rewrite.log RewriteLogLevel 9 RewriteRule ^/xml /cocoon/xml/ [R] RewriteRule ^/xml(.*) /cocoon/xml$1 [R] /IfModule WebAppConnection conn warpmyhost.mydomain:8008 WebAppDeploy cocoonconn/cocoon /VirtualHost I also modified the Cocoon sitemap.xmap to forward the processing to a sitemap outside of the Cocoon tree. This URL works: http://myhost.mydomain/cocoon/xml/foo * Apache correctly passes the /cocoon/xml/foo address to Tomcat which then passes it to Cocoon. Output is correct This URL http://myhost.mydomain/xml/foo is redirected to http://myhost.mydomain/cocoon/xml/foo and the user sees it in the browser. Not what I wanted. I tried the single line [PT] variation shown in the FAQ, and as indicated there, this does not work at all. Thoughts? Regards, --- Bob Bourdeau - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cocoon training, consulting support galatea.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL rewriting solution in FAQ does not do the trick
True, you are building stuff right out of the box and don't want to make configuration changes that might be overwritten when you reinstall or upgrade components. However, for production purposes, the Tomcat home and docs pages are oftentimes superfluous (just like Cocoon examples, Apache docs, etc.). At least I find them sperfluous, as do many of my clients. Hence, I typically strip off all included webapps, and make cocoon the ROOT context. Regards, Lajos Luca Morandini wrote: Lajos, OTOH, the adding of this context will make the Tomcat doc and Tomcat home page unreacheable. There are ways around it (like the adding of /root and /tomcat-docs contexts), but replacing the default Tomcat behaviour doesn't seem to me such a good idea; though, it may be just fine for a production environment. In my opinion the use of mod_rewrite, ugly as it may be, is still the path of least resistance (it doesn't alter the behaviour of anything). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 5:57 PM To: [EMAIL PROTECTED] Subject: Re: URL rewriting solution in FAQ does not do the trick Why not do this in $CATALINA_HOME/conf/server.xml: Context path= docBase=cocoon debug=0 reloadable=true/ Regards, Lajos Robert Bourdeau wrote: This is more of an Apache question than a Cocoon question, but hopefully someone will know what I'm doing wrong here. Setup: SPARC Solaris 2.7, Apache 1.3.24 w/mod_webapp (Warp), and Tomcat 4.0.1 Goal: Eliminate cocoon from the URL Constraints: Want all my custom content (XML, stylesheets, etc.) to be removed from the Cocoon tree so I can upgrade Cocoon separately. Must use Apache to receive request. URL mapping has to be done per virtual host. I looked at the FAQ, and followed the instructions. I rebuilt Apache with mod_rewrite enabled, then added the followed code to my httpd.conf: VirtualHost myhost.mydomain:80 ServerName myhost.mydomain DocumentRoot /myhost.mydomain/htmls IfModule mod_rewrite.c RewriteEngine on RewriteLog /var/adm/www/rewrite.log RewriteLogLevel 9 RewriteRule ^/xml /cocoon/xml/ [R] RewriteRule ^/xml(.*) /cocoon/xml$1 [R] /IfModule WebAppConnection conn warpmyhost.mydomain:8008 WebAppDeploy cocoonconn/cocoon /VirtualHost I also modified the Cocoon sitemap.xmap to forward the processing to a sitemap outside of the Cocoon tree. This URL works: http://myhost.mydomain/cocoon/xml/foo * Apache correctly passes the /cocoon/xml/foo address to Tomcat which then passes it to Cocoon. Output is correct This URL http://myhost.mydomain/xml/foo is redirected to http://myhost.mydomain/cocoon/xml/foo and the user sees it in the browser. Not what I wanted. I tried the single line [PT] variation shown in the FAQ, and as indicated there, this does not work at all. Thoughts? Regards, --- Bob Bourdeau - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cocoon training, consulting support galatea.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] -- galatea.com Cocoon training, consulting support - 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]
Logging problem with actions subsitemaps?
It might be because its the end of another long weekend of work, but I'm stumped here. I've got some sub-sitemaps that use various actions like DatabaseAuthenticatorAction, etc. Problem is, none of the debug statements ever show up in the logs. Specifically, I'm trying to figure out why a login doesn't work, but I can't find ANYTHING in the logs from the DatabaseAuthenticatorAction. I haven't fiddled with any logging setttings. Am I missing something simple? TIA, Lajos Cocoon training, consulting support galatea.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging and Form Validation
There is already an action included in Cocoon that does validation. What's nice is that you define the validation parameters in a definition files and the action takes care of applying them. I suppose you might need to define your own action to actually send the data where you want it. Lajos galatea.com Cocoon training, consulting support [EMAIL PROTECTED] wrote: So how would I accomplish this with Cocoon. Could I just create a component for doing that validation and treat it as a self contained pipe? -Adam Hunsberger, PeterTo: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Peter.Hunsberger@cc: stjude.org Subject: RE: Logging and Form Validation 06/07/02 12:06 PM Please respond to cocoon-users This is a major sticking point for my developers that like and are comfortable with jsp with javascript embedded. They want to keep it at the client and I am trying to build a case for the server through cocoon. IMNSHO, the only way you can justify client side validation is if you are running an Intranet and you have an organization that somehow restricts the users capability to modify browsers settings so that you can ensure JavaScript is enabled. Otherwise, you can receive unvalidated data... If you're running over the Internet it's fine to use client side validation in addition to server side if you want to have some extra performance benefits for those who have JavaScript enabled. However, who wants to maintain both? Even if you have an Intranet and locked down browser settings, client side validation can be a real pain to maintain over time. In particular, there is (usually) no good coupling between the validation and the rest of the server side code. The exception is if you generate your client side validation code from server side templates. That's quite possible, but I suspect that once you developers jump through the hoops of embedding JavaScript within XML ( lot's of escaping and/or CDATA) they won't object to server side validation nearly so much... - 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: Logging and Form Validation
Sorry, read logicsheet instead of action. Don't know where my mind has gone ... Lajos Lajos Moczar wrote: There is already an action included in Cocoon that does validation. What's nice is that you define the validation parameters in a definition files and the action takes care of applying them. I suppose you might need to define your own action to actually send the data where you want it. Lajos galatea.com Cocoon training, consulting support [EMAIL PROTECTED] wrote: So how would I accomplish this with Cocoon. Could I just create a component for doing that validation and treat it as a self contained pipe? -Adam Hunsberger, PeterTo: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Peter.Hunsberger@ cc: stjude.org Subject: RE: Logging and Form Validation 06/07/02 12:06 PM Please respond to cocoon-users This is a major sticking point for my developers that like and are comfortable with jsp with javascript embedded. They want to keep it at the client and I am trying to build a case for the server through cocoon. IMNSHO, the only way you can justify client side validation is if you are running an Intranet and you have an organization that somehow restricts the users capability to modify browsers settings so that you can ensure JavaScript is enabled. Otherwise, you can receive unvalidated data... If you're running over the Internet it's fine to use client side validation in addition to server side if you want to have some extra performance benefits for those who have JavaScript enabled. However, who wants to maintain both? Even if you have an Intranet and locked down browser settings, client side validation can be a real pain to maintain over time. In particular, there is (usually) no good coupling between the validation and the rest of the server side code. The exception is if you generate your client side validation code from server side templates. That's quite possible, but I suspect that once you developers jump through the hoops of embedding JavaScript within XML ( lot's of escaping and/or CDATA) they won't object to server side validation nearly so much... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging and Form Validation
web developers could always learn Cocoon ... Vadim Gritsenko wrote: From: Hunsberger, Peter [mailto:[EMAIL PROTECTED]] (remember, you still must have validation on the backend) Precisely my original point: since you have to write the server side validation anyway, do you really want to write both client and server side validation? It is standard to have client-side validation in my current client company. And it makes sense most of the time - you want to keep count of round trips low. Otherwise, what web developers would do? ;) Vadim I only do so if there is a real performance penalty with the page validation/regeneration on the server side... - 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] -- Lajos Cocoon training, consulting support galatea.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging and Form Validation
Another point worth mentioning is complexity. I have done some sites stuffed so full of JS that things started breaking without any reason. JS has inherent flaws (in my experience) that prevent it from doing the complex sorts of things many clients need. For small-scale validation, no problem. But for complex operations, like Adam's example, I'll stick with Cocoon and have the client upgrade their servers, if need be. Lajos galatea.com Andrew Savory wrote: Hi, On Fri, 7 Jun 2002, Luca Morandini wrote: wait: how many users out there are without JavaScript support ? Irrelevant question - if there is only one user without javascript support, you should support that user, surely? The point of the web being accessibility and the point of a web developer being to develop for the *web* and not for specific web browsers? It's frustrating that people are STILL assuming support for X, Y and Z in browsers even after so many years of browser wars. /rant I won't write both validations, I don't simply cater to people wihout Javascript... and I wonder how many developers pay attention to those unlucky fellows. Well, if you're lucky enough to have clients that are happy with sites that only do client-side validation that only works in specific browsers with specific options enabled, fair enough. I could rant on here about text-mode browsers, line readers, security-conscious users that surf with scripting turned off, etc, but given you're using Cocoon, I'm sure you know how easy it is to provide support for these other browsers simply by adding more stylesheets ;-) Adam: in answer to your question, take a look at: src/webapp/docs/samples/formvalidation/descriptor.xml ...which gives a nice example of doing form validation using XML descriptors. See also: http://xml.apache.org/cocoon/xmlform/step2-xmlform-howto.html ...for the new way of doing things. Hope that helps, Andrew. -- Lajos Cocoon training, consulting support galatea.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How is it possible to remove 'files' from a war file?
mkdir temporarydirectory cd temporarydirectory jar xvf $PATH_TO/cocoon.war rm WEB-INF/lib/xalan-XXX.jar etc. jar cvf cocoon.war * Lajos galatea.com Ian Tindale wrote: I'm following the procedure for installing Cocoon 2.0.2 with Tomcat 4.0.3 with j2sdk1.4.0 and in the instructions it mentions to: * Remove xalan-XXX.jar, xercesImpl-XXX.jar, batik-libs-XXX.jar, and xml-apis.jar from the cocoon.war archive. However, although I've found the war file specified, it's only a (large) single file. No explanation is supplied as to how it is possible to remove anything from inside it. Or am I looking at the wrong thing? This is on Mandrake 8.2 btw. Cheers. - 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: hsqldb - how do I get rid of this error message (and turn off hsqldb)
Comment out the hsqldb stuff in cocoon.xconf, unless you really need it. Lajos daniel robinson wrote: List, Is there some comprehensive DB configure doc for C2? I've looked throught the listserv but its very piecemeal (sp?). I keep getting this error from tomcat: Loading catalog: /localhost/cocoon/resources/entities/catalog Server.run/init: java.net.BindException: Address in use: JVM_Bind java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:82) at org.hsqldb.Server.run(Server.java:131) at org.hsqldb.Server.main(Server.java:78) at org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101) at java.lang.Thread.run(Thread.java:484) Starting service Tomcat-Apache Apache Tomcat/4.0.3 help appreciated. Dan - 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: hsqldb - how do I get rid of this error message (and turn off hsqldb)
I don't know PostgreSQL, but you might try putting the jar file in cocoon/WEB-INF/lib. I have found cases where cocoon doesn't have access to the jars in $CATALINA_HOME/common/lib, even though it is supposed to. If that doesn't fix the problem, you'll have to post the error message. Lajos daniel robinson wrote: Ok, I commented out the hsqldb stuff and this error has gone away - but I can't get PostgreSQL to work correctly. I've created the sample DB and modified cocoon.xconf: datasources jdbc name=personnel pool-controller min=5 max=10/ auto-committrue/auto-commit dburljdbc:postgresql:testdb/dburl userunknown/user password/password /jdbc /datasources and Web.xml contains: init-param param-nameload-class/param-name param-value org.postgresql.Driver /param-value /init-param and pgjdbc1.jar (containing org.postresql.Driver) is in Tomcat/common/lib and I have created the sample tables in testdb within PostgreSQL. Help appreciated. Lajos Moczar wrote: Comment out the hsqldb stuff in cocoon.xconf, unless you really need it. Lajos daniel robinson wrote: List, Is there some comprehensive DB configure doc for C2? I've looked throught the listserv but its very piecemeal (sp?). I keep getting this error from tomcat: Loading catalog: /localhost/cocoon/resources/entities/catalog Server.run/init: java.net.BindException: Address in use: JVM_Bind java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:82) at org.hsqldb.Server.run(Server.java:131) at org.hsqldb.Server.main(Server.java:78) at org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101) at java.lang.Thread.run(Thread.java:484) Starting service Tomcat-Apache Apache Tomcat/4.0.3 help appreciated. Dan - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(Re)announcement: Cocoon training in June
Hi folks - We announced our Cocoon training classes a couple of months ago, but I wanted to remind all you stateside Cocooners that I'll be giving the Cocoon Fundamentals and Advanced Cocoon classes June 11-14 in Denver, CO. If you are interested, check out http://www.galatea.com/training/cocoon or call me at 800.711.4901. Regards, Lajos galatea.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]
Removing batik from Cocoon 2.0.2 build
Hi all - I've been experimenting in building a Cocoon that doesn't require an X server. I removed batik-all-1.5b1.jar from the build, along with all the svg examples in the sitemap, rebuilt and tried it. I found that in addition to these changes, the FOPSerializer needs to be commented out for Cocoon to run without an X server. When I comment it out, everything runs fine. But if I leave it in, I get an exception because FOPSerializer apparently relies on org.apache.batik.bridge.UserAgent. Is the only way for the FOP renderer to work is using batik? I don't need svg in my application, but I do need FOP. If FOP indeed needs batik, then it looks like I'm stuck with xvfb, Java 1.4 or the eteks.com version of awt. Thanks in advance. Lajos galatea.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon book reviewers wanted
For GPL/LGPL, see http://www.gnu.org/copyleft/ Regards, Lajos galatea.com Bert Van Kets wrote: Ah, I definitely need to brush up my understanding of the license agreements. Darn, I hate those legal texts. Does anybody know a good site where all the different license agreements are explained in English? Bert At 14:43 22/05/2002 +0200, you wrote: De: Bert Van Kets [mailto:[EMAIL PROTECTED]] My opinion exactly! Open Source survives because it is used in a commercial world. Let this be the Paradox of Open Source. Bert IM(H)O, this is not a paradox at all. This is a paradox for free license (GPL) project, but not for apache. Too many people make a confusion between *Open* Source and *Communist* Source :) fabien. - 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: Jboss and Tomcat
Jorge - No question is stupid on this list. After all, we've all been there. JBoss is an EJB container that optionally contains an embedded version of Tomcat. Tomcat by itself is simply a servlet container. Cocoon can run under JBoss/Tomcat or just Tomcat. If you are just starting out with Cocoon, Tomcat 4.0.1 is the easiest servlet engine to start with. Regards, Lajos galatea.com Jorge Bello wrote: May be this is a stupid question. Sorry any way, I'm a beginner. Could someone shed some light about the differences between Jboss and Tomcat. What is every one for ? TIA, Jorge - 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: iPlanet + Cocoon: did anybody try?
I did, but something (I presume in Cocoon) kept unexpectedly bringing down iPlanet. I ended up switching back to Tomcat. Regards, Lajos Argyn Kuketayev wrote: I must test my reporting module written with Cocoon on jBoss/Tomcat, iPlanet, IBM WAS, BEA WLS. My main concern is iPlanet, since I'm more or less confident about others. Did any body deploy real-life Cocoon apps in iPlanet 6.5? Need resources. Argyn - 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 and Tomcat 3.2.1
Hi Joshua: http://www.galatea.com/flashguides/apache-tomcat-cocoon-win32.xml should help you. Regards, Lajos Joshua Miller wrote: I'm trying to get Cocoon 1.8.2 up and running with Tomcat 3.2.1 on a Windows XP machine. I'm new to Cocoon and I can't seem to get things running. I followed the installation instructions included in the /docs/install.htm file exactly - I got a 404 when trying to access .xml files. I tried manipulating the tomcat.bat file by creating the CLASSPATH statically to ensure that Xerces jar file loaded AFTER everything else ... I still get a 404. I tried uninstalling and reinstalling EVERYTHING - including Tomcat ... I still get a 404. Tomcat runs fine, I get no errors other than 404 - all the XSL files work fine and JSP/Servlets are running fine under Tomcat. Anyone have any help to offer? I can send you the .bat file or anything you need to help out - just let me know. THANKS! Joshua Miller Web Development :: Programming Eagle Web Development LLC www.eaglewd.com http://www.eaglewd.com/ [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] (304) 622-5676 (Clarksburg Office) (304) 456-4942 (Home Office) - 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: MySQL
Istvan - http://www.galatea.com/flashguides/cocoon-tips-2.xml on my site has a section about MySQL and Cocoon. Don't try with JDK 1.4, though. People have recently reported problems with the connections under that JDK. Tisztelettel, Lajos galatea.com Istvan Beszteri wrote: Hi All, Is there somewhere any detailed decription about how to get Cocoon work with MySQL? I have found many complaining mails and answers about particular problems, but non of them contains a reference to a complete doq. Br, Istvan - 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]
Livesites
Reminder that http://www.galatea.com is happily powered by Cocoon 2.0.2 Thanks. Lajos - 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: Memory leaks(?)
With 1Gb of memory, I suggest starting with something like this and tuning from there: -Xms200m -Xmx600m store-janitor class=org.apache.cocoon.components.store.StoreJanitorImpl logger=core.store-janitor parameter name=freememory value=500/ parameter name=heapsize value=5/ parameter name=cleanupthreadinterval value=10/ parameter name=threadpriority value=5/ parameter name=percent_to_free value=10/ /store-janitor Regards, Lajos galatea.com Rogier Peters wrote: Hi, We've been running cocoon for some time now, and we really like it, but we keep having problems with memory usage. We're running on a dual pII-700 with 1Gb memory and windows 2000 server. I just upgraded from jdk1.3.1_01 to 1.3.1_03, using the hotspot jvm, and from cocoon 2.0.1 to 2.0.2 but is doesn't seem to solve the problems. The site we're developing is largish, about 1000 pages, and probably very (too?) transformation intensive. A typical page transforms the aggregate of about 5 elements, which each come from pipelines that do a couple of transform on data that is retrieved from an xml database with a custom Source. The problem is that with each page, looking at the Windows Task Manager, memory use increases by about 25M and although in the processes window java.exe will reduce memory now and again, system memory use stays high. I played around with the jvm -Xmx option, and with cocoon.xconf heapsize and cached objects, but that didn't help. I was wondering whether anyone had the same problems with cocoon, and I am of course very interested in solutions, tweaks, or configuration options that I may have overlooked. Regards, Rogier Peters - Content Management Department Hippo Webworks Grasweg 35 1031 HW Amsterdam The Netherlands Tel +31 (0)20 6345173 Fax +31 (0)20 6345179 Rogier(at)hippo(dot)nl / www.hippo.nl - 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: pdf transformation and xml file sizes
In my experience, it is memory that is the key factor. Running with 512MB allocated to the JVM, I can produce 53 pages of PDF, but no more. I would have thought that SAX-based processing would allow you to process as much as you want, but obviously there is something with PDF documents that eliminates this advantage. Regards, Lajos galatea.com caleb racey wrote: What factors limit the size of xml file you can transform to pdf? I'm testing out one of my pipelines that generates simple pdf from an xml file. When using a small (2kb) xml file it all works fine but as I begin to paste more (valid) xml into the file it stops working (at about 23k). The pdf plugin in Internet explorer 6.0 says the file doesn't start with %pdf and cocoon throws the error FATAL_E (2002-04-16) 09:47.15:055[core.xslt-processor](/cocoon/demo/short.pdf) HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransform er: javax.xml.transform.TransformerException: java.io.IOException: Connection reset by peer javax.xml.transform.TransformerException: java.io.IOException: Connection reset by peer at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j ava:725) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans formerImpl.java:2243) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j ava: 710) see attached file for full error log. My server environment = Redhat linux 7.2, cocoon 2.0.2, jdk 1.3.1_02. The xml and the xsl transformations are alright as they work on smaller files. Anyone know what is going on? Is this the IE acrobat problem that I have seen mentioned briefly on the lists. Cheers Cal - 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: serving WML to Opera or Openwave SDK
I've tested with both, without any problems. Can I see your sitemap entry? Lajos galatea.com Ralph Holz wrote: Hi, I try to use Cocoon 2 to serve WML files, which are the products of an XSL-T transformation. I'd like to test my results with Opera 6 or the Openwave SDK 5.0 (both of which connect to localhost for this). However, neither Opera nor the Openwave SDK simulator display it. Opera just extracts the tags' content and Openwave is sulking and returns a translation failed for content type: text/vnd.wap.wml. When I look at the transformations' results(Opera: view source), the source seems to be ok. That leads me to the assumption that the error might have something to do with the MIME type? However, I believe text/vnd.wap.wml is correct. Did anyone ever try something similar and had similar problems? If you have any hints what I could do, please let me know. Cheers, Ralph - 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 2 powered training site
Hi all - I'd like to add my site, galatea.com, to the list of sites powered by Cocoon 2. I'd also like to announce the first (to my knowledge) publicly-available Cocoon training classes. We are giving two classes this summer: Cocoon Fundamentals and Advanced Cocoon. If you are interested, check out http://www.galatea.com/training/courses. Regards, Lajos Moczar galatea.com 800.711.4901 - 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: serving WML to Opera or Openwave SDK
Nothing wrong here. I double-checked my own stuff (I use Openwave SDK 5.0 and 4.1) and my pages work just fine. The only thing I can think of is to change the doctype-public and doctype-system setttings for the wml serializer in sitemap.xmap (or define another one with wml 1.3 references). If you are using something not in the wml 1.1 DTD, you might have a problem. Regards, Lajos Ralph Holz wrote: Lajos, I've tested with both, without any problems. Can I see your sitemap entry? Sure. This is the sitemap for the WML version: ?xml version=1.0 encoding=UTF-8? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators default=file/ map:transformers default=xslt/ map:readers default=resource/ map:serializers default=wml/ map:selectors default=browser/ map:matchers default=wildcard/ /map:components map:pipelines map:pipeline map:match pattern=start.xml map:generate src=start.xml/ map:transform src=start-mobile.xsl/ map:serialize type=wml/ /map:match map:match pattern=britain.xml map:generate src=start.xml/ map:transform src=categories-mobile.xsl map:parameter name=category value=britain/ /map:transform map:serialize type=wml/ /map:match map:match pattern=*.xml map:generate src={1}.xml/ map:transform src=doc-mobile.xsl/ map:serialize type=wml/ /map:match map:match pattern=*.jpg map:read mime-type=image/jpeg src={1}.jpg/ /map:match map:match pattern=*.gif map:read mime-type=image/gif src={1}.gif/ /map:match /map:pipeline /map:pipelines /map:sitemap And this is the Cocoon sitemap entry: ... map:pipelines map:pipeline map:match pattern=itb/** map:mount check-reload=yes src=itb/sitemap-mobile.xmap uri-prefix=itb reload-method=synchron/ /map:match /map:pipeline /map:pipelines Thanks for help, Ralph - 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: serving WML to Opera or Openwave SDK
Here ya' go. These are taken from one of my courses. I've tested with Opera and 2 versions of the Openwave SDK. Regards, Lajos galatea.com ** sitemap entry * map:match pattern=hello-world.wml map:generate src=examples/hello-world/hello-world.xml/ map:transform src=stylesheets/wml/hello-world.xsl/ map:serialize type=wml/ /map:match ** Ralph Holz wrote: Lajos, thanks anyway. Would it be possible to let me have a look at both your WML and your sitemap entries? Maybe that would give me some clue. I tried changing the doctype-public and system setting to WML 1.3, didn't help. Cheers, Ralph Nothing wrong here. I double-checked my own stuff (I use Openwave SDK 5.0 and 4.1) and my pages work just fine. The only thing I can think of is to change the doctype-public and doctype-system setttings for the wml serializer in sitemap.xmap (or define another one with wml 1.3 references). If you are using something not in the wml 1.1 DTD, you might have a problem. - 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] ?xml version=1.0? page page-titleWelcome to Cocoon Fundamentals/page-title content titleHello!/title paragraph I am a basic XML page. /paragraph /content /page ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/page wml card id=index xsl:attribute name=title xsl:value-of select=title/ /xsl:attribute xsl:apply-templates/ /card /wml /xsl:template xsl:template match=paragraph pxsl:apply-templates//p /xsl:template /xsl:stylesheet - 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: How to deploy my cocoon project [Apache/Tomcat]
Hi Derek: For Tomcat 3.2.x and Apache, see http://www.galatea.com/flashguides/apache-tomcat-unix.xml For Tomcat 4.0.x and Apache, see http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml There are also new instructions on building cocoon-based web apps in http://www.galatea.com/flashguides/cocoon-tips-2.xml. I'm not on the Cocoon mailing list right now, so email me directly if you have problems/questions with these instructions. Regarding your other question, my cocoon.properties are the same between my two machines. The tomcat.sh is obviously different from tomcat.bat. Do you explicitly put your database jars in the CLASSPATH path in tomcat.sh? You might also try Tomcat 4 - you don't have to edit the startup script at all. Tomcat 4 is much better at picking up and loading jars placed in each webapps WEB-INF/lib. Regards, Lajos Derek Hohls wrote: Quick follow-up question: how do I get Apache on top of Tomcat - my previous Apache-Tomcat3 link does not work anymore... is there a reference for how to do this? Thanks Derek [EMAIL PROTECTED] 25/10/2001 03:12:03 Context path=/cocoon docBase=d:/Myproj debug=0 reloadable=true/ in server.xml. Works for me. Then use Apache on top of Tomcat, if you want to remove the Tomcat port from your URL. Lajos galatea.com Eduardo Godoy Vega wrote: OK, but I don't want to put my project inside %TOMCAT_HOME% tree ... 'cause I delete it from time to time ... (re-build the lastest version of cocoon2) ... to me, the best solution is to put my project in D:\Myproj I was searching the FAQ and the archives ... but I didn't find a solution... Eduardo. -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: Re: How to deploy my cocoon project ? If you're not using %TOMCAT_HOME%\webapp\ROOT, you could either rename cocoon to ROOT, and restart Tomcat, or edit %TOMCAT_HOME%\conf\server.xml and point the docBase for the context to webapps/cocoon. Either way, you remove the offending cocoon from the URL. Lajos galatea.com Eduardo Godoy Vega wrote: Hi, I wrote and test my cocoon project ... right now is on %TOMCAT_HOME%\webapps\cocoon\myproj is it possible to deploy it in a different path ? for example: %TOMCAT_HOME%\webapps\myproj or D:\myproj Eduardo. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: util.xsl not found problem
Hi Trevor: You need to check the location of the logicsheet (processor.xsp.logicsheet.util.java = resource://path) in cocoon.properties. I've had several occasions where I simply had to change resource:// to file:// and point to the where they were in the Cocoon 1.8.2 distribution. Not that it is the right way, of course, but I was in a hurry didn't have time to figure out why. Lajos www.galatea.com Tegid wrote: Hi, I installed Tomcat 3.2.3 and Cocoon 1.8.2 with the cocoon jars in the tomcat/lib/common directory. However, when I attempt to access the Cocoon sample xml pages I get: java.lang.RuntimeException: Error loading logicsheet at resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to java.lang.Exception: Resource not found or retrieving error. at org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302) at org.apache.cocoon.framework.Manager.create(Manager.java:109) at org.apache.cocoon.framework.Router.init(Router.java:80) at org.apache.cocoon.framework.Manager.create(Manager.java:109) at org.apache.cocoon.Engine.init(Engine.java:179) etc...etc...etc... If anyone has any idea why this is happening I could really use the assistance. Thanks, Trevor - How many Prolog programmers does it take to change a lightbulb? No. - 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: [C1] Installation woes [rant AND request] - PLEASE help!
Sure we're still running 1.8.2; works for my site and probably will until I ever find the time to upgrade to 2.01. Basically, here is how I got it all to work (1.8.2 w/ Tomcat 3.2.2 MySQL on both Linux Win 98): 1) added mysql_comp.jar to Tomcat's classpath (I just edited tomcat.sh /tomcat.bat, but I suppose you could just throw it in $TOMCAT_HOME/lib 2) edited cocoon.properties and added a line to for the mysql driver: processor.xsp.pool.database.adaptor.DBMM=org.gjt.mm.mysql.Driver (add this after the other adaptors: note that DBMySQL is incorrect!). 3) edited cocoon.properties and added the connection info for the pool: processor.xsp.pool.database.default.driver=org.gjt.mm.mysql.Driver processor.xsp.pool.database.default.url=jdbc:mysql://localhost/mydatabase processor.xsp.pool.database.default.username=myuser processor.xsp.pool.database.default.password=mypass processor.xsp.pool.database.default.maxConnections=3 processor.xsp.pool.database.default.expiryTime=360 4) restarted tomcat Let me know if this still doesn't work I can send you copies of the actual files. Lajos galatea.com Derek Hohls wrote: You can skip the rant and read the request at the end... rant I come to bury Caesar, not to praise him Julius Caesar, Act III, Scene ii So, at one time in my life, I was a Windows programmer [well, still am, really]. And life was occasionally frustrating, but mostly colorful and satisfying. And then came the Web. Wow! New ideas, new paradigms, and new languages to learn... and boy, did they come thick and fast in a stream of acronyms... HMTL, CSS, JS; followed by XML, JSP, XSLT. I did my best to absorb them all and see how and where they could be used to help those around [non techies, mostly] me to make use (and sense!) of this 'information revolution'. Looming over it all, of course, is the ongoing conflict between Sun [Java] and Microsoft [VB/ASP et al]. Open source vs vendor. Being in a poorish country, with limited resources, OS made financial sense; and the paradigm and philosophy was one that appealed to my nature. But what to use? I did not have the luxury of time to contribute (or, in most cases, even the expertise) to a new area, and needed something that was useful and intuitive to use. Then I found Cocoon - at last, something that tied together everything I had been learning in a meaningful way. I installed it - it worked [pretty much - BUT see below] and I started designing, developing and coding. I scorned those others who were suggesting - dare I say it aloud - M$ tools such as VBScript, ASP or even Oracle Web Developers XYZ; don't be fooled, I said, big companies do not have your interests at heart - OS is the way, the truth... well, anyway, it's good and What We Should Be Doing. That was then. Now (for the last 4 weeks) I have been desperately trying to get a UNIX box working to replicate what I have on my development machine; while colleagues [techie and non techie] alike are watching with increasing scepticism as they move on with Oracle, ASP and Access [choke] et al. No one is actually smirking yet at least not to my face. I have posted before - but the traffic seems thick with [c2] and [docbook] queries... maybe I am the last person on the planet still trying to use 1.8? Is it too late - maybe M$ will take me back - look, son, here is an ASP primer and an Intro to VB - its not hard... you don't really need that U**X... let me dim the lights for you /rant request Seriously, I really do need help trying to finalize my Cocoon installations. I have 3 machines, and each of which has a slightly different problem. All are running Apache/Tomcat/Cocoon 1.8.2/mySQL. Machine 1: Win2000 (development) - dbPool does NOT work BUT embedding Database properties in esql tags does Machine 2: UNIX (test) - dpPool works BUT embedding Database properties in esql tags does NOT Machine 3: UNIX (Deployment) - neither dbPool or embedded properties works! I am sure the problems lie with some configuration or file location SOMEWHERE, but have run out things to try ... apart from pushing buttons at random. If I cannot solve this very soon, it will be back to M$ tools and that would not, I think, be good for my soul. ARE THE DEVELOPERS STILL OUT THERE (do they care?) /request Many thanks for listening Derek [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
Re: Installing actions
Kristof, I'm curious about your problem; what version of Cocoon Tomcat are you running? Regards, Lajos galatea.com Jozsa Kristof wrote: Arno, I've tried both the cocoon/WEB-INF/classes/ dir, which should be auto-included due to the Tomcat config, and setting the extra-classpath in Cocoon's web.xml. In the first case, I get extreme errors, Cocoon cannot even start up its default page. In the second case, the dir in extra-classpath gets ignored, even if I set it absolute, relative, whatever. I've found a way, where Cocoon *can* find my own Action class, however. I've bundled my class file in the right directory structure in a .jar file, and dropped it into WEB-INF/lib beside cocoonXX.jar and such. Using that way (but only that), Cocoon can find my action class, and starts up correctly, but situation still aint clear.. I'm trying to get a parameter from my Cocoon action. I've used the standard way of setting the parameter on the java side, from act() returning a Map object, just as I've seen it in the examples. I also try to reach it the standard way from the xsp: xsp-request:get-parameter name=hello default=did not worked/, and I only get the default value back every time. So the question still stands: can anyone show me a Hello-World like example of setting a value from a Java action class which can be retreived from an xsp with the correct sitemap setup? I'm begging for this, I'm suffering on that very same problem for 1 whole week, and I cant step any further. Best regards, Christopher On Tue, Oct 30, 2001 at 09:07:35AM +0100, Arno Illmann wrote: Hi Christopher, here is what Vadim Gritsenko wrote to me in a similar case. In the end I putted the class file in the cocoon source and made a new build. This works, but it should be easier as shown below. Arno --- Hi, Here is couple of hints for you: 1) Extra-classpath the way you specified would never work. The correct path would be: init-param param-nameextra-classpath/param-name param-valueC:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\clas \ ses/param-value /init-param 2) You do need to add ...\cocoon\WEB-INF\classes into classpath, because it is added automatically by the servlet contaier (Tomcat) If you have DatabaseSelectAction.class file in \ ...\cocoon\WEB-INF\classes\org\apache\cocoon\acting, you do not required to add any \ classpath entries. Try to restart Tomcat and access sitemap again. If this fails, I \ do not have other pointers... Vadim -Original Message- From: Arno Illmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 2:34 PM To: [EMAIL PROTECTED] Subject: installing of actions In the morning I posted this at the wrong thread so I do it again. My tryings over the day came not to success too and I hope, someone with more \ cocoon knowledge can shed us some light on the following? Thanks in advance, Arno Illmann I did this: 1) downloaded DatabaseSelectAction.java from CVS and compiled it to ..\cocoon\WEB-INF\classes\org\apache\cocoon\acting. 2) added to cocoons web.xml: init-param param-nameextra-classpath/param-name param-valueC:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\cl \ asses\org\apache\cocoon\ac ting\DatabaseSelectAction.class/param-value /init-param 3) added to the sitemap of the tutorial web application example: map:actions map:action name=dbSel src=org.apache.cocoon.acting.DatabaseSelectAction/ !-- \ added -- map:action name=dbAdd \ src=org.apache.cocoon.acting.DatabaseAddAction/ map:action name=dbDel \ src=org.apache.cocoon.acting.DatabaseDeleteAction/ map:action name=dbUpd \ src=org.apache.cocoon.acting.DatabaseUpdateAction/ map:action name=form \ src=org.apache.cocoon.acting.FormValidatorAction/ /map:actions The error message after invoking the tutorial is : org.apache.cocoon.ProcessingException: Exception in Handler: org.apache.avalon.framework.component.ComponentException: Could not set up Component for hint: org\apache\cocoon\www\tutorial\sitemap_xmap Without map:action name=dbSel \ src=org.apache.cocoon.acting.DatabaseSelectAction/ it started seriously. I then tried other paths in init param extra classpath, and other funny things. I think it could be no packages/path problem and compiling was without errors. But \ is i.e the syntax of path to the class file right (its the right on my windows \ machine) or must I use a jar file? Any hints are very very welcome. Jozsa Kristof wrote: On Mon, Oct 29, 2001 at 01:55:45PM +0100, Jozsa Kristof wrote: I wrote a HelloWorld-like action based on the docs located in my cocoon install: /cocoon/documents/actions. I've put the file in /cocoon/WEB-INF/classes (using the package name 'test', so /test/HelloWorldAction.class). .. ..which means exactly afaik that Cocoon is unable to find the right Avalon component for the specified action, eg. cant find HelloWorldAction.class Maybe I
Re: How to deploy my cocoon project ?
Context path=/cocoon docBase=d:/Myproj debug=0 reloadable=true/ in server.xml. Works for me. Then use Apache on top of Tomcat, if you want to remove the Tomcat port from your URL. Lajos galatea.com Eduardo Godoy Vega wrote: OK, but I don't want to put my project inside %TOMCAT_HOME% tree ... 'cause I delete it from time to time ... (re-build the lastest version of cocoon2) ... to me, the best solution is to put my project in D:\Myproj I was searching the FAQ and the archives ... but I didn't find a solution... Eduardo. -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: Re: How to deploy my cocoon project ? If you're not using %TOMCAT_HOME%\webapp\ROOT, you could either rename cocoon to ROOT, and restart Tomcat, or edit %TOMCAT_HOME%\conf\server.xml and point the docBase for the context to webapps/cocoon. Either way, you remove the offending cocoon from the URL. Lajos galatea.com Eduardo Godoy Vega wrote: Hi, I wrote and test my cocoon project ... right now is on %TOMCAT_HOME%\webapps\cocoon\myproj is it possible to deploy it in a different path ? for example: %TOMCAT_HOME%\webapps\myproj or D:\myproj Eduardo. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon2 Release Candidate?
Brent, In my experience, anything over and including 2.0rc1a works better with JDK 1.3.0/1. I don't know what your exceptions are, but I run Cocoon2 rc1a with Jdk 1.3 in production on several different OSs without problems. Lajos galatea.com Brent L Johnson wrote: I've been using Cocoon 1.8.2 in a production/live environment - and had some problems with some strange exceptions being thrown when using a FreeBSD virtual machine with JDK1.2.2. Is Cocoon2 RC1a ready for production use? I realize RC is a Release Candidate - but would it be beneficial (and would it cause any problems) switching over to Cocoon2 instead, to see if it fixes my problems? Thanks, - Brent - 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]
Delay in mailing list ???
Hi folks, I'm getting up to a 7-hour delay in receiving posts to this list. Is it just me or is everyone having problems? Regards, Lajos - 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: Where to put libs in Tomcat 4.0.1 (without using .war)
Jorn: I have the same problem, and you're better off copying the relevant stuff from cocoon's WEB-INF to each web app's WEB-INF. In particular, make sure you include all the libs you need (consult the docs for which ones are optional) and create the logs directory. You also, of course, need the contents of cocoon's web.xml file. And then don't forget sitemap.xmap and cocoon.xconf. I've been doing this for a while, and it seems to work. In fact, I've rolled it into a web app deployment structure so I can reuse the configuration whenever I need it. I suppose it's theortically possible to put all the jars in $TOMCAT_HOME/common/lib and reference them individually via the extra-classpath tag in web.xml, but I've never tried it. Regards, Lajos galatea.com Jörn Heid wrote: Well, I'm a newbie using Tomcat. With Resin, the deployment of the jars is quite easy - just put it in lib. With Tomcat I tried out common/lib, server/lib and lib. Without success. Here's the exception: type internal-server-error message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 21, column 7: Class org.apache.avalon.framework.component.Component not found in import. Line 22, column 7: Class org.apache.avalon.framework.configuration.Configurable not found in import. Line 23, column 7: Class org.apache.avalon.framework.configuration.Configuration not found I do not want to use the cocoon.war as I have many projects which requires Cocoon. So I want to share those jars. JOERN_HEID - 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: HELP for Cocoon2 and Unix
Comment out the 3 svg* serializers from the map:serializers/ section and the pipeline entries that use those serializers. Lajos galatea.com Andreas Grünhagen wrote: Hello, when I start cocoon2 (with Tomcat 3.3 Beta 2) under Linux or Solaris it always tries to establish a connection to a running XServer. How can I avoid this ? thanks in advance andreas - 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 + tomcat in window2000 services
Hi Ling, What version of Cocoon 2 are you running? I've run 2.0rc1 with Tomcat 3.2.2 after deleting both parser.jar and jaxp.jar, and copying xerces_1_x_x.jar from the Cocoon2 build directory to %TOMCAT_HOME%\lib. That did the trick for me. Lajos galatea.com Ling Kok Choon wrote: Hi, I have changed the parser.jar and jaxp.jar to zparser.jar and zjaxp.jar, and follow the change the setting on the wrapper.properties, the tomcat service is running well , but cocoon can't executed, the The sitemap handler's sitemap is not available error occur. Do u have any idea to solve this problem ? Note: OS=Window 2000, jdk1.3.1, cocoon version 2, tomcat 3.2.2 Thank you. regards, Kok Choon Name: Ling Kok Choon E-mail: Ling Kok Choon [EMAIL PROTECTED] Date: 10/22/01 Time: 11:37:24 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] - 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: Request Generator examples
Hi Luca: I did something like this in my sitemap: map:match pattern=request map:generate type=request/ map:transform src=stylesheets/request.xsl/ map:serialize/ /map:match My request.xsl looks like this: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:request=http://xml.apache.org/cocoon/requestgenerator/2.0; xsl:template match=/ html head titleRequest Test/title /head body bgcolor=#ff h1Request Test/h1 xsl:apply-templates/ /body /html /xsl:template xsl:template match=request:requestHeaders h3Request Headers/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:requestParameters h3Request Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:configurationParameters h3Configuration Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:header lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template xsl:template match=request:parameter lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template /xsl:stylesheet Hope it helps. Lajos galatea.com Luca Morandini wrote: Folks, has any of you been able to use Request Generator ? I tried hard to extract parameters (say, the host name) from a request generator's result via XSL... to no avail: has anyone had more luck (or expertise) ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - - 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: Deploying xml pages/resources
Hi Allan: I'm not sure what you are trying to do. If it is simply to process XML files using your old XSLs, look at the examples in the cocoon sitemap.xmap (like the hello.html one). All you have to do is add a similar entry for your own stuff. Then put your files under the cocoon webapp (according to the locations you specified in the sitemap entry) and start testing. If you want to use Cocoon2 in another web application, you'd essentially have to replicate the bulk of what's in your cocoon web app. I'm putting an entry in my Cocoon2 Tips Tricks Flashguide (http://www.galatea.com/flashguides/cocoon-tips-2.xml) describing how I've done this. Check back early next week if you are interested. If I've missed the intent of your question, let me know. Lajos galatea.com Allan Kamau wrote: I've installed C2 successfully now I'd like to know how I can be able to have cocoon serve my xml pages. In C1.x we could instruct TC3 to forward all .xml (and so on) to cocoon.jar. How is it done in C2, does it involve use of site map? Perhaps Lajos Moczar you could help.. Thank you. Allan. __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 1.8.2 and mySQL/ ESQL - hanging?
Hi Derek: Maybe the JDBC jar came with your version of MySQL? I downloaded mine from http://www.mysql.com/Downloads/Contrib/mm.mysql.jdbc-1.2c.tar.gz. I then had to edit tomcat.bat/sh so it could find the jar file. I initially developed my app on Win98 and then ported it to Linux, but I didn't have your problem. You're right about the supplied esql examples. All you have to do is change the parameters to those of your MySQL database and create the test table there. Or you can change the esql example to point to an existing table in your database. You might also try what Marty suggested first in the last post on this thread. SOP is to delete tomcat's work diretory for the cocoon webapp ($TOMCAT_HOME/work/localhost/cocoon) when you fix an error and want to restart Tomcat and test again. Lajos Derek Hohls wrote: Lajos Thanks for the suggestions. In response: 1. Where do I find the mysql_comp.jar you refer to (I do not have it on my Windows test machine) and a quick scan at the mysql site did not reveal anything either... all I have is the mm.mysql driver (as seen below) which is in the Java lib. 2. I cannot run the supplied esql examples as they depend on having the postgresql database installed... esql:driverorg.postgresql.Driver/esql:driver esql:dburljdbc:postgresql://localhost/test/esql:dburl esql:usernametest/esql:username esql:passwordtest/esql:password Thanks Derek [EMAIL PROTECTED] 17/10/2001 05:11:43 Derek: I assume that the MySQL jar is in the classpath? Depending on the version of Tomcat you're running, you'll want mysql_comp.jar in either $TOMCAT_HOME/lib or $TOMCAT_HOME/common/lib. Another idea is to run one of the supplied esql examples just to make sure that the taglib is working correctly. Lajos Derek Hohls wrote: I have a Cocoon system which fine on a setup under Win2000 as a localhost (Apache/Tomcat); but when I upload it to our UNIX server, also running Apache/Tomcat (which has just been setup to handle Cocoon - so we are still in 'testing' mode) - the app just hangs... The XML page is given below (altho' I do not think it is a syntax problem) - the MySQL part works OK if I logon to the server and run tests from the command line interface... Cocoon also handles normal XML pages fine, and the cocoon.properties file include the esql taglib. Any ideas as to where the 'hangup' might be or what part of the system I should look at it to try and see where it is getting to? My UNIX knowledge is very very basic (at best). All help much appreciated! Derek * ?xml version=1.0? ?cocoon-process type=xsp? ?cocoon-process type=xslt? ?xml-stylesheet type=text/xsl href=one_computer.xsl? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:request=http://www.apache.org/1999/XSP/Request; page esql:connection esql:driverorg.gjt.mm.mysql.Driver/esql:driver esql:dburljdbc:mysql://myhost.com/est/esql:dburl esql:usernameest/esql:username esql:passwordest/esql:password esql:execute-query esql:querySELECT * FROM computer/esql:query esql:results esql:row-results computer systemesql:get-string column=System//system /computer /esql:row-results /esql:results /esql:execute-query /esql:connection /page /xsp:page - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session and xsl
Mark: AFAIK, Tomcat does not by default share session across web applications. If you want that, you need Tomcat 4.0 and then you need to put all web applications in the same Realm object. You might want to take a look at the description of the Host tag in the Tomcat 4.0 documentation. If you don't have it on your machine, you can view mine at http://galatea.com/docs/tomcat40/config/host.html. Look for the section on Single Sign On. Hope that helps. Lajos galatea.com Mark S. Kent wrote: Marty, I tried your suggestion, but it didn't work. Although cocoon is seeing a session, it does not appear to be the same one that Tomcat(?) created when the user logged in. I put a session.getId() call into my JSP page and also one in the XML file and both returned different values. Now, I assumed (and I know what that means!) that since Tomcat created the session when the user logged in, and Cocoon runs under Tomcat, that both would be the same. Not the case. Can anyone shed light on how these sessions are being defined? From looking at what process is serving the file (Tomcat=JSP, Cocoon=XML), it seems a new session ID value is created for each one. Does that sound right? Or, is the session ID related to where these files reside within a folder structure (webapps\myapp vs. webapps\cocoon) and each call to a different alias in apache starts a new session? I'm confused. I thought Tomcat was handling them all. Mark -Original Message- From: Marty McClelland [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: RE: session and xsl I use C1.8.2 and have the following code to access the session: xsp:logicHttpSession theUserSession = request.getSession(); String theLoginName = (String) theUserSession.getAttribute(loginName); /xsp:logic marty -Original Message- From: Mark S. Kent [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 16, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: RE: session and xsl This is what I have in C1 in my XSP code: xsp:logic EmployeeData employeeData = null; try { employeeData = (EmployeeData)session.getAttribute( employee ); } catch( ClassCastException e ) {} Integer empID = null; if( employeeData != null ) { System.out.println( Data ID: + employeeData.getEmployee_id() ); empID = employeeData.getEmployee_id(); } else { System.out.println( Data ID: none ); empID = new Integer( -1 ); } /xsp:logic The line: employeeData = (EmployeeData)session.getAttribute( employee ); is exactly how I do it in my JSP pages. When I test for null on the employeeData object, however, it is always null. It may be a C1 limitation. We are looking at C2 because of the additional features. Is there a request object for the session variable? Currently I retrieve session variables as above and have only done requests for form/URL variables. Mark -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 16, 2001 1:35 PM To: [EMAIL PROTECTED]; Mark Kent Subject: Re: session and xsl On 16.Oct.2001 -- 09:14 AM, Mark S. Kent wrote: I also have an interest on retrieving session values in my XML file to help build the XML data. I thought that XSP would be able to read them as my JSP pages do since both run under Tomcat, but am having trouble seeing them from the XML document. Mark, accessing session attributes from XSP ist piece of cake :-) There's a logicsheet aka taglib for it. Otherwise use the request object and access the data through ordinary java. Chris, is the solution you mention below only available in C2? Which one of the two alternatives? Honestly, I don't know about C1, there might be a session taglib but passing parameters from a non existant sitemap won't do :-) From: Christian Haul [mailto:[EMAIL PROTECTED]] On 15.Oct.2001 -- 04:35 PM, Mohamed Ramzy wrote: hi all, i'm trying to read session variables through .xsl file, if you have any idea how to do that, please tell No way. At least from a stylesheet. Pass parameters from sitemap instead. For a taglib, just use session taglib within your taglib. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: Configure a oracle db conection in cocoon2
Alberto: The esql logicsheet should already be defined in cocoon.xconf. See http://xml.apache.org/cocoon2/logicsheet-esql.html for the specifics of what goes in there in case it's missing in your copy. Lajos Alberto Garcia wrote: Hi everybody, and thank you Lajos. We have done the connection with the oracle db. And now our problem is that cocoon doesn´t recognize the esql namespace. How do we have to configure the sitemap in order to recognize the esql namespace? Thak you again and Saludos Cordiales Alberto - Original Message - From: Lajos Moczar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 23, 2001 1:15 PM Subject: Re: Configure a oracle db conection in cocoon2 Hi Alberto: Here is what you have to do: 1) Add the Oracle class to Cocoon's web.xml in the init-param section, thus: init-param param-nameload-class/param-name param-value oracle.jdbc.driver.OracleDriver ... // Other database classes /param-value /init-param 2) Add the oracle datasource to cocoon.xconf, thus: datasources jdbc name=your_datasource_name pool-controller min=5 max=10 oradb=true/ // Don't forget this!!! useryour_user_name/user passwordyour_password/password dburlyour_database_url/dburl /jdbc ... /datasources 3) Then restart everything and see if it works. You can edit one of the esql samples to point to your Oracle database for testing. Hope that helps. Lajos www.galatea.com Alberto Garcia wrote: Hello everybody, I would like to create a connection with an oracle db in cocoon2. I've been looking for the way to make it in internet , and I have to configure the cocoon.properties file, but I can't find this file in my cocoon2 installation. Do I have to create this file? where? who? Sorry about my English and thank you very much. Saludos Cordiales Alberto -- This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of SchlumbergerSema. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. -- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of SchlumbergerSema. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. -- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configure a oracle db conection in cocoon2
Hi Alberto: Here is what you have to do: 1) Add the Oracle class to Cocoon's web.xml in the init-param section, thus: init-param param-nameload-class/param-name param-value oracle.jdbc.driver.OracleDriver ... // Other database classes /param-value /init-param 2) Add the oracle datasource to cocoon.xconf, thus: datasources jdbc name=your_datasource_name pool-controller min=5 max=10 oradb=true/ // Don't forget this!!! useryour_user_name/user passwordyour_password/password dburlyour_database_url/dburl /jdbc ... /datasources 3) Then restart everything and see if it works. You can edit one of the esql samples to point to your Oracle database for testing. Hope that helps. Lajos www.galatea.com Alberto Garcia wrote: Hello everybody, I would like to create a connection with an oracle db in cocoon2. I've been looking for the way to make it in internet , and I have to configure the cocoon.properties file, but I can't find this file in my cocoon2 installation. Do I have to create this file? where? who? Sorry about my English and thank you very much. Saludos Cordiales Alberto -- This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of SchlumbergerSema. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. -- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.0 + Cocoon2 rc1 on RedHat 6.2
Hi all: I tried this install today, using JDK 1.2.2_006. The Tomcat code is the 4.0 release version and Cocoon2 is the version announced this morning. When I access http://localhost:8080/cocoon, Tomcat core dumps with stuff like this (in catalina.out): *** SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [0]: SI_USER [pid: 0, uid: 0] stackpointer=0x44884e28 Full thread dump Classic VM (1.2.2_006, green threads): Thread-16 (TID:0x40e40510, sys_thread_t:0x9252658, state:R) prio=5 at java.lang.ClassLoader.findLoadedClass(Native Method) at java.lang.ClassLoader.loadClass(ClassLoader.java:284) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.looku p(Unknown Source) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.looku p(Unknown Source) at org.apache.cocoon.sitemap.AbstractSitemap.compose(AbstractSitemap.jav a:122) *** Has anyone else seen this? I've never successfully run any Cocoon2 build on my Linux Box with any version of Catalina. Getting kinda frustrating. Any ideas will be welcome. Lajos Moczar galatea.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: include file in apache http.conf
See my FlashGuide on the subject at http://www.galatea.com. That is the configuration I have running here on my laptop. Lajos [EMAIL PROTECTED] wrote: Hi, I'm a newbie to cocoon. Trying to set up on win98 with apache and tomcat. Apache and tomcat both work fine until I try to include the mod_jk.conf-auto changed file into httpd.conf. After that file is included, Apache won't run. Any help appreciated! - 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: C1 to C2
Andre: You might check out some guides I've written when I was struggling with this stuff. They're at my site, galatea.com (powered by Cocoon 1.8.2 but soon 2.1!). I explain how to get mod_jk working which, as Luca points out, it preferable. If these still can't help you, I'll play around some more with my own configurations and see what I can come up with. Regards, Lajos Andre Juffer wrote: Luca, Anders, Lajos, I keep on having the same problem. While localhost:8080/cocoon correctly displays the welcome page of cocoon2, it seems to be impossible for me to get apache + tomcat 3.2.2 + cocoon2 working together, such also the request localhost/cocoon displays the welcome page. The following is what being including into httpd.conf (in addition to what is already given in tomcat-3.2.2/conf/tomcat-apache.conf): AddType text/xml .xml AddHandler jserv-servlet .xml Alias /cocoon /usr/local/jakarta-tomcat-3.2.2/webapps/cocoon Directory /usr/local/jakarta-tomcat-3.2.2/webapps/cocoon Options Indexes FollowSymLinks /Directory ApJServMount /cocoon/servlet /cocoon Location /cocoon/WEB-INF/ AllowOverride None deny from all /Location Location /cocoon/META-INF/ AllowOverride None deny from all /Location RewriteEngine On RewriteLog /var/log/rewrite.log RewriteLogLevel 3 RewriteRule Biocomputing/(.*) /cocoon/Biocomputing/$1 [PT] The rewriting is actually working in the way it should (Thanks Luca). Also, localhost/cocoon in fact displays the CONTENT of the webapps/cocoon directory and the same for localhost/Biocomputing/ (with the trailing /), which gives me correctly the /cocoon/Biocomputing directory. The key problem are these lines (I think) AddType text/xml .xml AddHandler jserv-servlet .xml In fact, if I request localhost/cocoon/welcome.xml, the cocoon2 servlet is responding (in the way it should): --- Cocoon 2 - Resource not found type resource-not-found message Resource not found description The requested URI /cocoon/welcome.xml was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/welcome.xml path-info welcome.xml --- The sitemap is not compiled, though. If I add to the sitemap the following --- map:match pattern=welcome.xml map:redirect-to uri=welcome/ /map:match --- localhost/cocoon/welcome.xml will not display the welcome. It is shown, of course, upon the request localhost:8080/cocoon/welcome.xml. In fact, the request localhost/cocoon/welcome results in Not Found The requested URL /cocoon/welcome was not found on this server. Apache/1.3.12 Server at ajuffer-dsl.oulu.fi Port 80 - So, in the latter case, Apache is handling the request instead of cocoon2. Obviously, this is because there is no .xml extension. If you are using Tomcat 3.2.2, Apache 1.3.* and cocoon2, what exactly have you for AddType and AddHandler directives in your configuration? Of course, I can always write all my files ending with e.g. xml, xsp and adapt the sitemap accordingly (and use 8080). No objections there, but it is ugly. Currently, I think, requests like your-server/Foo/foo without having some extension at the foo, cannot be resolved correctly in a simple way such that cocoon2 takes over the request. Or do I still miss something totally . what, on earth? Cheers, Andre. - 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: C1 to C2
I always point directly to mod_jk.conf-auto in httpd.conf because it will always be up to date. It is created each time Tomcat starts to reflect that latest context information for each webapp. If I have things that I want to add, I just put them in httpd.conf after the include for mod_jk. Thus: Include /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto JkMount /*.xml ajp13 Lajos Uli Mayring wrote: On Wed, 18 Jul 2001, Luca Morandini wrote: Andre, this is snippet from my mod_jk.conf (get rid of mod_jk.conf-auto, or it will be overwritten every time you start Tomcat): Is that a problem that mod_jk.conf-auto gets overwritten every time? If I get rid of it, isn't it always newly created? Ulrich - 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: C1 to C2
If I understand you correctly, all you have to do is rename cocoon.war to ROOT.war - this will eliminate the need for the cocoon/ after your hostname, since the ROOT webapp equates to /. Dont' forget to copy all your own stuff from $TOMCAT_HOME/webapps/cocoon to $TOMCAT_HOME/webapps/ROOT. Lajos Moczar galatea.com Andre Juffer wrote: Luca Morandini wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre Juffer Sent: giovedì 12 luglio 2001 15.11 To: [EMAIL PROTECTED] Subject: Re: C1 to C2 Luca Morandini wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre Juffer Sent: giovedì 12 luglio 2001 13.35 To: [EMAIL PROTECTED] Subject: Re: C1 to C2 Hmmm... why you would like to start a different context ? I assumed you wanted just to put you application in a directory other than \webapps\cocoon... am I wrong ? You are entirely correct. That is exactly what I have in mind. I should say that all static html (normally in public_html in user's subdirectories, as is common under Unix) are still served directly by the Apache webserver. Nothing of that is going through cocoon. Under cocoon1, one uses tomcat where files with the extension .xml where served by tomcat and ultimately by cocoon1. I was under the impression that things with cocoon2 were done in a similar way, but maybe everything should be served by cocoon2 first (including these html files) and the sitemap would than start the appropriate pipelines? (That would explain the word sitemap). So, cocoon2 would control the complete website (both static and dynamic files). Is the Apache webserver in fact still required to run on the server? No, you could dispense with Apache and run everything on Tomcat, though it seems an overkill to me (and less stable, too). Talking about C2, there is no need to start another Cocoon context, far from it... you should just tell Cocoon to find your files where they are. The mechanism to do that is to modify the sitemap (the one I've named general sitemap in my previous message) in order to mount the sub-sitemap correctly. The odd thihg about this is that you may find your site only by referring to an URI with cocoon in it, like ...\cocoon\cru\index.xml. Next step is to tell Apache to redirect everything from cru to coocon\cru (provided, of course, cru is the name of you application); I've used the rewrite engine of Apache, adding the following to httpd.conf: RewriteEngine On RewriteLog C:/apps/apache/logs/rewrite.log RewriteLogLevel 0 RewriteRule cru/(.*) /cocoon/cru/$1 [PT] It works, but it took me half a day to figure it out the whole process :( So, apparently it is not possible to have something like mydomain.com/Foo/foo, and one must always use something like mydomain.com/cocoon/Foo/foo, if I understood you correctly. That is too bad, since it was certainly possible with cocoon1. There must (should) be a way around it. Andre Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 59 85 1 Office +39 0335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - - 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: Servlet error starting cocoon2
You need to copy the xercesXXX.jar file from the Cocoon2 distribution to $TOMCAT_HOME/lib AND remove both jaxp.jar and parser.jar. I've got 3.2.2 running with Cocoon2 on Win98 and Linux. On Linux, I got away with copying the xerces jar, removing jaxp.jar and renaming parser.jar to zparser.jar, but on Windows I had to remove parser.jar as well. Then everything worked. Regards, Lajos Moczar galatea.com Daniel Fernández wrote: Attached, you have the HTML page returned by COCOON I've made all posibilities: Make the war, and put it into the webapps. 1- Without the file lib/jaxp.jar TOMCAT CAN'T START 2- Renaming the file lib/parser.jar to lib/zparser.jar - TOMCAT CAN'T START 3- With the two points (1 and 2) -- TOMCAT CAN'T START 4- With all files, and without renaming - SERVLET ERROR PC: AMD K6-2 400Mhz 256 Mb RAM DOS: Windows 2000 Profesional (SP-1) Server: Tomcat 3.2.2 Please, help me and Thankx --- Segmentation Fault --- Cocoon 2 - Internal servlet error type internal-servlet-error message Internal servlet error description Cocoon was not initialized. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon embedded exception org.xml.sax.SAXException: Could not get valid parserNamespace not supported by SAXParser embedded exception stacktrace org.xml.sax.SAXException: Could not get valid parserNamespace not supported by SAXParser at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:61) at org.apache.cocoon.Cocoon.configure(Cocoon.java:213) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:157) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:600) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:151) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) exception org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations stacktrace org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations at org.apache.cocoon.Cocoon.configure(Cocoon.java:217) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:157) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:600) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:151) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) - 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] cocoonerror.html Content-Type: text/html Content-Encoding: quoted-printable attachment.txt Content-Type: text/plain - 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.0/1] Error in SQLTransformer??
I've been trying to find out why SQLTransformer has empty result sets. After various debug statements, I realized that the finally clause in the execute() method of the Query object in SQLTransformer.java is closing and releasing the connection after the query is executed. Does anyone know why this is? I commented out the close/release statements and now all my queries work! Obviously, there needs to be a release of the connection back to the pool, but it needs to occur after all result rows have been read. So I've added a call to query.close() at the end of the executeQuery() method. Anyone know if this is the intended behavior or am I way off here? Lajos Moczar galatea.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The sitemap handler's sitemap is not available Help
I've watched this list for months as others have had this problem, and today I got bit by it myself (Cocoon2b1 w/ Tomcat 3.2.2 on Win 98). Just delete $TOMCAT_HOME/lib/jaxp.jar and $TOMCAT_HOME/lib/parser.jar. That did it for me. Lajos Galatea IS Inc. Kalven Beaver wrote: HelpHelp... Anyone run into this problem and have a workaround or solution? Followed instructions and still get: 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:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail 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] - 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: cocoon2 in Windows 98, Tomcat 3.2.1 ?
I'm doing it. I just downloaded C2b1, compiled, installed and it ran. Unfortunately, it is horrendously slow even w/ 160MB on a Pentium II. Lajos Ling Kok Choon wrote: hi, Can cocoon2 be installed in Windows 98 with Tomcat 3.2.1 as a web server and servlet container ? Thank you. From ^^ -00''00- Kok Choon. Name: Ling Kok Choon E-mail: Ling Kok Choon [EMAIL PROTECTED] Date: 06/20/01 Time: 21:28:51 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] - 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: Servlet Wrapper Error - C2.1dev + Tomcat4.0b5
Any link gives me this error. So far I haven't seen a single cocoon2 page on Linux. Tonight I'll try 2.0b1. Lajos giacomo wrote: On Thu, 14 Jun 2001, Lajos Moczar wrote: Well, I'm working with Linux and TC4.0 almost exclusively and don't have faced your problem. Can you tell my when this error happens (which link on the C2 sample/welcome page) is giving the error you get. Giacomo Howdy all: I running Tomcat 4.0.b5 (binary distribution) and Cocoon 2.1dev on both Windows 98 and Linux RedHat 6.2. On Windows, I unzip Tomcat, build Cocoon, copy the cocoon.war file over and I'm in business. On Linux, however, I get the following: javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.cocoon.servlet.CocoonServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:797) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) . I've tried adding servlet.jar to Cocoon's web.xml in the extra-classpath init-param, but to no avail. I've also tried adding servlet.jar to the catalina classpath but it didn't help either. Does anyone know what causes this problem in the first place? Thanks in advance. Lajos Moczar - 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]