new cocoon based web development tool reaches beta - kangax
Beta testers required !! Kangax: a new application enabling the rapid development and maintainence of professional websites while abstracting the technical details from the end user. leveraging the power of new technologies including xml, xsl, soap and java. build websites by employing the power of cocoon 2 xml publishing framework. deployable in many hosting environments including IBM Websphere, JRun, Jakarta Tomcat and many more. Corporations who wish to syndicate their data or services via xml to affiliates, partners or even the general public can now do so using Kangax For more information please visit. http://kangax.dyanet.com/client/4/home.html
Re: reader mime problem - please help
Hi Dean, Try src=downloads/{1}.exe Roman Dean McGowan wrote: Cannot get the reader to recognize the application/octet-stream when I am attempting to Download a file. map:match pattern=downloads/*.exe map:readsrc=downloads/*.exe mime-type=application/octet-stream/ /map:match can anyone please help. PS I know this is not the most efficient way of handling downloads, however it is necessary at the moment. - 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: reader mime problem - please help
Yes I know ... got caught up in the rush of it all ... phew LOL -Original Message- From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Sent: Thursday, 11 April 2002 4:34 PM To: [EMAIL PROTECTED] Subject: Re: reader mime problem - please help Hi Dean, Try src=downloads/{1}.exe Roman Dean McGowan wrote: Cannot get the reader to recognize the application/octet-stream when I am attempting to Download a file. map:match pattern=downloads/*.exe map:readsrc=downloads/*.exe mime-type=application/octet-stream/ /map:match can anyone please help. PS I know this is not the most efficient way of handling downloads, however it is necessary at the moment. - 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]
cocoon2.1-dev and XMLReader
Hi, I am tried cocoon2.1-dev from cvs, tomcat 4.0.3 and jdk1.4.0 I have problem with link '/cocoon/sub/xsp error is : SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader what is wrong ? regards peco - 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: please, please, ... help with SQL transformer
Since nobody else answered, I'll give it a try. I don't know how that works with Access, but your datasource declaration seems incomplete. E.g. here's mine (of course it looks differently because your using JDBC-ODCB for Access, whereas with Oracle, there's a native JDBC-driver): datasources !-- Oracle DB -- jdbc name=aigle_oracle_pool pool-controller min=5 max=10 oradb=true / auto-committrue/auto-commit dburljdbc:oracle:thin:@pallas6:1521:PAIG/dburl userMyUsername/user passwordMyPW/password /jdbc Something else you could try is, in web.xml, comment out the IBM Websphere section, and place your declaration in front of the other one. Can sometimes help in case of a strange classloader problem. Otherwise, give us more info. Check the various logs for that. Or try to use Oracle directly, I think it is easier for Java applications. Did you test your connection in another front-end application? E.g. a small Java program,just to see if it works. Regards Kurt -Message d'origine- De: Jerónimo Molina [mailto:[EMAIL PROTECTED]] Date: mercredi, 10. avril 2002 16:57 À: [EMAIL PROTECTED] Objet: please, please, ... help with SQL transformer Hi all (sorry for my poor english): My name's Jeronimo Molina, and I'm neby with cocoon. I'm trying to work with SQL transformers, for generate an HTML page with data stored in a ACCESS database on my machine (it's my first work with cocoon, so I don't want to do this with ORACLE any other DB). I'm trying to do this at the next steps: 1.- Configure the JDBC-ODBC driver at the web.xml file, by adding sun.jdbc.odbc.JdbcOdbcDriver as shown bellow: init-param param-nameload-class/param-name !-- For IBM WebSphere com.ibm.servlet.classloader.Handler -- !-- For Database Driver -- oprg.hsqldb.jdbcDriver !-- For JDBC:ODBC -- sun.jdbc.odbc.JdbcOdbcDriver /param-value /init-pram 2.- Configure the connection ad the cocoon.xml file as shown bellow: datasources jdbc name=personas dburljdbc:odbc:nombres/dburl /jdbc /datasources Note that nombres is the name of the ODBC I've just created pointing to my access database. 3.- Configure the sitemap.xmap file to use my new connection. I've done this modifying a line: map:match pattern=sql/* map:generate src=docs/samples/sql/{1}.xml/ map:transform type=sql map:parameter name=use-connection value=personas/ /map:transform map:transform src=stylesheets/simple-sql2html.xsl/ map:serialize/ /map:match 4.- I've also modified the sql-page.xml, putting the code query select id,nombre from nombres /query (where nombres is the table name) in order of the query example provided in that file. BUT I don't get the data stored in my access database, and I don't know why. please, can anyone help me? Thanks... Jeronimo. - 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: Cookie question
-Original Message- From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 10:41 PM To: [EMAIL PROTECTED] Subject: Cookie question Hi, My browser does not recieve cookie... Here is XSP piece: xsp-cookie:create-cookies xsp-cookie:cookie name=locale xsp-cookie:valuerlocale/xsp-cookie:value /xsp-cookie:cookie /xsp-cookie:create-cookies Did I forgot something? Btw, it seems that you are trying to set locale using a cookie. Have a look at LocaleAction. It will do the job for you. Thanks, Alex. - 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: RE: how to marshal objects within xsp
Hello, ad 1: Vadim, as you suggested it finally works with this expression - thanks!: util:include-exprutil:exprxsp:exprmm.marshal(mm.getSimpleItems())/xsp:expr/util:expr/util:include-expr ad 2: The contentHandler used in 2 b) is a TraxTransformer instance. Is it possible that in this case the resulting intermediate XML contains the '?xml version=1.0 encoding=UTF-8?' expression before the actual marshalled xml? Could this be the reason for the javax.xml.transform.TransformerException: java.lang.NullPointerException? So far I did not cope it to apply a stylesheet correctly to the marshalled xml. The stylesheet works correctly for option 1: Regards, Harald From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 1. Include Object as String: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:cinclude=http://apache.org/cocoon/include/1.0; xmlns:util=http://apache.org/xsp/util/2.0; some-items anAttr=aVal util:include-expr xsp:exprmodel.getAnItemAsString()/xsp:expr /util:include-expr /some-items /some-items /xsp:page The page does not compile. The method .getAnItemAsString is not even executed. This will compile if you put everything on one line, no text nodes in the util:include-expr element: util:include-exprxsp:exprmodel.getAnItemAsString()/xsp:expr/util: include-expr Also, I would not recommend you this anyway because of re-parsing performance penalty. As follows I include my original sources and the corresponding output: (They slightly differ formally from the above mentioned example) Table.xsp: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:cinclude=http://apache.org/cocoon/include/1.0; xmlns:util=http://apache.org/xsp/util/2.0; xsp:structure xsp:includeweb.ModelManager/xsp:include /xsp:structure simple-items edit=true curSel=2 xsp:logic ModelManager mm = new ModelManager(); util:include- exprutil:exprmm.marshal(mm.getSimpleItems())/util:expr/util:includ e- expr You need xsp:exprmm.marshal(mm.getSimpleItems())/xsp:expr here to treat Java as Java but not as text. (See above!!!) (not sure about util:expr, try with it and without it, but xsp:expr is must) Vadim /xsp:logic /simple-items /xsp:page resulting web-page: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling Table_xsp: Line 136, column 111: ')' expected. Line 0, column 0: 1 error created Table_xsp.java: try { newParser = (org.apache.cocoon.components.parser.Parser) this.manager.lookup( org.apache.cocoon.components.parser.Parser.ROLE); InputSource __is = new InputSource( new StringReader(String.valueOf(this.characters(mm.marshal(mm.getSimpleItem s())) ;))); XSPUtil.include(__is, this.contentHandler, newParser); } catch (Exception e) { getLogger().error(Could not include page, e); } finally { if (newParser != null) this.manager.release((Component) newParser); } } As you can see there is a ; in between a java statement: '...s()));)));' Is there any other error in my page? 2. Use Castor's marshalling capabilities: some-items anAttr=aVal xsp:logic model.marshal(this.contentHandler); /xsp:logic /some-items This sounds perfect. Within the method I pass the contentHandler (wrapped into DocumentHandlerAdapter) to castor's marshaller before I perfom mashal(obj). As A result the cinclude transformer (which I need) complains about a Nullpointer exception. Make sure that model.marshal() does not call startDocument() and endDocument() on the contentHandler. If it does, you should strip these calls by wrapping contentHandler into the IncludeXMLConsumer. This should work. Or we have a bug. I include fragments of the original sources: Table.xsp: ... simple-items edit=true curSel=2 xsp:logic ModelManager mm = new ModelManager(); mm.chmarshal(mm.getSimpleItems(), this.contentHandler); /xsp:logic /simple-items .. ModelManager.java: ... public void chmarshal (Collection col, org.xml.sax.ContentHandler _docHandler){ Marshaller marshaller = marshaller = new Marshaller(new org.apache.cocoon.xml.DocumentHandlerAdapter(_docHandler)); Iterator it = col.iterator(); while (it.hasNext()){ Object obj = it.next(); marshaller.marshal(obj); } } ... I include two distinct possibilities to call the
RE: how to marshal objects within xsp
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 2. Use Castor's marshalling capabilities: some-items anAttr=aVal xsp:logic model.marshal(this.contentHandler); /xsp:logic /some-items This sounds perfect. You can use CastorTransformer from Cocoon scratchpad instead. It looks something like this: some-items anAttr=aVal castor:insertBean name=model [mapping=mapping.xml] / /some-items You'll find it here: xml-cocoon2\src\scratchpad\webapp\mount\castor\ Regards, Konstantin Piroumian xml-cocoon2\src\scratchpad\webapp\mount\castor\ - is it included in cocoon2's last release? Could not find it. Do you have a link to download it? - Thanks! Not sure about the released version. You can download the latest src from CVS. Try also to search in src directory for 'castor', it could be moved to another place since release. At last, you can try to get it through the CVS snapshots: http://cvs.apache.org/snapshots/xml-cocoon2/ Konstantin Regards, Harald -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net - 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]
JDBC + JDK 1.4
Hi, I know this annoying issue has already been discussed here, but i want to have today's news about it... The bug is : AFAIK, JDBC connections don't work with JDK 1.4, the core.log give us : DEBUG (2002-04-11) 09:50.34:916 [core.datasources.mysql] (Unknown-URI) Unknown-thread/LogKitLogger: factory created class was null so a new instance could not be created. org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(JdbcConnectionFactory.java:183) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(HardResourceLimitingPool.java:95) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(JdbcConnectionPool.java:74) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGrow(HardResourceLimitingPool.java:104) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnectionPool.java:195) at java.lang.Thread.run(Thread.java:536) It seems to be an avalon bug. So, what about it? Does anyone knows if this bug has been corrected? Or is there another way to deal with datasources with jdk 1.4 ? For the moment, i fear the only solution is to downgrade to jdk 1.3 not good at all... Any help appreciated Thanks in advance Cédric - 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: Portal question
Hi Paul, well we wrote the portal components currently in Cocoon, so I guess I can comment on them :-). We originally (1 1/2 years ago) looked at JetSpeed (back then) but decided we didn't want a solution that was an add-on to Cocoon. We wanted to integrate a solution into Cocoon and do this with components that adhere to the Cocoon architecture. And the portal is completely XML / XSL / Cocoon pipeline based. You can find a first overview of the portal here: http://www.need-a-cake.com/stories/2002/02/14/cocoonPortalFirstLook.html You might also like to look here: http://www.sparkasse-gelsenkirchen.de This is a live financial portal (in German) using the components. Login with guest / guest. Perhaps you can post some specific questions on what you want to do and then I can comment on whether this is currently possible with the solution. How does that sound? plug Depending on where you are in the world :-). You might also consider going to one of these - where we will be presenting the portal: http://www.jax2002.de http://conferences.oreillynet.com/os2002/ /plug Best regards Matthew Langham -- Open Source Group sunShine - Lighting up e:Business = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de Weblogging at: http://www.need-a-cake.com Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352 = -Original Message- From: Paul Pattison [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 6:53 AM To: Cocoon Mailing List Subject: Portal question I'm looking to develop a xml portal web application. So far I'm loving Cocoon. Now I'm just trying to figure out how to tackle the portal side of things... I've read up a bit on sunSpot and JetSpeed. It sounds like they're pretty similar. Could someone who's actually used them comment on the pros and cons of each one? Thanks, Paul - 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]
Getting stylesheet directive through to SVG rasterizer
Hi, I'm have some trouble generating PNG's with the SVG serializer. I want to include a CSS stylesheet reference in the XML so that, for example, colours can be kept out of the SVG XML. Using the following test.xml file: ?xml version=1.0 encoding=iso-8859-1? ?xml-stylesheet type=text/css href=/home/httpd/html/styles/svg-test.css? svg xml:space=preserve width=6px height=6px descCorner of menu item/desc rect width=6 height=6 class=red/ path d=M0,0 v6 a6,6 0 0,1 6,-6 z fill=green transform=rotate(90 3 3)/ /svg And this simple svg-test.css file: .red { fill: red; } If I invoke the batik rasterizer directly using: java -jar batik-rasterizer.jar test.xml then everything is fine. A png is generated that uses the red colour defined in the CSS stylesheet. However, if I access the xml file via Cocoon (2.02 )with the usual SVG serializer defined in the sitemap and the following added: map:match pattern=svg/test.png map:generate src=site/svg/test.xml label=source/ map:serialize type=svg2png/ /map:match then I get the png with a black background, the CSS file has not been read. Can anyone help shed some light on this? Regards, Simeon -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - 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: Getting stylesheet directive through to SVG rasterizer
Did you declare a css pipeline? If Cooon gets request for a css file, but can't map it to a specific file, it can't process it. Add this to your sitemap: map:match pattern=*.css map:read src=css/{1}.css mime-type=text/css/ /map:match make sure you place the css file in the css directory. HTH, Bert At 10:02 11/04/2002 +0100, you wrote: Hi, I'm have some trouble generating PNG's with the SVG serializer. I want to include a CSS stylesheet reference in the XML so that, for example, colours can be kept out of the SVG XML. Using the following test.xml file: ?xml version=1.0 encoding=iso-8859-1? ?xml-stylesheet type=text/css href=/home/httpd/html/styles/svg-test.css? svg xml:space=preserve width=6px height=6px descCorner of menu item/desc rect width=6 height=6 class=red/ path d=M0,0 v6 a6,6 0 0,1 6,-6 z fill=green transform=rotate(90 3 3)/ /svg And this simple svg-test.css file: .red { fill: red; } If I invoke the batik rasterizer directly using: java -jar batik-rasterizer.jar test.xml then everything is fine. A png is generated that uses the red colour defined in the CSS stylesheet. However, if I access the xml file via Cocoon (2.02 )with the usual SVG serializer defined in the sitemap and the following added: map:match pattern=svg/test.png map:generate src=site/svg/test.xml label=source/ map:serialize type=svg2png/ /map:match then I get the png with a black background, the CSS file has not been read. Can anyone help shed some light on this? Regards, Simeon -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - 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: Getting stylesheet directive through to SVG rasterizer
In general my css files don't come through Cocoon, apache serves them directly. But in this case I'm just using the file name rather than the ful http://... reference. This is working when batik is invoked from the shell prompt but not from Cocoon. Sim Bert Van Kets wrote: Did you declare a css pipeline? If Cooon gets request for a css file, but can't map it to a specific file, it can't process it. Add this to your sitemap: map:match pattern=*.css map:read src=css/{1}.css mime-type=text/css/ /map:match make sure you place the css file in the css directory. HTH, Bert At 10:02 11/04/2002 +0100, you wrote: Hi, I'm have some trouble generating PNG's with the SVG serializer. I want to include a CSS stylesheet reference in the XML so that, for example, colours can be kept out of the SVG XML. Using the following test.xml file: ?xml version=1.0 encoding=iso-8859-1? ?xml-stylesheet type=text/css href=/home/httpd/html/styles/svg-test.css? svg xml:space=preserve width=6px height=6px descCorner of menu item/desc rect width=6 height=6 class=red/ path d=M0,0 v6 a6,6 0 0,1 6,-6 z fill=green transform=rotate(90 3 3)/ /svg And this simple svg-test.css file: .red { fill: red; } If I invoke the batik rasterizer directly using: java -jar batik-rasterizer.jar test.xml then everything is fine. A png is generated that uses the red colour defined in the CSS stylesheet. However, if I access the xml file via Cocoon (2.02 )with the usual SVG serializer defined in the sitemap and the following added: map:match pattern=svg/test.png map:generate src=site/svg/test.xml label=source/ map:serialize type=svg2png/ /map:match then I get the png with a black background, the CSS file has not been read. Can anyone help shed some light on this? Regards, Simeon -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - 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] -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor,fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ - 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: documentation for managers, was HP-SOAP Server announcement
On Wednesday 10 Apr 2002 12:58, Brent Eades wrote: I do agree with comments in an earlier thread about the need for more detailed docs for Cocoon. My colleagues and I are of similar skill levels: we're managers with IT and communications backgrounds, all of whom do a little coding as required, but we're primarily project leaders. We're not hard-core developers. And I know we do find aspects of Cocoon (and server-side Java in general) a little baffling still. A lot of unfamiliar concepts and procedures to master. I have the same problem, tho from a different standpoint. I do a lot of consultancy for small businesses and non-profits, most of whom have tiny IT budgets - many have no IT staff at all. In principle, Cocoon is of interest, but the key question is: is it worth the effort and the extra overhead of using Java? What I'm looking for (and don't find in the documentation) is answers to basic management questions like 'what advantages does Cocoon provide, i.e. what business objectives does it help meet and how?' 'how easy is it to implement?' 'what resources (time, skills level of staff) does it require to (a) get up and running (b) maintain?' plus standard operational questions like performance and security. I've been trying to evaluate Cocoon for several months now (off and on), but still don't really have the answers. For an organisation that is already supporting a servlet environment with XML etc, implementing Cocoon would probably be quite straightforward, but for those I'm dealing with who just want a good way to maintain a website? Ok, it may well use 'pipelined SAX processing' and an 'abstracted environment' - so what? I too would be happy to help out with documentation, but don't really see how, given that I don't really know that much about Cocoon. I'll write the questions; someone else can write the answers :-) - 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 tutorial, where is ipms.xsl ?
Sorry for this folks, stupid newbie question I'm trying to work my way through the cocoon tutorial (http://xml.apache.org/cocoon/tutorial.html) so I can get myself started with form processing. In the tutorial there are several references to transforming with stylesheets/ipms.xsl (map:transform src=stylesheets/ipms.xsl/) However I can't find ipms.xsl anywhere, I have searched the cocoon 2.0.2 distribution and the site xml.apache.org/cocoon. Does anyone know where it is or what it contains? Cheers Cal Caleb Racey Webteam University Computer Service University of Newcastle tel 0191 222 5916 - 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
fo:external-graphic display-align="center" src="logo.gif"/ - Original Message - From: Ferran Urgell To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 12:17 PM Subject: PDF Hi Cocooners!! I would to put an image (logo for example) into a pdf...with xsl-fo, how can I do this? Thanks! Ferran Urgell
Re: documentation for managers, was HP-SOAP Serverannouncement
I would support this - Id like to push for wider adoption of Cocoon in our - and clients - environment - but those approving finances are typically not interested in detailed technical specs, but rather the broader business advantages (read savings on bottom line) This may be outside the scope of what the Cocoon team focuses on, but its worth taking a look at some other web-technology sites to see how they push the business case side... D Hohls CSIR Environmentek PO Box 17001 Kwa-Zulu Natal South Africa 4013 [EMAIL PROTECTED] 11/04/2002 11:46:25 On Wednesday 10 Apr 2002 12:58, Brent Eades wrote: I do agree with comments in an earlier thread about the need for more detailed docs for Cocoon. My colleagues and I are of similar skill levels: we're managers with IT and communications backgrounds, all of whom do a little coding as required, but we're primarily project leaders. We're not hard-core developers. And I know we do find aspects of Cocoon (and server-side Java in general) a little baffling still. A lot of unfamiliar concepts and procedures to master. I have the same problem, tho from a different standpoint. I do a lot of consultancy for small businesses and non-profits, most of whom have tiny IT budgets - many have no IT staff at all. In principle, Cocoon is of interest, but the key question is: is it worth the effort and the extra overhead of using Java? What I'm looking for (and don't find in the documentation) is answers to basic management questions like 'what advantages does Cocoon provide, i.e. what business objectives does it help meet and how?' 'how easy is it to implement?' 'what resources (time, skills level of staff) does it require to (a) get up and running (b) maintain?' plus standard operational questions like performance and security. I've been trying to evaluate Cocoon for several months now (off and on), but still don't really have the answers. For an organisation that is already supporting a servlet environment with XML etc, implementing Cocoon would probably be quite straightforward, but for those I'm dealing with who just want a good way to maintain a website? Ok, it may well use 'pipelined SAX processing' and an 'abstracted environment' - so what? I too would be happy to help out with documentation, but don't really see how, given that I don't really know that much about Cocoon. I'll write the questions; someone else can write the answers :-) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] BEGIN:VCARD VERSION:2.1 X-GWTYPE:USER FN:Hohls, Derek TEL;WORK:031 261 8161 /3060 ORG:;Environmentek TEL;PREF;FAX:031 261 2509 EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED] N:Hohls;Derek TITLE:Mr END:VCARD - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: please, please, ... help with SQL transformer
Thanks a lot for your idea but it doesn't work. I'm just making test with Access Database. I will be very glad if you have any other idea. - Original Message - From: Hahn Kurt (CHA) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 8:49 AM Subject: RE: please, please, ... help with SQL transformer Since nobody else answered, I'll give it a try. I don't know how that works with Access, but your datasource declaration seems incomplete. E.g. here's mine (of course it looks differently because your using JDBC-ODCB for Access, whereas with Oracle, there's a native JDBC-driver): datasources !-- Oracle DB -- jdbc name=aigle_oracle_pool pool-controller min=5 max=10 oradb=true / auto-committrue/auto-commit dburljdbc:oracle:thin:@pallas6:1521:PAIG/dburl userMyUsername/user passwordMyPW/password /jdbc Something else you could try is, in web.xml, comment out the IBM Websphere section, and place your declaration in front of the other one. Can sometimes help in case of a strange classloader problem. Otherwise, give us more info. Check the various logs for that. Or try to use Oracle directly, I think it is easier for Java applications. Did you test your connection in another front-end application? E.g. a small Java program,just to see if it works. Regards Kurt -Message d'origine- De: Jerónimo Molina [mailto:[EMAIL PROTECTED]] Date: mercredi, 10. avril 2002 16:57 À: [EMAIL PROTECTED] Objet: please, please, ... help with SQL transformer Hi all (sorry for my poor english): My name's Jeronimo Molina, and I'm neby with cocoon. I'm trying to work with SQL transformers, for generate an HTML page with data stored in a ACCESS database on my machine (it's my first work with cocoon, so I don't want to do this with ORACLE any other DB). I'm trying to do this at the next steps: 1.- Configure the JDBC-ODBC driver at the web.xml file, by adding sun.jdbc.odbc.JdbcOdbcDriver as shown bellow: init-param param-nameload-class/param-name !-- For IBM WebSphere com.ibm.servlet.classloader.Handler -- !-- For Database Driver -- oprg.hsqldb.jdbcDriver !-- For JDBC:ODBC -- sun.jdbc.odbc.JdbcOdbcDriver /param-value /init-pram 2.- Configure the connection ad the cocoon.xml file as shown bellow: datasources jdbc name=personas dburljdbc:odbc:nombres/dburl /jdbc /datasources Note that nombres is the name of the ODBC I've just created pointing to my access database. 3.- Configure the sitemap.xmap file to use my new connection. I've done this modifying a line: map:match pattern=sql/* map:generate src=docs/samples/sql/{1}.xml/ map:transform type=sql map:parameter name=use-connection value=personas/ /map:transform map:transform src=stylesheets/simple-sql2html.xsl/ map:serialize/ /map:match 4.- I've also modified the sql-page.xml, putting the code query select id,nombre from nombres /query (where nombres is the table name) in order of the query example provided in that file. BUT I don't get the data stored in my access database, and I don't know why. please, can anyone help me? Thanks... Jeronimo. - 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: Hi
Hi, Can anybody send me multiple samples of xsl along with xml files for generation of PDF's in Cocoon2.0.2 So that i could be see the source code of multiple samples If there is any link of samples than plz send me the url Did you have a look into the samples that come with Cocoon? -- Torsten - 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
Ok, I've made this, but not works... I think that maybe is the src adress of the file... - Original Message - From: Andrey Demchenko To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 12:36 PM Subject: Re: PDF fo:external-graphic display-align="center" src="logo.gif"/ - Original Message - From: Ferran Urgell To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 12:17 PM Subject: PDF Hi Cocooners!! I would to put an image (logo for example) into a pdf...with xsl-fo, how can I do this? Thanks! Ferran Urgell
RE: PDF
Try out entering the full address for the gif file (i.e. including c:\blah\foo\...) Matthew -Original Message-From: Ferran Urgell [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 11, 2002 1:51 PMTo: [EMAIL PROTECTED]Subject: Re: PDF Ok, I've made this, but not works... I think that maybe is the src adress of the file... - Original Message - From: Andrey Demchenko To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 12:36 PM Subject: Re: PDF fo:external-graphic display-align="center" src="logo.gif"/ - Original Message - From: Ferran Urgell To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 12:17 PM Subject: PDF Hi Cocooners!! I would to put an image (logo for example) into a pdf...with xsl-fo, how can I do this? Thanks! Ferran Urgell
RE: PDF
This works for me .. I think you have to use an absolute url fo:external-graphic src = http://localhost:8080/cocoon/ images/blah.jpg height=20px width=20px position=absolute/ -Original Message- From: Ferran Urgell [mailto:[EMAIL PROTECTED]] Sent: Thursday, 11 April 2002 9:51 PM To: [EMAIL PROTECTED] Subject: Re: PDF Ok, I've made this, but not works... I think that maybe is the src adress of the file... - Original Message - From: Andrey Demchenko To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 12:36 PM Subject: Re: PDF fo:external-graphic display-align=center src="logo.gif/" - Original Message - From: Ferran Urgell To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 12:17 PM Subject: PDF Hi Cocooners!! I would to put an image (logo for example) into a pdf...with xsl-fo, how can I do this? Thanks! Ferran Urgell
[Problem]sendmail - reference to Session is ambiguous
Hallo I also like to use sendmail in my XSP but if I put only in my Head xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-session=http://apache.org/xsp/session/2.0; xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0; I got always the error: reference to Session is ambiguous, both class javax.mail.Session in package javax.mail and interface org.apache.cocoon.environment.Session in package org.apache.cocoon.environment XSP-Gererator automaticly generates: /** * Generate XML data. */ public void generate() throws SAXException, IOException, ProcessingException { Session session = request.getSession(true); and not org.apache.cocoon.environment.Session session = request.getSession(true); How can I resolve this Problem in this Packages. regards Juergen - 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: XSLT named teplates and xsl:param (is it a BUG?)
Indeed, it seems that error message says that you needn't curved brackets in test attribute. Try this xsl:if test=($dayofweek=1) or ($dayofweek=7) or even something like this xsl:if test=/[($dayofweek=1) or ($dayofweek=7)] And, of course, you have to use xsl:value-of whithin xsl:attribute element. Roman Matthieu Benéteau wrote: You have to use : xsl:value-of select=$cssClassNormal/ xsl:value-of select=$cssClassWeekEnd/ xsl:value-of select=$dayofweek/ etc... Matthieu I'm using Cocoon 2.0.2 and Tomcat 3.3.1. Can anybody explain to me why i can't use 'xsl:param' in 'xsl:if' clause? Example: xsl:template name=TimeCell xsl:param name=cssClassNormalTimeCell/xsl:param xsl:param name=cssClassWeekEndHolidayCell/xsl:param xsl:param name=dayofweek !-- Monday -- 2 /xsl:param td class={$cssClassNormal} xsl:if test={$dayofweek}=1 or {$dayofweek}=7 xsl:attribute name=class{$cssClassWeekEnd}/xsl:attribute /xsl:if xsl:value-of select=./ /td /xsl:template it throws: org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: javax.xml.transform.TransformerException: Extra illegal tokens: '{', '$', 'dayofweek}', '=', '1', 'or', '{', '$', 'dayofweek}', '=', '7' at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformer Handler(XSLTProcessorImpl.java:271) - 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]
passing parameters to a stylesheet
Hi, I'm using Cocoon 2.0.2 here to process XML files with XSL-T stylesheets. The relevant part of my pipeline is like this: map:match pattern=start.xml map:generate src=start.xml/ map:transform src=start.xsl/ map:serialize type=html/ /map:match start.xml contains several sets of data, which are very similar to each other. I'd like to pick one at a time and display it. For this purpose, it would be possible to write several stylesheets, one for each data set I'd like to process. However, I find it more elegant if I could somehow pass a parameter to start.xsl, telling it which data set to process. Is this possible with Cocoon? Has anyone ever done it and can explain it to me (and also tell me how to pass a parameter to a stylesheet?) Thanks in advance, 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]
Re: Cookie question
Thanks for tip Konstantin. Not right away but when looking into the code I found up that if you define your action with store-in-cookietrue/store-in-cookie it will do the job. To my surprise I did not be able to find up this in any documentation. Alex. - Original Message - From: Piroumian Konstantin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 3:13 AM Subject: RE: Cookie question -Original Message- From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 10:41 PM To: [EMAIL PROTECTED] Subject: Cookie question Hi, My browser does not recieve cookie... Here is XSP piece: xsp-cookie:create-cookies xsp-cookie:cookie name=locale xsp-cookie:valuerlocale/xsp-cookie:value /xsp-cookie:cookie /xsp-cookie:create-cookies Did I forgot something? Btw, it seems that you are trying to set locale using a cookie. Have a look at LocaleAction. It will do the job for you. Thanks, Alex. - 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]
anything like an XPath Selector?
Hello, The app we're building works great w/ the StreamGenerator. It takes XML directly from the calling client from the HTTP stream. We would like to be able to do some selections in our pipelines based on the incoming XML stream. Is there something like an XPath Selector? Am I thinking of this the wrong way? Any help or tips would be greatly appreciated. Thanks very much, Seth - 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]
using C2 to read sessions from JBoss/Tomcat
I'm testing the JBoss-2.4.4_Tomcat-4.0.1 package with Cocoon2 and I'm trying to get Cocoon to read an user's session name variable (employeeData) created by the login process. Can Cocoon2 read the session information from the JB/TC instance? (sorry if that is not the right terminology) I can see where Cocoon can perform tasks using it's own session variables, but I would like to use the ones created in Tomcat to get the current user's employee profile (i.e. company_id, etc.) that was created when they logged in. This version of JBoss/Tomcat has Cocoon2 running as a cocoon.war file from the $JBOSS_HOME/deploy folder. If this is the wrong place to post this, I understand and will post elsewhere, but I'm trying to understand how these all work together and since they are all used through the jboss/deploy folder, whether they share any common variables/memory/jvm data/etc. Thanks! Mark - 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: Missing API Docs in Cocoon 2.0.2 and latest CVS
From: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]] Of course that is the command.. And as run the latest snapshot or even the cocoon 2.0.2 release here is the error log for the javadocs. javadocs: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source file org.apache.cocoon.components.language.programming.java... [javadoc] error: cannot read: org.apache.cocoon.components.language.programming.java ... [javadoc] 1 error I just tried build javadocs: [javadoc] Generating C:\Apache\xml-cocoon2\build\cocoon\javadocs\help-doc.html... [javadoc] 116 warnings Result is 842 files in the cocoon/build/cocoon/javadocs. Vadim BUILD SUCCESSFUL Total time: 46 seconds C:\JavaDevCenter\cocoon-2.0.2 The result is an EMPTY javadocs Build directory. Now how this pertains to the PRINTER-DOCS : buiild printer-docs command resulting in those missing files is still a mystery. Care to comment on why they are still missing? Sincerely, Marc Vadim Gritsenko wrote: In Java world, API docs are generated from the source code. IIRC, build javadocs command launched from the Cocoon source distribution root dir will build you all Cocoon API documentation, in the ./build/cocoon/javadocs directory. Once you have javadocs, you can copy them into the Cocoon's samples webapp. Vadim From: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]] Copy from Clipboard: --- File Not Found http://localhost/cvsDocs/apidocs/index.html File Not Found http://localhost/cvsDocs/userdocs/concepts/samples/catalog-demo Unknown Format http://localhost/cvsDocs/developing/images/initialize_Cocoon.png Unknown Format http://localhost/cvsDocs/developing/images/get_hello_html.png File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/transformation/I18nT r ansfor mer.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ g enerat or/ProgramGenerator.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/generation/Generator . html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/generation/ServerPag e sGener ator.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ g enerat ion/ProgramGenerator.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/generation/AbstractS e rverPa ge.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/generation/ComposerG e nerato r.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/arch/Modifiable.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/transformation/XIncl u deTran sformer.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ p rogram ming/ProgrammingLanguage.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ p rogram ming/CodeFormatter.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ p rogram ming/AbstractProgrammingLanguage.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/arch/named/AbstractNamedCom p onent. html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ p rogram ming/CompiledProgrammingLanguage.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ p rogram ming/LanguageCompiler.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ p rogram ming/CompilerError.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ p rogram ming/java/AbstractJavaCompiler.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/classload e r/Repo sitoryClassLoader.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/classload e r/Clas sLoaderManager.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/classload e r/Clas sLoaderManagerImpl.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ m arkup/ MarkupLanguage.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ m arkup/ AbstractMarkupLanguage.html File Not Found http://localhost/cvsDocs/apidocs/org/arch/named/AbstractNamedComponent. h tml File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ m arkup/ Logicsheet.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ m arkup/ NamedLogicsheet.html File Not Found http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/ m arkup/
RE: cocoon2.1-dev and XMLReader
From: snpe [mailto:[EMAIL PROTECTED]] Hi, I am tried cocoon2.1-dev from cvs, tomcat 4.0.3 and jdk1.4.0 I have problem with link '/cocoon/sub/xsp error is : SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader what is wrong ? You have two options: Option 1: RTFM http://xml.apache.org/cocoon/installing/index.html Option 2: Get Tomcat 4.0.1 and RTFM http://xml.apache.org/cocoon/installing/index.html I recommend option 2. Vadim regards peco - 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: RE: how to marshal objects within xsp
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Hello, ad 1: Vadim, as you suggested it finally works with this expression - thanks!: util:include- exprutil:exprxsp:exprmm.marshal(mm.getSimpleItems())/xsp:expr/ut il:exp r/util:include-expr ad 2: The contentHandler used in 2 b) is a TraxTransformer instance. Is it possible that in this case the resulting intermediate XML contains the '?xml version=1.0 encoding=UTF-8?' expression before the actual marshalled xml? Could this be the reason for the javax.xml.transform.TransformerException: java.lang.NullPointerException? No. The cause should be extra startDocument()/endDocument() pair which could be eliminated by using included XML consumer (see bottom of the email). Vadim So far I did not cope it to apply a stylesheet correctly to the marshalled xml. The stylesheet works correctly for option 1: Regards, Harald From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 1. Include Object as String: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:cinclude=http://apache.org/cocoon/include/1.0; xmlns:util=http://apache.org/xsp/util/2.0; some-items anAttr=aVal util:include-expr xsp:exprmodel.getAnItemAsString()/xsp:expr /util:include-expr /some-items /some-items /xsp:page The page does not compile. The method .getAnItemAsString is not even executed. This will compile if you put everything on one line, no text nodes in the util:include-expr element: util:include-exprxsp:exprmodel.getAnItemAsString()/xsp:expr/util: include-expr Also, I would not recommend you this anyway because of re-parsing performance penalty. As follows I include my original sources and the corresponding output: (They slightly differ formally from the above mentioned example) Table.xsp: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:cinclude=http://apache.org/cocoon/include/1.0; xmlns:util=http://apache.org/xsp/util/2.0; xsp:structure xsp:includeweb.ModelManager/xsp:include /xsp:structure simple-items edit=true curSel=2 xsp:logic ModelManager mm = new ModelManager(); util:include- exprutil:exprmm.marshal(mm.getSimpleItems())/util:expr/util:includ e- expr You need xsp:exprmm.marshal(mm.getSimpleItems())/xsp:expr here to treat Java as Java but not as text. (See above!!!) (not sure about util:expr, try with it and without it, but xsp:expr is must) Vadim /xsp:logic /simple-items /xsp:page resulting web-page: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling Table_xsp: Line 136, column 111: ')' expected. Line 0, column 0: 1 error created Table_xsp.java: try { newParser = (org.apache.cocoon.components.parser.Parser) this.manager.lookup( org.apache.cocoon.components.parser.Parser.ROLE); InputSource __is = new InputSource( new StringReader(String.valueOf(this.characters(mm.marshal(mm.getSimpleItem s())) ;))); XSPUtil.include(__is, this.contentHandler, newParser); } catch (Exception e) { getLogger().error(Could not include page, e); } finally { if (newParser != null) this.manager.release((Component) newParser); } } As you can see there is a ; in between a java statement: '...s()));)));' Is there any other error in my page? 2. Use Castor's marshalling capabilities: some-items anAttr=aVal xsp:logic model.marshal(this.contentHandler); /xsp:logic /some-items This sounds perfect. Within the method I pass the contentHandler (wrapped into DocumentHandlerAdapter) to castor's marshaller before I perfom mashal(obj). As A result the cinclude transformer (which I need) complains about a Nullpointer exception. Make sure that model.marshal() does not call startDocument() and endDocument() on the contentHandler. If it does, you should strip these calls by wrapping contentHandler into the IncludeXMLConsumer. This should work. Or we have a bug. ... - 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: sendmail
A quick glance at the compile error indicates that you do not have the javamail.jar in your classpath. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 11 April, 2002 14:13 To: [EMAIL PROTECTED] Subject: RE: sendmail Hmm, took a look at it, unfortuantly my java skills arent up to dealing with it. I m guessing it is because of java changes to the javax.mail api: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling test_xsp: Line 41, column 24: cannot access class Message; file javax\mail\Message.class not found Line 43, column 24: cannot access class Transport; file javax\mail\Transport.class not found Line 45, column 24: cannot access class Session; file javax\mail\Session.class not found Line 47, column 24: cannot access class MessagingException; file javax\mail\MessagingException.class not found Line 49, column 33: cannot access class InternetAddress; file javax\mail\internet\InternetAddress.class not found Line 51, column 33: cannot access class MimeMessage; file javax\mail\internet\MimeMessage.class not found Line 53, column 33: cannot access class AddressException; file javax\mail\internet\AddressException.class not found Line 3395, column 13: class AddressException not found in class org.apache.cocoon.www.documents.test_xsp Line 3425, column 13: class MessagingException not found in class org.apache.cocoon.www.documents.test_xsp Line 3382, column 32: method valueOf() not found in class java.lang.String Line 3383, column 57: method valueOf() not found in class java.lang.String Line 3385, column 42: method getDefaultInstance(java.util.Properties, 'null) not found in class org.apache.cocoon.environment.Session Line 3386, column 6: class Message not found in class org.apache.cocoon.www.documents.test_xsp Line 3386, column 38: class MimeMessage not found in class org.apache.cocoon.www.documents.test_xsp Line 3387, column 6: class InternetAddress not found in class org.apache.cocoon.www.documents.test_xsp Line 3387, column 43: class InternetAddress not found in class org.apache.cocoon.www.documents.test_xsp Line 3389, column 6: class InternetAddress not found in class org.apache.cocoon.www.documents.test_xsp Line 3389, column 41: class InternetAddress not found in class org.apache.cocoon.www.documents.test_xsp Line 3390, column 45: cannot access class RecipientType; file Message\RecipientType.class not found Line 3392, column 42: method valueOf() not found in class java.lang.String Line 3393, column 39: method valueOf() not found in class java.lang.String Line 3394, column 6: variable Transport not found in class org.apache.cocoon.www.documents.test_xsp Line 0, column 0: 22 errors Bobby -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 10 April 2002 18:34 To: [EMAIL PROTECTED] Subject: RE: sendmail From: Sharat Koya [mailto:[EMAIL PROTECTED]] I was looking through the cocoon src files today and spotted the sendmail.xsl file for sending e-mail. How do I implement this and is there This is mail logicsheet. You use it as other logichseets. It has one template - send-mail, with several parameters (like to, from, etc). any documentation on it? I fear that there is no any documentation about it. So you have good chance to be the first to write documentation for it. Vadim Bobby Koya - 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] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Investment Corporation (Stanbic) is proprietary to the company. It is confidential, legally privileged and protected by law.\ Stanbic does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Stanbic. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Stanbic can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ - Please check that your question
RE: cocoon tutorial, where is ipms.xsl ?
From: caleb racey [mailto:[EMAIL PROTECTED]] Sorry for this folks, stupid newbie question I'm trying to work my way through the cocoon tutorial (http://xml.apache.org/cocoon/tutorial.html) so I can get myself started with form processing. In the tutorial there are several references to transforming with stylesheets/ipms.xsl (map:transform src=stylesheets/ipms.xsl/) However I can't find ipms.xsl anywhere, I have searched the cocoon 2.0.2 distribution and the site xml.apache.org/cocoon. Does anyone know where it is or what it contains? This tutorial can be found in directory xml-cocoon2\src\webapp\tutorial, and stylesheet is stylesheets\apache.xsl Vadim Cheers Cal Caleb Racey Webteam University Computer Service University of Newcastle tel 0191 222 5916 - 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 get HTML (not XHTML) from the HTMLSerializer (C2.0.1)
From: Yuri Gadow [EMAIL PROTECTED] Indeed that is the question, unfortunately NS 4.X is still in common use and does not understand tags written as br/ or textarea/, (as do many, still common, versions of IE.) I could certainly roll my own serializer, wrapped around SAXON or something, but it seems a bit odd that a framework like C2 would only support the most recent browser versions (which is not a complaint, rather it's something that makes me think I'm the one doing something wrong.) Try with br name=br/ -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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: Missing API Docs in Cocoon 2.0.2 and latest CVS
I just did a cvs checkout -r HEAD xml-cocoon2 to a new directory, copied xercesImpl-2.0.0.jar, xalan-2.3.1.jar, and the xml-apis.jar from the .\lib\core\ to the %JAVA_HOME%\jre\lib\endorsed\ directory and my build javadocs gives the same result as Marc's. Everything else seems to build and run fine. It must be an environment issue. I'm running Win 2KSP2, JDK 1.4.0, Tomcat 4.0.4b2. Marc and Vadim, what are you running? Bruce [EMAIL PROTECTED] 04/11/02 11:34AM From: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]] Of course that is the command.. And as run the latest snapshot or even the cocoon 2.0.2 release here is the error log for the javadocs. javadocs: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source file org.apache.cocoon.components.language.programming.java... [javadoc] error: cannot read: org.apache.cocoon.components.language.programming.java ... [javadoc] 1 error I just tried build javadocs: [javadoc] Generating C:\Apache\xml-cocoon2\build\cocoon\javadocs\help-doc.html... [javadoc] 116 warnings Result is 842 files in the cocoon/build/cocoon/javadocs. 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]
fake free Hosting
Dear team, interested in your project Cocoon, and in the xml and new tech, i'll start in a few months a completely free hosting on my little little server, just for people that wants to learn but can't pay for it. Can't pay service like Motivational Marketing Associates, Inc - Cocoon 1.7.4 that are commercial and not free as they told you, or the russian one, impossible to use for a non russian person (take a look :)). Thanks again for your excellent project, sincerely Alessandro Ogier - 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: [Problem]sendmail - reference to Session is ambiguous
From: Ehms, JØrgen [mailto:[EMAIL PROTECTED]] Hallo I also like to use sendmail in my XSP but if I put only in my Head xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-session=http://apache.org/xsp/session/2.0; xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0; I got always the error: reference to Session is ambiguous, both class javax.mail.Session in package javax.mail and interface org.apache.cocoon.environment.Session in package org.apache.cocoon.environment XSP-Gererator automaticly generates: /** * Generate XML data. */ public void generate() throws SAXException, IOException, ProcessingException { Session session = request.getSession(true); and not org.apache.cocoon.environment.Session session = request.getSession(true); How can I resolve this Problem in this Packages. This seems like a bug in the sendmail logicsheet. Change sendmail logicsheet so it does not imports JavaMail session, but uses fully qualified name. PS You could send a patch when/if you fix Vadim regards Juergen - 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: passing parameters to a stylesheet
To pass single param, see sample sitemap: map:resource name=dynamic-page map:generate type=serverpages src={target}.xsp/ map:transform src=stylesheets/dynamic-page2html.xsl map:parameter name=view-source value={target}.xsp/ /map:transform map:serialize/ /map:resource and stylesheets/dynamic-page2html.xsl stylesheet. Also see http://www.cocooncenter.de/cc/documents/resources/request-params/transfo rmer.html on how to pass *all* request parameters. Vadim From: Ralph Holz [mailto:[EMAIL PROTECTED]] Hi, I'm using Cocoon 2.0.2 here to process XML files with XSL-T stylesheets. The relevant part of my pipeline is like this: map:match pattern=start.xml map:generate src=start.xml/ map:transform src=start.xsl/ map:serialize type=html/ /map:match start.xml contains several sets of data, which are very similar to each other. I'd like to pick one at a time and display it. For this purpose, it would be possible to write several stylesheets, one for each data set I'd like to process. However, I find it more elegant if I could somehow pass a parameter to start.xsl, telling it which data set to process. Is this possible with Cocoon? Has anyone ever done it and can explain it to me (and also tell me how to pass a parameter to a stylesheet?) Thanks in advance, 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]
MS Access on Cocoon2???
Hello, Is it possible to hook Cocoon upto a test MS Access DB? I'd like to install MySQL, but downloading that runs me into red tape with my IS Dept. I'm running Windows 2000; JDK1.3.1; Tomcat4.0.1; Cocoon2.0 Thanks, Ashish Rajput - 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: anything like an XPath Selector?
From: Seth Ladd [mailto:[EMAIL PROTECTED]] Hello, The app we're building works great w/ the StreamGenerator. It takes XML directly from the calling client from the HTTP stream. We would like to be able to do some selections in our pipelines based on the incoming XML stream. Is there something like an XPath Selector? Am I thinking of this the wrong way? Search for pipe-aware selection on the dev list. Discussions about this started month or two ago and still going. Vadim Any help or tips would be greatly appreciated. Thanks very much, Seth - 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: MS Access on Cocoon2???
Title: RE: MS Access on Cocoon2??? Is it possible to hook Cocoon upto a test MS Access DB? I'd like to install MySQL, but downloading that runs me into red tape with my IS Dept. You should be able to use a generic ODBC driver to get into Access. I havent done this with Cocoon but it wasnt a problem with PHP. -Tom
RE: MS Access on Cocoon2???
You should be able to use JDBC:ODBC bridge to connect to the datasource -Original Message- From: Rajput, Ashish S [mailto:[EMAIL PROTECTED]] Sent: 11 April 2002 20:38 To: '[EMAIL PROTECTED]' Subject: MS Access on Cocoon2??? Hello, Is it possible to hook Cocoon upto a test MS Access DB? I'd like to install MySQL, but downloading that runs me into red tape with my IS Dept. I'm running Windows 2000; JDK1.3.1; Tomcat4.0.1; Cocoon2.0 Thanks, Ashish Rajput - 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: MS Access on Cocoon2???
Sean Malone wrote: You should be able to use JDBC:ODBC bridge to connect to the datasource You can do it, but it is not recommended. Access allows you to do too many broken things, and forces you to use nonstandard SQL joins for anything else. There are other alternatives. Just be warned that M$ Access is something that has burned a number of developers. -Original Message- From: Rajput, Ashish S [mailto:[EMAIL PROTECTED]] Sent: 11 April 2002 20:38 To: '[EMAIL PROTECTED]' Subject: MS Access on Cocoon2??? Hello, Is it possible to hook Cocoon upto a test MS Access DB? I'd like to install MySQL, but downloading that runs me into red tape with my IS Dept. I'm running Windows 2000; JDK1.3.1; Tomcat4.0.1; Cocoon2.0 Thanks, Ashish Rajput - 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] -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - 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: using C2 to read sessions from JBoss/Tomcat
Vadim, Using the JBoss-2.4.4_Tomcat-4.0.1 package starts Tomcat within the JBoss instance (I think). The jboss/deploy folder has: + cocoon.war (folder) -- (contains same contents as standard tomcat/webapps/cocoon folder) + lib (folder) -- jbosspool-jdbc.jar -- jms-ra.jar + web.war (folder) -- (contains all my JSP and webfiles [images/css/etc] ) cl.jar (file -- a jar with my ejbs) deploy.txt (text file) So, I would think that these two (cocoon.war and cl.jar) are deployed separately within the JBoss context so that they would not see each other's session variables. Does that sound right to you? If so, is there a way to start the cl.jar within the web.war webapp (or vice versa) so that they can share session variables? I'm trying to get a similar question answered as well on the JBoss forum, and can take this discussion there if need be. Thanks for your help! Mark -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:49 PM To: [EMAIL PROTECTED]; Mark Kent Subject: RE: using C2 to read sessions from JBoss/Tomcat From: Mark S. Kent [mailto:[EMAIL PROTECTED]] I'm testing the JBoss-2.4.4_Tomcat-4.0.1 package with Cocoon2 and I'm trying to get Cocoon to read an user's session name variable (employeeData) created by the login process. Can Cocoon2 read the session information from the JB/TC instance? (sorry if that is not the right terminology) (IIRC) Yes, if login process resides in the *same* webapp where cocoon is deployed. I can see where Cocoon can perform tasks using it's own session variables, Cocoon's session is servlet session. Vadim but I would like to use the ones created in Tomcat to get the current user's employee profile (i.e. company_id, etc.) that was created when they logged in. This version of JBoss/Tomcat has Cocoon2 running as a cocoon.war file from the $JBOSS_HOME/deploy folder. If this is the wrong place to post this, I understand and will post elsewhere, but I'm trying to understand how these all work together and since they are all used through the jboss/deploy folder, whether they share any common variables/memory/jvm data/etc. Thanks! Mark - 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: fake free Hosting
From: oggei [mailto:[EMAIL PROTECTED]] Dear team, interested in your project Cocoon, and in the xml and new tech, i'll start in a few months a completely free hosting on my little little server, just for people that wants to learn but can't pay for it. Can't pay service like Motivational Marketing Associates, Inc - Cocoon 1.7.4 that are commercial and not free as they told you, I fixed this (in CVS). or the russian one, impossible to use for a non russian person (take a look :)). It's not even in Russian, and it is not hosting, and it is already taken out of the list (in the CVS - website is not updated yet). PS Once you have your hosting let us know and I will sure put it into our list. Thanks, Vadim Thanks again for your excellent project, sincerely Alessandro Ogier - 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]
Hosting a Cocoon Website
Im making a website for myself, basically a portfolio/resume website with things I've done, and projects I've worked on, but Id like to host it myself. Could anyone tell me the best, and possibly least expensive route to go about this. Any information would be greatly appreciated. Thanks Anthony Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. - 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: Hosting a Cocoon Website
I've solved that using MyCGIServer.com as a host for my files and then I forwarded in a stelath way my domain name through www.mydomains.com It works really good, my site is build absolutely on XML and works fine, you can try it on http://www.martinmauri.com.ar/ hope this helps. Martin - Original Message - From: Anthony Diodato [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 6:00 PM Subject: Hosting a Cocoon Website Im making a website for myself, basically a portfolio/resume website with things I've done, and projects I've worked on, but Id like to host it myself. Could anyone tell me the best, and possibly least expensive route to go about this. Any information would be greatly appreciated. Thanks Anthony Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. - 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]
Interesting read for those doing DB bound apps
http://www.eweek.com/print_article/0,3668,a=23115,00.asp It's a Database shootout, and lists troubles with Database drivers under load. Pretty interesting. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - 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: using C2 to read sessions from JBoss/Tomcat
From: Mark S. Kent [mailto:[EMAIL PROTECTED]] Vadim, Using the JBoss-2.4.4_Tomcat-4.0.1 package starts Tomcat within the JBoss instance (I think). The jboss/deploy folder has: + cocoon.war (folder) -- (contains same contents as standard tomcat/webapps/cocoon folder) + lib (folder) -- jbosspool-jdbc.jar -- jms-ra.jar + web.war (folder) -- (contains all my JSP and webfiles [images/css/etc] ) cl.jar (file -- a jar with my ejbs) deploy.txt (text file) So, I would think that these two (cocoon.war and cl.jar) are deployed separately within the JBoss context so that they would not see each other's session variables. Does that sound right to you? Almost. You wrote that cl.jar contains EJBs. How do you access servlet container session object from an EJB? AFAIR, this is not possible. I would assume that you mean session created in your web.war file. If so, is there a way to start the cl.jar within the web.war webapp (or vice versa) so that they can share session variables? You just need to merge both of your web applications into one web application (read: one session manager, see also jakarta-tomcat\webapps\tomcat-docs\config\manager.html), which includes merging of classes, libs, web.xml, and all other resources in one web application file (or directory: you always can work with directory instead of huge file, which gives you much faster development turn-around). Hope I'm clear. Vadim I'm trying to get a similar question answered as well on the JBoss forum, and can take this discussion there if need be. Thanks for your help! Mark -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:49 PM To: [EMAIL PROTECTED]; Mark Kent Subject: RE: using C2 to read sessions from JBoss/Tomcat From: Mark S. Kent [mailto:[EMAIL PROTECTED]] I'm testing the JBoss-2.4.4_Tomcat-4.0.1 package with Cocoon2 and I'm trying to get Cocoon to read an user's session name variable (employeeData) created by the login process. Can Cocoon2 read the session information from the JB/TC instance? (sorry if that is not the right terminology) (IIRC) Yes, if login process resides in the *same* webapp where cocoon is deployed. I can see where Cocoon can perform tasks using it's own session variables, Cocoon's session is servlet session. Vadim but I would like to use the ones created in Tomcat to get the current user's employee profile (i.e. company_id, etc.) that was created when they logged in. This version of JBoss/Tomcat has Cocoon2 running as a cocoon.war file from the $JBOSS_HOME/deploy folder. If this is the wrong place to post this, I understand and will post elsewhere, but I'm trying to understand how these all work together and since they are all used through the jboss/deploy folder, whether they share any common variables/memory/jvm data/etc. Thanks! Mark - 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: using C2 to read sessions from JBoss/Tomcat
Thanks, Vadim. I'll check it out. -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:11 PM To: [EMAIL PROTECTED]; Mark Kent Subject: RE: using C2 to read sessions from JBoss/Tomcat From: Mark S. Kent [mailto:[EMAIL PROTECTED]] Vadim, Using the JBoss-2.4.4_Tomcat-4.0.1 package starts Tomcat within the JBoss instance (I think). The jboss/deploy folder has: + cocoon.war (folder) -- (contains same contents as standard tomcat/webapps/cocoon folder) + lib (folder) -- jbosspool-jdbc.jar -- jms-ra.jar + web.war (folder) -- (contains all my JSP and webfiles [images/css/etc] ) cl.jar (file -- a jar with my ejbs) deploy.txt (text file) So, I would think that these two (cocoon.war and cl.jar) are deployed separately within the JBoss context so that they would not see each other's session variables. Does that sound right to you? Almost. You wrote that cl.jar contains EJBs. How do you access servlet container session object from an EJB? AFAIR, this is not possible. I would assume that you mean session created in your web.war file. If so, is there a way to start the cl.jar within the web.war webapp (or vice versa) so that they can share session variables? You just need to merge both of your web applications into one web application (read: one session manager, see also jakarta-tomcat\webapps\tomcat-docs\config\manager.html), which includes merging of classes, libs, web.xml, and all other resources in one web application file (or directory: you always can work with directory instead of huge file, which gives you much faster development turn-around). Hope I'm clear. Vadim I'm trying to get a similar question answered as well on the JBoss forum, and can take this discussion there if need be. Thanks for your help! Mark -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:49 PM To: [EMAIL PROTECTED]; Mark Kent Subject: RE: using C2 to read sessions from JBoss/Tomcat From: Mark S. Kent [mailto:[EMAIL PROTECTED]] I'm testing the JBoss-2.4.4_Tomcat-4.0.1 package with Cocoon2 and I'm trying to get Cocoon to read an user's session name variable (employeeData) created by the login process. Can Cocoon2 read the session information from the JB/TC instance? (sorry if that is not the right terminology) (IIRC) Yes, if login process resides in the *same* webapp where cocoon is deployed. I can see where Cocoon can perform tasks using it's own session variables, Cocoon's session is servlet session. Vadim but I would like to use the ones created in Tomcat to get the current user's employee profile (i.e. company_id, etc.) that was created when they logged in. This version of JBoss/Tomcat has Cocoon2 running as a cocoon.war file from the $JBOSS_HOME/deploy folder. If this is the wrong place to post this, I understand and will post elsewhere, but I'm trying to understand how these all work together and since they are all used through the jboss/deploy folder, whether they share any common variables/memory/jvm data/etc. Thanks! Mark - 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.1-dev and XMLReader
Hello, I use your thread before and now is ok. I don't remove xerces, xalan and xml-apis from cocoon lib dir. (batik must be in cocoon lib) thanks haris peco On Thursday 11 April 2002 06:37 pm, Vadim Gritsenko wrote: From: snpe [mailto:[EMAIL PROTECTED]] Hi, I am tried cocoon2.1-dev from cvs, tomcat 4.0.3 and jdk1.4.0 I have problem with link '/cocoon/sub/xsp error is : SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader what is wrong ? You have two options: Option 1: RTFM http://xml.apache.org/cocoon/installing/index.html Option 2: Get Tomcat 4.0.1 and RTFM http://xml.apache.org/cocoon/installing/index.html I recommend option 2. Vadim regards peco - 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: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)
Try with br name=br/ If you mean an XSLT using that syntax (otherwise, I guess I'm missing something), I'm afraid that doesn't help. Once the elements get in the SAX stream, how they got there (except in the case of CDATA of course) is lost. They're all just start/endElement pairs to the HTMLSerializer. Moreover, the problem is beyond just br/. Some other common ones are: hr/ p/ input/ select/ textarea/ With generated HTML, you also tend to end up with the odd div/ or td/ as well. Thanks, Yuri Gadow On Thu, 2002-04-11 at 11:20, Nicola Ken Barozzi wrote: From: Yuri Gadow [EMAIL PROTECTED] Indeed that is the question, unfortunately NS 4.X is still in common use and does not understand tags written as br/ or textarea/, (as do many, still common, versions of IE.) I could certainly roll my own serializer, wrapped around SAXON or something, but it seems a bit odd that a framework like C2 would only support the most recent browser versions (which is not a complaint, rather it's something that makes me think I'm the one doing something wrong.) Try with br name=br/ -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - 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] -- Yuri Gadow 0x6D21BAAE - 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]
ESQL Oracle StoredProcedues
Hi, I am using C2.0.1 with JDK1.3.1 and TOmcat 4.0.3 I have problems with calling oracle stored procedures from ESQL. I have this simple Code: esql:execute-query esql:call {call sp_proc(esql:parameter direction=inout type=Stringbullshit/esql:parameter)} /esql:call esql:call-results esql:results esql:result esql:get-string column=1 from-call=true//esql:result /esql:results /esql:call-results /esql:execute-query ,followed by this error: Language Exception More precisely: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling Merci_Dics_xsp: Line 463, column -1: inconvertible types Line 0, column 0: I already searched the mail-archives, but didn't find a right solution. -- Best regards, Michael mailto:[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]
Installing cocoon2 with Jrun 3.1
Hi, like the subject says I'm trying to install cocoon2 to run with Jrun 3.1 I've followed all the instructions at http://xml.apache.org/cocoon/installing/index.html but when I try and browse to http://localhost/cocoon I get the error below. Can anyone help? Chris. type fatal message Error compiling sitemap description org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties at org.apache.cocoon.sitemap.Handler.run(Handler.java:295) at java.lang.Thread.run(Thread.java:484) java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties at org.apache.velocity.runtime.RuntimeInstance.(RuntimeInstance.java:207) at org.apache.velocity.app.VelocityEngine.(VelocityEngine.java:113) at org.apache.cocoon.generation.VelocityGenerator.configure(VelocityGenerator.j ava:337) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:172) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java: 82) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java :126) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL imitingPool.java:91) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftRes ourceLimitingPool.java:80) at org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Po olableComponentHandler.java:88) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen t(ExcaliburComponentSelector.java:467) at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(Defau ltSitemapComponentSelector.java:181) at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav a:269) at org.apache.cocoon.www.sitemap_xmap$Configurer.configGenerators(D:\JRun\serve rs\default\tmp\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5 99) at org.apache.cocoon.www.sitemap_xmap.configure(D:\JRun\servers\default\tmp\coc oon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:452) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat or(GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:332) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:484) request-uri /cocoon/ path-info - 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: Installing cocoon2 with Jrun 3.1
Hi Chris, It can't see commons-collections-xx.jar in the classpath, for some reason. Maybe you'll have to copy that (and some others) from /lib/core into /jrun/lib/ext, like the xerces and xml-apis jars to get it going! Regards, Perry -Original Message- From: Chris Warr [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 10:41 To: [EMAIL PROTECTED] Subject: Installing cocoon2 with Jrun 3.1 Hi, like the subject says I'm trying to install cocoon2 to run with Jrun 3.1 I've followed all the instructions at http://xml.apache.org/cocoon/installing/index.html but when I try and browse to http://localhost/cocoon I get the error below. Can anyone help? Chris. type fatal message Error compiling sitemap description org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties at org.apache.cocoon.sitemap.Handler.run(Handler.java:295) at java.lang.Thread.run(Thread.java:484) java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties at org.apache.velocity.runtime.RuntimeInstance.(RuntimeInstance.java:207) at org.apache.velocity.app.VelocityEngine.(VelocityEngine.java:113) at org.apache.cocoon.generation.VelocityGenerator.configure(VelocityGenerator.j ava:337) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:172) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java: 82) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java :126) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL imitingPool.java:91) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftRes ourceLimitingPool.java:80) at org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Po olableComponentHandler.java:88) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen t(ExcaliburComponentSelector.java:467) at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(Defau ltSitemapComponentSelector.java:181) at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav a:269) at org.apache.cocoon.www.sitemap_xmap$Configurer.configGenerators(D:\JRun\serve rs\default\tmp\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5 99) at org.apache.cocoon.www.sitemap_xmap.configure(D:\JRun\servers\default\tmp\coc oon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:452) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat or(GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:332) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:484) request-uri /cocoon/ path-info - 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: Installing cocoon2 with Jrun 3.1
It seems that you have velocity in your cocoon.war. That's why velocity generator got compiled and configured in the sitemap (something like map:generator name=velocity...). Installation instructions you are referring were written and tested without Velocity. So you have two options: 1. Investigate the issue 2. Remove velocity generator from the sitemap and delete working directory (JRun\servers\default\tmp\cocoon). Vadim From: Chris Warr [mailto:[EMAIL PROTECTED]] Hi, like the subject says I'm trying to install cocoon2 to run with Jrun 3.1 I've followed all the instructions at http://xml.apache.org/cocoon/installing/index.html but when I try and browse to http://localhost/cocoon I get the error below. Can anyone help? Chris. type fatal message Error compiling sitemap description org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties at org.apache.cocoon.sitemap.Handler.run(Handler.java:295) at java.lang.Thread.run(Thread.java:484) java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties at org.apache.velocity.runtime.RuntimeInstance.(RuntimeInstance.java:207) at org.apache.velocity.app.VelocityEngine.(VelocityEngine.java:113) at org.apache.cocoon.generation.VelocityGenerator.configure(VelocityGenerat or.j ava:337) ... - 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: Installing cocoon2 with Jrun 3.1
Vadim, you're a champ, I removed all references to velocity from the sitemap and off she goes. Thanks mate. Chris. -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:02 To: [EMAIL PROTECTED] Subject: RE: Installing cocoon2 with Jrun 3.1 It seems that you have velocity in your cocoon.war. That's why velocity generator got compiled and configured in the sitemap (something like map:generator name=velocity...). Installation instructions you are referring were written and tested without Velocity. So you have two options: 1. Investigate the issue 2. Remove velocity generator from the sitemap and delete working directory (JRun\servers\default\tmp\cocoon). Vadim From: Chris Warr [mailto:[EMAIL PROTECTED]] Hi, like the subject says I'm trying to install cocoon2 to run with Jrun 3.1 I've followed all the instructions at http://xml.apache.org/cocoon/installing/index.html but when I try and browse to http://localhost/cocoon I get the error below. Can anyone help? Chris. type fatal message Error compiling sitemap description org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties at org.apache.cocoon.sitemap.Handler.run(Handler.java:295) at java.lang.Thread.run(Thread.java:484) java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties at org.apache.velocity.runtime.RuntimeInstance.(RuntimeInstance.java:207) at org.apache.velocity.app.VelocityEngine.(VelocityEngine.java:113) at org.apache.cocoon.generation.VelocityGenerator.configure(VelocityGenerat or.j ava:337) ... - 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]
Esql row-results
Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... queryselect * from action where due lt; current_timestamp/query results row-results actionget-string column=action//action /row-results /results what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya - 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: Esql row-results
does 'select top 1 ' do what you want. It just returns one row of the query results. Not sure if all dbs support it though. Very handy though. Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:54 To: [EMAIL PROTECTED] Subject: Esql row-results Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... queryselect * from action where due lt; current_timestamp/query results row-results actionget-string column=action//action /row-results /results what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya - 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: Esql row-results
unfortunatly not. I am using mysql - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:02 AM Subject: RE: Esql row-results does 'select top 1 ' do what you want. It just returns one row of the query results. Not sure if all dbs support it though. Very handy though. Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:54 To: [EMAIL PROTECTED] Subject: Esql row-results Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... queryselect * from action where due lt; current_timestamp/query results row-results actionget-string column=action//action /row-results /results what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya - 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: Installing cocoon2 with Jrun 3.1
OK, got another one for you. Cocoon is up and running now under Jrun 3.1, now I'm trying to run my app which works under Tomcat ok. I get the error below which from the looks of it has to do with connection pooling, the datasource definition is below from cocoon.xconf, and I'm using mssql server jdbc driver beta 2. jdbc name=eipp9010 dburljdbc:microsoft:sqlserver://prime:1433;DatabaseName=eippdev/dburl pool-controller min=5 max=20/ userjavaman/user passwordpassword/password /jdbc A chocolate frog to anyone with a clue on this one. Chris. 500 Internal Server Error /cocoon/inv9010.pdf: try to access method org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.setPool(Lorg/a pache/avalon/excalibur/pool/Pool;)V from class org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool java.lang.IllegalAccessError: try to access method org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.setPool(Lorg/a pache/avalon/excalibur/pool/Pool;)V from class org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool.ne wPoolable(ResourceLimitingJdbcConnectionPool.java:84) at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo ol.java:314) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(Validated ResourceLimitingPool.java:91) at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getCon nection(ResourceLimitingJdbcDataSource.java:131) at org.apache.cocoon.www.eipp.PDFGeneration.invoice_xml.generate(D:\JRun\server s\default\tmp\cocoon\cocoon-files\org/apache/cocoon/www/eipp/PDFGeneration\i nvoice_xml.java:330) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:260) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:251) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:390) at org.apache.cocoon.www.sitemap_xmap.matchN1062B(D:\JRun\servers\default\tmp\c ocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:7343) at org.apache.cocoon.www.sitemap_xmap.process(D:\JRun\servers\default\tmp\cocoo n\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3419) at org.apache.cocoon.www.sitemap_xmap.process(D:\JRun\servers\default\tmp\cocoo n\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3049) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic e.java:1082) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:89) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) at allaire.jrun.jrpp.ProxyEndpoint.run(../jrpp/ProxyEndpoint.java:388) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) -Original Message- From: Chris Warr [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:14 To: [EMAIL PROTECTED] Subject: RE: Installing cocoon2 with Jrun 3.1 Vadim, you're a champ, I removed all references to velocity from the sitemap and off she goes. Thanks mate. Chris. -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:02 To: [EMAIL PROTECTED] Subject: RE: Installing cocoon2 with Jrun 3.1 It seems that you have velocity in your cocoon.war. That's why velocity generator got compiled and configured in the sitemap (something like map:generator name=velocity...). Installation instructions you are referring were written and tested without Velocity. So you have two options: 1. Investigate the issue 2. Remove velocity generator from the sitemap and delete working directory (JRun\servers\default\tmp\cocoon). Vadim From: Chris Warr [mailto:[EMAIL PROTECTED]] Hi, like the subject says I'm trying to install cocoon2 to run with Jrun 3.1 I've followed all the instructions at http://xml.apache.org/cocoon/installing/index.html but when I try and browse to http://localhost/cocoon I get the
RE: Esql row-results
Then you want to use LIMIT, I think: SELECT blah from thetable LIMIT 1 Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 12:00 To: [EMAIL PROTECTED] Subject: Re: Esql row-results unfortunatly not. I am using mysql - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:02 AM Subject: RE: Esql row-results does 'select top 1 ' do what you want. It just returns one row of the query results. Not sure if all dbs support it though. Very handy though. Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:54 To: [EMAIL PROTECTED] Subject: Esql row-results Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... queryselect * from action where due lt; current_timestamp/query results row-results actionget-string column=action//action /row-results /results what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya - 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: Esql row-results
from the mysql manual - The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments. The arguments must be integer constants. If two arguments are given, the first specifies the offset of the first row to return, the second specifies the maximum number of rows to return. The offset of the initial row is 0 (not 1): mysql select * from table LIMIT 5,10; # Retrieve rows 6-15 If one argument is given, it indicates the maximum number of rows to return: mysql select * from table LIMIT 5; # Retrieve first 5 rows In other words, LIMIT n is equivalent to LIMIT 0,n. marty - Original Message - From: Sharat Koya [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 10:00 PM Subject: Re: Esql row-results unfortunatly not. I am using mysql - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:02 AM Subject: RE: Esql row-results does 'select top 1 ' do what you want. It just returns one row of the query results. Not sure if all dbs support it though. Very handy though. Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:54 To: [EMAIL PROTECTED] Subject: Esql row-results Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... queryselect * from action where due lt; current_timestamp/query results row-results actionget-string column=action//action /row-results /results what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya - 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: Esql row-results
fantastic thanks - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:16 AM Subject: RE: Esql row-results Then you want to use LIMIT, I think: SELECT blah from thetable LIMIT 1 Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 12:00 To: [EMAIL PROTECTED] Subject: Re: Esql row-results unfortunatly not. I am using mysql - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:02 AM Subject: RE: Esql row-results does 'select top 1 ' do what you want. It just returns one row of the query results. Not sure if all dbs support it though. Very handy though. Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:54 To: [EMAIL PROTECTED] Subject: Esql row-results Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... queryselect * from action where due lt; current_timestamp/query results row-results actionget-string column=action//action /row-results /results what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya - 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]
Pooling under Jrun 3.1 (was RE: Installing cocoon2 with Jrun 3.1)
I removed the pooling and it works fine? Anyone else had pooling problems under Jrun 3.1? Chris. -Original Message- From: Chris Warr [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 12:09 To: [EMAIL PROTECTED] Subject: RE: Installing cocoon2 with Jrun 3.1 OK, got another one for you. Cocoon is up and running now under Jrun 3.1, now I'm trying to run my app which works under Tomcat ok. I get the error below which from the looks of it has to do with connection pooling, the datasource definition is below from cocoon.xconf, and I'm using mssql server jdbc driver beta 2. jdbc name=eipp9010 dburljdbc:microsoft:sqlserver://prime:1433;DatabaseName=eippdev/dburl pool-controller min=5 max=20/ userjavaman/user passwordpassword/password /jdbc A chocolate frog to anyone with a clue on this one. Chris. 500 Internal Server Error /cocoon/inv9010.pdf: try to access method org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.setPool(Lorg/a pache/avalon/excalibur/pool/Pool;)V from class org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool java.lang.IllegalAccessError: try to access method org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.setPool(Lorg/a pache/avalon/excalibur/pool/Pool;)V from class org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool.ne wPoolable(ResourceLimitingJdbcConnectionPool.java:84) at org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo ol.java:314) at org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(Validated ResourceLimitingPool.java:91) at org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getCon nection(ResourceLimitingJdbcDataSource.java:131) at org.apache.cocoon.www.eipp.PDFGeneration.invoice_xml.generate(D:\JRun\server s\default\tmp\cocoon\cocoon-files\org/apache/cocoon/www/eipp/PDFGeneration\i nvoice_xml.java:330) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:260) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:251) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:390) at org.apache.cocoon.www.sitemap_xmap.matchN1062B(D:\JRun\servers\default\tmp\c ocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:7343) at org.apache.cocoon.www.sitemap_xmap.process(D:\JRun\servers\default\tmp\cocoo n\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3419) at org.apache.cocoon.www.sitemap_xmap.process(D:\JRun\servers\default\tmp\cocoo n\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3049) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic e.java:1082) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:89) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) at allaire.jrun.jrpp.ProxyEndpoint.run(../jrpp/ProxyEndpoint.java:388) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) -Original Message- From: Chris Warr [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:14 To: [EMAIL PROTECTED] Subject: RE: Installing cocoon2 with Jrun 3.1 Vadim, you're a champ, I removed all references to velocity from the sitemap and off she goes. Thanks mate. Chris. -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:02 To: [EMAIL PROTECTED] Subject: RE: Installing cocoon2 with Jrun 3.1 It seems that you have velocity in your cocoon.war. That's why velocity generator got compiled and configured in the sitemap (something like map:generator name=velocity...). Installation instructions you are referring were written and tested without Velocity. So you have two options: 1. Investigate the issue 2. Remove velocity generator from the sitemap and delete working directory (JRun\servers\default\tmp\cocoon). Vadim From: