Re: Database connection by cocoon 2.2

2008-09-29 Thread yosauron
Joerg Heinicke wrote: > > On 25.09.2008 12:53, yosauron wrote: > >>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: >>> Line 23 in XML document from URL >>> [jar:file:/home/caribdis/.m2/repository/org/apache/cocoon/cocoon-databases-bridge/1.1.0-SNAPSHOT/cocoon-databases

Re: Database connection by cocoon 2.2

2008-09-28 Thread Joerg Heinicke
On 25.09.2008 12:53, yosauron wrote: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 23 in XML document from URL [jar:file:/home/caribdis/.m2/repository/org/apache/cocoon/cocoon-databases-bridge/1.1.0-SNAPSHOT/cocoon-databases-bridge-1.1.0-SNAPSHOT.jar!/META-INF/cocoo

Re: Database connection by cocoon 2.2

2008-09-25 Thread yosauron
Joerg Heinicke wrote: > > On 23.09.2008 09:12, yosauron wrote: > >> Please, Does anybody know where is the error? I have been searching the >> error >> for 5-6 days and I don't have any more clues... Can anyone help me? > > Caused by: java.lang.NoSuchMethodError: org.apache.cocoon.t

Re: Database connection by cocoon 2.2

2008-09-24 Thread yosauron
ok, How do I fix this? Deleting and updating any jar? And one question, when you define the version in a pom file, is not for choose the correct version of the blocks - jars?? Thank you Joerg for your answer Joerg Heinicke wrote: > > On 23.09.2008 09:12, yosauron wrote: > >> Please, Does

Re: Database connection by cocoon 2.2

2008-09-23 Thread Joerg Heinicke
On 23.09.2008 09:12, yosauron wrote: Please, Does anybody know where is the error? I have been searching the error for 5-6 days and I don't have any more clues... Can anyone help me? Caused by: java.lang.NoSuchMethodError: org.apache.cocoon.transformation.SQLTransformer.getLogger()Lorg/apach

RE: Database connection by cocoon 2.2

2008-09-23 Thread yosauron
Please, Does anybody know where is the error? I have been searching the error for 5-6 days and I don't have any more clues... Can anyone help me? yosauron wrote: > > Hi Dom, > > I have followed these steps but I get the following error when I request > the url from the web browser: > > >

RE: Database connection by cocoon 2.2

2008-09-17 Thread yosauron
Hi Dom, I have followed these steps but I get the following error when I request the url from the web browser: > javax.servlet.ServletException: org.apache.cocoon.ProcessingException: > Failed to process pipeline > at - > file:///home/caribdis/cocoon/bloqueBD2/./src/main/resources/COB-

Re: Database connection by cocoon 2.2

2008-07-24 Thread Joerg Heinicke
On 23.07.2008 08:00, Derek Hohls wrote: Not sure if you are speaking for the dev team here? No, that was my opinion. What exactly does "kind of obsolete" mean - has it been deprecated, or is it still a valid component in 2.2? Or is there is some other meaning? I'm not a native English spe

Re: Database connection by cocoon 2.2

2008-07-22 Thread Derek Hohls
Joerg Not sure if you are speaking for the dev team here? What exactly does "kind of obsolete" mean - has it been deprecated, or is it still a valid component in 2.2? Or is there is some other meaning? Thanks. >>> On 2008/07/19 at 01:08, in message <[EMAIL PROTECTED]>, Joerg Heinicke >>> <[EMA

Re: Database connection by cocoon 2.2

2008-07-22 Thread Joerg Heinicke
I agree with Boris. In Cocoon 2.2 the database block is kind of obsolete. An application should rather be developed with more standard means as provided by Spring. Cocoon was never very good at integrating database stuff. Joerg On 06.06.2008 10:05, Johannes Hoechstaedter wrote: I know, cocoo

Re: Database connection by cocoon 2.2

2008-06-19 Thread Andrew Savory
Hi 2008/6/6 Johannes Hoechstaedter <[EMAIL PROTECTED]>: > I tried, but I failed :). I didn't foun the file > src/main/resources/META-INF/cocoon/avalon/custom-sitemap-compents.xconf so I > put the content into my sitemap.xmap. I don't have an orcale db, so I > replaced everything oracle sepcific

Re: Database connection by cocoon 2.2

2008-06-06 Thread Johannes Hoechstaedter
Johannes Hoechstaedter schrieb: Hi Dom, I had no need of these lines your wrote into custom-sitemap-compents.xconf. I simply deleted this file. What I needed was: - dependencies in pom.xml (driver, cocoon-database-impl) - datasources.xml - sql.xml - pipeline entry in sitemap.xml where the t

Re: Database connection by cocoon 2.2

2008-06-06 Thread Johannes Hoechstaedter
Hi Dom, I had no need of these lines your wrote into custom-sitemap-compents.xconf. I simply deleted this file. What I needed was: - dependencies in pom.xml (driver, cocoon-database-impl) - datasources.xml - sql.xml - pipeline entry in sitemap.xml where the transformer is called :) cheers Joh

RE: Database connection by cocoon 2.2

2008-06-06 Thread Dominic Tootell
taedter [mailto:[EMAIL PROTECTED] Sent: 06 June 2008 16:06 To: users@cocoon.apache.org Subject: Re: Database connection by cocoon 2.2 ok, I managed it. There were some spelling errors, and some more modifications ;), but I have some datas on the screen, thanks. Johannes Hoechstaedter schrieb: >

Re: Database connection by cocoon 2.2

2008-06-06 Thread Johannes Hoechstaedter
ok, I managed it. There were some spelling errors, and some more modifications ;), but I have some datas on the screen, thanks. Johannes Hoechstaedter schrieb: Hi Dominic I tried, but I failed :). I didn't foun the file src/main/resources/META-INF/cocoon/avalon/custom-sitemap-compents.xconf

