Xindice and Cocoon How To

2002-02-21 Thread Perry Molendijk

Infexions (WA) Pty LtdHope this is useful to anyone

Finally got around to attempt to make xindice / dbxml work with C2.
Checked the FAQ's and archive and ended up very confused.
Anyway I kind of summarised all the advice / postings I found and got it to
work [in the end].

Here is a rundown on what I did / modified to cocoon to get it to work.

The environment Win2K, Cocoon 2.0.1, Tomcat 4.0.1 and xindice-1.0rc1

Assumption: xindice is running on localhost:4080 and the addressbook example
db has been created.

There are apparently two ways of doing this:
1. using a generator
2. using a source-handler

In a recent posting it was noted however that the generator will be
deprecated shortly, so first I got rid of the bits in sitemap.xmap that deal
with the generator:

First comment out this section (it's near the top of sitemap.xmap)


org.dbxml.client.xmldb.DatabaseImpl
xmldb:dbxml:///db/
   
   
org.dbxml.client.xmldb.DatabaseImpl
xmldb:dbxml:///db/
   

Next comment out these lines (near the end of sitemap.xmap):

   


   
   


   

Now modify the remaining map:match entry:

   

 
 



   

so it looks like this:

   

 
 



   

Replace:
xmldb:dbxml://localhost:4080/
With:
xmldb:xindice://localhost:4080/db/

Untill I added the "db/" at the end I was getting an error saying a file
named:
_bootstrap.ior not found. Where  is the collection name used in the
request. In fact if you look in %XINDICE_HOME%/docs there is only one .ior
file and it's called db_bootstrap.ior.

Next to cocoon.xconf. Modify the following lines:

 
  
  
   
   
   
  
 

so they look like this:

 
  
  
   
   
   
  
 

Copy xindice.jar into the cocoon\WEB-INF\lib directory.

Start xindice, if it isn't running yet.

Start Tomcat.

And try: http://localhost:8080/cocoon/xmldb/addressbook/

The result looks something like this [I have three entries in the
addressbook db]:


http://apache.org/cocoon/xmldb/1.0";>
 
 
 


To see all the entries in you addressbook db try:
http://localhost:8080/cocoon/xmldb/addressbook/?xpath=//person

Although all this is working sweet, I do get this error in error.log:

ERROR   (2002-02-22) 13:51.08:468   [sitemap.generator.velocity]
(/cocoon/xmldb/addressbook/) HttpProcessor[82][4]/VelocityGenerator:
ResourceManager : unable to find resource 'VM_global_library.vm' in any
resource loader.
ERROR   (2002-02-22) 13:51.08:578   [sitemap.generator.velocity]
(/cocoon/xmldb/addressbook/) HttpProcessor[82][4]/VelocityGenerator:
ResourceManager : unable to find resource 'VM_global_library.vm' in any
resource loader.

Always 2 entries like this but all seems to running fine.

I have written this in StyleBook format. You can download it from:
http://members.iinet.net.au/~xions/dev/xindice.zip
Unzip it to %PATH_TO_SERVLET_ENGINE%\webapps\cocoon\documentation\xdocs
Access it via:
http://localhost:8080/cocoon/documents/xindice/index.html


Inflexions (WA) Pty Ltd
to
body
Perry Molendijk

Inflexions (WA) Pty Ltd
PO Box 57
Inglewood
WA 6052
Australia
Tel: (+61) 0401 677 453

IMPORTANT INFORMATION: This message and any files transmitted with it are
confidential and should be read only by those persons to whom it is
addressed. If you have received this message in error, please notify us
immediately by way of reply. Please also destroy and delete the message from
your computer. Any unauthorised form of reproduction of this message is
strictly prohibited. It is the duty of the recipient to virus scan and
otherwise test the information provided before loading onto any computer
system. Inflexions (WA) Pty Ltd does not warrant that the information is
free of a virus or any other defect or error. Inflexions (WA) Pty Ltd is not
liable for the proper and complete transmission of the information contained
in this communication, nor for any delay in its receipt. Any views expressed
in this message are those of the individual sender, except where the sender
specifically states them to be the views of Inflexions (WA) Pty Ltd.


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




[C1] Installation problem

2002-02-21 Thread Aleksey Globets


- Original Message -
From: "Aleksey Globets" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 5:45 PM
Subject: [C1] New version of Xerces


> Hi,
>
> I'm trying to install a newer version of Xerces. I have two systems:
>
> (1)FreeBSD 4.4
> JDK 1.1.8
> Tomcat 3.2.3
> Cocoon 1.8.2
>
> (2)Red Hat Linux 6.2
> JDK 1.3
> Tomcat 3.2.2
> Cocoon 1.8.2
>
> All versions of Xerces are compiled from sources. On the first system I
> can't start it normally. After I change old 1.2.0 JAR to new, I receive an
> error after restarting of the Tomcat:
>
> java.lang.IncompatibleClassChangeError: Unimplemented interface method
>  at
>
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:7
> 10)
>  at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:572)
>  at
>
org.apache.cocoon.transformer.XalanTransformer.transform(XalanTransformer.ja
> va:107)
>  at
>
org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:11
> 6)
>  at org.apache.cocoon.Engine.handle(Engine.java:384)
>  at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>  at org.apache.tomcat.core.Handler.service(Handler.java:287)
>  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
>
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
> (Ajp13ConnectionHandler.java:160)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>  at java.lang.Thread.run(Thread.java)
>
> And I receive another error after refreshing of a page:
>
> java.lang.NoClassDefFoundError: org/apache/xalan/xslt/StylesheetRoot
>  at
>
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:7
> 10)
>  at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:572)
>  at
>
org.apache.cocoon.transformer.XalanTransformer.transform(XalanTransformer.ja
> va:107)
>  at
>
org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:11
> 6)
>  at org.apache.cocoon.Engine.handle(Engine.java:384)
>  at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>  at org.apache.tomcat.core.Handler.service(Handler.java:287)
>  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
>
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
> (Ajp13ConnectionHandler.java:160)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>  at java.lang.Thread.run(Thread.java)
>
> On the second system I haven't such problems.
>
> Help!!!
>
> Thanks,
>
> Alex
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Cocoon 2.0 sitemap

2002-02-21 Thread Yvon Bricole

>What's the secret to getting Cocoon 2.0 to serve up PDF files? Is it the
>sitemap file? Do I have to edit it? 
>I have one xml file and one xsl-fo file. How does Cocoon put the two
together?
>
>G.Howze

no secret at all !

read the samples, as for example one of cocoon folder just modified a
little bit :

---

XML file : salutMonde.xml (Hello World in french ;-)) )

---




 Salut Monde !
 
  mon premier essai xml -- pdf avec Cocoon!
 

---

XSL file : hello-fo.xsl

---
http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";>

  
type="text/xslfo"
http://www.w3.org/1999/XSL/Format";>
 
  
   
  
 

 
  
   
  

  
 
   
 
   
   
  

  

  

  


---
put those two files onto your cocoon folder
start up cocoon

point a web browser to the adress : 



cocoon-1.8 being the folder name of cocoon, this suppose salutMonde.xml
is at root of this folder.
Notice cocoon knows it as to link the xml to the other xsl because it's
written on top of the xml one...

that's all folks !

Yvon


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: XMLDBGenerator

2002-02-21 Thread Vadim Gritsenko

> From: Stephan Michels [mailto:[EMAIL PROTECTED]]
> 
> On Thu, 21 Feb 2002, Gianugo Rabellino wrote:




> > > xmldb:dbxml:///db/
> >
> > Base should be is xmldb:xindice///db/.
> >
> > Also, you are getting the error from the XML:DB source protocol, not
> > from the generators, please double check your settings:
> 
> I also added the the line
>  class="org.apache.xindice.client.xmldb.DatabaseImpl"/>
> into the cocoon.xconf
> 
> 
> When I now try the request
>
http://vernjava:8080/cocoon/xmldb/addressbook?xpath=//person[lname=%27Cl
etus%2
> 7]
> 
> I got following exception:
> org.apache.cocoon.ProcessingException: Could not read resource
> xmldb:xindice://vernjava:4080/addressbook:
> java.lang.StringIndexOutOfBoundsException: String index out of range:
-11
> at
>
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
66)
> at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEven
> tPipeline.java:255)
> 

Stack trace of the StringIndexOutOfBoundsException will be of greater
help. And the version of the Cocoon you are using.

Vadim


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Cocoon 2.0 sitemap

2002-02-21 Thread Vadim Gritsenko

Read:

http://xml.apache.org/cocoon/
http://xml.apache.org/cocoon/overview.html
http://xml.apache.org/cocoon/userdocs/concepts/index.html
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

And on your hard drive, in the Cocoon webapp, sitemap.xmap file.

Yes, you have to edit sitemap.xmap and cocoon.xconf if you want to
create own webapp but not just use sample webapp.

Vadim

-Original Message-
From: Garry Howze [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 21, 2002 10:23 PM
To: [EMAIL PROTECTED]
Subject: Cocoon 2.0 sitemap

What's the secret to getting Cocoon 2.0 to serve up PDF files? Is it the
sitemap file? Do I have to edit it? 
I have one xml file and one xsl-fo file. How does Cocoon put the two
together?
 
G.Howze


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Tomcat 4.0.2, Cocoon 2.0.1, JDK 1.4.0 Build Problem

2002-02-21 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> That worked up to a point :)  Now I'm getting this build error:
> 
>
/build/cocoon/scratchpad/src/org/apache/cocoon/transformation/pagination
/Pages
> heet.java:67: Class org.apache.cocoon.util.ResizableContainer not
found in
> import.
> import org.apache.cocoon.util.ResizableContainer;
> 
> Anybody seen this one?

rm -rf
/build/cocoon/scratchpad/src/org/apache/cocoon/transformation/pagination

should fix the problem. Or wait till European morning.

