Re: Cocoon and XIndice versions - FIXED

2002-03-25 Thread Alex McLintock

At 19:17 23/03/2002, Christian Zoffoli wrote:
Vadim Gritsenko wrote:
   From: root [mailto:root] On Behalf Of Christian Zoffoli
  
   Alex McLintock wrote:
   
Hi folks,
   
I'm trying to find satisfactory versions of Cocoon and XIndice which
work together.
   
   [cut]

Several people offered ideas

  This is also for JDK1.4 *only*.

| ...Alex uses JDK1.4

Well actually using JDK1.4 seemed to cause so many issues that I have 
downgraded to JDk1.3

I am amazed that this jump to JDK1.4 causes so many issues :-(

Alex McLintock


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon and XIndice versions

2002-03-23 Thread Christian Zoffoli

Alex McLintock wrote:
 
 Hi folks,
 
 I'm trying to find satisfactory versions of Cocoon and XIndice which work
 together.
 
[cut]


my little how-to

1- copy batik-libs,xerces,xalan,xml-apis from
$CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/lib
2- add export CATALINA_OPTS='-Djava.awt.headless=true
-Duser.language=en' at the beginning of $CATALINA_HOME/bin/catalina.sh
3- add -Djava.endorsed.dirs=$XINDICE_HOME/java/lib to
$XINDICE_HOME/config/vm.cfg
4- patch
org.apache.cocoon.transformation.XMLDBTransformerXMLDBTransformer.java
with http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg12028.html


Christian

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon and XIndice versions - FIXED

2002-03-23 Thread Christian Zoffoli

Alex McLintock wrote:
 
 Hi folks,
 
 I'm trying to find satisfactory versions of Cocoon and XIndice which work
 together.
 
[cut]


my little how-to

1- copy batik-libs,xerces,xalan,xml-apis from
$CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/lib
2- add export CATALINA_OPTS='-Djava.awt.headless=true
-Duser.language=en' at the beginning of $CATALINA_HOME/bin/catalina.sh
3- add -Djava.endorsed.dirs=$XINDICE_HOME/java/lib to
$XINDICE_HOME/config/vm.cfg  (note: expand $XINDICE_HOME with the real
path!)
4- patch
org.apache.cocoon.transformation.XMLDBTransformerXMLDBTransformer.java
with http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg12028.html


Christian

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




AW: Cocoon and XIndice versions

2002-03-23 Thread Axel Honfi


Hello!

First, I think that jdk1.4 may cause some problems, but read in the archives
for more on that.

You don't need a new cvs-snapshot, just use cocoon2 normal release and
define the xmldb pseudo protocol in cocoon.xconf:

!-- xmldb pseudo protocol with xindice --
source-handler logger=core.xindice-sh
protocol name=xmldb
class=org.apache.cocoon.components.source.XMLDBSourceFactory
driver type=xindice
class=org.apache.xindice.client.xmldb.DatabaseImpl/
/protocol
/source-handler
!-- end of xmldb pseudo protocol with xindice --

because the generator will be deprecated and is not so efficent.

Then remove the xmldb-samples in the sitemap and copy the xindice.jar
(different package names than dbxml) into cocoon.

Then you can generate SAX events by using

map:generate
src=xmldb:xindice://localhost:4080/db/your-collection/#/user[username='{sit
emap-param}'][password='{sitemap-param}']/

in the sitemap (this sample uses an xpath query - if you don't want to query
use the xml-object-id instead of everything beginning with '#').

If you want to include some database-xml in an xsp-file use:

xi:include
href=xmldb:xindice://localhost:4080/db/your-collection/xml-object-id
parse=text/

If you want to update the database use the xmldb-transformer from the
scratchpad, but for the update execution you have to add a patch or
workaround because xalan removes the xupdate-namespace, you can also find
this in the archives.

At least this worked with me, I hope you can make it run

Axel

