RE: Re: ESQL support for stored procedures
Thanks for the info - tell where I can take a look at the patch once you've uploaded it. Earlier today, I made the few minor additions necessary to the esql logicsheet, so that we can now use our Sybase stored procs via support for CallableStatement, which seems to work fine. I can post it here if anybody is interested. I'll be interested to understand more about the causes of the problems that you are experiencing, since we may come across similar problems using Sybase - are these really errors really orginating from the Cocoon ESQL layer, or are they due more to the implementation of the JDBC drivers? Cheers, Kosh -Original Message- From: haul Sent: 18 January 2002 16:14 To: cocoon-users Cc: haul Subject: Re: ESQL support for stored procedures On 17.Jan.2002 -- 06:43 PM, [EMAIL PROTECTED] wrote: Hi, Could someone please confirm for me what the current status/direction of support for stored procs, i.e. CallableStatement, in ESQL is currently, before I go and add my own extensions? There is a proposed patch by Peter Durrant on it (which I unfortunately didn't manage to apply) a one written by myself which is a bit more flexible I think. Today I tried it with an INFORMIX IUS9.23 but got an The cursor has been previously released and is unavailable. error message which I don't quite understand. I will to verify my suspicion of the cause with another RDBMS shortly (i.e. PostgreSQL). Had just now some problems with CVS but will try to commit what is already there ASAP. (It doesn't hurt but doesn't fly either.) 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] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - 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]
I need your help....
hello, I have downloaded cocoon-2.0 the other day.When I unzipped cocoon-2.0 folder had already cocoon.war file in it. I really did not understand where am I type the command below .\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps install Do I suppose to type this in my MsDos prompt or where since I already have the .war file (from unzipping) can I just copy that file instead of building another one.? Another question is: I just copied cocoon.war file (which came with cocoon-2.0 when I unzipped) to tomcat's webapps/lib and then started the tomcat server. But when I typed Http://localhost:8080/cocoon/ the page come up with an error message saying that the page can not be displayed. Error 404. Thanks Adam E. Yartas
RE: I need your help....
Erkan, could you just follow the (very recent) thread named Just starting COCOON ? It addresses the same concerns you have. Best regards, P.S. Please, next time use plain text instead of HTML. - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Erkan Yartas [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 19, 2002 6:04 AM To: [EMAIL PROTECTED] Subject: I need your help hello, I have downloaded cocoon-2.0 the other day.When I unzipped cocoon-2.0 folder had already cocoon.war file in it. I really did not understand where am I type the command below .\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps install Do I suppose to type this in my MsDos prompt or where since I already have the .war file (from unzipping) can I just copy that file instead of building another one.? Another question is: I just copied cocoon.war file (which came with cocoon-2.0 when I unzipped) to tomcat's webapps/lib and then started the tomcat server. But when I typed Http://localhost:8080/cocoon/ the page come up with an error message saying that the page can not be displayed. Error 404. Thanks Adam E. Yartas - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache-Tomcat configuration
Hi, I've problems with Apache-Tomcat-Cocoon configuration. I use Russian Apache v. 1.3.22 Tomcat 4.0.1 Cocoon2 and JDK1.3.1 on RH7.2 All settings (env variables,...) seem ok, Apache works properly on port 80 and Catalina does the same on port 8080. My problem is: On MSWindows system all documets (utomatically generated by Catalina) dont normally encoding from UTF-8 :(( On Linux system some documents encoding without any problem... Does anybody have any ideas ? Thanx. yuryx - 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: Just starting COCOON
Understand that what you download from the apache Cocoon site is not a software tool or IDE but a super-powered servlet with many illustrations of how to use it, all in one huge example webapp (much beyond a typical Hello World! example). Your starting point is getting this one huge example web app to deploy once or twice on tomcat by placing the cocoon.war file in the webapps folder of tomcat. The as is Cocoon installation either works or it doesn't. There is nothing you can do right or wrong. Especially for the Current Version System CVS revision xml-cocoon2 from the jakarta site http://jakarta.apache.org/site/cvsindex.html. My current tomcat revision is Apache Tomcat/4.0.2-b1. After I get a stable Cocoon revision running I use it for a few months and back it up religiously when I go for the next cvs. The command line: build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps often will not work depending on the exact TOMCAT_HOME environment variable you are using. For example c:/Program Files/tomcat... has a space and can cause age old problems. Just copy the cocoon.war to the %TOMCAT_HOME%\webapps yourself. Fire tomcat up. It either works or you got a bum revision or copy of Cocoon.war. If it doesn't work the second time you fire it up, delete the generated ...tomcat/work/localhost/cocoon and the ...tomcat/webapps/cocoon folders so that it has to deploy from the cocoon.war file again. May have to do this repeatedly until you rebuild cocoon.war without hsqldb active or start making your own webapp project(deployed through your own *.war file). The problem is with the hsqldb database example has a bug while shutting down. The sooner that you rebuild cocoon from its sources with hsqldb-server class=org.apache.cocoon.components.hsqldb.ServerImpl logger=core.hsqldb-server pool-max=1 pool-min=1 parameter name=port value=9002/ parameter name=silent value=true/ parameter name=trace value=false/ /hsqldb-server commented out in the src/webapp/cocoon.xconf file, the better. The the rest of the examples will start and stop just find. Note that some of the examples need extra jars placed in the cocoon/lib folder such as jndi.jar, phpsrvlt.jar, etc. The important thing is to get past flopping around in this one huge example webapp and start your own serious webapp as soon as possible after you see Cocoon's one huge example webapp run once or twice. Cocoon is not a typically installed software package and so to apply it to your own web app at first is not intuitive. The documentation has a long way to go to catch up; remember it is a work in progress and tends to assume that we know the small but totally baffling how-to-get-started stuff. I finally discovered a cool way to do it and perhaps with editing from the Cocoon 2 Team we can put together a How to apply Cocoon 2 for their web site. The most important thing is to set up your own webapp project build area. This takes some work but you can do it in stages. To start, create a project folder(sibling to the xml-cocoon2 folder), name it according to your project, prepare your directory structure: +-lib all of the jars from your current working xml-cocoon2/lib folder plus the cocoon.jar from the xml-cocoon2/build/cocoon folder //this is key because now your own build can be simplyfied +-src //For your own custom additions to cocoon +-documentation //At first just a copy from the xml-cocoon2/src //You can eventually put your own or only things you need here +-java //Only your own custom code here. No cocoon code because cocoon.jar already has the compiled Cocoon classes. +-webapp//At first a copy of the webapp from xml-cocoon2/src //This you start modifying starting with the homepage //and sitemap.xmap appendcp.bat //classpath appender build.bat build.xml//A stripped down or commented out revision from the one //in the xml-cocoon2 folder. Have it generate a build folder // for construction of your webapp jar and war files. database.properties. //set up your database initialization //you will need to set somethings according to // http://xml.apache.org/cocoon/developing/datasources.html Your custom webapp's build.xml can be pared down considerably from the huge example cocoon webapp. Until you make custom source code additions to your ...src/java folder you can disable the compile target. Mostly you are having it build the stuff it needs for your war file while applying build variables such as database-driver=org.gjt.mm.mysql.Driver. The next stage is studying the ...src/webapp/sitemap.xmap file and modify the welcome pattern matching to something you know and want. There is no need to pare the sitemap.xmap file down; eventually you will need more and more of it and anything not in
POI 1.2.0 (development release) (Cocoon-Excel)
Hi All, The POI project (http://poi.sourceforge.net) has just released a 1.2.0 version. Please note this is a development release only. 1.0.2 (confusing I know) is the current production release. In this release, we've restructured the serializer in preparation for writing the generator and serializers for additional POI file formats and **added cell styling to the HSSF Serializer**. In addition there are a few performance enhancements to strings and various other things you can read about in the release notes. Please remember this is a development release. We're especially interested in folks taking a crack at the serializer. We'd like to get it up to the 1.0.x API feature set early in this cycle. Thanks, Andy PS: For those of you who do not know yet: The POI project contains several components for dealing with popular OLE 2 formats in Java. POIFS is a pure Java implementation of the OLE 2 Compound document format. HSSF is a pure Java implementation of Excel 97 XLS file format based on POIFS. HSSF Serializer is a pure Java serializer for Cocoon 2 that uses the Gnumeric XML format to output XLS. Full documentation of the POIFS file format is included. If you wish to output reports in the Excel file format, or if you have existing XML documents that you need to get into Excel, then this project is probably what you're looking for. -- www.superlinksoftware.com www.sourceforge.net/projects/poi - port of Excel format to java http://developer.java.sun.com/developer/bugParade/bugs/4487555.html - fix java generics! The avalanche has already started. It is too late for the pebbles to vote. -Ambassador Kosh - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dynamic stylesheet using an XSP ...possible?
Yes. See cocoon/sub/sitemap.xmap for examples. Vadim From: root [mailto:root] On Behalf Of Christian Zoffoli Hi to all. Is it possible to generate a stylesheet using an XSP ? ...and using is like a normal stylesheet with the cocoon pseudo protocol ?? ...thanks in advance Christian - 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: Implement a Generator or a URLStreamHandler?
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]] On Saturday 19 January 2002 06:05, Conal Tuohy wrote: . . . I think my options are either to write a NewsGroupGenerator in the Cocoon framework, or a URLStreamHandler (and URLStreamHandlerFactory) in the Java URL framework. With a URL-handler I could just use the standard FileGenerator like so: . . . I'd go for an URLStreamHandler, which is reusable outside of Cocoon. I don't know if Cocoon allows for configurable URLStreamHandlers (or are they configurable via java system properties?), but configurable handlers would definitely be a plus. I do not recall correctly why, but there are some issues with standard URLStreamHandlers, that's why Cocoon have own set of classes to handle protocols. If you wish to have better integration with Cocoon (including better integration with caching sub system), consider writing your news protocol implementing using org.apache.cocoon.environment.Source. Look into org.apache.cocoon.components.source package for the examples. All Cocoon protocols are declared in cocoon.xconf file: --8- !-- URL Factory: The url factory adds special url protocols to the system, they are then available inside Cocoon, e.g. as a source argument for one of the sitemap components. -- url-factory logger=core.url-factory !-- Allows access to resources available from the ClassLoader, using getResource() method. -- protocol name=resource class=org.apache.cocoon.components.url.ResourceURLFactory/ !-- Allows access to resources available from the servlet context, using getResource() method. -- protocol name=context class=org.apache.cocoon.components.url.ContextURLFactory/ !-- Add here protocol factories for your own protocols -- /url-factory --8- Vadim - 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: Select on Browser Capabilities
I think generally you are right. It would be nice to get the capabilities directly from the header and serve the content accordingly. But I guess this will have to wait until the next(?) generation of mobile phones. there is a project called RDF that is planned to be used to describe device capabilities. The link to RDF file will be sent with the UA string in HTTP header. However this is just a plan that might be realized in next century BUT, Cocoon2 has such feature as Browser Capability database. so instead of recognizing the browser in pipeline or in the code you can just add the browser to this database and use the variables from the database (such as screen width, color depth, img format) to serve a specific stylesheet for specific mobile phone or PC browser. have a look at previous messsages in this list where I talk about this hidden feature. Lars - 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]