Vadim

 
> "Georg Von Sperling" <[EMAIL PROTECTED]> wrote:
> 
> > #1.) don't even try Tomcat 4.0.2 with JDK 1.4.0 and Cocoon2. Nothing
but
> problems
> > #2.) the combination that I have working is Tomcat 4.0.1, JDK 1.4.0
and CVS
> checkout of xml-cocoon2(HEAD)
> > #3.) make sure you check-out the "HEAD" tag from xml-cocoon2, others
might
> give you dev-versions
> >
> > Georg von Sperling
> > MedAptus, Inc.
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wed 2/20/2002 9:23 PM
> > To: [EMAIL PROTECTED]
> > Cc:
> > Subject: Tomcat 4.0.2, Cocoon 2.0.1, JDK 1.4.0 Build Problem
> >
> >
> >
> > I'm trying to build the cocoon2.war file and am getting a lot of
errors
> like this:
> >
> > /cocoon-
>
2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/
EsqlCo
> nnection.java:22: class org.apache.cocoon.components.langu
> > age.markup.xsp.EsqlConnection must be declared abstract. It does
not
> define java.sql.PreparedStatement prepareStatement(java.lang.String,
int[])
> from interface java.sq
> > l.Connection.
> > public class EsqlConnection implements Connection {
> >
> > Is there anybody who has seen this that can offer some advice?
> >
> > Thanks.


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: XMLDBGenerator

2002-02-21 Thread Stephan Michels



On Thu, 21 Feb 2002, Martin Holz wrote:

> Stephan Michels wrote:
> > On Thu, 21 Feb 2002, Gianugo Rabellino wrote:
> > > Stephan Michels wrote:
> > > > I try to use cocoon with xindice.
> > >
> > > Please avoid, if possible, the XML:DB generators, swith to the Source
> > > implementation, which allows you to use straightforward XML:DB URIs in
> > > your sitemap. The generators are going to be deprecated and abandoned in
> > > a short while.
> >
> > Okay, thank you.
> >
> > > Anyway, as for your problem, try to correct this:
> > > > xmldb:dbxml:///db/
> > >
> > > Base should be is xmldb:xindice///db/.
> > >
> > > Also, you are getting the error from the XML:DB source protocol, not
> > > from the generators, please double check your settings:
> >
> > I also added the the line
> >  > class="org.apache.xindice.client.xmldb.DatabaseImpl"/>
> > into the cocoon.xconf
> >
> >
> > When I now try the request
> > http://vernjava:8080/cocoon/xmldb/addressbook?xpath=//person[lname=%27Cletu
>   ^^^
> >s%27]
> >
> > I got following exception:
> > org.apache.cocoon.ProcessingException: Could not read resource
> > xmldb:xindice://vernjava:4080/addressbook:
> > java.lang.StringIndexOutOfBoundsException: String index out of range: -11
> > at
>
>
> You must quote the 'equal' sign too. IIRC is it %3D.

http://vernjava:8080/cocoon/xmldb/addressbook?xpath=//person[lname%3D%27Cletus%27]

doen't also work :[

I used the examples from xindice docs:
http://www.dbxml.org/docs/DevelopersGuide.html#NA7

And a StringIndexOutOfBoundsException isn't really a good explanation of
the problem.


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Cocoon 2.0 sitemap

2002-02-21 Thread Garry Howze



What's the secret to getting Cocoon 2.0 to serve up PDF files? Is it the 
sitemap file? Do I have to edit it? 
I have one xml file and one xsl-fo file. How does Cocoon put the two 
together?
 
G.Howze


Re: Having a function in a XSP.

2002-02-21 Thread Ed Jenkins

You can put an inner class inside an xsp:logic tag if it appears before your 
main element, i.e. .

I did this at first.  But when I needed the inner class again in another 
page, I moved it out of the pages and put it in a separate .java file and 
made sure the resulting .class file was on the classpath.

Ed

---

From: Mauricio Souza Lima <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Having a function in a XSP.
Date: Wed, 20 Feb 2002 14:31:55 -0200

Ed Jenkins wrote:

>
>
>  > Can I create an inner class with methods inside a XSP?
>
>Don't think so. All XSP code goes in the resulting Generator's generate()
>method. What you should do IMHO is to use helper classes.


All xsp:logic tags before the main tag (the first tag after xsp:page,
like ), are put before de generate() method, so, i think you can
do it.
But if you want to work with some custom classes inside the xsp, i think
that a better pratice, is to create the class outside the xsp page, put
it in the WEB-INF/lib on a jar file and them import it inside the xsp page.

>
>For more information on taglibs, I suggest you to look at the cocoon
>builtin
>taglibs in the sourcecode.
>
>--
>Nicola Ken Barozzi [EMAIL PROTECTED]
> - verba volant, scripta manent -
>(discussions get forgotten, just code remains)
>-
>
Regards...

Mauricio Souza Lima
Rational Consulting
[EMAIL PROTECTED]
Rua Helena, 140 / cj. 82
São Paulo - SP - Brazil
Fone / Direct: +55 11 3842-7138


-
Please check that your question has not already been answered in the
FAQ before posting. 

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





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Tomcat 4.0.2, Cocoon 2.0.1, JDK 1.4.0 Build Problem

2002-02-21 Thread tod . thomas

That worked up to a point :)  Now I'm getting this build error:

/build/cocoon/scratchpad/src/org/apache/cocoon/transformation/pagination/Pagesheet.java:67:
 Class org.apache.cocoon.util.ResizableContainer not found in import.
import org.apache.cocoon.util.ResizableContainer;

Anybody seen this one?


"Georg Von Sperling" <[EMAIL PROTECTED]> wrote:

> #1.) don't even try Tomcat 4.0.2 with JDK 1.4.0 and Cocoon2. Nothing but problems
> #2.) the combination that I have working is Tomcat 4.0.1, JDK 1.4.0 and CVS checkout 
>of xml-cocoon2(HEAD)
> #3.) make sure you check-out the "HEAD" tag from xml-cocoon2, others might give you 
>dev-versions
>  
> Georg von Sperling
> MedAptus, Inc.
> 
>   -Original Message- 
>   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
>   Sent: Wed 2/20/2002 9:23 PM 
>   To: [EMAIL PROTECTED] 
>   Cc: 
>   Subject: Tomcat 4.0.2, Cocoon 2.0.1, JDK 1.4.0 Build Problem
>   
>   
> 
>   I'm trying to build the cocoon2.war file and am getting a lot of errors like 
>this:
>   
>   
>/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
> class org.apache.cocoon.components.langu
>   age.markup.xsp.EsqlConnection must be declared abstract. It does not define 
>java.sql.PreparedStatement prepareStatement(java.lang.String, int[]) from interface 
>java.sq
>   l.Connection.
>   public class EsqlConnection implements Connection {
>   
>   Is there anybody who has seen this that can offer some advice? 
>   
>   Thanks.
>   
>   -
>   Please check that your question has not already been answered in the
>   FAQ before posting. 
>   
>   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. 

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




Fw: howto make use of default database add, delete, update action for mutilple table at a time

2002-02-21 Thread marco




> Thanks a lot. I was able to insert records to more than one table at a
time,
> but according to the documentaion of the actions "DatabaseUpdateAction"
and
> "DatabaseDeleteAction" that they can handle only one table at a time.
Please
> advise.
>
> - Original Message -
> From: "Christian Haul" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 21, 2002 2:30 AM
> Subject: Re: howto make use of default database add, delete, update action
> for mutilple table at a time
>
>
> > On 20.Feb.2002 -- 03:49 PM, marco wrote:
> > > I have a user input form and which is used to add/update/delete
records
> in
> > > serveral tables. I found a sample that came with cocoon, but it is
> simple
> > > example that only one table is handled at a time.
> > >
> > > How can I make use the default DatabaseAddAction,
DatabaseUpdateAction,
> > > DatabaseDeleteAction to manipulate the data of mutiple tables at a
time.
> >
> > Easy: just add another table to the descriptor file. The action will
> > attempt to insert data in all tables listed. Of cause, if it's not
> > feeded enough data it will rollback the complete transaction.
> >
> > You may not use autoincrement columns with the default database
> > actions if you need the column's value lateron. You may use the manual
> > mode for autoincrement columns but that could have concurrency issues
> > depending on your database setup.
> >
> > In scratchpad you'll find actions that don't have these
> > limitations. While the descriptor file syntax will not change (being
> > different from descriptor file for main trunk db actions!), the
> > actions (including their name and how to employ the helpers) will
> > change shortly.
> >
> > Chris.
> >
> > --
> > C h r i s t i a n   H a u l
> > [EMAIL PROTECTED]
> > fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 

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




RE: Calling MS SQL stored procedure

2002-02-21 Thread neil

I'm using  instead of IN parameters:
{ ? = call sp(
'',

) }

The MS JDBC driver had trouble parsing a query with new lines in it,
but at least it gets by with one long line.

In reply to:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101429060624988&w=2


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Uninterruptable Sleep

2002-02-21 Thread Colin Hall

Hi Gerhard,
I am using a source distribution I downloaded from from the apache dist site
at the end of January.

Some further information that might be of interest:
 - My testing environment did NOT exhibited this behaviour even after I
bombarded it for a full hour using jmeter running 30+ threads.
 - The production server went into this state within 2 minutes of running a
scaled back version (6 threads) of the same jmeter test.

Production is RedHat 6.1 (2.2.12-20) jdk1.3.1_01
Test is SuSe 6.4 (2.2.14) jdk1.3.0
both are tomcat 3.2.3

My config is:
 Tomcat:
  -Xmx 256M  -Xms 128M
 StoreJanitor:
  
  

After reading the links you've provided, I see that I may have to
re-consider these settings.

Are you aware of any kernel or JDK version issues that may cause problems?

Thanks for the information!

colin.

-Original Message-
From: Gerhard Froehlich [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: Uninterruptable Sleep


Hi,
some side-information to the StoreJanitor:



some threads to this theme:



a good resource to tune is:
cocoon.xconf

one question:
which version do you all use of cocoon 2.01 or the latest in
CVS?

regards

  ~Gerhard


"The mere act of drinking beer in an attempt to measure your tolerance
is likely to affect your impression of how many beers you've drunk."
(The Heineken uncertainty principle)

>-Original Message-
>From: Christian Joelly [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 21, 2002 6:42 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: Uninterruptable Sleep
>
>
>Hi!
>
>On Thu, Feb 21, 2002 at 08:57:47AM -0800, Colin Hall wrote:
>>
>> I think (but I'm not positive)that this is a garbage collection issue.
This
>> opinion is shared by one of our fellow cocoon users.
>>
>> I have been tweaking the StoreJanitor configuration which seems to have
>> helped in my test environment, but I still need to do some more testing
to
>> confirm this.
>
>fine ;-) my knowledge of the cocoon internals are not so good for now, so i
>dont know where to look and where to tweak...
>
>> By the way, what OS are you using?

-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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




RE: Uninterruptable Sleep

2002-02-21 Thread Gerhard Froehlich

Hi,
some side-information to the StoreJanitor:



some threads to this theme:



a good resource to tune is:
cocoon.xconf

one question:
which version do you all use of cocoon 2.01 or the latest in
CVS?

regards

  ~Gerhard


"The mere act of drinking beer in an attempt to measure your tolerance 
is likely to affect your impression of how many beers you've drunk."
(The Heineken uncertainty principle)

>-Original Message-
>From: Christian Joelly [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 21, 2002 6:42 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: Uninterruptable Sleep
>
>
>Hi!
>
>On Thu, Feb 21, 2002 at 08:57:47AM -0800, Colin Hall wrote:
>> 
>> I think (but I'm not positive)that this is a garbage collection issue.  This
>> opinion is shared by one of our fellow cocoon users.
>> 
>> I have been tweaking the StoreJanitor configuration which seems to have
>> helped in my test environment, but I still need to do some more testing to
>> confirm this.
>
>fine ;-) my knowledge of the cocoon internals are not so good for now, so i
>dont know where to look and where to tweak...
>
>> By the way, what OS are you using?

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: No X or AWT blues

2002-02-21 Thread David Morris

Vadim & z/i/p Series users,

Thanks for getting me on track, Cocoon works fine after removing 
all references to svg in the various sitemaps and jars. Is this how 
you got it working or are you using something like RAWT or PJA? 
This leads me to ask whether anyone has used RAWT with 
Cocoon and if you have, would you mind sharing the process.

David Morris

>>> [EMAIL PROTECTED] 02/11/02 02:50PM >>>
> From: David Morris [mailto:[EMAIL PROTECTED]] 
> ...I have been trying to get 2.0.1 running on an iSeries system
running

I had it running on zSeries for ages... Should not be big difference.

Vadim

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE [C2] Netscape Shows Squares For Text

2002-02-21 Thread Peter Hargreaves

Hi Folks,

Confirmation from an HTMLSerializer expert required please.

Further to this problem - I've now tried configuring the HTMLSerializer.

The sitemap documentation in combination with the actual sitemap suggests that 
the following contains all options for configuring the HTMLSerializer - but it 
doesn't seem to be effective:

   
1024
-//W3C//DTD HTML 4.0 Transitional//EN
http://www.w3.org/TR/REC-html40/loose.dtd
true
UTF-8
1
   

I find that the doctype-public and doctype-system don't appear in my HTML and 
the encoding parameter is not effective if I change it. I did delete my 
tomcat/work directory between attempts - which might be necessary.

Could someone please confirm the correct syntax for HTMLSerializer and what is 
buffer-size, and indent please?

Many thanks,
Peter.

My system is: Gateway G6-350 (392,612k RAM), NT4.0sp6, jdk-1.3.1, tomcat-4.0.1,
cocoon 2.0.2-dev, NS Nav 4.7, NS 6.1, IE 5.0


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Moving from C1 to C2

2002-02-21 Thread Olivier Rossel

Olivier Richaud wrote:

>We think it's time for us to move from C1 to C2. Along other things that we
>consider, is i18n that we are force to integrate.
>
>Now, our system is composed of :
>- XSP pages ;
>- a logicsheet that supply the main common functionnality shared by the XSP
>pages ;
>- 1 big stylesheet for the whole site, and 2 secondary stylesheets to render
>reports in HTML and PDF.
>
>One big problem we foudn was the complexity of C2 coming with vairous
>samples that are useless for our purposes. Do we have to recreate the war,
>or is there any stripped version of C2 ready for prime time?
>
>Other point : Some tests pointed out difficulties with logicsheets and XSP.
>In the past, we just added the namespace for our logicsheet to the xsp:page
>tag, and here it goes, provided that the cocoon.properties file was OK. We
>made the similar modification to cocoon.xconf file, and we failed to find
>any valid explanation. But, we made it work without any logicsheet.
>
>I would be pleased to hear of anybody that moved from C1 to C2.
>
>Regards.
>
>Olivier.
>
The concept of sitemap is here to replace the various commands for 
Cocoon, that were embedded
into XSP pages.

The general process in a sitemap is not far from what you are explaining:
XSP -> logicsheet -> XSL -> output format.

In a sitemap the process is called a pipeline with 3 kind of step:
generation==production of the XML representing datas (only one 
generation per pipeline)
transformation==manipulation of the XML (any number of successive 
transformation s per pipeline)
serialization==transformation from the final XML tree to an output 
format (one serialization per pipeline)

The sitemap is also a kind of BIG mod_rewrite rules. In fact, it is a 
mapping between
URLs and pipelines.

What you want to do in C2, for your application, is to map
"http://server_URL/context_URL/path/to/foobar.xsp"; to the (classic) 
pipeline XSP->XSL->HTML/PDF.

The URL received by the sitemap manager of Cocoon from the appli server 
is the URL after the context_URL.
So you have to map /path/to/foobar.xsp with the pipeline.
The mapping can use wildcards, so you can have a mapping **/*.xsp <-> 
pipeline.
(** means any string including  /, * means any string with no / inside)

Then you will want to define the classic pipeline. Take an example 
derivated from the default sitemap:






This is exactly an XML version of the pipeline described above.
{1} and {2} are only recalls of the matching pattern (very similar to 
sed or perl system of matching/replacing).
For PDF generation, the final step of transformation must provide XSL:FO
and the serializer mu be of type="fo2pdf".

For logicsheet management, I presume adding it to the directory where 
other taglibs reside should be enough
(not sure on that one).

Hope it helps.
(Hope I did not write too many wrong stuff)


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Uninterruptable Sleep

2002-02-21 Thread Christian Joelly

Hi!

On Thu, Feb 21, 2002 at 08:57:47AM -0800, Colin Hall wrote:
> 
> I think (but I'm not positive)that this is a garbage collection issue.  This
> opinion is shared by one of our fellow cocoon users.
> 
> I have been tweaking the StoreJanitor configuration which seems to have
> helped in my test environment, but I still need to do some more testing to
> confirm this.

fine ;-) my knowledge of the cocoon internals are not so good for now, so i
dont know where to look and where to tweak...

> By the way, what OS are you using?

Debian GNU/Linux, sid

Chris

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz




msg08372/pgp0.pgp
Description: PGP signature


Moving from C1 to C2

2002-02-21 Thread Olivier Richaud

We think it's time for us to move from C1 to C2. Along other things that we
consider, is i18n that we are force to integrate.

Now, our system is composed of :
- XSP pages ;
- a logicsheet that supply the main common functionnality shared by the XSP
pages ;
- 1 big stylesheet for the whole site, and 2 secondary stylesheets to render
reports in HTML and PDF.

One big problem we foudn was the complexity of C2 coming with vairous
samples that are useless for our purposes. Do we have to recreate the war,
or is there any stripped version of C2 ready for prime time?

Other point : Some tests pointed out difficulties with logicsheets and XSP.
In the past, we just added the namespace for our logicsheet to the xsp:page
tag, and here it goes, provided that the cocoon.properties file was OK. We
made the similar modification to cocoon.xconf file, and we failed to find
any valid explanation. But, we made it work without any logicsheet.

I would be pleased to hear of anybody that moved from C1 to C2.

Regards.

Olivier.


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Cocoon 2 on macOS 9.1

2002-02-21 Thread Yvon Thoraval

let me know if someone successfully did install Cocoon 2 with jakarta-
tomcat-4.0.2

on macOS 9.1

i'm presently using Cocoon 1.8 with Tomcat 3.2.4 and i would apreciate
upgrading.

Regards,

-- 
Yvon Thoraval


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: AW: Re: [C2] Using XSP inside XSL

2002-02-21 Thread Graaf, Edgar de (Fin)

That's realy nice, but I have still the Problem that the stylesheet depends
on the request parameters, but they are not available! Is it a bug, not the
way it should work or my mistake? I did the following (from my sitemap):
 
>   using the latest cocoon2 from the CVS. The
request parameter should be processed in stylesheet.xsp If somebody know
about that, please let me know. Please help me, Carsten!! Christoph Gaffga 

Did you think about this:
"cocoon:" is a pseudo protocol and refers to another
  pipeline. "cocoon:/" refers to a pipeline from the current
  sitemap while "cocoon://" refers to a pipeline from the root
  sitemap.

Its a bit late so I guess you found out by now :-)

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Simple SQL Example

2002-02-21 Thread Koen Pellegrims

Empty HTML pages might be caused by a bug in your stylesheet (eg. an
element that is not being matched).

Try accessing the page, but adding the parameter cocoon-view=content to
the URL, that should give you the actual XML content that is coming from
the database...

On Thu, 21 Feb 2002 [EMAIL PROTECTED] wrote:

> Hello
>
> We are trying to get the simple sql example to work with postgresql.
> The connection to the Database works (an insert query instead of the
> select query works). But there is no output of data from the database.
> The html page is browsed but the table is empty.
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Moving from C1 to C2

2002-02-21 Thread Olivier Richaud

We think it's time for us to move from C1 to C2. Along other things that we
consider, is i18n that we are force to integrate.

Now, our system is composed of :
- XSP pages ;
- a logicsheet that supply the main common functionnality shared by the XSP
pages ;
- 1 big stylesheet for the whole site, and 2 secondary stylesheets to render
reports in HTML and PDF.

One big problem we foudn was the complexity of C2 coming with vairous
samples that are useless for our purposes. Do we have to recreate the war,
or is there any stripped version of C2 ready for prime time?

Other point : Some tests pointed out difficulties with logicsheets and XSP.
In the past, we just added the namespace for our logicsheet to the xsp:page
tag, and here it goes, provided that the cocoon.properties file was OK. We
made the similar modification to cocoon.xconf file, and we failed to find
any valid explanation. But, we made it work without any logicsheet.

I would be pleased to hear of anybody that moved from C1 to C2.

Regards.

Olivier.


BEGIN:VCARD
VERSION:2.1
N:Richaud;Olivier
FN:Olivier Richaud
NICKNAME:richaud
ORG:StrongHoldNET
TITLE:VP Production
TEL;WORK;VOICE:04 93 22 13 07
TEL;CELL;VOICE:06 21 01 55 35
TEL;WORK;FAX:04 93 22 13 01
ADR;WORK:;;17 Chemin des Travails;Cagnes sur Mer, 06;;06250;France
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:17 Chemin des Travails=0D=0ACagnes sur Mer, 06 06250=0D=0AFrance
X-WAB-GENDER:2
URL;HOME:http://www.richaud.net
URL;WORK:http://www.strongholdnet.com
BDAY:20010429
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:2003T214434Z
END:VCARD



-
Please check that your question has not already been answered in the
FAQ before posting. 

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


RE: Cocoon with no X11.

2002-02-21 Thread Olivier Richaud

Olivier,

We use Xvfb as a work around. Another solution is to upgrade to 
JDK 1.4. This is not as stable as JDK 1.3 and memory consumption 
it quite higher.

Regards.

Olivier.

> -Message d'origine-
> De : Olivier Rossel [mailto:[EMAIL PROTECTED]]
> Envoye : jeudi 21 fevrier 2002 18:03
> A : [EMAIL PROTECTED]
> Objet : Cocoon with no X11.
> 
> 
> I wonder if pja.jar could be shipped with Cocoon.
> And the CATALINA_OPTS set this way:
>  CATALINA_OPTS="-Xbootclasspath/a:/path/to/pja.jar \
> -Dawt.toolkit=com.eteks.awt.PJAToolkit \
> -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
> -Djava.awt.fonts=$JAVA_HOME/jre/lib/fonts/"
> 
> I think the -Xbootclasspath/a option is important, so you can have
> the pja.jar located anywhere (useful if you launch tomcat as a normal
> user from you home directory).
> 
> It would be useful to add that to the help page about "Unix with no X11".
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




[End]: Css stylesheet problem

2002-02-21 Thread Automatic



It works perfectly

Thanks a lot

Xavier : )




Georg Von Sperling wrote:
[EMAIL PROTECTED]">
  Xavier, Took me a while as well as the documentation on sitemap.xmap is kinda sparse, but here is a snipped to put into the  tag of your sitemap.xmap: What this means in English:take any request to this context that ends with ".css" and respond with the content of the corresponding ".css" file. Assume you have this directory structure:tomcat -webapps -   cocoon -   xml -   page.xml   xsl -   page.xsl   css -   style.css you might want to set-up your sitemap like this: ... blah ...or, alternatively, you can use the wildcards as described above (a double-star will re-curse through directories, a single-star will stay in the current directory only). Hope this helps... Georg von SperlingMedAptus, Inc.http://www.medaptus.commailto:[EMAIL PROTECTED] 	-Original Message- 	From: Je vous site [mailto:[EMAIL PROTECTED]] 	Sent: Wed 2/20/2002 11:00 AM 	To: [EMAIL PROTECTED] 	Cc: 	Subject: Css stylesheet problem			Hello,		I would like to apply a Css stylesheet to the HTML file i have generated	on Cocoon.	Is there a solution to this problem, without changing my configuration	(Tomcat 4.0.1 / Cocoon 2 under W2k)			"http://www.w3.org/1999/XSL/Transform"	version="1.0" >			  	  		  	...		Thank you for all kind of help : Xavier			-	Please check that your question has not already been answered in the	FAQ before posting. <
a class="moz-txt-link-rfc2396E" href="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 theFAQ before posting. 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. 

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



Cocoon with no X11.

2002-02-21 Thread Olivier Rossel

I wonder if pja.jar could be shipped with Cocoon.
And the CATALINA_OPTS set this way:
 CATALINA_OPTS="-Xbootclasspath/a:/path/to/pja.jar \
-Dawt.toolkit=com.eteks.awt.PJAToolkit \
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
-Djava.awt.fonts=$JAVA_HOME/jre/lib/fonts/"

I think the -Xbootclasspath/a option is important, so you can have
the pja.jar located anywhere (useful if you launch tomcat as a normal
user from you home directory).

It would be useful to add that to the help page about "Unix with no X11".


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Uninterruptable Sleep

2002-02-21 Thread Colin Hall

I think (but I'm not positive)that this is a garbage collection issue.  This
opinion is shared by one of our fellow cocoon users.

I have been tweaking the StoreJanitor configuration which seems to have
helped in my test environment, but I still need to do some more testing to
confirm this.

By the way, what OS are you using?

colin

-Original Message-
From: Christian Joelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 11:44 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Uninterruptable Sleep


Hello!

i'm using cocoon 2.01 with jboss 2.4.4/tomcat 3.2.3 and have
experienced almost the same problem. but i dont know if its cocoon
related or jboss/tomcat...

when i restart jboss the cocoon app is correctly answering requests
again...

the problem occurs, when i deploy my app i think more then ten times
without restarting jboss/tomcat.

Chris

On Wed, Feb 20, 2002 at 10:04:45AM -0800, Colin Hall wrote:
>
> There is one serious re-occuring problem however...One or more java
threads
> will go into an Uninterruptable Sleep.  This results in the sites being
> crippled to the point that NOTHING is being served.  I have observed the
> dead threads coming back to life as well as staying dead until I have to
> kill the java process and restart the server.
>
> Needless to say, this is causing us a great deal of anxiety.
> Has anyone else seen this type of behaviour?  Does anyone know how to deal
> with it?
>

--
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




[C2] http request parameters

2002-02-21 Thread Christian Joelly

Hello!

i have a little question concerning request parameters:

i have following html form:
















  
Auftrag:

Produkt:

Liste:

Ist-Zeiten
Ist-Zeiten / Kst.


  




now, i enter the value "U019B21" into the field "auftrag". i need the
old value to decide if this value has changed or not...

and when i send this form to cocoon, it writes the following output:

DEBUG   (2002-02-21) 17:48.36:598   [cocoon  ] (/knapp/reports/chooser.xsp) 
Thread-35/Cocoon: DEBUGGING INFORMATION:
REQUEST: /knapp/reports/chooser.xsp

CONTEXT PATH: /knapp
SERVLET PATH: /reports/chooser.xsp
PATH INFO: null

REMOTE HOST: edvlw05.knapp.intern
REMOTE ADDRESS: 10.17.130.106
REMOTE USER: null
REQUEST SESSION ID: g5iab43c91
REQUEST PREFERRED LOCALE: de_AT
SERVER HOST: edvlw05.knapp.intern
SERVER PORT: 80

METHOD: POST
CONTENT LENGTH: 97
PROTOCOL: HTTP/1.0
SCHEME: http
AUTH TYPE: null

CURRENT ACTIVE REQUESTS: 1
MAXIMUM ACTIVE REQUESTS: 4

REQUEST PARAMETERS:

PARAM: 'report' VALUES: '[istzeit], [istzeit]'
PARAM: 'produkt' VALUES: '[LT5], [LT5]'
PARAM: 'auftrag' VALUES: '[U019B20], [U019B21]'
PARAM: 'oldauftrag' VALUES: '[U019B20], [U019B20]'
PARAM: 'Start' VALUES: '[Start]'
PARAM: 'timestamp' VALUES: '[1014310085064], [1014310106862]'
HEADER PARAMETERS:

PARAM: 'cookie' VALUES: '[JSESSIONID=g5iab43c91]'
PARAM: 'connection' VALUES: '[Keep-Alive]'
PARAM: 'accept-encoding' VALUES: '[gzip]'
PARAM: 'referer' VALUES: 
'[http://edvlw05.knapp.intern/knapp/reports/chooser.xsp?oldauftrag=U019B20&auftrag=U019B20&produkt=LT5&report=istzeit×tamp=1014310085064]'
PARAM: 'accept' VALUES: '[image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
image/png, */*]'
PARAM: 'content-length' VALUES: '[97]'
PARAM: 'accept-charset' VALUES: '[iso-8859-1,*,utf-8]'
PARAM: 'accept-language' VALUES: '[de-AT, en]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.77 [en] (X11; U; Linux 2.4.16 i686; Nav)]'
PARAM: 'content-type' VALUES: '[application/x-www-form-urlencoded]'
PARAM: 'host' VALUES: '[edvlw05.knapp.intern]'


the interesting part is:

PARAM: 'report' VALUES: '[istzeit], [istzeit]'
PARAM: 'produkt' VALUES: '[LT5], [LT5]'
PARAM: 'auftrag' VALUES: '[U019B20], [U019B21]'

 ^
 why is the new value the second
 entry in this "parameter array"?

PARAM: 'oldauftrag' VALUES: '[U019B20], [U019B20]'
PARAM: 'Start' VALUES: '[Start]'
PARAM: 'timestamp' VALUES: '[1014310085064], [1014310106862]'

and why are the parameters filled with 2 values?

i'm really confused, and have already bought a new mouse... ;-)

thx, Chris

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz

np: CD Audio Track 03



msg08362/pgp0.pgp
Description: PGP signature


RE: Aggregating

2002-02-21 Thread Vadim Gritsenko

> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]]
ing
> 
> Hi All,
> 
> Can anyone give me an example of aggregating with the
DirectoryGenerator?
> 
> I know how to do it for assets that come from the FileGenerator but
not
> anything else.

What's the difference?


http://foo.bar.com/myspace";>
 
 http://foo.bar.com/xmlhack"/>



Provided that directory "path/to/my/directory/" is created under cocoon
webapp, it should work.

(map:part will be processed by pipeline
   



   
)


Vadim

> Thanks for any help.
> 
> regards Jeremy
> --
>___
> 
>Jeremy Quinn   Karma Divers
>webSpace Design
> HyperMedia Research Centre
> 
>

> 



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Cocoon 2 on macOS 9.1

2002-02-21 Thread Yvon Bricole

let me know if someone successfully did install Cocoon 2 with jakarta-
tomcat-4.0.2

on macOS 9.1

i'm presently using Cocoon 1.8 with Tomcat 3.2.4 and i would apreciate
upgrading.

Regards,

-- 
Yvon Thoraval


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: question regarding FOP/Cocoon/Tomcat

2002-02-21 Thread Vadim Gritsenko

> From: Xie, David (IPCG-NJ) [mailto:[EMAIL PROTECTED]]
> 
> Hi there,
> 
> I have a question regarding running FOP within Cocoon.  I have setup
Cocoon
> 2.0.1 within Jakarta Tomcat 4.0.1.  The sample pages (hello.pdf) came
out
> fine, but i don't understand how cocoon was able
> to call FOP and grab the xml and xsl files.  Would anybody please
explain to
> me how can I point cocoon to xml and xsl and generate pdf?  or at
least point
> me to the right document.

Easily:

http://xml.apache.org/cocoon/
http://xml.apache.org/cocoon/overview.html
http://xml.apache.org/cocoon/userdocs/concepts/index.html
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

And on your hard drive, in the Cocoon webapp, sitemap.xmap file.

Regards,
Vadim


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Cocoon 2 installation problem

2002-02-21 Thread Brian Blakeley

Hi Stenfano,

If you can try the following:

shut down Tomcat ( shutdown.sh)
run  ( ps -aux )
look for living java processes related to Tomcat
As I only am using tomcat I can (killall java)
look into the tomcat work directory and (rm -rf  cocoon/) the cocoon
directory
restart Tomcat ( startup.sh)
try cocoon again

Hope this helps.

Brian


- Original Message -
From: "Stefano Bonnin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 4:17 AM
Subject: Cocoon 2 installation problem


> Hi,
> I have just installed Cocoon 2.0.1 and Tomcat 4.0.1.
>
> When I try to start Cocoon I get the following error:
>
> ***
> Cocoon 2 - Internal server error
>
> --
--
> 
>
> type fatal
>
> message The sitemap handler's sitemap is not available. Please check logs
> for the exact error.
>
> description org.apache.cocoon.ProcessingException: The sitemap handler's
> sitemap is not available. Please check logs for the exact error.
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> request-uri
>
> /cocoon/
>
> path-info
> *
>
>
> Can anyone help me, please?
>
> PS: OS = Linux RedHat 7.2
>
> Thanks.
>
>
>
> ---
> Outgoing mail is certified Virus Free. (CopyRight FLASHH!)
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




question regarding FOP/Cocoon/Tomcat

2002-02-21 Thread Xie, David (IPCG-NJ)

Hi there,

I have a question regarding running FOP within Cocoon.  I have setup Cocoon 2.0.1 
within Jakarta Tomcat 4.0.1.  The sample pages (hello.pdf) came out fine, but i don't 
understand how cocoon was able
to call FOP and grab the xml and xsl files.  Would anybody please explain to me how 
can I point cocoon to xml and xsl and generate pdf?  or at least point me to the right 
document.  

Thank you in advance.

David


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Latest CVS Checkout - Build fails

2002-02-21 Thread Giuseppe Di Pierri


Is there someone able to help me please.

I did the same one hour ago, and had same result.

 1. checkout of xml-cocoon2 HEAD
 2. .\build.bat -Dinclude.webapp.libs=yes webapp

-- Compiling Result is:

compile:
 [copy] Copying 32 files to D:\Program Files\Apache
Group\xml-cocoon2\build\
cocoon\classes
 [echo] Compiling with Java 1.3, debug on, optimize off, deprecation
off
[javac] Compiling 405 source files to D:\Program Files\Apache
Group\xml-coco
on2\build\cocoon\classes
[javac] D:\Program Files\Apache
Group\xml-cocoon2\build\cocoon\src\org\apach
e\cocoon\environment\http\RequestWrapper.java:72: class
org.apache.cocoon.enviro
nment.http.RequestWrapper must be declared abstract. It does not define
java.uti
l.Map getParameterMap() from interface javax.servlet.ServletRequest.
[javac] public final class RequestWrapper extends
MaybeUploadRequestWrapper
{
[javac]^
[javac] D:\Program Files\Apache
Group\xml-cocoon2\build\cocoon\src\org\apach
e\cocoon\environment\http\RequestWrapper.java:72: class
org.apache.cocoon.enviro
nment.http.RequestWrapper must be declared abstract. It does not define
java.lan
g.StringBuffer getRequestURL() from interface
javax.servlet.http.HttpServletRequ
est.
[javac] public final class RequestWrapper extends
MaybeUploadRequestWrapper
{
[javac]^
[javac] D:\Program Files\Apache
Group\xml-cocoon2\build\cocoon\src\org\apach
e\cocoon\environment\http\RequestWrapper.java:72: class
org.apache.cocoon.enviro
nment.http.RequestWrapper must be declared abstract. It does not define
void set
CharacterEncoding(java.lang.String) from interface
javax.servlet.ServletRequest.

[javac] public final class RequestWrapper extends
MaybeUploadRequestWrapper
{
[javac]^
[javac] D:\Program Files\Apache
Group\xml-cocoon2\build\cocoon\src\org\apach
e\cocoon\environment\http\RequestWrapper.java:92: class
org.apache.cocoon.enviro
nment.http.RequestWrapper is an abstract class. It can't be instantiated.
[javac] req = new RequestWrapper(request,
[javac]   ^
[javac] 4 errors

BUILD FAILED

D:\Program Files\Apache Group\xml-cocoon2\build.xml:848: Compile failed,
message
s should have been provided.

Total time: 1 minute 18 seconds

--- End of the Result


Thanks in advance

pino


On Thu, 21 Feb 2002, Joseph Rajkumar wrote:

> Hi Folks
> 
>   I did a cvs checkout of xml-cocoon2 this
> morning 2/21/02 at 10:00 AM Eastern US time and tried
> to build it and it failed.
> 
> Regards
> Joseph Rajkumar
> PS: There are similar postings on the cocoon-dev mailing
> list also, from earlier checkouts.
> 
> -- 
> email: [EMAIL PROTECTED]
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Latest CVS Checkout - Build fails

2002-02-21 Thread Joseph Rajkumar

Hi Folks

I did a cvs checkout of xml-cocoon2 this
morning 2/21/02 at 10:00 AM Eastern US time and tried
to build it and it failed.

Regards
Joseph Rajkumar
PS: There are similar postings on the cocoon-dev mailing
list also, from earlier checkouts.

-- 
email: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Printing - sunRise & sunSpot documentation

2002-02-21 Thread Joseph Rajkumar

Hi
Downloaded the latest Cocoon from CVS
and tried the Portal & Authentication Components
and it looks SWET.

So, I tried to print the documentation
for sunRise and sunSpot to get an idea of where I should
start for developing a custom Portal.

Could somebody who has write access to CVS kindly
fix it, because the width of the page for example
"Building Portals with SunSpot" is two-pages WIDE and I am
unable to print the documentation on 8 1/2" X 11" paper
here in the US.

Same problem with sunRise documentation also.

Regards
Joseph Rajkumar

Carsten Ziegeler wrote:
> 
> Its the usual CVS access for Apache Cocoon:
> 
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login (password
> anoncvs)
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout xml-cocoon2
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic logout
> 
> Carsten
email: [EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Simple SQL Example

2002-02-21 Thread fpupka

Hello

We are trying to get the simple sql example to work with postgresql. 
The connection to the Database works (an insert query instead of the 
select query works). But there is no output of data from the database. 
The html page is browsed but the table is empty. 


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Aggregating

2002-02-21 Thread Jeremy Quinn

Hi All,

Can anyone give me an example of aggregating with the DirectoryGenerator?

I know how to do it for assets that come from the FileGenerator but not
anything else.

Thanks for any help.

regards Jeremy
-- 
   ___

   Jeremy Quinn   Karma Divers
   webSpace Design
HyperMedia Research Centre

   


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Applying XSP logicsheets with externally sourced XML documents

2002-02-21 Thread Yap, Mow Ching (NOW)

hi,

what is the best way to apply logic to externally sourced XML, and can this
be achieved using XSP?

if i understand correctly, XSP logicsheets transform from XSP to XSP.

if i wanted to use logicsheets, would i first need to transform the original
XML document to XSP first?

i figure that instead of XSP, i could use XSLT with external function calls.

what do u think? any help would be appreciated.

mooch.



The information in this Internet E-mail is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is unauthorized. Any views or opinions presented are solely
those of the author and do not necessarily represent those of TWI, TWIi,
IMG, PCC, NOW or any of their affiliates. If you are not the intended
recipient please contact [EMAIL PROTECTED] and delete this email
immediately.

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: XMLDBGenerator

2002-02-21 Thread Martin Holz

Stephan Michels wrote:
> On Thu, 21 Feb 2002, Gianugo Rabellino wrote:
> > Stephan Michels wrote:
> > > I try to use cocoon with xindice.
> >
> > Please avoid, if possible, the XML:DB generators, swith to the Source
> > implementation, which allows you to use straightforward XML:DB URIs in
> > your sitemap. The generators are going to be deprecated and abandoned in
> > a short while.
>
> Okay, thank you.
>
> > Anyway, as for your problem, try to correct this:
> > > xmldb:dbxml:///db/
> >
> > Base should be is xmldb:xindice///db/.
> >
> > Also, you are getting the error from the XML:DB source protocol, not
> > from the generators, please double check your settings:
>
> I also added the the line
>  class="org.apache.xindice.client.xmldb.DatabaseImpl"/>
> into the cocoon.xconf
>
>
> When I now try the request
> http://vernjava:8080/cocoon/xmldb/addressbook?xpath=//person[lname=%27Cletu
^^^
>s%27]
>
> I got following exception:
> org.apache.cocoon.ProcessingException: Could not read resource
> xmldb:xindice://vernjava:4080/addressbook:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -11
> at


You must quote the 'equal' sign too. IIRC is it %3D.

Regards
Martin

--
Martin Holz  <[EMAIL PROTECTED]>  phone: 0049-30-39977 218 
FIZ CHEMIE BERLIN

We do not make software "releases".
Our software escapes, leaving a bloody trail of designers
and quality assurance people in it's wake!

 

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: X Server problem solved with Java 1.4 ?

2002-02-21 Thread aaldridg

The java 1.4 'headless' solution is only a partial solution. It still
requires an X server (or pja - which works best for me) for a lot of the
awt calls - bit stupid really.

I think the pja solution I posted in the past is the most stable - if you
need me to reiterate, tell me.

Regards,

Anthony Aldridge
AD Support

CSC Managed Intranet Hosting
Personal GDP: 8-325-4634
MIH Hotline: 8-876-1300






Christophe de Kerviler <[EMAIL PROTECTED]> on 20/02/2002 10:55:08

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  X Server problem solved with Java 1.4 ?


Hello,

I'm running C2 on Tomcat3.3 with Java1.4 under Solaris 7.
I was told the X Server problem would be solved with Java1.4 but I still
have the same problem : C2 doesn't work (http://myserver/cocoon/ doesn't
reply) if I am not logged on the server
(I start tomcat in a telnet session).
If I log on the server and restart tomcat, it's ok.
Thanks for any help.
Christophe


-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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




Re: XMLDBGenerator

2002-02-21 Thread Stephan Michels



On Thu, 21 Feb 2002, Gianugo Rabellino wrote:

> Stephan Michels wrote:
> > I try to use cocoon with xindice.
>
> Please avoid, if possible, the XML:DB generators, swith to the Source
> implementation, which allows you to use straightforward XML:DB URIs in
> your sitemap. The generators are going to be deprecated and abandoned in
> a short while.

Okay, thank you.

> Anyway, as for your problem, try to correct this:
>
> > xmldb:dbxml:///db/
>
> Base should be is xmldb:xindice///db/.
>
> Also, you are getting the error from the XML:DB source protocol, not
> from the generators, please double check your settings:

I also added the the line

into the cocoon.xconf


When I now try the request
http://vernjava:8080/cocoon/xmldb/addressbook?xpath=//person[lname=%27Cletus%27]

I got following exception:
org.apache.cocoon.ProcessingException: Could not read resource
xmldb:xindice://vernjava:4080/addressbook:
java.lang.StringIndexOutOfBoundsException: String index out of range: -11
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:166)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:255)

If I try this in the cmdline:
>xindice xpath_query -c /db/addressbook -q //person[lname=\'Cletus\']

http://xml.apache.org/xindice/Query";
src:col="/db/addressbook" src:key="address2">
   SlackJawedLocal
   Cletus
   123-456-7890
   234-567-8901
   345-678-9012
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
   1234 S. Elm St.
   4567 W. Pine St.


Have anyone an idea?


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Heads Up - CeBIT Get Together

2002-02-21 Thread Matthew Langham

A few weeks ago I announced that we would host a Cocoon get together at
CeBIT. Here now are the exact details.

We have booked one of the conference rooms (Room: 101) in the CeBIT
Conference Center for an informal get together of Cocoon enthusiasts. The
room is available on the 19th of March (a Tuesday) from 13:00 - 15:00 but we
could extend that if neccessary. We have room for 20 people - seating only.
You can find more information on the CC here: http://www.cebit.de/21786

If you will be coming then please send me an email with the number of
people. I have received some prior emails but ask that you now re-check your
calendars and send me another message. If we find that we will be going over
the 20 possible we would have to reduce the number per company.

I will send out reminder invitations as we get closer to the actual date.

There are no plans for any presentations or other marketing gimmicks :-). We
would like this to be an informal thing where it is possible to put faces to
names and generally talk about what you are doing with Cocoon, what problems
you are having and what you would _like_ to do with Cocoon and what you may
think needs changing etc.

So, if you are coming then remember to write down a few things beforehand
and then we will just see what happens :-).