Re: Database connection by cocoon 2.2

2008-06-06 Thread Johannes Hoechstaedter
Hi Dominic I tried, but I failed :). I didn't foun the file src/main/resources/META-INF/cocoon/avalon/custom-sitemap-compents.xconf so I put the content into my sitemap.xmap. I don't have an orcale db, so I replaced everything oracle sepcific by mysql data and adapted ehe sql string. On "mvn

RE: Database connection by cocoon 2.2

2008-06-06 Thread Dominic Tootell
used for any production type app, for a quick mock up, the above should work without having to go near Spring + Hibernate. /dom -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: 06 June 2008 13:25 To: users@cocoon.apache.org Subject: Re: Database connection by cocoon

Re: Database connection by cocoon 2.2

2008-06-06 Thread Derek Hohls
Johannes Just curious - is there a pressing reason to use 2.2? Why not download and work with 2.1 (which ships with the sample code you requested). Again, IMO, 2.2 still needs more work - esp. docs and simple examples - in making it accessible to the "average" user. Cheers Derek >>> On 2

Re: Database connection by cocoon 2.2

2008-06-06 Thread Boris Goldowsky
You probably already have looked at it, but the documentation on springframework.org is actually very good (something for Cocoon to aspire to ;-) -- the section on database access is at http://static.springframework.org/spring/docs/2.5.x/reference/jdbc.html You can certainly work with the Spring d

Re: Database connection by cocoon 2.2

2008-06-06 Thread Boris Goldowsky
I haven't investigated what the databases block does in 2.2. In Cocoon 2.1, you could use it for simple database queries just by giving it a JDBC connection; but since it didn't help much with database updating, we never used it much. I imagine much the same is true in 2.2. However, I do have so

Re: Database connection by cocoon 2.2

2008-06-06 Thread Johannes Hoechstaedter
The linked sample is nice, and basically exactly what I am looking for. I have already searched on http://cocoon.apache.org/2.1/ on how I can etablish a database connection. You need an entry int your web.xml and in your cocoon.xconf for example. Where is the cocoon.xconf in 2.2? Where can I d

Re: Database connection by cocoon 2.2

2008-06-06 Thread Derek Hohls
Johannes Good question! The "official and best" way is to use Hibernate and Spring; this will, IMO, mean writing *lots* of code. You can use flowscript instead, for simple cases, but be warned that many here will point out the potential flaws in this approach. In the 2.1.x series of Cocoon,

Re: Database connection by cocoon 2.2

2008-06-06 Thread Johannes Hoechstaedter
Good morning Bng, I know, cocoon is based on spring. But isn't there another possibility with cocoon blocks only? There is this database-block. What it is good for, when I have to write my own spring application? I want to write as less code as possible. Johannes Johannes -- you may want t

Re: Database connection by cocoon 2.2

2008-06-05 Thread Derek Hohls
Bng It would be very useful if you, or anyone in the community, could identify or recommend such tutorials - on a quick search I was not able to find anything useful - although: http://www.codesuccess.com/tutorials/spring/pagination/ and http://www.netbeans.org/kb/61/web/quickstart-webapps-spring.

Re: Database connection by cocoon 2.2

2008-06-05 Thread Boris Goldowsky
Johannes -- you may want to search for tutorials on using databases with Spring. My understanding is that with Cocoon 2.2 it is best to have Spring configure and manage any database connections. Then you can add Cocoon features (eg, the SQL transformer or whatever) once that is set up. Bng On