-Ursprungliche Nachricht-
Von: Alex McLintock [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 22. Marz 2002 18:04
An: [EMAIL PROTECTED]
Betreff: Cocoon and XIndice versions


Hi folks,

I'm trying to find satisfactory versions of Cocoon and XIndice which work
together.

I am told that I need a CVS version of cocoon rather than the latest
release - but the CVS snapshots don't currently work.
(I am using Xinidice 1.0 and Tomcat 4.0something on RedHat Linux 7.2, and
Sun's JDK 1.4)

Any ideas? Is it ok discussing cvs snapshots on the users list?

Older versions of Cocoon use a deprecated generator system for talking to
Xindice rather than the now standard source.


Alex




Cocoon 2 - Internal server error

type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoClassDefFoundError

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

path-info

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoClassDefFoundError
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
 at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NoClassDefFoundError
 at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
 at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
 at
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)






Openweb Analysts Ltd, London
Software For Complex Websites
http://www.OWAL.co.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: Cocoon and XIndice versions - FIXED

2002-03-23 Thread Vadim Gritsenko

 From: root [mailto:root] On Behalf Of Christian Zoffoli
 
 Alex McLintock wrote:
 
  Hi folks,
 
  I'm trying to find satisfactory versions of Cocoon and XIndice which
work
  together.
 
 [cut]
 
 my little how-to
 
 1- copy batik-libs,xerces,xalan,xml-apis from
 $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/lib

???

Christian:
Please, explicitly specify which tomcat version you use. Otherwise, you
are going to screw lots of innocent newbies.

Newbies:
Read newest install instruction from the Cocoon 2.0.2 (due in several
days; instructions now available at
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/in
stalling/index.xml?rev=1.16content-type=text/vnd.viewcvs-markup) before
trying to follow any of the instructions on this list. 


 2- add export CATALINA_OPTS='-Djava.awt.headless=true

This is for JDK1.4 *only*


 -Duser.language=en' at the beginning of $CATALINA_HOME/bin/catalina.sh

If I'm not mistaken, this applies to the Xalan 2.3.1 only.


 3- add -Djava.endorsed.dirs=$XINDICE_HOME/java/lib to
 $XINDICE_HOME/config/vm.cfg  (note: expand $XINDICE_HOME with the real
 path!)

This is also for JDK1.4 *only*.

Regards,
Vadim

 4- patch
 org.apache.cocoon.transformation.XMLDBTransformerXMLDBTransformer.java
 with
http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg12028.html
 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Cocoon and XIndice versions

2002-03-22 Thread Alex McLintock



Hi folks,

I'm trying to find satisfactory versions of Cocoon and XIndice which work 
together.

I am told that I need a CVS version of cocoon rather than the latest 
release - but the CVS snapshots don't currently work.
(I am using Xinidice 1.0 and Tomcat 4.0something on RedHat Linux 7.2, and 
Sun's JDK 1.4)

Any ideas? Is it ok discussing cvs snapshots on the users list?

Older versions of Cocoon use a deprecated generator system for talking to 
Xindice rather than the now standard source.


Alex




Cocoon 2 - Internal server error

type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling 
sitemap: java.lang.NoClassDefFoundError

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

path-info

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
 at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NoClassDefFoundError
 at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
 at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
 at 
 org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
 Method)

etc etc etc



Openweb Analysts Ltd, London
Software For Complex Websites
http://www.OWAL.co.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]




Cocoon and XIndice versions

2002-03-22 Thread Alex McLintock

Hi folks,

I'm trying to find satisfactory versions of Cocoon and XIndice which work 
together.

I am told that I need a CVS version of cocoon rather than the latest 
release - but the CVS snapshots don't currently work.
(I am using Xinidice 1.0 and Tomcat 4.0something on RedHat Linux 7.2, and 
Sun's JDK 1.4)

Any ideas? Is it ok discussing cvs snapshots on the users list?

Older versions of Cocoon use a deprecated generator system for talking to 
Xindice rather than the now standard source.


Alex




Cocoon 2 - Internal server error

type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

path-info

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
 at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NoClassDefFoundError
 at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
 at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
 at 
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)






Openweb Analysts Ltd, London
Software For Complex Websites
http://www.OWAL.co.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: Cocoon and XIndice versions

2002-03-22 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: RE: Cocoon and XIndice versions





There are instructions on the recent list archives on getting Cocoon/Tomcat working with jdk1.4


For starters, see:
http://www.mail-archive.com/cocoon-users@xml.apache.org/msg08873.html


I know nothing of Xindice but maybe that will get you going in the right direction.


HTH,
-Tom


 -Original Message-
 From: Alex McLintock [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 22, 2002 12:04 PM
 To: [EMAIL PROTECTED]
 Subject: Cocoon and XIndice versions
 
 
 Hi folks,
 
 I'm trying to find satisfactory versions of Cocoon and 
 XIndice which work 
 together.
 
 I am told that I need a CVS version of cocoon rather than the latest 
 release - but the CVS snapshots don't currently work.
 (I am using Xinidice 1.0 and Tomcat 4.0something on RedHat 
 Linux 7.2, and 
 Sun's JDK 1.4)
 
 Any ideas? Is it ok discussing cvs snapshots on the users list?
 
 Older versions of Cocoon use a deprecated generator system 
 for talking to 
 Xindice rather than the now standard source.
 
 
 Alex
 
 
 
 
 Cocoon 2 - Internal server error
 
 type fatal
 
 message Error compiling sitemap
 
 description org.apache.cocoon.ProcessingException: Error 
 compiling sitemap: 
 java.lang.NoClassDefFoundError
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 source Cocoon servlet
 
 request-uri
 
 /cocoon/
 
 path-info
 
 stack-trace
 
 org.apache.cocoon.ProcessingException: Error compiling sitemap: 
 java.lang.NoClassDefFoundError
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
 at java.lang.Thread.run(Thread.java:536)
 Caused by: java.lang.NoClassDefFoundError
 at 
 org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
 at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
 at 
 org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
 Method)
 
 
 
 
 
 
 Openweb Analysts Ltd, London
 Software For Complex Websites
 http://www.OWAL.co.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: Cocoon and XIndice versions

2002-03-22 Thread Vadim Gritsenko

Alex:

When you work with Cocoon CVS, make sure:
1. You have latest CVS (as of yesterday is ok)
2. You have read install instructions from the CVS

Vadim

 -Original Message-
 From: Alex McLintock [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 22, 2002 12:04 PM
 To: [EMAIL PROTECTED]
 Subject: Cocoon and XIndice versions
 
 Hi folks,
 
 I'm trying to find satisfactory versions of Cocoon and XIndice which
work
 together.
 
 I am told that I need a CVS version of cocoon rather than the latest
 release - but the CVS snapshots don't currently work.
 (I am using Xinidice 1.0 and Tomcat 4.0something on RedHat Linux 7.2,
and
 Sun's JDK 1.4)
 
 Any ideas? Is it ok discussing cvs snapshots on the users list?
 
 Older versions of Cocoon use a deprecated generator system for talking
to
 Xindice rather than the now standard source.
 
 
 Alex
 
 
 
 
 Cocoon 2 - Internal server error
 
 type fatal
 
 message Error compiling sitemap
 
 description org.apache.cocoon.ProcessingException: Error compiling
sitemap:
 java.lang.NoClassDefFoundError
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 source Cocoon servlet
 
 request-uri
 
 /cocoon/
 
 path-info
 
 stack-trace
 
 org.apache.cocoon.ProcessingException: Error compiling sitemap:
 java.lang.NoClassDefFoundError
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
  at java.lang.Thread.run(Thread.java:536)
 Caused by: java.lang.NoClassDefFoundError
  at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown
Source)
  at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)




-
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]