Thanks and look forward to seeing you all there

Matthew Langham

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
=






-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Calling MS SQL stored procedure

2002-02-21 Thread Miller, Grant

Hi,
I'm calling a procedure with no return parameters so hopefully there are no
problems there.
However, I cannot work out how to pass in the in parameters. If I try:

{call
testformike['test']}

or

{call
testformike[?]}
 

I get the error:

Could not find stored procedure ''. 

But it does work with no parameters.
Any ideas?

Cheers

Grant

-Original Message-
From: neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 10:29 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Calling MS SQL stored procedure


Sorry I can't reply to the same thread. I rely on the archives as the
traffic is too high for me to stay subscribed. This is in reply to:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101423330019994&w=2

I use the JDBC escape syntax as Christian Haul suggested in his reply, but I
also had to
modify SQLTransformer.java to handle the ResultSets returned by SQL Server
stored procedures.
I've tried to make it handle multiple returned ResultSets, but can't test
with more than one
because my MS JDBC driver only handles the first one then says there are no
more.

SQLTransformer.java only handled ResultSets as OUT parameters (as used by
Oracle, Postgres etc.) not those returned implicitly as by SQL Server.

I posted the patch to cocoon-users on 2002-02-08
This might take you there:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101316887401395&w=2

Please share any improvements you may have.
Cheers,
Neil.


Subject:  Calling MS SQL stored procedure
From: "Miller, Grant" <[EMAIL PROTECTED]>
Date: 2002-02-20 15:45:47
Hi,
I'm having a problem calling an ms sql server stored procedure with the sql
transformer (using cocoon 2.0.1 and tomcat 4).
The code is:


   
  begin dbo.testformike('hi');
  end;
   


The error message is:

Invalid call syntax: begin dbo.testformike('hi'); end;

I always get this with isstoredprocedure="true".
Also, I'm not sure what the qualifier before the function name should be
(dbo is the owner in this example).
Another thing we have tried is:

This query:


  exec DBO.TESTFORMIKE 'hi'



but this gives:

A server cursor is not allowed on a remote stored procedure or stored
procedure with more than one SELECT statement. Use a default result set or
client cursor

We are completely stuck and do not want to use esql.
Thanks for any help,

Grant Miller



-
Please check that your question has not already been answered in the
FAQ before posting. 

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

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: XMLDBGenerator

2002-02-21 Thread Gianugo Rabellino

Stephan Michels wrote:
> I try to use cocoon with xindice. 

Please avoid, if possible, the XML:DB generators, swith to the Source 
implementation, which allows you to use straightforward XML:DB URIs in 
your sitemap. The generators are going to be deprecated and abandoned in 
a short while.

Anyway, as for your problem, try to correct this:

> xmldb:dbxml:///db/

Base should be is xmldb:xindice///db/.

Also, you are getting the error from the XML:DB source protocol, not 
from the generators, please double check your settings:

 > 
org.apache.cocoon.components.source.XMLDBSource.connect(XMLDBSource.java:206)
 > at
 > 
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:223)
 > at
 > 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:146)


Ciao,

-- 
Gianugo Rabellino


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




XMLDBGenerator

2002-02-21 Thread Stephan Michels

Hi,

I try to use cocoon with xindice. I install the current CVS build and
changed the following rows in the sitemap.



org.apache.xindice.client.xmldb.DatabaseImplxmldb:dbxml:///db/





org.apache.xindice.client.xmldb.DatabaseImplxmldb:dbxml:///db/



I also copy the the xindice.jar in the WEB-IF/lib dir.

If I send a request like localhost:8080/cocoon/xmldb/db/
I got the exception:

org.apache.cocoon.ProcessingException: Problem setting up the connection
to XML:DB: org.dbxml.client.xmldb.DatabaseImpl:
java.lang.ClassNotFoundException: org.dbxml.client.xmldb.DatabaseImpl
at
org.apache.cocoon.components.source.XMLDBSource.connect(XMLDBSource.java:206)
at
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:223)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:146)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:255)
[...]

xindice.jar and also xmldb-api-2001.jar doesn't contain this class.

Did I forget anything?

Thanx, Stephan Michels.


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Cocoon 2.0.1 + Tomcat 4.0 + JDK 1.4

2002-02-21 Thread Baer Peter

The URL of the XML page that helped us so much is:

http://tecfa.unige.ch/guides/xml/cocoon/install-notes-2-simple.xml

N.B.: It's an XML page with CSS2, so you will need an up-to-date web
browser to view it. Mozilla 0.9.8 and Opera 6.0 TP 3 do the job for
Linux, eg.

Generating just a jar file, instead of a war file has to do with the
build command as given in the XML page:
./build.sh  -Dinclude.webapp.libs=yes webapp

To produce a war file, you say:
./build.sh  -Dinclude.webapp.libs=yes -Dinstall.war=$TOMCAT_HOME/webapps 
webapp

That's the only point that might be a little misleading in Daniel's 
installation instruction. It should be possible to get it all working 
with the jar file only, though, by copying it into $CATALINA_HOME/lib,
and -- maybe -- creating a webapp directory for cocoon. (Haven't tried
that, here).

Regarding your 404 error: Out of the box Tomcat is listening on port 
8080, not 8180. Could this be it? Of course, you can change that...

Note: We haven't got *all* the examples working. Most of them do, 
others, like the SVG example, don't. Nevertheless, we consider a huge
step forward! 8-)

Hope that helps,

Peter


Peter Flynn wrote:
> Peter Baer writes:
> 
>>Dear Daniel,
>>
>>thank you for making this info public. Especially your hints about
>>what versions to use helped me to finally get C2 working.
>>
>>The combination that works for us here is:
>>
>>- Java: Sun J2SDK 1.4.0
>>
>>- Cocoon: Development snapshot xml-cocoon2_20020219112118.tar.gz,
>>  built with JNDI using Java 1.4 from Sun
>>
> 
> I just tried to build the only snapshot available in the CVS directory
> close to this date (xml-cocoon2_20020219172103.tar.gz) and it doesn't
> produce a cocoon.war file. It produces a cocoon.jar file instead. What
> should I do with it? Have you got a copy of the snapshot you used that
> I can download?
> 
> My problem is that under no circumstances will tomcat do anything with
> cocoon.war. It just sits there in /var/tomcat/webapps. Is something
> supposed to happen when I restart tomcat? I'm still getting a 404
> for my http://localhost:8180/cocoon
> 
> 
>>- Tomcat: Jakarta-Tomcat 4.0.1 binary release
>>
>>- SuSE Linux 7.3
>>
>>With all other combinations we got one of the well-known errors:
>>Sitemap not available, major minor version number 48.0 etc.
>>
>>Eg, it *has not worked* with the Tomcat 4.0.2 binary release.
>>And it *does not work* with C2 release version 2.0.1.
>>
>>So, please, folks on this list who have trouble to get C2 running:
>>
>>Your *best chance* appears to be to try a *C2 development snapshot* with 
>>*Tomcat 4.0.1* binary release!
>>
>>And thanks again, Daniel! Your XML page is of great value!
>>
> 
> Could you please repost this URL?
> 
> ///Peter
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


-- 
+---+-+
|Peter C. A. Bär| Siemens Business Services & Co. OHG |
|Fon  +49.911.654-2387  | Von-der-Tann-Str. 30-31 |
|Fax  +49.911.654-2108  | 90439 Nürnberg  |
|   | Deutschland |
+---+-+
|  >>>  mailto:[EMAIL PROTECTED]  <<< |
+-+


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Cocoon 2 installation problem

2002-02-21 Thread Bert Van Kets

There have been a lot of threads about this.  Check out the archive.
If you don't use X you must use xvfb or pja because FOP and Batic need a 
graphical screen to write on.
This is also documented on the cocoon site.
Bert

At 10:17 21/02/2002 +0100, you wrote:
>Hi,
>I have just installed Cocoon 2.0.1 and Tomcat 4.0.1.
>
>When I try to start Cocoon I get the following error:
>
>***
>Cocoon 2 - Internal server error
>
>
>
>
>type fatal
>
>message The sitemap handler's sitemap is not available. Please check logs
>for the exact error.
>
>description org.apache.cocoon.ProcessingException: The sitemap handler's
>sitemap is not available. Please check logs for the exact error.
>
>sender org.apache.cocoon.servlet.CocoonServlet
>
>source Cocoon servlet
>
>request-uri
>
>/cocoon/
>
>path-info
>*
>
>
>Can anyone help me, please?
>
>PS: OS = Linux RedHat 7.2
>
>Thanks.
>
>
>
>---
>Outgoing mail is certified Virus Free. (CopyRight FLASHH!)
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>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. 

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




Re: CSS with COCOON

2002-02-21 Thread Bert Van Kets

Consider the css request as just another request to cocoon.  In other words 
you must make an entry in your sitemap for css files.  Something like this:

  

In you XSL file you have to make sure you get the link to your css file 
in.  I added  in 
the "HEAD" part of my output.
I then put the css file in the css subdirectory (relative to the 
sitemap).  Works like a charm.
Bert

At 10:12 21/02/2002 +0100, you wrote:
>Hello
>
>Does anybody, manage to link a CSS Stylesheet on a HTML File generated 
>with an XML / XSL Transformation ?
>
>
>http://www.w3.org/1999/XSL/Transform"; 
>version="1.0">
>
>
>  
>  
>  
>  
>  
>...
>
>Please Help !
>
>Xavier
>
>
>P S: I see that
>
> is 
>added by the serializer.
>
>P P S
>In local mode, IE or Netscape show what i expect, the "style.css" file is 
>in the same directory as the "xml" and "xsl" file
>
>
>
>
>
>  
>
>
>
>Xavier
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>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. 

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




Monitoring Cocoon / Tomcat in a production environment

2002-02-21 Thread Matthew Langham

What are you using? I came accross this:

http://awstats.sourceforge.net/


is it any good? Or are there other alternatives to monitor a production
environment of Apache/Tomcat/Cocoon. I am not talking about installing
JProbe etc. because this is no good on production systems.

And yes - I have searched the tomcat-user list on marc.theaimsgroup

Thanks for any tips and pointers

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, S&N 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
=




-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Cocoon 2 installation problem

2002-02-21 Thread Stefano Bonnin

Hi,
I have just installed Cocoon 2.0.1 and Tomcat 4.0.1.

When I try to start Cocoon I get the following error:

***
Cocoon 2 - Internal server error




type fatal

message The sitemap handler's sitemap is not available. Please check logs
for the exact error.

description org.apache.cocoon.ProcessingException: The sitemap handler's
sitemap is not available. Please check logs for the exact error.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

path-info
*


Can anyone help me, please?

PS: OS = Linux RedHat 7.2

Thanks.



---
Outgoing mail is certified Virus Free. (CopyRight FLASHH!)
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: CSS with COCOON

2002-02-21 Thread Richard Korthuis

Hi,

I managed to get it to work. Maybe you can tell what error you receive?

I added the following lines to my sitemap.xmap:
 
  
 

Richard Korthuis


- Original Message - 
From: "Je vous site" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 10:12 AM
Subject: CSS with COCOON


> Hello
> 
> Does anybody, manage to link a CSS Stylesheet on a HTML File generated 
> with an XML / XSL Transformation ?
> 
> 
> http://www.w3.org/1999/XSL/Transform"; 
> version="1.0">
> 
> 
>   
>   
>   
>   
>   
> ...
> 
> Please Help !
> 
> Xavier
> 
> 
> P S: I see that
> 
>  is 
> added by the serializer.
> 
> P P S
> In local mode, IE or Netscape show what i expect, the "style.css" file 
> is in the same directory as the "xml" and "xsl" file
> 
> 
> 
> 
> 
>   
> 
> 
> 
> Xavier
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Re: howto make use of default database add, delete, update action for mutilple table at a time

2002-02-21 Thread marco

Thanks a lot. I was able to insert records to more than one table at a time,
but according to the documentaion of the actions "DatabaseUpdateAction" and
"DatabaseDeleteAction" that they can handle only one table at a time. Please
advise.

- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 2:30 AM
Subject: Re: howto make use of default database add, delete, update action
for mutilple table at a time


> On 20.Feb.2002 -- 03:49 PM, marco wrote:
> > I have a user input form and which is used to add/update/delete records
in
> > serveral tables. I found a sample that came with cocoon, but it is
simple
> > example that only one table is handled at a time.
> >
> > How can I make use the default DatabaseAddAction, DatabaseUpdateAction,
> > DatabaseDeleteAction to manipulate the data of mutiple tables at a time.
>
> Easy: just add another table to the descriptor file. The action will
> attempt to insert data in all tables listed. Of cause, if it's not
> feeded enough data it will rollback the complete transaction.
>
> You may not use autoincrement columns with the default database
> actions if you need the column's value lateron. You may use the manual
> mode for autoincrement columns but that could have concurrency issues
> depending on your database setup.
>
> In scratchpad you'll find actions that don't have these
> limitations. While the descriptor file syntax will not change (being
> different from descriptor file for main trunk db actions!), the
> actions (including their name and how to employ the helpers) will
> change shortly.
>
> Chris.
>
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




CSS with COCOON

2002-02-21 Thread Je vous site

Hello

Does anybody, manage to link a CSS Stylesheet on a HTML File generated 
with an XML / XSL Transformation ?


http://www.w3.org/1999/XSL/Transform"; 
version="1.0">


  
  
  
  
  
...

Please Help !

Xavier


P S: I see that

 is 
added by the serializer.

P P S
In local mode, IE or Netscape show what i expect, the "style.css" file 
is in the same directory as the "xml" and "xsl" file





  



Xavier


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Weird problem with JDK 1.4 on win32

2002-02-21 Thread Torsten Curdt

On Wed, 20 Feb 2002, Stefano Mazzocchi wrote:

> I just compiled the fresh CVS and I got a bunch of compilation errors
> such as
>
> class org.apache.cocoon.components.language.markup.xsp.EsqlConnection
> must
> be declared abstract. It does not define void setHoldability(int) from
> interface java.sql.Connection.
> [javac] public class EsqlConnection implements Connection {
> [javac]  ^
>
> and so on.
>
> The ant task should be turning that code into comments if JDBC3 is not
> found.
>
> Now, if you install JDK 1.4 on windows, it copies java.exe and javaw.exe
> in your %WINDOWS_SYSTEM% directory (c:\winnt\system32 on my machine).
>
> But i wanted to use JDK 1.3.1 to compile Cocoon so I updated my profile
> to have the JAVA_HOME and PATH set up correctly.
>
> The problem seems to be that Ant calls System.run() and the JDK 1.4
> java.exe is picked up, no matter what PATH definition you have.
>
> So, the JVM that runs ant is JDK 1.3, but the one used to check
> availability of JDBC3 is JDK 1.4, thus the problem.
>
> Deleting java.exe and javaw.exe from /winnt/system32 resolved the
> problem.

Aaah great you resolved this. There were a couple of posts on
cocoon-users about this
--
Torsten


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Sitemap limits

2002-02-21 Thread Torsten Curdt


AFAIK this is not true anymore. The 64kb limit is per java method and
the sitemap is now split up into different methods. So it's hard to tell.
Should be quite big ;) With the new interpreted sitemap there is
(probably) no limitation.
--
Torsten

On Wed, 20 Feb 2002, Carlos Araya wrote:
> From previous messages to the list it appears that it can be up to 64kb
>
> Carlos
>
> On 02/20/02 21:44, "Mikhail Fedotov" <[EMAIL PROTECTED]> wrote:
>
> > Hi!
> >
> > That are limits of current sitemap limitation ? I.e. how
> > huge it can be ?
> >
> > Mikhail
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
> --
> Carlos E. Araya
> ---+ WebCT Administrator/Trainer
>  P | California Virtual Campus
>  - | C/O De Anza College
>  G | 21250 Stevens Creek Blvd
> ---+ Cupertino, CA 95014
>
> email   [EMAIL PROTECTED]
> web http://www.cvc1.org/ (work)
> http://www.silverwolf-net.net (personal)
> phone   408 257 0420 (work)
> PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756
>
> 80/20 Rule: Simplicity vs. complexity. 80 percent of the
> functionality/feature set of an "ideal" solution set, with only 20 percent
> of the complexity of the ideal solution or 20 percent of the effort required
> to build the ideal solution; or put another way, the last 20 percent of the
> "ideal" feature set is what creates the most complexity
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: writing xml to file

2002-02-21 Thread Ferran Urgell



Hi!
No, I didn't make any changes in the xmap or xconf 
files... (Well in the sitemap.xmap,It's the same as a simple 
xml-xsl)
And the directory not exists in my 
server...(maybe you need to reconfigure your classpath.for the file 
*.jar)  
 
Regards
Ferran

  - Original Message - 
  From: 
  Automatic 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, February 20, 2002 5:45 
  PM
  Subject: Re: writing xml to file
  Thank you very much to respond me : )Did you made 
  changes in your "xmap" or "xconf" files ?Could you check the existence 
   of cocoon/WEB-INF/classes/org/apache/xalan/xslt/extensions 
  directory ?The XSLT/EXTENSIONS part don't match in my system.I 
  just want to write a single sentence in a text file to start.Could you 
  tell me wich Xalan version you use, mine is perhaps differente 
  (xalan-2.2.0-D13.jar) ?XavierFerran Urgell 
  wrote:
  [EMAIL PROTECTED]" type="cite">



Ok, I don't know what is ... but here you have a piece of my xsl file, with the xsl, I'm 
writing into file on hard disk...
Please send me the xml...and more 
details 
 
"http://www.w3.org/1999/XSL/Transform"  
xmlns:sql="http://apache.org/cocoon/SQL/2.0" 
xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" 
extension-element-prefixes="redirect"> 
1.01text=LABORATORIS
 

 
Regards...
Ferran Urgell 

  - 
  Original Message - 
  From: Je 
  vous site 
  To: [EMAIL PROTECTED] 
  Sent: 
  Wednesday, February 20, 2002 4:37 PM
  Subject: 
  Re: writing xml to file
  Hello,I'm new to cocoonI want to write an 
  xml file on hard disk. So I've tried what you said. It didn't run.I 
  have modify your piece of  XSL to fit my configuration because, i've 
  found a Redirect class in Xalan.jar with a different path. It still don't 
  run.Could you say me what i have forgot, please.Thank you 
  : Xavier 
  "http://www.w3.org/1999/XSL/Transform" 
  version="1.0"            
  xmlns:redirect="org.apache.xalan.lib.redirect" 
  extension-element-prefixes="redirect"> Here 
  put the xsl sentenceslike apply 
  templates.Ferran Urgell 
  wrote:
  [EMAIL PROTECTED]" 
type="cite">In the xsl you can try something like:xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:sql="http://apache.org/cocoon/SQL/2.0" xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="redirect">  < Here put the xsl sentenceslike apply templates.>- Original Message -From: "Bert Van Kets" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Thursday, February 14, 2002 10:54 AMSubject: writing xml to file
I have built a system where I can edit the content of an xml file in abrowser by using html forms.  Comparing the request object with theoriginal XML (by use of ID's and aggregation) lets me contruct the updatedxml file with the original structure.I would like to write this file to disk, well actually overwrite theoriginal xml file.How do I go about this in Cocoon?Thanks,Bert-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>-Please check that your question has not already been answered in theFAQ before posting. 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. To 
  unsubscribe, e-mail: For 
  additional commands, e-mail: - 
  Please check that your question has not already been answered in the FAQ 
  before posting. To unsubscribe, e-mail: 
  <[EMAIL PROTECTED]>For additional commands, e-mail: 
  <[EMAIL PROTECTED]>


Re: Sitemap limits

2002-02-21 Thread Martin Holz

Hi,

Mikhail Fedotov wrote:
> That are limits of current sitemap limitation ? I.e. how
> huge it can be ?


The compiled sitemap is limited to 64 kB of Java byte code per method, but 
ypu can use the interpreted (tree) sitemap from CVS, which has no arbitrary 
size limit. Using subsitemaps helps either.

Martin

--
Martin Holz  <[EMAIL PROTECTED]>  phone: 0049-30-39977 218 
FIZ CHEMIE BERLIN


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Uninterruptable Sleep

2002-02-21 Thread Christian Joelly

Hello!

i'm using cocoon 2.01 with jboss 2.4.4/tomcat 3.2.3 and have
experienced almost the same problem. but i dont know if its cocoon
related or jboss/tomcat...

when i restart jboss the cocoon app is correctly answering requests
again...

the problem occurs, when i deploy my app i think more then ten times
without restarting jboss/tomcat.

Chris

On Wed, Feb 20, 2002 at 10:04:45AM -0800, Colin Hall wrote:
> 
> There is one serious re-occuring problem however...One or more java threads
> will go into an Uninterruptable Sleep.  This results in the sites being
> crippled to the point that NOTHING is being served.  I have observed the
> dead threads coming back to life as well as staying dead until I have to
> kill the java process and restart the server.
> 
> Needless to say, this is causing us a great deal of anxiety.
> Has anyone else seen this type of behaviour?  Does anyone know how to deal
> with it?
> 

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz




msg08331/pgp0.pgp
Description: PGP signature


Re: Sitemap limits

2002-02-21 Thread Mikhail Fedotov

Hi!

> >From previous messages to the list it appears that it
> can be up to 64kb

This is a limitation or one Java method, I'm almost sure
this isn't the way it is done. Ok, I'll check this myself.

But anyway, simple table with figures on cocoon limitations
and memory consumption info (at least for samples shipped)
would be s useful. :)

Mikhail

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Do You Need Help Understanding The Sitemap Better?

2002-02-21 Thread Georg Von Sperling

Give this article a shot:

http://www.xml.com/pub/a/2002/02/13/cocoon2.html by Stefano Mazzocchi on 13.02.2002

I have seen references to it on this great portal (praised previously on this 
board)...

http://www.need-a-cake.com/

which lead me:

http://radio.weblogs.com/0103539/

Georg von Sperling
MedAptus, Inc.
http://www.medaptus.com
mailto:[EMAIL PROTECTED]

 


<>
-
Please check that your question has not already been answered in the
FAQ before posting. 

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


RE: Css stylesheet problem

2002-02-21 Thread Georg Von Sperling

Xavier,
 
Took me a while as well as the documentation on sitemap.xmap is kinda sparse, but here 
is a snipped to put into the  tag of your sitemap.xmap:
 
   
 
   
 
What this means in English:
take any request to this context that ends with ".css" and respond with the content of 
the corresponding ".css" file.
 
Assume you have this directory structure:
tomcat -
webapps -
   cocoon -
   xml -
   page.xml
   xsl -
   page.xsl
   css -
   style.css
 
you might want to set-up your sitemap like this:

  
   ... blah ...
   



   
   
 
   
  

 
or, alternatively, you can use the wildcards as described above (a double-star will 
re-curse through directories, a single-star will stay in the current directory only).
 
Hope this helps... 
Georg von Sperling
MedAptus, Inc.
http://www.medaptus.com
mailto:[EMAIL PROTECTED]
 

-Original Message- 
From: Je vous site [mailto:[EMAIL PROTECTED]] 
Sent: Wed 2/20/2002 11:00 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Css stylesheet problem



Hello,

I would like to apply a Css stylesheet to the HTML file i have generated
on Cocoon.
Is there a solution to this problem, without changing my configuration
(Tomcat 4.0.1 / Cocoon 2 under W2k)


http://www.w3.org/1999/XSL/Transform";
version="1.0" >


  
  

  
...

Thank you for all kind of help : Xavier


-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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


RE: Weird problem with JDK 1.4 on win32

2002-02-21 Thread Georg Von Sperling

I ran into that problem as well, but the way I fixed it is to set the Environment 
Variables in the System Properties as follows:
 
JAVA_HOME = {path to jdk1.4 (not the -rc, which was all screwy)}
CLASSPATH = .;%JAVA_HOME%/tools.jar;
 
now, your "Path" variable pobably looks like: 
;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%JAVA_HOME%\bin;%CATALINA_HOME%\bin;%ANT_HOME%\bin;

 
reverse the attributes, so that it looks like:
 
%JAVA_HOME%\bin;D:\Perl\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%CATALINA_HOME%\bin;%ANT_HOME%\bin;

 
Windows is screwy that way... the first java.exe it encounters is the one it uses. 
Windows ships with java.exe (unless you're using WinXP). If you type "java -version" 
on the command line, the correct libs are used, but the wrong java.exe!
 
Hope this helps...
 
Georg von Sperling
MedAptus, Inc., Boston, MA
http://www.medaptus.com
mailto:[EMAIL PROTECTED]
 
-Original Message- 
From: Stefano Mazzocchi [mailto:[EMAIL PROTECTED]] 
Sent: Wed 2/20/2002 5:47 PM 
To: Apache Cocoon; Apache Cocoon Users 
Cc: 
Subject: Weird problem with JDK 1.4 on win32



I just compiled the fresh CVS and I got a bunch of compilation errors
such as

class org.apache.cocoon.components.language.markup.xsp.EsqlConnection
must
be declared abstract. It does not define void setHoldability(int) from
interface java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^

and so on.

The ant task should be turning that code into comments if JDBC3 is not
found.

Now, if you install JDK 1.4 on windows, it copies java.exe and javaw.exe
in your %WINDOWS_SYSTEM% directory (c:\winnt\system32 on my machine).

But i wanted to use JDK 1.3.1 to compile Cocoon so I updated my profile
to have the JAVA_HOME and PATH set up correctly.

The problem seems to be that Ant calls System.run() and the JDK 1.4
java.exe is picked up, no matter what PATH definition you have.

So, the JVM that runs ant is JDK 1.3, but the one used to check
availability of JDBC3 is JDK 1.4, thus the problem.

Deleting java.exe and javaw.exe from /winnt/system32 resolved the
problem.

--
Stefano Mazzocchi  One must still have chaos in oneself to be
  able to give birth to a dancing star.
<[EMAIL PROTECTED]> Friedrich Nietzsche


-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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


RE: Tomcat 4.0.2, Cocoon 2.0.1, JDK 1.4.0 Build Problem

2002-02-21 Thread Georg Von Sperling

#1.) don't even try Tomcat 4.0.2 with JDK 1.4.0 and Cocoon2. Nothing but problems
#2.) the combination that I have working is Tomcat 4.0.1, JDK 1.4.0 and CVS checkout 
of xml-cocoon2(HEAD)
#3.) make sure you check-out the "HEAD" tag from xml-cocoon2, others might give you 
dev-versions
 
Georg von Sperling
MedAptus, Inc.

-Original Message- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wed 2/20/2002 9:23 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Tomcat 4.0.2, Cocoon 2.0.1, JDK 1.4.0 Build Problem



I'm trying to build the cocoon2.war file and am getting a lot of errors like 
this:


/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class org.apache.cocoon.components.langu
age.markup.xsp.EsqlConnection must be declared abstract. It does not define 
java.sql.PreparedStatement prepareStatement(java.lang.String, int[]) from interface 
java.sq
l.Connection.
public class EsqlConnection implements Connection {

Is there anybody who has seen this that can offer some advice? 

Thanks.

-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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