RE: Cocoon not able to read external URLs.

2003-08-14 Thread Derek Hohls



Kieran
 
Are you running on a normal webserver
or on your own machine - I am unable
to process external URLs on my localhost
due to proxy issues, but these same calls
work fine on the production machine.
 
Derek>>> [EMAIL PROTECTED] 14/08/2003 01:39:55 >>> 
Joerg, - Win2k - Apache Tomcat 4.0 - Cocoon 2.0.4. - 
j2sdk1.4.1_01 _ 
Kieran Kirwan Executive Transportation Planner Transportation 
Modelling Department Dublin Transportation Office Hainault House, 
69/71 St. Stephen's Green, Dublin 2, Ireland. Tel: +353 (0)1 
4778113 Fax: +353 (0) 1 478 5935 website: www.dto.ie -Original Message- From: Joerg Heinicke [ 
mailto:[EMAIL PROTECTED] 
Sent: 14 August 2003 12:41 To: [EMAIL PROTECTED] 
Subject: Re: Cocoon not able to read external URLs. What 
happen's when doing this? What's your Cocoon setup esp. Cocoon version? 
Someone else already mentioned some days ago problems with proxy. 
Joerg Kieran Kirwan wrote: > My setup of cocoon doesn't 
appear able to read external URLs. > This is the first time I've tried to 
do this on our network. > Hence I just get an empty HTML page when I run 
the Yahoo screenscrape. > > > > > > > > > > I've 
simplified it down to just generate and it's the same > > 
> > > > > > It's not a 
proxy server issue or something??? > > Can anyboby help?? > 
> Kieran 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed. If you have received this email in error please notify the system 
manager. This footnote also confirms that this email message has been 
swept by Mail Marshal for the presence of computer viruses. 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
-- 
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.



RE: Few authentication questions

2003-08-14 Thread Sonny Sukumar

From: "Carsten Ziegeler" <[EMAIL PROTECTED]>

Sonny Sukumar wrote:
> >Now, a session context is an XML document stored in the session. With 
the
> >session transformer (see below) you can fetch xml data out of such a
> >context and store data in it.
>
> Oh ok, so a session context is a session attribute that happens
> to be an XML
> doc.  But of what class type is this XML doc?  Just curious...
>
It's an internal class ;) (which uses a DOM tree)
Ok, so I assume I don't have to know about it then. :-)


> >
> > > 3.) The doc furthermore has this line in it:
> > >
> > > 
> > >
> > > So I assume  is a logichsheet call, but
> > > I've only seen
> > > a logicsheet called xsp-session that provides an interface to
> a Session
> > > instance.  And I don't see any "getxml" element for that logicsheet.
> > >
> >This is not a logicsheet but a transformer, so you can use this
> transformer
> >in your cocoon pipeline to set/get data to/from a session context, like
> >the authentcation session context in the example above.
>
> Hmm, I thought if it's a transformer it should be called like
> "
>
> Why isn't this the case?
>
It is the case, too. Your call is in the sitemap where you define the
pipeline and the  is in the xml stream flowing through
the transformer. It's the signal for the session transformer to do
something.
Ahh, ok, I get what you're saying.  I'll try to install 2.1 and play with 
the authentication framework a bit and then come back with some more 
questions, if I think of any (I'm sure I will ;-).

Sonny

Carsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: woody and databases

2003-08-14 Thread Antonio Gallardo
Hi Simon:

Welcome to the quest! :)

This is the quest: How to build a better database oriented webapps using
Cocoon. AFAIK currently you cannot use Flow with Actions You need to
choose one of them.

I already done 2 webapps using Original and Modular Database Actions but
it seems to me that this is not the best. You will have a mix of concern
using the Actions. Please dont ask me why. Soon or later you will be faced
to that. I dont want to start another war. This is just my opinion. :)

Another disadvantage of Modular or Original Database Actions is when you
need to do some complex database operations, they are not your best
choice. It seems like the way is else where, maybe using flow... Please
note that Original and Modular Database Actions are another milestone into
Cocoon. They are an attempt to solve the Database issue in Cocoon. Of
course for simple DB operations they are well suited. My respects to
people that developed Original and Modular Database Actions.

Currently, many of us are trying to make a working and functional demo
using Flow. The idea is to create a Model-View-Controller. The bets are
on:

Model:
   OJB   - http://db.apache.org/ojb/
   Hibernate - http://hibernate.sourceforge.net/
View:
  Woody  - Inside Cocoon
  JXForms- Inside Cocoon
Controller:
  Flow   - Inside Cocoon

I am trying to get up the formula:

  OJB-Woody-Flow.

BUt, I needed to do another works inside the company and soon I will go
back to the quest. :)

I already done a simple example using OJB inside Cocoon:

http://wiki.cocoondev.org/Wiki.jsp?page=OJBWithJDO

This is a micro milestone (maybe must be called a milistone, lol :): A
simple test that OJB can work inside Cocoon.

Also, I am finishing a Cocoon component that will manage a
PersistentManagerFactory for OJB-JDO into Cocoon. Soon I will try if this
works and will post the results to wiki.

The next step will be puting Woody-Flow-OJBComponent to work!

Best Regards,

Antonio Gallardo.




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



RE: Few authentication questions

2003-08-14 Thread Carsten Ziegeler
Sonny Sukumar wrote:
> >Now, a session context is an XML document stored in the session. With the
> >session transformer (see below) you can fetch xml data out of such a
> >context and store data in it.
>
> Oh ok, so a session context is a session attribute that happens
> to be an XML
> doc.  But of what class type is this XML doc?  Just curious...
>
It's an internal class ;) (which uses a DOM tree)

> >
> > > 3.) The doc furthermore has this line in it:
> > >
> > > 
> > >
> > > So I assume  is a logichsheet call, but
> > > I've only seen
> > > a logicsheet called xsp-session that provides an interface to
> a Session
> > > instance.  And I don't see any "getxml" element for that logicsheet.
> > >
> >This is not a logicsheet but a transformer, so you can use this
> transformer
> >in your cocoon pipeline to set/get data to/from a session context, like
> >the authentcation session context in the example above.
>
> Hmm, I thought if it's a transformer it should be called like
> "
>
> Why isn't this the case?
>
It is the case, too. Your call is in the sitemap where you define the
pipeline and the  is in the xml stream flowing through
the transformer. It's the signal for the session transformer to do
something.

Carsten


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



RE: Few authentication questions

2003-08-14 Thread Sonny Sukumar

From: "Carsten Ziegeler" <[EMAIL PROTECTED]>

Sonny Sukumar wrote:
>
> Hi guys,
>
> Today is my first venture into the Cocoon authentication framework, and 
I
> got a little confused on some points:
>
> 1.) Are the sunShine components the same as those described in this 
doc?:
>
> http://cocoon.apache.org/2.0/developing/webapps/authentication.html
>
> They seem to be one and the same, yet all the names are different in 
that
> doc.  Does anybody know why?
>
They are the same. When the code was donated by s&n to Cocoon, they were
called
sunShine, sunRise etc. But the cocoon community decided that these names 
are
now well suited for Cocoon, so everything has been renamed to more
functional
names, like session framework or authentication framework.-
Ok, got it.  I'm running Cocoon 2.0.4, so all I see is sunShine, etc., so I 
got confused.  I guess I better upgrade to 2.1, so I'm current.

> 2.) That doc also describes "session contexts", which I've never
> heard of or
> seen elsewhere.  Are such "contexts" entirely different than session
> attributes?
>
Now, a session context is an XML document stored in the session. With the
session transformer (see below) you can fetch xml data out of such a
context and store data in it.
Oh ok, so a session context is a session attribute that happens to be an XML 
doc.  But of what class type is this XML doc?  Just curious...

> 3.) The doc furthermore has this line in it:
>
> 
>
> So I assume  is a logichsheet call, but
> I've only seen
> a logicsheet called xsp-session that provides an interface to a Session
> instance.  And I don't see any "getxml" element for that logicsheet.
>
This is not a logicsheet but a transformer, so you can use this transformer
in your cocoon pipeline to set/get data to/from a session context, like
the authentcation session context in the example above.
Hmm, I thought if it's a transformer it should be called like 
"

Why isn't this the case?

Thanks for your help Carsten,

Sonny

Carsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


woody and databases

2003-08-14 Thread Simon Hürlimann (IMSEC)
Hi all

I want to use the woody form framework together with databases. Unfortunatly 
there's no database sample in the woody block. I did some work with both 
normal and modular database actions and cutsom forms. That work is based on 
the samples in the database block.

But I would like to use the woody form framework now. I don't know how to 
couple modular database actions and woody together. I guess it works through 
the request-attribute input module and JXPath expressions... but I'd 
appreciate every hint/link.

There's yet another concept I'd like to use together with this: flow. I had a 
look at the woody-flow samples. But again, how do the database actions fit 
in? Or are flow and actions just not compatible? What is the proposed way of 
database functionality? I'd rather like to avoid writing beans if possible, 
but...

Thanx
Simon


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



RE: Few authentication questions

2003-08-14 Thread Carsten Ziegeler
Sonny Sukumar wrote:
>
> Hi guys,
>
> Today is my first venture into the Cocoon authentication framework, and I
> got a little confused on some points:
>
> 1.) Are the sunShine components the same as those described in this doc?:
>
> http://cocoon.apache.org/2.0/developing/webapps/authentication.html
>
> They seem to be one and the same, yet all the names are different in that
> doc.  Does anybody know why?
>
They are the same. When the code was donated by s&n to Cocoon, they were
called
sunShine, sunRise etc. But the cocoon community decided that these names are
now well suited for Cocoon, so everything has been renamed to more
functional
names, like session framework or authentication framework.-

> 2.) That doc also describes "session contexts", which I've never
> heard of or
> seen elsewhere.  Are such "contexts" entirely different than session
> attributes?
>
Now, a session context is an XML document stored in the session. With the
session transformer (see below) you can fetch xml data out of such a
context and store data in it.

> 3.) The doc furthermore has this line in it:
>
> 
>
> So I assume  is a logichsheet call, but
> I've only seen
> a logicsheet called xsp-session that provides an interface to a Session
> instance.  And I don't see any "getxml" element for that logicsheet.
>
This is not a logicsheet but a transformer, so you can use this transformer
in your cocoon pipeline to set/get data to/from a session context, like
the authentcation session context in the example above.

Carsten


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



Re: another question on search

2003-08-14 Thread Bill French
my version doesn't have an elapsed-time attribute on it, but otherwise 
it's the same. am i supposed to generate this file on my own, or is 
that something the index transformer takes care of?

here's a sample:



	directory="index" merge-factor="20" 
xmlns:link="urn:berkeley:cde:portal:link"
	xmlns:lucene="http://apache.org/cocoon/lucene/1.0"; 
xmlns:meta="urn:berkeley:cde:portal:metadata"
	xmlns:pc="urn:berkeley:cde:portal:portalcontent" 
xmlns:toc="urn:berkeley:sims:cde:portal:toc"
	xmlns:txt="urn:berkeley:cde:portal:structuredtext" 
xmlns:xhtml="http://www.w3.org/1999/xhtml"; 
xmlns:xlink="http://www.w3.org/1999/xlink";>
	
		
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="urn:berkeley:cde:portal:portalcontent 
../../xsd/shared/PortalContent.xsd">
			

   ...



On Thursday, August 14, 2003, at 10:15  PM, Conal Tuohy wrote:

Hi Bill

What's the content of xml/siteindex.xml look like? Particularly, the
 element. I suggest you check that it looks like the 
sample
page on the Wiki.

Con

-Original Message-
From: Bill French [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 15:23
To: [EMAIL PROTECTED]
Subject: Re: another question on search
thank you for your help, con.

right now, i've got this in my sitemap:













pointing my browser to localhost:8080/genindex gives me the following
error:
Internal Server Error

Message: Failed to execute pipeline.

Description: org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: java.lang.NullPointerException
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI
genindex
cause
java.lang.NullPointerException
request-uri
/genindex
siteindex.xml is a file i generated statically on my own,
based on all
of my xml content docs. hitting search now returns just the following:


do i want to be generating my index as i am above?

i really appreciate all your help. i'm new to cocoon and some of the
concepts are still a little bewildering. ;)
thanks,

--bill



On Thursday, August 14, 2003, at 07:56  PM, Conal Tuohy wrote:

Hi Bill.

Yes you are confused: you should have 2 distinct pipelines: one to
create or update the index (using the LuceneIndexTransformer) and a
separate pipeline to search the index (using SearchGenerator).
Con

-Original Message-
From: Bill French [mailto:[EMAIL PROTECTED]
Sent: Fri 15/08/2003 12:59 p.m.
To: [EMAIL PROTECTED]
Cc:
Subject: another question on search





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



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


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


RE: another question on search

2003-08-14 Thread Conal Tuohy
Hi Bill

What's the content of xml/siteindex.xml look like? Particularly, the
 element. I suggest you check that it looks like the sample
page on the Wiki.

Con

> -Original Message-
> From: Bill French [mailto:[EMAIL PROTECTED]
> Sent: Friday, 15 August 2003 15:23
> To: [EMAIL PROTECTED]
> Subject: Re: another question on search
>
>
> thank you for your help, con.
>
> right now, i've got this in my sitemap:
>
>   
>   
>src="xml/siteindex.xml" type="file"/>
>   
>   
>   
>
>   
>   
>   
>src="xsl/xhtml/search/searchresults.xsl"/>
>   
>   
>
> pointing my browser to localhost:8080/genindex gives me the following
> error:
>
> Internal Server Error
>
> Message: Failed to execute pipeline.
>
> Description: org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.: java.lang.NullPointerException
> Sender: org.apache.cocoon.servlet.CocoonServlet
> Source: Cocoon Servlet
>
> Request URI
> genindex
>
> cause
> java.lang.NullPointerException
>
> request-uri
> /genindex
>
> siteindex.xml is a file i generated statically on my own,
> based on all
> of my xml content docs. hitting search now returns just the following:
>
> 
>
> do i want to be generating my index as i am above?
>
> i really appreciate all your help. i'm new to cocoon and some of the
> concepts are still a little bewildering. ;)
>
> thanks,
>
> --bill
>
>
>
> On Thursday, August 14, 2003, at 07:56  PM, Conal Tuohy wrote:
>
> > Hi Bill.
> >
> > Yes you are confused: you should have 2 distinct pipelines: one to
> > create or update the index (using the LuceneIndexTransformer) and a
> > separate pipeline to search the index (using SearchGenerator).
> >
> > Con
> >
> > -Original Message-
> > From: Bill French [mailto:[EMAIL PROTECTED]
> > Sent: Fri 15/08/2003 12:59 p.m.
> > To: [EMAIL PROTECTED]
> > Cc:
> > Subject: another question on search
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Binary Version Cocoon2.1

2003-08-14 Thread Mustafa Ali, Halgurt








Hallo,

 

Can someone tell me where can
download the binary version of Cocoon2.1?






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

Re: Confused About Perfomance Issues (but not as much)

2003-08-14 Thread Geoff Howard
Julian wrote:
Geoff,

Thanks for the help! I see about a second and a half
performance boost (10.29s to 8.87s) on startup.  The
longest to respond is a sitemap with various XSP's and
a fop2pdf generator (12.35 sec).  I have two more
issue though in light of your tips:  
Very glad to hear it - I'd think you'll be able to get that down quite a 
bit more.  See more comments below.


1) Should I "declare" the components only in the
sitemap that uses them or is the performance the same
when they are "declared" in the base sitemap (not
"declared" in sub-sitemap)?
I don't know if sitemap components are loaded lazily or not in the tree 
processor (2.1), but it would be an easy experiment.  You may be able to 
find hints in the logs (if you turn logging up to debug).

That reminds me.  Logging is by default turned to ERROR (WARN?) now in 
2.1 which was not the case with earlier versions, or earlier in 2.1 cvs. 
 But web.xml has an additional config for logging during startup.  I 
think this may be left to debug by default, and you may want to 
experiment with startup times with it changed.

2) Are JSP/XSP sources compiled everytime the server
is restarted? If so, will getting my hands on the
class generated and "generating" it otherwise improve
the performace?

They should not be recompiled on server restart (though I'm not sure 
about JSP within Cocoon if called from the JSP reader or generator). 
You need to make sure though that your servlet container is not deleting 
the work directory on startup or shutdown.  ( I think I recently 
discovered that Jetty does this).  If it is, they will be recompiled 
because the class file will be missing.  You can fix this either by 
changing config on the servlet container or by changing Cocoon's work 
directory to one that isn't getting deleted.  The same by the way goes 
with the cache directory.

Your idea to get the pregenerated class file will work - though I'm not 
sure if XSP engine uses the same class loader, or if it only looks in 
the configured work directory.  This will change where you would need to 
put it to avoid recompiling.

Also, the build process has a step that is supposed to precompile XSPs. 
 You may not want to rebuild the entire cocoon project each time you 
change an xsp but you could look into creating a new build target for 
yourself to do just this step.  If you figure it out, please wiki it.

Regarding components: I am not sure which I use and
which I do not.  I use Cocoon for the basics and will
have to do some reading.
Yes, this is an issue.  It won't be clear even to experienced users what 
all those components are.  It's better now that blocks are here, but not 
everything can be/is in a block.  Maybe if you did an inventory of what 
you still have in cocoon.roles and cocoon.xconf and wiki'd it we could 
build up a little page detailing what each is and when you could get rid 
of it.

Geoff

Thanks a million,
Julian
--- Geoff Howard <[EMAIL PROTECTED]> wrote:

Reinhard Pötz wrote:

-Original Message-
From: Julian [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 4:20 PM
To: cocoon
Subject: Confused About Perfomance Issues

Hi,

I have looked into this a few times, but am not
"getting it".

How can I configure/build Cocoon to
pre-load/pre-compile sitemaps before or during
server

startup?



In 2.1 (latest CVS) the interpreted sitemap is
used - no compilation is

necessary.




Every time my server is restarted Cocoon takes
about

8-10 secs. to respond to requests to a given
sitemap. 

I believe this is sitemap compilation.  I have a
few

sitemaps so this causes some serious lag time,
albeit

on first request...afterwards all responds
quickly.

jre 1.4.1, Cocoon CVS version, Tomcat 4.1.12



It's not only the sitemap - Cocoon initialized
many components and this

needs some time at startup. It also takes some
time to compile XSP pages

(in the case you use them).
And this time can be reduced by eliminating all
unused components. 
First, start by building without unused blocks. 
Second, edit your 
sitemaps to remove any unused sitemap components
(e.g., Generators 
you'll never use).  If things are still not
noticeably better, examine 
cocoon.xconf and cocoon.roles for components you
expect to never need. 
This last step is a little more advanced.

If there are any questions about what a component
is/does ask here or on 
the dev list.

Geoff



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


Re: [ANN] Apache Cocoon 2.1 Released

2003-08-14 Thread Vadim Gritsenko
Frans Thamura wrote:

Where is the binary???
 

http://cocoon.apache.org/mirror.cgi
Second paragraph.
Vadim



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


Re: Bug in JSPReader?

2003-08-14 Thread Marc Baumgartner

> Anyone is always the first ;-) Maybe the others port their code to
> Cocoon processing instead of reusing legacy JSP.

I know, I Know ;-)

> But the HttpServletRequest implementation is only minimalistic in the
> JSPEngineImpl:
> http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/jsp/java/org/apache
>/cocoon/components/jsp/JSPEngineImpl.java?rev=1.7&content-type=text/vnd.view
>cvs-markup So if you know what to do ...

Yesterday I have played several hours with the JSPEngineImpl - with no result. 
If you have no deeper knowledge of Tomcat and how a JSP is processed it is 
really difficult to understand Tomcat and Cocoon work.

I would like to help, but now I am little bit frustrated. Is there anybody 
with knowledge of this stuff?

Marc


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



RE: [ANN] Apache Cocoon 2.1 Released

2003-08-14 Thread neil
> Where is the binary???

The download page explains that there isn't one (and why).


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



RE: problem creating a new transformer

2003-08-14 Thread Miguel Carvalho
hmmm...

i've started this project begining with an example "chello", but i also
downloaded and tried the cocoon version 2.0.4, perhaps that is why i
confused it.

In the libs directory of the project there is a jar cocoo-2.0rc2.jar, maybe
this is the version. Sorry for the confusion.


Miguel Carvalho

-Original Message-
From: Bruno Dumon [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 6 de Agosto de 2003 13:00
To: [EMAIL PROTECTED]
Subject: Re: problem creating a new transformer


On Wed, 2003-08-06 at 13:56, Miguel Carvalho wrote:
> Hi, i want to create a new transformer that gets sax events from a XSP
> Generator created by me.
>
> i'm using cocoon 2.0.4 under a XP with java version 1.4.1_03.
>



>
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.NullPointerException
>
> request-uri
>
> /dae/daestart
>
> original exception
>
> Original exception : java.lang.NullPointerException
>   at
>
org.apache.cocoon.serialization.AbstractTextSerializer.startElement(Abstract
> TextSerializer.java:271)
>   at
>
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:87)
>   at
>
pt.laseeb.dae.transformer.daeTransformer.startElement(daeTransformer.java:11
> 6)
> .
> and it goes on... :(

I have just checked the source of cocoon 2.0.4 and the line 271 of the
AbstractTextSerializer is outside of the startElement method, which
conflicts with what your stacktrace is showing. Are you sure you are
using version 2.0.4, or have you maybe made changes to those sources?

--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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




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



Re: [ANN] Apache Cocoon 2.1 Released

2003-08-14 Thread Frans Thamura
Where is the binary???


Regards,

Frans Thamura <[EMAIL PROTECTED]>
Intercitra Innovation Center
+62 855 7888 699

We help you manage and control.

--
Tertarik dengan Java Open Source Integration discussion?? bergabung ke JUG Indonesia 
mailing list, untuk subscribe email aja ke [EMAIL PROTECTED]

Website: http://jug-indonesia.dev.java.net



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



Caching problem

2003-08-14 Thread Алексей Завгородний
Hi!

Is it possible to cache content when using number of sitemaps? I have
a problem when use "cocoon:" protocol in  construction,
for example. Cache of the result is always invalid, but requests to
each of  are chached.

Nickolaich



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



RE: problem creating a new transformer

2003-08-14 Thread Miguel Carvalho



Re: link livesites: Massachusetts Alliance for Families

2003-08-14 Thread Joerg Heinicke
Do you have a URL?

Joerg

Ashe, Shawn J wrote:
Provides communications and advocacy support for foster, adoptive and
kinship parents in Massachusetts... helping to provide for the needs of
those who work with the most vulnerable in our society: lost, neglected or
abused children.  Cocoon 2.0.4


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


Getting Error when trying to use JSDK1.42 + Tomcat 4.1.27 + Cocoon 2.02 or 2.04

2003-08-14 Thread Jasper Michalczik








Hello,

 

I’m getting the following Error when trying to
use Cocoon 2.02 or 2.04 on JSDK1.42 + Tomcat 4.1.27:

 

I got this Error in two different Computers, both
running with Win XP pro.

 

 

Cocoon 2 - Internal server error

 



 

type fatal

 

message Failed to generate program code (this may
happen if you use Xalan in incremental processing mode). Please check log file
and/or console for errors.

 

description org.apache.cocoon.ProcessingException: Failed
to generate program code (this may happen if you use Xalan in incremental
processing mode). Please check log file and/or console for errors.

 

sender org.apache.cocoon.servlet.CocoonServlet

 

source Cocoon servlet

 

stack-trace

 

org.apache.cocoon.ProcessingException: Failed to
generate program code (this may happen if you use Xalan in incremental
processing mode). Please check log file and/or console for errors.

    at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:395)

    at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)

    at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)

    at
org.apache.cocoon.sitemap.Handler.run(Handler.java:267)

    at
java.lang.Thread.run(Unknown Source)

 

 

--

--

The Console displays:

 

08.08.2003 00:50:30 org.apache.commons.modeler.Registry
loadRegistry

INFO: Loading registry information

08.08.2003 00:50:31 org.apache.commons.modeler.Registry
getRegistry

INFO: Creating new Registry instance

08.08.2003 00:50:31 org.apache.commons.modeler.Registry
getServer

INFO: Creating MBeanServer

08.08.2003 00:50:33
org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on port 80

Starting service Tomcat-Standalone

Apache Tomcat/4.1.27-LE-jdk14

08.08.2003 00:50:35 org.apache.struts.util.PropertyMessageResources


INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true

08.08.2003 00:50:35 org.apache.struts.util.PropertyMessageResources


INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true

08.08.2003 00:50:36 org.apache.struts.util.PropertyMessageResources


INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true

server.properties not found, using command line or
default properties

Opening database: C:\Programme\Apache Group\Tomcat 4.1\webapps\cocoon\WEB-INF\db\cocoondb

HSQLDB server 1.7.1 is running

Use SHUTDOWN to close normally. Use [Ctrl]+[C] to
abort abruptly

Fri Aug 08 00:50:44 CEST 2003
Listening for connections ...

08.08.2003 00:50:45
org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on port 80

08.08.2003 00:50:45 org.apache.jk.common.ChannelSocket
init

INFO: JK2: ajp13 listening on /0.0.0.0:8009

08.08.2003 00:50:45 org.apache.jk.server.JkMain
start

INFO: Jk running ID=0 time=0/160  config=C:\Programme\Apache
Group\Tomcat 4.1\conf\jk2.properties

java.lang.RuntimeException: Errors in XSLT
transformation:

Fatal: File jar:file:/C:/Programme/Apache Group/Tomcat
4.1/webapps/cocoon/WEB-IN

F/lib/cocoon-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line 154; Column 32; org.apache.xml.utils.WrappedRuntimeException: The output
format must have a '{http://xml.apache.org/xalan}content-handler' property!

 

    at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)

    at java.lang.Thread.run(Thread.java:534)








RE: serving css and images

2003-08-14 Thread Cedric Picard
Hiya,

First of all, the mime-type for the 2nd pipeline should be "image/gif".
Secondly, your source for the image is "style/*.css" so you're also
reading the stylesheet to be displayed instead of the image.

Should the second pipeline not be something along the lines of 







Where  is the location of your images?

Hope that helps,
Regards,
Cedric

-Original Message-
From: Ben Munat [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2003 09:39
To: [EMAIL PROTECTED]
Subject: serving css and images


Hello. I'm very new to Cocoon... wobbling along. At this point I'm just 
trying to get Cocoon to serve an xml file transformed to xhtml with an 
xslt. Well actually, I did get it to serve the file. However, the 
resulting page has a link to an image and a css file and those are not 
coming through.

I have the Cocoon Developer's Handbook and it seems to indicate that I 
need to do this in my subsitemap:













However, that hasn't solved the problem. Anyone have any idea what I'm 
missing? I do need to have these pipelines in my sitemap so that pages 
can find their images and stylesheets, right?

Thanks in advance,

Ben Munat


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



--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

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



Link Hosting:StarLine

2003-08-14 Thread Matthias Koch
Hello,

here is the short summary of my site:

StarLine Webhosting (Germnay) with Tomcat and Cocoon 2.0.4.

The URL of my Site ist: http://www.StarLine-Net.de

thanks.

Mit freundlichen Grüßen

Matthias Koch

--

Webdesign
Softwaredevelopment
Webhosting

http://www.StarLine-Inc.de

StarLine
Matthias Koch
Bollbrücke 1a
18209 Bollbrücke

Tel.03841 - 228844
Mobil:  0170 - 5877417
E-Mail: [EMAIL PROTECTED]






-
This mail sent through IMP: http://horde.org/imp/


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



Basic Modular Database Add Question

2003-08-14 Thread Steve Schwarz
Hi
I'm just not quite getting how to associate the posted form content to a 
modular database add action. So the action always sees nulls for all form 
fields when I submit.

I've defined the modular action in my sitemap with the name "insert"
My pipeline:


  
   
...generate select using SQLTransformer of full table contents

My form is:


Honorific:
First Name*:
Other Name:
Surname*:
Lineage:
Email*:
Website:
*Required fields




So if I request  http://localhost:8080/cocoon/contact-add I am served the 
page containing the form. I then fill in the form and submit it.

In the sitemap log I get lines like:
DEBUG   (2003-08-08) 13:22.36:950   [sitemap.action.insert] 
(/cocoon/contact-add) Thread-6/DatabaseAction: Trying
to set column contact.firstName from request-param using getAttribute method
DEBUG   (2003-08-08) 13:22.36:950   [sitemap.action.insert] 
(/cocoon/contact-add) Thread-6/DatabaseAction: Setting column 
contact.firstName [0] null

for each entry in the db_config.xml. Seems like the action is correctly 
reading my config file but I'm not configured correctly to get the data out 
of the post.

Obviously I'm missing a key concept...
Any help would be appreciated.
Steve
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: another question on search

2003-08-14 Thread Bill French
thank you for your help, con.

right now, i've got this in my sitemap:














pointing my browser to localhost:8080/genindex gives me the following 
error:

Internal Server Error

Message: Failed to execute pipeline.

Description: org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: java.lang.NullPointerException
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet

Request URI
genindex
cause
java.lang.NullPointerException
request-uri
/genindex
siteindex.xml is a file i generated statically on my own, based on all 
of my xml content docs. hitting search now returns just the following:



do i want to be generating my index as i am above?

i really appreciate all your help. i'm new to cocoon and some of the 
concepts are still a little bewildering. ;)

thanks,

--bill



On Thursday, August 14, 2003, at 07:56  PM, Conal Tuohy wrote:

Hi Bill.

Yes you are confused: you should have 2 distinct pipelines: one to 
create or update the index (using the LuceneIndexTransformer) and a 
separate pipeline to search the index (using SearchGenerator).

Con

-Original Message-
From: Bill French [mailto:[EMAIL PROTECTED]
Sent: Fri 15/08/2003 12:59 p.m.
To: [EMAIL PROTECTED]
Cc:
Subject: another question on search





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


Problem with svg to xml serializer

2003-08-14 Thread Ariane Ibig, Infonic AG
Hi all
I'm working with cocoon 2.1 and I added Fins to it to do some charts.
Fins works fine and gives some good charts, but when I try to serialize an
svg output of Fins to an xml output, I get an invalid output.

My sitemap looks like this:

the svgxml serializer

-//W3C//DTD SVG 1.0//EN

http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd
 (I also tried other parameters, but the error remains the
same)

the pipeline:











The second pipeline works and shows the chart, but the first pipeline
produces invalid xml code like:
< xmlns="http://ipzs.it/chart"; xmlns:chart="http://ipzs.it/chart";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; fill-opacity="1"
color-interpolation="auto" color-rendering="auto" text-rendering="auto"
stroke="black" stroke-linecap="square" width="300" stroke-miterlimit="10"
stroke-opacity="1" shape-rendering="auto" fill="black"
stroke-dasharray="none" font-weight="normal" stroke-width="1" height="250"
font-family="'Arial'" font-style="normal" stroke-linejoin="miter"
font-size="12" image-rendering="auto" stroke-dashoffset="0">
 < xmlns="http://ipzs.it/chart"; id="genericDefs"/>
 < xmlns="http://ipzs.it/chart";>
 < xmlns="http://ipzs.it/chart"; id="defs1">
 < xmlns="http://ipzs.it/chart"; clipPathUnits="userSpaceOnUse"
id="clipPath1">
 < xmlns="http://ipzs.it/chart"; d="M0 0 L300 0 L300 250 L0 250 L0 0 Z"/>
 < xmlns="http://ipzs.it/chart"; clipPathUnits="userSpaceOnUse"
id="clipPath2">
 < xmlns="http://ipzs.it/chart"; d="M-113.680419921875 -230.421875
L186.319580078125 -230.421875 L186.319580078125 19.578125 L-113.680419921875
19.578125 L-113.680419921875 -230.421875 Z"/>
 < xmlns="http://ipzs.it/chart"; clipPathUnits="userSpaceOnUse"
id="clipPath3">
There is the namespace of Fins xmlns="http://ipzs.it/chart"; instead of the
right namespace tags. As the problem does not arise with the other
serializer, I assume, that the svg xml serializer is the problem.
The only suspicious entry I find in the logs is in the sitemap log:
[sitemap.serializer.html] (/cocoon/svg-minimal)
HttpProcessor[8080][4]/AbstractTextSerializer: Trax handler
org.apache.xalan.transformer.TransformerHandlerImpl handles correctly
namespaces
I don't know if it is a normal debug info or it reports an unclearity.
Are there any parameter changes, that will help? Or is it something else, I
have not thought of?
Thank's for all help
Ariane







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



Request Parameter based Stylesheet selection

2003-08-14 Thread Raman Jankiram
I have been struggling with this problem for the the past few days with 
Cocoon2.

I have a XSP which generates XML (typical generator). I want to pick style 
sheet based on the request parameters.

I have the sitemap like this

.
.
 
.

.
.
.

   
 
   

   
  


the http request will be something like this
http://www.jk.com/xsp/invoice-control?id=25
XSP generates the required XML from id=25 and we want the style sheet to be 
applied.

For some reason this does not work.

Please help.
-Raman
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: another question on search

2003-08-14 Thread Conal Tuohy
Hi Bill.
 
Yes you are confused: you should have 2 distinct pipelines: one to create or update 
the index (using the LuceneIndexTransformer) and a separate pipeline to search the 
index (using SearchGenerator).
 
Con

-Original Message- 
From: Bill French [mailto:[EMAIL PROTECTED] 
Sent: Fri 15/08/2003 12:59 p.m. 
To: [EMAIL PROTECTED] 
Cc: 
Subject: another question on search


 



RE: Source Writing Transformer examples (re)moved?

2003-08-14 Thread Carsten Ziegeler
I think the samples have been removed as they were not maintained.

Carsten

> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Source Writing Transformer examples (re)moved?
> 
> 
> Sounds like a 2.0 text. SWT has moved to core, so the samples too?
> 
> Joerg
> 
> 
> Michael Wechner wrote:
> > Within the online docu
> > 
> > 
> http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-t
> ransformer.html 
> > 
> > 
> > it says
> > 
> > 
> > If you have built Cocoon with the ScratchPad included (using: 
> ./build.sh 
> > -Dinclude.scratchpad.libs=yes webapp), there is a set of 
> samples set up, 
> > including tests at 
http://localhost:8080/cocoon/mount/editor/tests and a 
> demonstration editor at http://localhost:8080/cocoon/mount/editor/edit/
> ...
> 
> have these samples been (re)moved from the scratchpad?
> 
> I am using the latest 2.1 version from CVS
> 
> Thanks
> 
> Michael


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


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



RE: question about LuceneIndexTransformer

2003-08-14 Thread Conal Tuohy
Bill French wrote:
 
> thanks for your reply. do i generate the index once statically and then
> keep the index somewhere, or generate it every time the user performs a
> search? how do i go about limiting my results to those matching search
> terms?
 
The index transformer generates the index and keeps it by default in a folder called 
"index" in the Cocoon work directory. You can specify a different folder using the 
"directory" attribute of the lucene:index element. You only need to run the 
LuceneIndexTransformer pipeline when your content has changed and you want to update 
the index ... you certainly don't have to reindex whenever you want to search!
 
But the transformer only generates the index: to search the index you should use the 
SearchGenerator, which is well-documented on the Cocoon website.
 
Cheers
 
Con


Re: Ultimate Dynamicity

2003-08-14 Thread Niclas Hedhman

> Hello,
>
> I am not absolutely sure I understand your architecture.

It is harder to explain than it is in real life ;o)
Think; Independent networked XML resources where the type of each resource
is unknown until the response document is returned. BUT that each document
type has an installed set of XSL stylesheet for transformations in Cocoon.


> Yes, XSLT is namespace aware.  You can define namespaces prefixes for
> your namespaces in your stylesheet and match that way.  However, I think
> you can also do this:  xmlns:fooBar="http://www.foo.com/bar/1.0";
> match="fooBar:baz"> Would someone
> else more steeped in XSLT knowledge than I verify this?

Wow... Is this so??  I assume I could have the xmlns declaration at the
root node as well, right? I also assume then, that the document node

http://www.mycompany.com/mytype"; >


would be matched by the template

http://www.mycompany.com/mytype";
  match="bar:mynode" />

Really good stuff if this works. Will try later!


> Sounds like a custom Transformer to me.  I think you could set a
> pipeline parameter in your Generator denoting which Block this document
> is from and then have a lookup facility in your Transformer that applies
>  the correct stylesheet for that Block.

If was thinking of the generator creating a PI with the "type" for the
transformer to use. The sheer size of the TraxTransformer gave me a creepy
feeling and I didn't want to extend it.

> Hope this helps,

YES, it really does.

Thanks a lot!

Niclas



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



Re: SimpleFormTransformer - invalid XML generated?

2003-08-14 Thread Christian Haul
On 09.Aug.2003 -- 04:50 PM, Steve Schwarz wrote:
> Hi
> I'm using SimpleFormTransformer to process the results of 
> FormValidatorAction and I am getting invalid xml generated after applying 
> the transformation. It looks like when  elements are removed from 
> within surrounding  elements I end up with an empty element  
> followed by a closing element .

In 2.0.x there are a number of issues with this transformer. I believe
all are solved in 2.1. Please upgrade and report back.
(I believe the fixes are not in 2.0.5)

> I'm using 2.0.4 but I diffed the SimpleFormTransformer source against 2.1 
> and didn't see any obvious differences related to this..(??) Do I need to 
> specify some config/pipeline parameters to resolve this?

see above. 

> I also have a dumb question:
> What is the difference between using:  and 
>  ?

The former is displayed when the result is "error" or worse (when-ge translates
to "when greater or equal") while the latter is displayed _only_ in case of 
"error" e.g. not when it is "too_small".

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

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



Re: FW: link livesites: Massachusetts Alliance for Families

2003-08-14 Thread Joerg Heinicke
Added to the CVS, not online yet.

Joerg

Ashe, Shawn J wrote:
http://www.kidsnetmaff.org


-Original Message-
From:	Ashe, Shawn J 
Sent:	Wednesday, August 06, 2003 8:05 AM
To:	'[EMAIL PROTECTED]'
Subject:	link livesites: Massachusetts Alliance for Families

Provides communications and advocacy support for foster, adoptive and
kinship parents in Massachusetts... helping to provide for the needs of
those who work with the most vulnerable in our society: lost, neglected or
abused children.  Cocoon 2.0.4


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


Re: Ultimate Dynamicity

2003-08-14 Thread Ryan Hoegg
Hello,

I am not absolutely sure I understand your architecture, but I will give 
this a go:

* If I merge all the XSL stylesheets via xsl:include or xsl:import into a
master.xsl that is in the system, it can't work!! Because, AFAIK, I can't
get XSL transformation to do "template match" on nodes of a particular
namespace (or can I?).
Yes, XSLT is namespace aware.  You can define namespaces prefixes for your 
namespaces in your stylesheet and match that way.  However, I think you can also do 
this:
http://www.foo.com/bar/1.0"; 
match="fooBar:baz">
Would someone else more steeped in XSLT knowledge than I verify this?
* For any request, I don't know what type it is until the response from
the real-time server, and can't direct Cocoon to use the correct
stylesheet.
Sounds like a custom Transformer to me.  I think you could set a 
pipeline parameter in your Generator denoting which Block this document 
is from and then have a lookup facility in your Transformer that applies 
the correct stylesheet for that Block.

Hope this helps,
--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
Niclas Hedhman wrote:

Hi, everyone.

Not sure if this belongs on the users or dev list, but I post it here first.

Problem is a bit hard to explain, but here we go;

I have a system where N people creates Avalon Blocks for Real-time
applications (process control).
Each Block has a real-time part and a UI part.
Each Block re-utilizes a lot of standard JavaBeans, and the collection of
JavaBeans used are growing from various 3rd party developers.
The system has a Block that can introspect other Blocks, and provide
connectivity to the network.
It is possibly to retrieve arbitrary objects from the system, by using a
simple "name-dot-name" syntax, as in Jakarta Commons BeanUtils.
If the JavaBean has a "toXML()" method, that is called when the JavaBean
is requested and returned to the client.
Cocoon is used for the UI, and a custom generator takes part of the
request URL as the "requested object" in the remote real-time system. It
will hence be returned an text/xml document from the real-time system.
Cocoon will transform the XML into HTML via XSL.

Now!!
Since there are many independent developers of "real-time content", I have
prescribed the use of XML namespaces.
Each Block developer is responsible to create the standard/default set of
XSL stylesheets, for the new JavaBeans he/she defines.
BUT, I know have an aggregation problem of the Stylesheets that comprises
the UI side of things.
* If I merge all the XSL stylesheets via xsl:include or xsl:import into a
master.xsl that is in the system, it can't work!! Beacuse, AFAIK, I can't
get XSL transformation to do "template match" on nodes of a particular
namespace (or can I?).
* For any request, I don't know what type it is until the response from
the real-time server, and can't direct Cocoon to use the correct
stylesheet.
Does anyone have any idea on this?

Thanks
Niclas


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



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


Re: Basic Modular Database Add Question

2003-08-14 Thread Steve Schwarz
I wasn't careful enough when I read this: 
http://cocoon.apache.org/2.0/userdocs/actions/database-actions.html

Inorder for the action to make the association with the form the parameter's 
"name" attribute should be of the form: table_name.column_name.
i.e. 
for table contact column firstName.

Sorry to have bothered the list,
Steve
In the sitemap log I get lines like:
DEBUG   (2003-08-08) 13:22.36:950   [sitemap.action.insert] 
(/cocoon/contact-add) Thread-6/DatabaseAction: Trying
to set column contact.firstName from request-param using getAttribute 
method
DEBUG   (2003-08-08) 13:22.36:950   [sitemap.action.insert] 
(/cocoon/contact-add) Thread-6/DatabaseAction: Setting column 
contact.firstName [0] null

for each entry in the db_config.xml. Seems like the action is correctly 
reading my config file but I'm not configured correctly to get the data out 
of the post.
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Xalan in Cocoon-2.1 sorting problem

2003-08-14 Thread James Cummings

Hi there,

I'm having a problem with Xalan in cocoon-2.1 in which I process an
attribute containing whitespace separated manuscript sigla (IDREFS)
and then make a drop down list based using corresponding text
in another file.

The file(s) in question will look something like:

   some other stuff 


The mss.xml file contains some elements like:

descriptive text

descriptive text

descriptive text

The XSLT as it stands works fine: It goes, and makes
(manually) a tokenized list of the whitespace separated
witness in aBody/@wit, but instead uses the corresponding
witness's @shortname instead of the abbreviation.

The problem comes in sorting.  If I use
 which bases it on the
abbreviation separated off from the set of IDREFS
then everything is sorted fine:
"Blort-A, Blort-B, FOO"
but using the @shortnames:
"Blort in Version A, Blort in Version B, A Foo Manuscript"

Obviously, this doesn't look alphabetically to the users,
since A Foo should come before Blort.

But, if I change it to:

which would do this, I get a NullPointerException from Xalan.

Any suggestions?  I looks really silly to not have this
be sorted alphabetically. XSLT appended below.

Many thanks,
James

--

http://www.w3.org/1999/XSL/Transform";
xmlns:xalan="http://xml.apache.org/xalan"; exclude-result-prefixes="xalan" >


  
  



  







Critical Edition 
 


Critical Edition of 



  

   

  



See just the reading for:

  
  



   
   
  
 





 
 

 Orthogonal views:
   Content  

   Pretty 
content  





 
 



 
   
   








 
 
 











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



Flow and the authentication framework

2003-08-14 Thread Steve K
Hey folks --

Total newbie here.  I've been spending the last week getting up to speed on 
Cocoon, especially the new flow stuff and how it impacts the action-based 
authentication framework.  If flow essentially deprecates actions in general, 
what is the proper way to access the authentication framework from flow?  The 
petstore sample seems to use its own user database, which would lead me to 
believe that the current authentication framework is not intended to be used 
with flow?

cheers,
-steve

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



Re: use a pipeline to create a file?

2003-08-14 Thread Upayavira

On 9 Aug 2003 at 20:21, danl wrote:

> I'm currently using a pipeline to generate a list of XML files in a
> directory that I then present as an HTML list of links to the user.
> I'm doing this in the following way:
> 
> 1. GENERATE - Use DirectoryGenerator to get a list of  xml files in a
> directory based on what the user's request path. 2. TRANSFORM - XSL
> stylesheet adds xinclude directives  with XPath expressions to extract
> parts of each of the files in the directory 3. TRANSFORM - xinclude
> transformer 4. TRANSFORM - transforms the XML with the included parts
> of each file to HTML. 5. SERIALIZE
> 
> The problem is that this process turns out to be too slow for 
> interactive use.  What I want to do is add a pipeline to the 
> adminsitrative section of the site to go through this process and
> create either a static HTML file, or an XML file that contains the
> processing after step 3 above, so all that is needed is one simple
> transformation to HTML and then serialization. How do I do this?
> Again, I want to create a link in the administrative section of the
> site so when I click on it, the result is a file such as
> "directoryname-list.xml" that can later be used by a user accessible
> pipeline to create a browesable list of the xml files in that
> directory.
> 
> Can I use a view to direct the XML stream after step 3 to a file? What
> about a transformer?

To my knowledge, there are currently two ways to write to files in Cocoon: the 
SourceWritingTransformer and the Flow processTo (or something like that). The 
former you access as a part of your pipeline, the latter you call from within a 
flowscript.

In time, you'll be able to have Cocoon in a servlet generate static versions of your 
pages (using a version of the command line interface), but that's some time away.

Regards, Upayavira


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



Re: Link Livesites:

2003-08-14 Thread Joerg Heinicke
Added to the CVS, not online yet.

Joerg

Joey Lawrance wrote:

Portions of the American Memory exhibit of the Library
of Congress use Cocoon:
http://memory.loc.gov/cocoon/patriotism/loc.natlib.ihas.20027/
Need proof?
http://memory.loc.gov/cocoon/
Joey


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


Re: Cocoon Database samples not working?

2003-08-14 Thread Derek Hohls



Geoff 
 
I definitely downloaded and used the JDK1.4 compatible
version - that is why I was surprised it wasn't working.
As I said, I have used 2.0.4 with JDK1.3 without any
problems - but I need to upgrade to 1.4 for other apps -
I cannot do so if Cocoon does not work properly.
 
Are there any pacthes or solutions for this problem?
Should I alert on of the developers?
 
Thanks
Derek>>> [EMAIL PROTECTED] 10/08/2003 08:50:11 
>>> Derek Hohls wrote: > Hi > > I am trying to 
get Cocoon talking to a database on a new installation. > At the moment, 
I cannot even get the Cocoon hsql database > samples to work. > 
> The error message is: > > > An error occurred 
> The org.apache.cocoon.www.sitemap_xmap notifies that > 
org.apache.cocoon.ProcessingException says: > > Exception in 
ServerPagesGenerator.generate() > > More precisely: > 
> org.apache.cocoon.ProcessingException: > Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: > Could not 
get the datasource > 
org.apache.avalon.excalibur.datasource.NoValidConnectionException: > No 
valid JdbcConnection class available > > > I am running: 
> > JDK1.4.0 > Cocoon 2.0.4 > Tomcat 4.0.4 > 
Windows2000 > > I have seen previous posts on this topic on the 
mailing list, but no > definitive solutions. > > Surely the 
Cocoon samples, at least, should work (as they seemed to do > on the 
JDK1.3 version of Cocoon)?! Make sure that the version of cocoon you are 
running is build with JDK 1.4 if you are running on JDK 1.4. There was (no 
longer true in 2.1) a jvm version dependency because of changes in JDBC 
between the versions. HTH, Geoff Howard 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
-- 
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.



Re: XMLForms and validation

2003-08-14 Thread Joerg Heinicke
From the package structure 
(http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/xmlform/java/org/apache/cocoon/components/validation/) 
I guess Schematron is the default validation schame language, but you 
can implement another one.

Joerg

g[R]eK wrote:

<. Hi cocoon users! .>

   I'm learning about form handling with Cocoon from this how-to:
   http://cocoon.apache.org/2.1/howto/xmlform-wizard/howto-xmlform-wizard.html
   In overview I read this fragment:
   "XML schema languages are used to validate the form input."
   I was very pleased with this fact. But when I reached step 2 of how-to my
   contentment finished. I saw the schematron validation.
   I think it's some paradox or mistake.
   Does exist some explanation?


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


problem accessing attribute in xsl with cocoon

2003-08-14 Thread Miguel Carvalho
HI, i'm having a little trouble in putting a transformer in xsl to work with
cocoon.
The thing is, after i apply a java trasformer made by me i get the following
result in the "view source" of IE









Titulo com rating 2

Texto





Titulo do artigo com rating igual a 1

texto do artigo com rating igual a 1

img1.jpg





Titulo do artigo com rating igual a 2

texto do artigo com rating igual a 2

img1.jpg





Titulo do artigo com rating igual a 2

texto do artigo com rating igual a 2

img1.jpg








and this is good.

After this i want to apply another generator in xsl,





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

















article













The sitemap defined is as follows











and the answer sent to the browser is









wich is not right.
I tried to copy the first XML Fragment and put it in a file with the name
daexmltest.xml and apply the XSL referenced earlier (pipeline bellow)




 



and the response to the browser was






article
Titulo com rating 2Texto
article
Titulo do artigo com rating igual a 2texto do artigo com rating
igual a 2


and this is rigth, because it accesses the attribute @layouttype and returns
only the  tags that has @layouttype=2


If you have any ideas , of how to handle this ...

Thanks in advance
Miguel Carvalho



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



Re: Cocoon-2.1rc1 build error

2003-08-14 Thread Bhargavi Atchutuni
Hi,

This problem arises when you use Winzip.  Winzip does
not seem to extract all the empty lib folders.  Use
WinRAR to extract the zip file for example, and you
should be good to go.

Good luck.
Bhargavi Atchutuni


--- Gautam Ganguly <[EMAIL PROTECTED]> wrote:
> hi all,
>I just now downloaded the cocoon-2.1rc1-src.zip 
> from the release
> candidates download area for windows and when i try
> to build it using
> the build war option i get these error,which goes
> something like
> these...
> 
> session-fw-prepare:
> Created dir:
> C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\cocoon-2.1
> rc1\blocks\session-fw\dest
> Created dir:
> C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\cocoon-2.1
> rc1\blocks\session-fw\conf
> Copying 5 files to
> C:\cocoon\cocoon-2.1\cocoon-2.1rc1\build\coco
> on-2.1rc1\blocks\session-fw\conf
> Caught exception
> (org.apache.tools.ant.BuildException) while
> expanding
> session-fw.classpath:
>
C:\cocoon\cocoon-2.1\cocoon-2.1rc1\src\blocks\session-fw\lib
> not found.
> 
> session-fw-compile:
> Copied 6 empty directories to
> C:\cocoon\cocoon-2.1\cocoon-2.1rc1
> \build\cocoon-2.1rc1\blocks\session-fw\dest
> Compiling 26 source files to
> C:\cocoon\cocoon-2.1\cocoon-2.1rc1\
> build\cocoon-2.1rc1\blocks\session-fw\dest
> 
> BUILD FAILED
>
file:C:/cocoon/cocoon-2.1/cocoon-2.1rc1/build/cocoon-2.1rc1/temp
> /blocks-build.xml:1347:
> C:\cocoon\cocoon-2.1\cocoon-2.1rc1\src\b
> locks\session-fw\lib not found.
> 
> Total time: 49 seconds
> 
> Any clues as to what might be wrong??
> 
> regards
> Gautam
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

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



"Continuation" is not defined under Weblogic 7.0

2003-08-14 Thread Chris Clark
We're trying to install Cocoon (2.1m2) under Weblogic 7.0 (not sure of SP level).

Everything has gone reasonably well except that the JXForms aren't working.
We can get to the sitemap and it processes the request, but when it tries to display 
our JXForm we get an error message.  It appears that Weblogic can't locate the 
Continuation class/interface when trying to execute the "new Continuation" in 
system.js.  We explicitly added:
/apps/foundation/elrs/cocoon-2.1m2/build/webapp/WEB-INF/lib/rhino1.5r4-continuations-20030323.jar
under the WEB-INF/lib but it didn't help.

We've got it installed "exploded" at the moment because we had a whole ton of errors 
when we tried to use the war version.

Any help would be much appreciated.
Thanks,
Chris

Here's the error message:

An Error Occurred
"Continuation" is not defined.
org.apache.avalon.framework.CascadingRuntimeException: "Continuation" is not defined.
full exception chain stacktrace[show] 
Original Exception: undefined: "Continuation" is not defined. 
(resource://org/apache/cocoon/components/flow/javascript/system.js; line 16)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:580)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:541)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1093)
at 
org.mozilla.javascript.gen.c1.call(resource://org/apache/cocoon/components/flow/javascript/system.js:16)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1222)
at 
org.apache.cocoon.components.flow.javascript.JavaScriptInterpreter.callFunction(JavaScriptInterpreter.java:583)
at 
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:196)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at org.apache.cocoon.Cocoon.process(Cocoon.java:628)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)
at 
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)

stacktrace[show] 
org.apache.avalon.framework.CascadingRuntimeException: "Continuation" is not defined.
at 
org.apache.cocoon.components.flow.javascript.JavaSc

Re: Sitemap choose statement?

2003-08-14 Thread Bartłomiej Urbański
Andrzej Radzki <[EMAIL PROTECTED]> wrote:
>
> Hello.

hi

> I want to serve different xml files, which depends on
> {session-attr:locale} variable, but with default value 'pl'.

http://cocoon.apache.org/2.1/userdocs/selectors/selectors.html

b.

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



Re: [Help] Installing on JBoss/Jetty

2003-08-14 Thread Thorsten Scherler
Hi Phil,

I am trying the exact same thing, but without any mayor success! I found 
this site: http://www.geocities.com/rajnukala/Env_Document/DevEnv_Setup.htm

Maybe it works for you!

Anyway, does anybody have experience with deploying cocoon on JBoss?
...I would like to deploy with eclipse, but I can't!
Can't we have our own building system and one that is working with eclipse?
Help, links and suggestion are very welcome.

[EMAIL PROTECTED] wrote:
Newbie question here.  I am beginning work on a project that I think Cocoon 
will be a good fit.  I downloaded the latest source (2.1-rc1) and am trying 
to get it deploying to JBoss/Jetty 3.2.1.  I built cocoon using JDK 1.4.1_02 
and dropped the WAR file in a JBoss server directory.

I am having a few problems that I think are related.  When I first tried to 
deploy cocoon, I was getting deployment problems.  During the deployment I 
would get FileNotFoundExceptions when Jetty was trying to examine the 
web.xml.  I fixed that problem by placing the cocoon.war file in a dir named 
zCocoon in the deploy dir to ensure that cocoon deploy last.

Then when I launch the URL for cocoon I got an error telling me that hsqldb 
was not supported in a WAR.  I then rebuilt with the hsql block turned off 
and redeployed.

I now get the Cocoon welcome page, but anytime I try to access another page 
I get more FileNotFoundExceptions when looking for the various xsl 
stylesheets.  However, if I examine the location that when the xsl can not 
be found I see that it is there.

Thanks in advance for any light you can shine on this one.

Phil

BTW, Here is a typical trace:

Original Exception: org.apache.excalibur.xml.xslt.XSLTProcessorException: 
Exception in creating Transform Handler
	at 
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValid
ity(XSLTProcessorImpl.java:380)
	at org.apache.cocoon.transformation.TraxTransformer.setup
(TraxTransformer.java:302)
	at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipelin
e(AbstractProcessingPipeline.java:393)
	at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.
setupPipeline(AbstractCachingProcessingPipeline.java:683)
	at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipel
ine(AbstractProcessingPipeline.java:507)
	at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:469)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke
(SerializeNode.java:150)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invok
eNodes(AbstractParentProcessingNode.java:84)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke
(PreparableMatchNode.java:164)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invok
eNodes(AbstractParentProcessingNode.java:108)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:164)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invok
eNodes(AbstractParentProcessingNode.java:108)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:161)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:327)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:309)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke
(MountNode.java:133)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invok
eNodes(AbstractParentProcessingNode.java:84)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke
(PreparableMatchNode.java:164)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invok
eNodes(AbstractParentProcessingNode.java:108)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:164)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invok
eNodes(AbstractParentProcessingNode.java:108)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:161)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:327)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:309)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:621)
	at org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:1088)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:360)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:294)
	at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:558)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
	at org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebAppli

Antwort: Re: Re: [resent] map:part's processed in parallel?

2003-08-14 Thread Kai Bruns

Or move the code that pulls the shopping cart from the session to an action
into your "getCart" pipeline. Then they should all be calculated at setup
time ;-).




   
   
"Upayavira"
   
<[EMAIL PROTECTED]An: [EMAIL PROTECTED]
  
uk>  Kopie:
   
 Thema:  Re: Re: [resent] map:part's processed 
in parallel?   
11.08.2003 
   
10:33  
   
Bitte  
   
antworten an   
   
users  
   
   
   
   
   




On 11 Aug 2003 at 1:19, Sonny Sukumar wrote:

>
> Aha, I think you're onto something there.  The results I get make
> sense if indeed 1.) all of the map:part pipelines are set up before
> any of them executes, and 2.) if actions are executed during pipeline
> setup.
>
> I think we're mostly unclear on #1, but it does seem like that's
> what's happening.  Assuming it is, do you have any suggestions for
> refactoring/rearranging things both in the sitemap and otherwise to
> solve the shopping cart subtotal calculation problem I detailed below?

Move the code to calculate your line item costs from an action into your
getLineItemCosts.xsp file. Then they'll all be calculated at generation
time.

Possible?

Regards, Upayavira

> Thanks for all of your help,
>
> Sonny
>
> >Hi Sonny,
> >
> >I haven't proofed yet but I think your problem may result from the
> >way cocoon sets up the pipelines to be executed. I think what happens
> >is that during pipeline setup for your main matcher (showCartPage)
> >the pipelines for the two parts (getCart and getLineItemCosts) are
> >set up resulting in your action (calculate-line-item-costs) being
> >executed, because actions are executed during pipeline-setup. After
> >setup these pipelines (and so the serverpages) are executed.
> >
> >As I said, I haven't proofed, but maybe it's a hint you can follow.
> >
> >HTH,
> >
> >Kai
> >
> >Thanks for examining the code for me Upayavira.  I saw another post
> >in the archives explaining why it'd be too hard for the map:parts to
> >be constructed in parallel and for no real gain (SAX events from each
> >part coming in at random times and getting mixed up).
> >
> >So I'm not sure.  But please take a look at my specific problem and
> >see if there's something I'm missing (must be!):
> >
> >This is in the sitemap:
> >
> >
> >
> >
> >
> >
> >
> >   
> >   
> >   
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >The first map:part (whose src="cocoon:/getCart") comes out fine, and
> >within
> >
> >its XSP code it pulls the shopping cart from the session.  The cart
> >just has 1 item (product) in it, and that the XSP modifies the
> >quantity of the item from 1 to 0 (I tested that it does).
> >
> >The 2nd map:part is then executed, and executes an action that
> >calculates the subtotal for the cart by pulling the cart from the
> >session.  HERE is the strange behavior, because the quantity for the
> >single cart item is now 1, when it should be 0 (I verified this by
> >logging).
> >
> >So now the 2nd part execution finishes by generating from
> >xml/getLineItemCosts.xsp.  I actually tried pulling the cart from the
> >session again in this code and seeing what the quantity isand
> >it's ZERO!
> >
> >So my question is: If my Action executes in between the 2 XSPs and
> >both of those output 0 for the quantity, how can the Action always
> >see it as 1? This is what got me asking if map:parts are constructed
> >in parallel.
> >
> >I'd appreciate all of your insights,
> >
> >Sonny
> >
> > >From: "Upayavira" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: [resent] map:part's processed in parallel?
> > >Date: Sun, 10 Aug 2003 23

Re: RSS aggregation in a Cocoon framework

2003-08-14 Thread Tony Collen
Geoff Deering wrote:
You might want to take a look at these URLs

http://archives.real-time.com/pipermail/cocoon-users/2003-March/030526.html
http://www.manero.org/weblog/archives/87.html
http://www.webweavertech.com/ovidiu/weblog/archives/11.html
http://www.xml.com/pub/a/2003/04/23/cocoon-magazine.html
http://www.oreillynet.com/pub/wlg/2426
My RSS weather project is all about the generation, not aggregation of RSS.  But, if you have any 
questions about what I'm doing, feel free to ask. By looking at your comments on Ovidiu's weblog, 
you seem to have found what you needed :)



Tony

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


another question on search

2003-08-14 Thread Bill French
hi again,

please forgive the ceaseless questions on lucene searching. i'm using 
cocoon 2.1 and the LuceneIndexTransformer to index my documents. i 
wrote a transformation that builds an index (it's called siteindex.xml) 
according to the spec at 
http://wiki.cocoondev.org/Wiki.jsp?page=LuceneIndexTransformer. i have 
the following in my sitemap, which is obviously the problem:










i'm getting the following error:

Internal Server Error
Message: Failed to execute pipeline.
Description: org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: java.lang.NullPointerException
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI
search

cause
java.lang.NullPointerException
request-uri
/search
i'm afraid i can't figure out how to pass the search terms to the 
cocoon search generator. is this all i'm doing wrong, or am i missing 
something else, too? an index was created, because there's a bunch of 
files in my
$TOMCAT_HOME/work/Standalone/localhost/_/cocoon-files/index directory, 
timestamped according to the first time i requested the search. if you 
have any pointers or url's to direct me to, i would be most grateful.

oh yes, my environment:
mac os 10.2.6
java 1.4.1
tomcat 4.1.24
cocoon 2.1
thanks very much,

--bill

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


Build a XML-Tree recursiv in XSP

2003-08-14 Thread Marc Baumgartner
Hello all,

I want to build dynamiclly a tree of nodes inside a xsp. I have tried 
something like this:





insertNode(anObject);




 
private void insertNode(Object obj){


text of Object 



// insert all children  
for (int i= 0;i < obj.children.length; i++){
insertNode(obj.children[i]; 
}
}



But this doesn't work. Is there an Workaround possible?

Thanks,
Marc



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



Re: SourceWritingTransformer error

2003-08-14 Thread Ferenc Kiraly
Upayavira wrote:
The source writing transformer in 2.0.x is different from that in 2.1. Use something 
like the following in 2.0.x:
Looking at the source file SourceWritingTransformer.java I must strongly
disagree.
   http://apache.org/cocoon/source/1.0"; overwrite="true">
  
   

Regards, Upayavira

On 12 Aug 2003 at 12:22, Ferenc Kiraly wrote:


Hi!

I'm trying to use the SourceWritingTransformer to generate a file, but
I consistently get the following error:
java.lang.RuntimeException: Errors in XSLT transformation:
Fatal: org.apache.cocoon.ProcessingException: Cannot get 'xml'
serializer
The error occures if I specify a serializer in the sitemap or not.

Im using cocoon 2.0.5. here is the relevant snippet from my XSP:

  
page
volatile/my.xml

  
Stuff.
  

  


feri.





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





--

	feri.

Ferenc Kiraly
tel: +386 1 472 8429
gsm: +386 41 252503


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


Cocoon portal and administration

2003-08-14 Thread Sylvain.Thevoz
Hello,

I'm using the Cocoon portal and I have modified the authentication for using a LDAP 
repository instead of a XML file to authenticate users.

But now the functions inside the coplet "Administration" doesn't work anymore (User 
management and Portal management). I can't access to these functions anymore.

How the "portal-conf" generator work?
What do I need to change?

Thanks
Sylvain Thevoz



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



RE: where to download LogFactor5?

2003-08-14 Thread Reinhard Pötz
From: Austin Tashis [mailto:[EMAIL PROTECTED] 

> On Sunday, August 10, 2003, at 11:32  PM, Sonny Sukumar wrote:
> 
> >
> > I've tried numerous times to access servidium.com to download what
> > some people say is the best log analysis tool, LogFactor5, but the 
> > site is always down.  The tool was apparently donated to the open 
> > source community, which is why it's free.
> >
> > Does anybody know where else it might be available for download?
> 
> It is distributed as part of log4j.
> http://jakarta.apache.org/log4j/docs/index.html


It is aslo part of the Cocoon distribution. Change the configuration of
the logger in logkit.xconf to use logfactor5.

See also http://wiki.cocoondev.org/Wiki.jsp?page=ConfiguringTheLogs

Cheers,
Reinhard


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



RE: ReSend: resources in Cocoon 2.0.4

2003-08-14 Thread Gould, Troy (ELS)
Thanks Bruno for that info.  

However, I've using the compiled sitemap and making sure that the resource
I'm calling, contains a serializer.  This results in the same error as I was
getting before.

If I make the changes to the cocoon.xconf file to make use of the
interpreted sitemap engine, I begin to get the following when trying to call
my pipeline.

org.apache.avalon.framework.configuration.ConfigurationException: This
sitemap contains no resources. Cannot call at
file:/C:/views/tgould_bb_view/src/PortalWeb/Web Content/sitemap.xmap:114:33
at
org.apache.cocoon.components.treeprocessor.sitemap.CallNodeBuilder.linkNode(
CallNodeBuilder.java:91)
at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.linkNodes(Defa
ultTreeBuilder.java:371)
at
org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage.linkNodes
(SitemapLanguage.java:334)
at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT
reeBuilder.java:432)
at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT
reeBuilder.java:390)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeP
rocessor.java:366)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:330)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:293)
at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:678)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:331)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:117)
at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:239)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:151)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)
at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)

-Original Message-
From: Bruno Dumon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: Re: ReSend: resources in Cocoon 2.0.4


On Tue, 2003-08-12 at 17:40, Gould, Troy (ELS) wrote:
> First, can you even use Resources in Cocoon 2.0.4?
> 
> Does a resource have to follow the same rules of a pipeline (1 Generator,
0
> or more Transformers, and 1 Serializer?  I've seen different docs saying
> different things.

It depends on the implementation of the sitemap engine you are using. In
2.0.4, the default implementation is the "compiled sitemap", which only
supports resources that finish a pipeline, thus that contain 0 or more
transformers and end in a serializer.

The "interpreted sitemap engine" on the other hand is more flexible and
allows resources to contain any part of a pipeline. They are not
required to end in a serializer.


>   at
> org.apache.cocoon.www.sitemap_xmap.matchN125(sitemap_xmap.java:1410)
>   at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:911)
>   at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:832)

And from this it is clear that you're using the compiled engine. To
switch to the interpreted engine, edit the file WEB-INF/cocoon.xconf,
and comment out (or remove) the following lines:

  

and uncomment the following line:
  

thus change it into:
  


-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Comp

RE: MS Word Transformer

2003-08-14 Thread Chris


You can transform from rtf to xml.  You can also
have a macro that saves your .doc as rtf.  Or just
save all your msword as rtf all the time.

On  http://www.tetrasix.com/   you will find majix.
It will convert rtf to xml.  If is java based and they have
the source code.

In the future, I think a better solution will be the new office
xml or openoffice.org--> they say new version has docbook and
xml import and export.



--- Nicolas Toper <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I see 2 solutions:
> 
> 1/ You could try using the Office's new XML capabilities (I think it's
> called Xdoc) and therefore just serialize into another XML document (only
> for Office 11).
> 
> 2/ There are a few Java/Word soft (POI is one of them). Just write the
> serializer from the classes.
> 
> Actually, I need one myself so I'd like to help.
> 
> Nicolas
> 
> -Message d'origine-
> De : Upayavira [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 11 août 2003 19:33
> À : [EMAIL PROTECTED]
> Objet : RE: MS Word Transformer
> 
> 
> On 11 Aug 2003 at 10:21, Julian wrote:
> 
> > Thanks, but I only see a XLS and RTF transformer.  Is
> > there a MS Word transformer?
> 
> There isn't at present a .doc serializer. You have to use RTF. Maybe at some
> point
> the POI community will give us one!
> 
> Regards, Upayavira
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Cocoon is confused

2003-08-14 Thread Tim Bachta
I am trying to open a cocoon page from another web page and I am getting
an error.  The error is cocoon confusion.  The way I am calling the
cocoon page is a hyperlink url of
http://localhost:8080/cocoon/login?userid=11

 This is a sniplet of my sitemap:



   

   

 

   

   



 

 

The xsp page is looking for a request parameter of userid.  The page
works fine when I hard code the userid on the xsp and remove the
?userid=11 from the url string but I need that to send the id in based
on login from previous page.  Thanks for the help.


 

Tim

 



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



conflicting batik versions in cocoon-2.1rc1 and its version of fop

2003-08-14 Thread neil
Hi,
Before the final cocoon-2.1 release
is it possible to get the same version of batik used in cocoon and in its version of 
fop?

Details...
I've been trying out cocoon/fins/jfreechart/fop/batik to produce charts using scalable 
pdf drawing commands so that the charts look
good over a wide range of resolutions (e.g. screen and printer).

cocoon-2.1rc1 includes fop-0.20.5 and batik-1.5b5
but fop-0.20.5 was built with batik-1.5b4
and I think because of this I got in 
C:\jakarta-tomcat-4.1.24-LE-jdk14\logs/localhost_log.2003-08-12.txt:

- Root Cause -
java.lang.NoSuchMethodError:
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Ljava/lang/String;Ljava/io/InputStream;)Lorg/apache/batik/dom/svg/SVGO
MDocument;
at org.apache.fop.image.analyser.SVGReader.loadImage(Unknown Source)

I got it working by rebuilding fop-0.20.5 from source after replacing its 
batik-1.5b4.jar with cocoon's batik-1.5b5.jar
(for good measure I also replaced its older xerces and xalan jars with cocoon's 
versions).



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



Few authentication questions

2003-08-14 Thread Sonny Sukumar
Hi guys,

Today is my first venture into the Cocoon authentication framework, and I 
got a little confused on some points:

1.) Are the sunShine components the same as those described in this doc?:

http://cocoon.apache.org/2.0/developing/webapps/authentication.html

They seem to be one and the same, yet all the names are different in that 
doc.  Does anybody know why?

2.) That doc also describes "session contexts", which I've never heard of or 
seen elsewhere.  Are such "contexts" entirely different than session 
attributes?

3.) The doc furthermore has this line in it:



So I assume  is a logichsheet call, but I've only seen 
a logicsheet called xsp-session that provides an interface to a Session 
instance.  And I don't see any "getxml" element for that logicsheet.

I'd be grateful if someone could point me in the right direction.

Thanks,

Sonny

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: MS Word Transformer

2003-08-14 Thread Nicolas Toper
ok get it sorry :=)

nicolas

-Message d'origine-
De : Steve Krulewitz [mailto:[EMAIL PROTECTED]
Envoyé : mardi 12 août 2003 16:55
À : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : RE: MS Word Transformer


> yup but it doesn't work on non IE browser (or used to)
>
> I tried this and it crashed my Netscape (although it was a copple of years
> ago).

If your browser does not handle the application/msword content-type, it
should prompt you to save the file.  If this crashes your browser you have a
buggy browser.  What is also nice about this approach is that the Office
HTML file will look reasonable when shown as HTML, which is nice for users
that don't have MSWord.

cheers,
-steve


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



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



Re: Re: [resent] map:part's processed in parallel?

2003-08-14 Thread Upayavira
On 11 Aug 2003 at 1:19, Sonny Sukumar wrote:

> 
> Aha, I think you're onto something there.  The results I get make
> sense if indeed 1.) all of the map:part pipelines are set up before
> any of them executes, and 2.) if actions are executed during pipeline
> setup.
> 
> I think we're mostly unclear on #1, but it does seem like that's
> what's happening.  Assuming it is, do you have any suggestions for
> refactoring/rearranging things both in the sitemap and otherwise to
> solve the shopping cart subtotal calculation problem I detailed below?

Move the code to calculate your line item costs from an action into your 
getLineItemCosts.xsp file. Then they'll all be calculated at generation time.

Possible?

Regards, Upayavira

> Thanks for all of your help,
> 
> Sonny
> 
> >Hi Sonny,
> >
> >I haven't proofed yet but I think your problem may result from the
> >way cocoon sets up the pipelines to be executed. I think what happens
> >is that during pipeline setup for your main matcher (showCartPage)
> >the pipelines for the two parts (getCart and getLineItemCosts) are
> >set up resulting in your action (calculate-line-item-costs) being
> >executed, because actions are executed during pipeline-setup. After
> >setup these pipelines (and so the serverpages) are executed.
> >
> >As I said, I haven't proofed, but maybe it's a hint you can follow.
> >
> >HTH,
> >
> >Kai
> >
> >Thanks for examining the code for me Upayavira.  I saw another post
> >in the archives explaining why it'd be too hard for the map:parts to
> >be constructed in parallel and for no real gain (SAX events from each
> >part coming in at random times and getting mixed up).
> >
> >So I'm not sure.  But please take a look at my specific problem and
> >see if there's something I'm missing (must be!):
> >
> >This is in the sitemap:
> >
> >
> >
> >
> >
> >
> >
> >   
> >   
> >   
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >The first map:part (whose src="cocoon:/getCart") comes out fine, and
> >within
> >
> >its XSP code it pulls the shopping cart from the session.  The cart
> >just has 1 item (product) in it, and that the XSP modifies the
> >quantity of the item from 1 to 0 (I tested that it does).
> >
> >The 2nd map:part is then executed, and executes an action that
> >calculates the subtotal for the cart by pulling the cart from the
> >session.  HERE is the strange behavior, because the quantity for the
> >single cart item is now 1, when it should be 0 (I verified this by
> >logging).
> >
> >So now the 2nd part execution finishes by generating from
> >xml/getLineItemCosts.xsp.  I actually tried pulling the cart from the
> >session again in this code and seeing what the quantity isand
> >it's ZERO!
> >
> >So my question is: If my Action executes in between the 2 XSPs and
> >both of those output 0 for the quantity, how can the Action always
> >see it as 1? This is what got me asking if map:parts are constructed
> >in parallel.
> >
> >I'd appreciate all of your insights,
> >
> >Sonny
> >
> > >From: "Upayavira" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: [resent] map:part's processed in parallel?
> > >Date: Sun, 10 Aug 2003 23:56:27 +0100
> > >
> > >Sonny,
> > >
> > >I've taken a look at the source for the Aggregator. In that code
> > >there's
> >no
> > >reference to
> > >threading, however it does use a parser to interpret the sources
> > >that the  nodes refer to. It is possible that those
> > >parsers are multi-threaded, and right now finding that out is
> > >beyond my level of ability. Maybe someone else can
> >help
> > >more...
> > >
> > >Regards, Upayavira
> > >
> > >On 10 Aug 2003 at 15:02, Sonny Sukumar wrote:
> > >
> > > >
> > > > [I didn't get any response, so I was wondering if somebody knows
> > > > about this.
> > > >   It would be really helpful.]
> > > >
> > > > Hey all,
> > > >
> > > > Are map:parts in a map:aggregate executed in parallel or in
> > > > serial? Because I wrote one where the 2nd part should only start
> > > > to be generated after the first has completed, but the output
> > > > indicates a parallel execution instead of a serial one.  For
> > > > example:
> > > >
> > > > 
> > > >   
> > > >   
> > > > 
> > > >
> > > > Here I need cocoon:/src2 to only begin its generation after
> > > > cocoon:/src1 is completed.  If they do go in parallel, is there
> > > > any way to force the parts to be generated serially?
> > > >
> > > > Thanks,
> > > >
> > > > Sonny
> > > >
> > > > 
> > > > _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> > > > http://join.msn.com/?page=features/virus
> > > >
> > > >
> > > > 
> > > > - To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED] For additional commands,
> > > > e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
> > >---
> > >

cocoon sax events and transformer doubts

2003-08-14 Thread Miguel Carvalho
Hi, i'm having some doubts about the way the sax events are created in a
transformer in java...

I'm asking this question because i wrote a transformer in java, but i want
to apply another transformer in xsl after that and i can't access the
attributes in the nodes...

this is the code of the transformer i wrote..

package pt.laseeb.dae.transformer;

/*
 * File: daeTransformer.java
 *
 * Project: Design Automatico e Evolutivo
 *
 * Authors: Paulo Sérgio Silva Paixao- [EMAIL PROTECTED]
 *  Miguel Angelo Rodrigues Carvalho - [EMAIL PROTECTED]
 *
 * Date: 4/Ago/2003
 *
 * Trabalho de Fim de Curso - Design Automático e Evolutivo
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 *
 */

import org.apache.cocoon.transformation.AbstractTransformer;
import org.apache.cocoon.environment.SourceResolver;
import org.apache.cocoon.ProcessingException;
import org.apache.avalon.framework.parameters.Parameters;
import org.xml.sax.SAXException;
import org.xml.sax.Attributes;
import org.xml.sax.helpers.AttributesImpl;
import java.util.Map;
import java.io.IOException;

public class daeTransformer extends AbstractTransformer
{
public static final String DOCUMENT_ELEMENT = "document";
public static final String CONTENT_ELEMENT = "contents";
public static final String ARTICLE_ELEMENT = "article";
public static final String ARTICLE_TITLE_ELEMENT = "title";
public static final String ARTICLE_TEXT_ELEMENT = "text";
public static final String ARTICLE_IMAGE_ELEMENT = "image";

protected static final int MODE_NONE = 0;
protected static final int MODE_ARTICLE = 1;
protected static final int MODE_TITLE = 2;
protected static final int MODE_TEXT = 3;
protected static final int MODE_IMAGE = 4;

protected int mode;
protected StringBuffer articleText;
protected StringBuffer articleTitle;
protected StringBuffer articleImage;

protected Attributes attr;


public void setup(SourceResolver resolver, Map objectModel, String src,
Parameters par)
throws ProcessingException, SAXException, IOException
{
this.mode = MODE_NONE;
this.articleImage = new StringBuffer();
this.articleTitle = new StringBuffer();
this.articleText = new StringBuffer();
}


public void startElement(String namespaceURI, String localName, String
qName,
Attributes attributes) throws SAXException
{
AttributesImpl newAttr = new AttributesImpl();

if (localName.equals(DOCUMENT_ELEMENT) == true)
{
super.startElement("", localName , qName, newAttr);
}
else if (localName.equals(CONTENT_ELEMENT) == true)

{
super.startElement("", localName , qName, newAttr);

}
else if (localName.equals(ARTICLE_ELEMENT) == true)
{
newAttr.addAttribute("", localName, "layouttype", "", "2");
newAttr.addAttribute("", localName, "xpos", "", "5");
newAttr.addAttribute("", localName, "ypos", "", "7");
newAttr.addAttribute("", localName, "border", "", "dotted");

super.startElement("", localName, qName, newAttr);

}
else if (localName.equals(ARTICLE_TITLE_ELEMENT) == true)
{
this.mode = MODE_TITLE;

super.startElement("", localName, qName, newAttr);
}
else if (localName.equals(ARTICLE_TEXT_ELEMENT) == true)
{
this.mode = MODE_TEXT;
super.startElement("", localName, qName, attributes);
}
else if (localName.equals(ARTICLE_IMAGE_ELEMENT) == true)
{
this.mode = MODE_IMAGE;
super.startElement("", localName, qName, attributes);
}
else
{
throw new SAXException("Unknown start element " +
localName);
}
}


public void characters(char[] buffer, int start, int length)
throws SAXException
{
switch (this.mode)
{
case MODE_NONE : super.characters(buffer, start, length);
break;
case MODE_TITLE : this.articleTitle.append(buffer, start,
length);
break;
cas

cocoon 2.1 and cocoon 2.0.4

2003-08-14 Thread Lionel Crine
Can cocoon 2.0.4 and cocoon 2.1 be together on the same computer ?

Lionel





Lionel CRINE
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


session-is-valid

2003-08-14 Thread Sonny Sukumar
I'm trying to intercept every request and see if a session exists for the 
user, creating and initializing a session if one doesn't already exist.  
Will this work?:


 
   
 
 
 
   
   
 
 

I'm wondering if Cocoon executes the 2nd and 3rd actions no matter whether a 
session exists or not.

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


SOAPHelper.java

2003-08-14 Thread scott
If you're writing a java class in cocoon, what's the best way to deal with a
string of xml - ie instantiate what object to inspect the elements etc? e.g.

http://neko.evolove.net/phpwiki/index.php/CocoonSoapJava

Anyone care to help with the return type there? Essentially, I want a java class
(such as "User" or "Customer" or whatever), to be able to quickly and easily
make a soap call, get a return object, inspect the results and do stuff (like
set attributes with return data.

This is the last gotcha left for me, then I can actually start work on my
web-app - so help is appreciated!

cheers,
scott

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



Re: Excel: Unable to apply formula SUM

2003-08-14 Thread Geoff Howard
Mehra, Vishal wrote:
Joerg,

because my application is a standalone java application..

-Vishal

Sounds like you're using Poi, not Cocoon.  Probably wrong list to ask 
this question then.

Geoff

Why don't you use the Gnumeric file format instead of writing Java code?

Joerg

Mehra, Vishal wrote:


Created Excel worksheet using POI. All the cell values are formatted as string. 

 cell = currentRow.createCell( (short) i);
 cell.setCellType(HSSFCell.CELL_TYPE_STRING);
 cell.setCellValue(columnValue);
I am unable to apply SUM (or AutoSum) formula on the numeric values. After opening the Excel file,
I even tried to format all the cells as numeric/accouting, but with no success. 

SUM is always coming as zero...

Any pointers...

Thanks,

Vishal


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


Re: Handmade XSPs?

2003-08-14 Thread Geoff Howard
Phil Shafer wrote:
The performance page suggests hand building XSPs:

  Consider turning your XSPs into Generators by hand and call them
  directly. Of course you don't need to do this for all pages, but
  it's recommended to it for those which are heavy loaded.
  
  You can try it this way:
  
  Cocoon will compile your XSP's into Java classes (see
  tomcat/work//org/apache/cocoon/www/my_xsp.class). After that,
  add the generated Generator to the Sitemap:

  
  
  And use it:
  

Is the xsp dependency checking so expensive that this
it worth the maintenance cost is incurs? 
I'm not aware of anyone having benchmarked it.  My gut feeling is that I 
could shave some unnecessary objects and less than optimal code off the 
auto-generated version by either starting from scratch or working with 
the generated java and hacking away.  How much that would get is 
anyone's bet.  When I was developing for a high traffic site I felt 
better creating the Generator myself, but since when working on 
lower-traffic code I've been happy with XSP.

Is there more
going on that just stat()ing the xsp file and the logicsheet
it references? 
You'd have to confirm this independently, but I think it's doing a 
delayed refresh check on getLastModified() of the file and its 
dependencies.  Shouldn't be too bad.

Is there a build-time option to precompile
XSPs without doing it by hand?
Yes I think but you'll need to dig it out yourself.

Hope that helps,

Geoff

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


Re: SQLTransformer & InterSystems Cache

2003-08-14 Thread Geoff Howard
Jeff Ramsdale wrote:
On the off chance someone has tried to connect the InterSystems Cache
database to Cocoon, I thought I'd ask for some assistance here...
I've taken the SQL Transformator (transformator?!) sample and replaced the
hsqldb datasource with InterSystems'.
Here's the error I receive:

--

Hello
This is my first Cocoon2 page filled with sql data!
[SQLCODE: <-30>:] [Cache Error:
] [Details: ] [%msg: < SQL
ERROR #30: Table `SQLUSER.DEPARTMENT' not found>]
--

Changes made to accomodate Cache:

1) Added to web.xml:

com.intersys.jdbc.CacheDriver
2) In cocoon.xconf:
   a) renamed "personnel" datasource to "personnel-old"
   b) added:
   
  
  jdbc:Cache://127.0.0.1:1972/TEST
  TestUser
  test
   
The TEST database exists in Cache, and I added the user and checked
permissions.
Should I expect this to work without further changes?

I can use Cache's SQL Manager tool and it doesn't look like the table is
ever created or populated (makes sense, given the error message). I imagined
table creation would occur upon the occasion of one of my page requests but
I haven't quite figured out at what point this would be. Would appreciate a
pointer...
Nope - it's not created automatically.  It's already defined and 
prepopulated in hsql in the distribution just for ease of the 
demonstration, but if you want to use a different database you need to 
create and do any necessary pre-populating yourself.  There is a .sql 
file somewhere in the source (either hsql block or database block) that 
could get you well on you way to doing that but you may need to modify 
it to work on your specific DB which I've no experience with.

Geoff

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


Re: quering multiple databases

2003-08-14 Thread Ian Ross
Thanks for your help guys. I just wanted to reassure the project 
co-ordinator that it can be done.


From: Geoff Howard <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: quering multiple databases
Date: Mon, 11 Aug 2003 10:34:38 -0400
Ian Ross wrote:
Hi
Im working on a project that is meant to extract information from three 
different
databases; each on different servers. Is this possible with cocoon? I have 
only
worked with one database before and I'm not sure if this will work.
The three databases are mysql,ingres and cache. Do you install the jdbc 
drivers the
usual way??
Any help would be greatly appreciated. Thanks in advance for your time.
Ian
Yes - very possible.  Just make sure each driver class is in your web.xml, 
each datasource is set up in cocoon.xconf, and each driver jar is in 
web.xml.

Geoff

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Hotmail is now available on Australian mobile phones. Go to  
http://ninemsn.com.au/mobilecentral/signup.asp

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


Re: How to use stores for persistence

2003-08-14 Thread Geoff Howard
Olivier Billard wrote:
Cool !
Thanks for your answer, it conforts me in my choice : I think I'll use 
database mapping with maybe a custom MRU cache. But I'm afraid of the 
time to reinstanciate objects from the database...
If you will be storing whole objects you could give it a try I guess. 
Just watch out for the cache clearing I mentioned before.  Currently the 
clear persistent store action (and the 2.1 event-based cache under some 
circumstances) are the only things that should do this, so it may not be 
a problem in your particular situation.

Geoff

Thanks again !

--
Olivier
PS : It reminds me that the excalibur cache component seems to be dead...
This should be clarified a little.  There is I think an excalibur Cache 
project that I don't know anything about.  But Cocoon's Cache is just a 
thin wrapper around the Excalibur Store project which we do use and is 
not dead.  It started out in Cocoon's cvs but moved to excalibur because 
it was judged to have general usefulness.  Not sure if this change was 
in effect at 2.0.4 or not.

Geoff

On 14/08/2003 12:49, Geoff Howard wrote:

Olivier Billard wrote:

Hi Geoff,

I'm using a modified version of the workflow component of the 
krysalis project.
I want to store persistently states of this workflow, these states 
could bo modelized as beans (java objects with attributes to be 
precise). These objects could be numerous (a thousand ?). I'm looking 
for the best manner to store these objects :
 - database mapping (the best solution I think) with light memory 
store (caching ? complete light model ?)
 - excalibur store (filesystem access = overload ?)

And I'm wondering if the store defined in the cocoon.xconf is ready 
to use for client app or if it is already used by Cocoon components...

I hope I'm clear ;)


You are clear.   I'd advise you toward the database mapping.  There are
examples popping up of using tools like Hibernate to abstract that if 
you like, or you can use straight jdbc.

The Store you see in cocoon.xconf is used internally by Cocoon for 
caching pipeline results and parsed transformers, etc.  While you can 
use it for application storage I'd recommend against it - I don't know 
of anyone else who has used it that way (if you're out there and have, 
speak up and let us know how it worked).  I could give more info on 
why I'd recommend against if you need it.

Geoff

On 13/08/2003 23:27, Geoff Howard wrote:

Olivier Billard wrote:

Hi all,

I would like to use store components for persistent storage.




Why?

Geoff


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





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


Re: Please Help: Re: Cocoon 2.1rc2 SVG Error

2003-08-14 Thread Bruno Dumon
On Wed, 2003-08-13 at 07:48, Steve Schwarz wrote:
> I'm really confused by this problem and would appreciate any opinions!
> 
> I've simplified my issue down to Cocoon/Batik throwing an error on specific 
> styles of SVG documents if and only if a stylesheet is applied to the 
> document. Interestingly, once a single SVG document is processed w/o error 
> by SVGSerializer all SVG documents (including ones that failed previously) 
> are processed w/o error.

Looking at the code, that's quite logical because the stored document
locator isn't properly reset between uses. I've fixed that.

>  I'm guessing SVGBuilder.setDocumentLocator() is 
> called in the success case and once it is called the serializer works 
> correctly for all SVG documents.

correct, as long as you're getting the same serializer instance from the
pool.

> 
> Under 2.04 these documents/stylesheets worked w/o errors.

Yep, but there the document locator wasn't taken into account and the
base URL of the document was always set to http://xml.apache.org

I've now changed the code to set it to http://localhost/ if
setDocumentLocator wasn't called. Maybe this should be something that is
configurable but for now it fixes this problem.

So if you'd like to have this fix, you'll have to grab the latest code
from CVS. If you don't want to use a complete CVS-version of Cocoon, you
can grab just the file
src/blocks/batik/java/org/apache/cocoon/xml/dom/SVGBuilder.java and put
that over your local copy.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



Re: How to use stores for persistence

2003-08-14 Thread Geoff Howard
Reinhard Pötz wrote:
From: Geoff Howard


The Store you see in cocoon.xconf is used internally by Cocoon for 
caching pipeline results and parsed transformers, etc.  While you can 
use it for application storage I'd recommend against it - I 
don't know 
of anyone else who has used it that way (if you're out there 
and have, 
speak up and let us know how it worked).  I could give more 
info on why 
I'd recommend against if you need it.
I would be interested ;)
Well, this is really just an IMHO area but here's a quick elaboration:

- Jisp isn't meant to be an industrial strength database (according to 
its description of itself at coyotegulch last time I looked) but a 
lightweight alternative with benefits of indexing.
- Current implementations of the cache just does store.clear() (or 
whatever) which will remove all your data.  It's technically not the 
desired behavior but not a high priority one since no one seems to be 
using the Store/Cache for their own application data persistence.

Nothing earth shattering.  I'd love to hear from anyone who tries it 
anyway and has good success so I can be sure not to steer anyone wrong!

Geoff

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


Re: Xalan-Transformer adds no tags

2003-08-14 Thread Bruno Dumon
On Wed, 2003-08-13 at 11:08, Ariane Ibig, Infonic AG wrote:
> Hi all
> I have a problem with the use of svg's in my Cocoon.
> I use Fins to derive charts from JFreechart and display it in Cocoon.
> But when I use svg's the transformer doesn't add the svg tags.
> I tried it with cocoon 2.0.4 an it worked, but with cocoon 2.1.dev it didn't
> worked.
> 
> I have this pipeline:
> 
>src="fins-samples/documents/charts/minimal.xml"/>
>   
>   
> 
> 
> When I call it, there is this error in the browser
> "whitespace not aloud at this place" (place "here")
>  <
> "here"xmlns="http://www.w3.org/2000/svg"; xmlns:chart="http://ipzs.it/chart";
> fill-opacity="1" color-interpolation="auto" color-rendering="auto"
> text-rendering="auto" stroke="



> 
> I don't think the problem lies within Fins, for when I use the svg2png or
> svg2jpeg transformer, I get a correct picture.

Unfortunately this doesn't prove anything.

Could you try putting a log transformer in your pipeline, like this:










And then after executing your pipeline once, send the content of the
file out.txt (if its large, just send the first few lines, since it's
there where the error appears to be anyhow).

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



RE: fop image caching

2003-08-14 Thread neil
Thanks for the interesting links to those earlier discussions.

I am surprised that its hard to get consensus for the idea that
the application needs control over which images are cached.
I hope that fop will provide some simple control even if the
xsl-fo community can't be persuaded of the need.

David Tolpin's idea of relying on HTTP headers to control caching
is interesting, but what if you don't use http:/ (e.g. cocoon:/)?


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



Re: session-is-valid

2003-08-14 Thread Sonny Sukumar
1.) I tried changing it to  (using 
the "uri" attribute instead of the "resource" attribute, and from what my 
browser is displaying on its status bar I'm pretty sure it's doing an HTTP 
redirect despite using the cocoon:/ protocol.

2.) Ok, I tried accessing http://localhost:8080/showProduct?productId=12345 
and that works (no infinite recursion for some reason...although it seems 
like there should be!), but if I change the product ID in that URI, then it 
still shows the page for product ID 12345.  For example, I try to access 
http://localhost:8080/showProduct?productId=9 and it still shows the 
same page for product 12345.

I see the browser contact the server twice (indicating a redirect), and then 
the doc is unchanged.  How is the request parameter being handled when 
redirecting?  I'm confused.  The sitemap entry is now this:

 
   
 
 
   

   
   
 
 
   
   
 
3.) I haven't considered putting all my matchers inside my action because
   a.) I didn't even know it could be done. :-)
   b.) I have lots and lots of matchers, which leads me to another 
question: When is it best to define a new pipeline in which to put a new 
matcher?  One reason I thought of to isolate a matcher in its own pipeline 
is because each pipeline (IIUC) can only have one map:handle errors section. 
 What are other good reasons?

In any case, there must be some way to do this without HTTP redirects 
(unacceptably slow), without infinite recursion (of course), and without 
nesting every matcher for the entire site within the action.

I'm finding myself unexpectedly rethinking my sitemap, which I think is 
good, and I thank you for your help in doing so.

Sonny



Yes, you are right about the {../1}. Also, IIRC using the cocoon:/ protocol
in the "uri" attribute means that a redirect doesn¹t get sent to the
browser. But, I suspect by using the "uri" redirect you will go back to 
your
recursive state. IIUC The reason you don't get recursion now (and an error
instead) is because by using  you are
redirecting to a resource (see
http://wiki.cocoondev.org/Wiki.jsp?page=CleanerSiteMapsThroughResources),
and not the matchers. Because you have no resources defined (e.g. one 
called
"cocoon:/showProduct") you get a resource not found error.

Have you considered putting all your other matchers *inside* this action?

Hope this helps,
Mark
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Accepting an input parameter

2003-08-14 Thread Tim Bachta
I am calling a Cocoon page from another application using a 
tag.  The url that I am calling is
http://localhost:8080/cocoon/test/login?userid=11
 .  The problem I am
having is getting my xsp page to grab the value of the userid from the
input url.  How do I do this, I have tried using the
 but that does not work.  Do I need to add something to my
sitemap to pass that value through?  Can someone please help me, it
would be greatly appreciated.

 

Thanks

Tim 

 

 


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



Persistent stores and cache

2003-08-14 Thread Olivier Billard
Hi all,

I would like to use the persistent store provided by Cocoon, derived from the 
JispFilesystemStore, but I will probably use a lot a light data in the store.
Is this really efficient ? Does it use a cache ? Does it /need/ a cache ?

Is it designed to work with a lot of objects ? In my case, I'll use some key/value String 
pairs, but numerous...

Thanks in advance !

--
Olivier BILLARD
Société Jouve
Tel  : 33 2 99 86 93 55
Mail : [EMAIL PROTECTED]
Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun cas 
être considérés comme un engagement juridique de quelque nature que ce soit de JOUVE. Tout 
accord devra être formulé par écrit papier ultérieur signé par un représentant légal de 
JOUVE. Par ailleurs, si vous recevez ce mail par erreur, merci de nous le signaler et de 
le détruire ainsi que l'intégralité du document qui pourrait y être joint.

The present email and all information included therein do not constitute a legal agreement 
accorded by Jouve. All legal agreements must be formulated in writing on paper by a legal 
representative of JOUVE. If you have received this email by mistake, please inform us of 
that fact and destroy the email and any documents it might contain. Thank you for your 
cooperation.



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


Link Hosting:From ViSolve.com. Please remove our link.

2003-08-14 Thread System [EMAIL PROTECTED]
Hello Sirs

Our website was earlier powered by Cocoon and our website was linked from
your page found in the following URL.
http://www.startcom.org/doc/apache-Cocoon-1.8.2/livesites.html

We are not powered by cocoon now and wish to be removed from the above
mentioned page. Kindly remove the link http://www.visolve.com/xbeta from
your "Livesites Powered by Cocoon" page.

Thanks for the coordination provided thus far.

Regards

System Group
ViSolve.com
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.495 / Virus Database: 294 - Release Date: 6/30/03


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



RE: Cocoon is confused

2003-08-14 Thread Kieran Kirwan

If you're using XSP then use:



As far as I know you don't need to modify sitemap.


_
Kieran Kirwan
Executive Transportation Planner
Transportation Modelling Department
 
Dublin Transportation Office
Hainault House,
69/71 St. Stephen's Green,
Dublin 2,
Ireland.
Tel: +353 (0)1 4778113
Fax: +353 (0) 1 478 5935
website: www.dto.ie   
 



-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED]
Sent: 13 August 2003 03:23
To: [EMAIL PROTECTED]
Subject: RE: Cocoon is confused


How do you set up the sitemap and xsp to accept incomming parameters
from the url.  Example url = http://localhost:8080/cocoon/login
 ?input=11 where the
incomming parameters start in the bold blue.

 

Thanks for the help.

 

Tim


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

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Mail Marshal for the presence of computer viruses.

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



Re: [ANN] Apache Cocoon 2.1 Released

2003-08-14 Thread g[R]eK
<. Hi Carsten! .>

Wednesday, August 13, 2003, 11:24:34 AM, you wrote:

CZ> Apache Cocoon 2.1 Released
CZ> --

CZ>The Apache Cocoon Community is proud to announce the new release
CZ>of Apache Cocoon.

It's *great* news! Congratulations!

-- 
Best regards
<. g[R]eK mailto:[EMAIL PROTECTED].>


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



Pass a connection pool as parameter to java class

2003-08-14 Thread Vasudha Gowrishankar
I would like to pass a connection pool as parameter to a java class. Here is
the call to Java class:

if ( != null) {
String resultStr = Synchronize.writeHashTrx("String1",
"String2", CONNECTION OBJECT);
resultStr
}
 
I am not sure how the "connection object" should be represented. Can anyone
please help?
Thanks
Vasudha.

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



reg exp matchers

2003-08-14 Thread Gould, Troy (ELS)
Does the regexp project used by Cocoon allow for Perl5 extended regular
expressions?

I'm trying to use a regular expression that uses zero-width negative
lookaheads.  My pattern is

^(?!localhost).*?$ 

which is used to match a string that doesn't start with localhost.

This doesn't seem to work with regexp (used by cocoon's RegExpMatcher
implementation), but it does with jakarta oro.  I get the following
exception.  Maybe my pattern is wrong for use with regexp project, but fine
for jakarta oro project?  

org.apache.regexp.RESyntaxException: Syntax error: Missing operand to
closure
at org.apache.regexp.RECompiler.syntaxError(RECompiler.java:253)
at org.apache.regexp.RECompiler.terminal(RECompiler.java:884)
at org.apache.regexp.RECompiler.closure(RECompiler.java:942)
at org.apache.regexp.RECompiler.branch(RECompiler.java:1151)
at org.apache.regexp.RECompiler.expr(RECompiler.java:1203)
at org.apache.regexp.RECompiler.terminal(RECompiler.java:866)
at org.apache.regexp.RECompiler.closure(RECompiler.java:942)
at org.apache.regexp.RECompiler.branch(RECompiler.java:1151)
at org.apache.regexp.RECompiler.expr(RECompiler.java:1203)
at org.apache.regexp.RECompiler.compile(RECompiler.java:1281)
at
org.apache.cocoon.matching.AbstractRegexpMatcher.preparePattern(AbstractRege
xpMatcher.java:100)
at
org.apache.cocoon.www.sitemap_xmap.preparePattern(sitemap_xmap.java:657)
at
org.apache.cocoon.www.sitemap_xmap.prepareMatchers(sitemap_xmap.java:675)
at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:213)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:264)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:98)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:187)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:267)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:512)

Thanks,
Troy Gould

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



RE: Cocoon is confused

2003-08-14 Thread Tim Bachta
Ok, I fixed the confusion problem (that was the first time I got that
error message) but I am still not able to accept the input parameter
coming in after the ? in the url.  Should I be asking for it in a
different manner?

Tim 
 

-Original Message-
From: Tim Bachta 
Sent: Tuesday, August 12, 2003 8:50 PM
To: [EMAIL PROTECTED]
Subject: Cocoon is confused

I am trying to open a cocoon page from another web page and I am getting
an error.  The error is cocoon confusion.  The way I am calling the
cocoon page is a hyperlink url of
http://localhost:8080/cocoon/login?userid=11

 This is a sniplet of my sitemap:



   

   

 

   

   



 

 

The xsp page is looking for a request parameter of userid.  The page
works fine when I hard code the userid on the xsp and remove the
?userid=11 from the url string but I need that to send the id in based
on login from previous page.  Thanks for the help.


 

Tim

 



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


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



screen resolution

2003-08-14 Thread Miguel Carvalho
Hi,

is it possible to know the screen resolution of a client browser during a
transformer phase??

I know that it is possible to get the screen resolution from javascript, but
it would be great if i could know that when applying a transformer made by
me in java..



Thnaks in advance
Miguel Carvalho




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



RE: MS Word Transformer

2003-08-14 Thread Steve Krulewitz
> 1/ You could try using the Office's new XML capabilities (I think it's
> called Xdoc) and therefore just serialize into another XML document (only
> for Office 11).

You can also produce "Office HTML", which is what Office uses when you save
a document as HTML.  It isn't pretty, but it works, and you can retain most
of the original formatting though standard and Microsoft's proprietary CSS.
The best way to do it is to create a Word document to use as a template,
save it as HTML, turn it onto valid XML and integrate it into a XSLT
stylesheet.  You can even save the files and .doc or send it to the browser
with the application/msword content-type and Word will open it without a
problem.  This works with Office 2000 and XP.  I don't know about newer or
older versions.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoffxml/ht
ml/ofxml2k.asp

cheers,
-steve


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



SQL Choice with cocoon

2003-08-14 Thread Lionel Crine
I'm looking for a good sql base easy to use for a professionnal use

Conditions :
There will be about 50,000 records in it.
Should be open source, free or chip.
Work on windows.
Which one is working great with cocoon ?



Lionel CRINE
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: reg exp matchers

2003-08-14 Thread Joerg Heinicke
http://jakarta.apache.org/regexp/index.html

vs.

http://jakarta.apache.org/oro/index.html

I guess you have to implement your own Matcher using Oro.

Regards,

Joerg

Gould, Troy (ELS) wrote:

Does the regexp project used by Cocoon allow for Perl5 extended regular
expressions?
I'm trying to use a regular expression that uses zero-width negative
lookaheads.  My pattern is
^(?!localhost).*?$ 

which is used to match a string that doesn't start with localhost.

This doesn't seem to work with regexp (used by cocoon's RegExpMatcher
implementation), but it does with jakarta oro.  I get the following
exception.  Maybe my pattern is wrong for use with regexp project, but fine
for jakarta oro project?  

org.apache.regexp.RESyntaxException: Syntax error: Missing operand to
closure
at org.apache.regexp.RECompiler.syntaxError(RECompiler.java:253)
...

Thanks,
Troy Gould


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


RE: MS Word Transformer

2003-08-14 Thread Conal Tuohy
You don't need to use special "Office" CSS - you can just serve an ordinary
HTML page, with an ordinary CSS, embedded or linked, and Word will interpret
it. The key is just to serialise the file with a mime-type of
"application/msword". To do this, add a serializer to the 
section of your sitemap and use it to serialise.

e.g.



logger="sitemap.serializer.html"
pool-grow="4" pool-max="32" pool-min="4"
1024
iso-8859-1
yes


Then in your pipeline:



I also like to use the extension ".doc" for the URI since then if the user
saves the file locally it will remain associated with Word. Or you can use
".dochtml" because this is an extension which MSWord also registers in the
Windows registry, and which is perhaps more appropriate.

Cheers

Con

> -Original Message-
> From: Julian [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 13 August 2003 08:53
> To: [EMAIL PROTECTED]
> Subject: RE: MS Word Transformer
>
>
> Thanks all for the feedback.  I think I am going to
> use the jfor rtf serializer for now and leave it up to
> the user to create the doc file on save if desired.  I
> avoided the MS css markup b/c it obfuscates the file
> way too much; not to mention that I think these are
> built in stylesheets...I have never seen them work in
> Mozilla or Open Office.
>
> Thanks Again,
> Julian
>
> --- Steve Krulewitz <[EMAIL PROTECTED]> wrote:
> > > The same technique also works (with limits) for
> > Excel.  It has
> > > problems with graphics and can't do multiple
> > sheets, but... good to know
> > > anyway :)
> >
> > Yes, the main problem with this approach is that
> > sometimes a document is
> > saved using multiple HTML files.  For Excel, each
> > worksheet in a workbook
> > gets its own HTML file, and in Word, header and
> > footer information is saved
> > in a separate file as well.  I've had success
> > generating both a Word
> > document and its header file, storing the file on
> > the server, and
> > redirecting the client to the Word document -- and
> > Word will make the extra
> > HTTP request to load the header file.
> >
> > Maybe I'll try to get this working with Cocoon (I've
> > only done is previously
> > with ASP) and I can document it on a Wiki page.
> >
> > cheers,
> > -steve
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: newbie question

2003-08-14 Thread Geoff Howard
see zero dee ee be one you ee wrote:
Disclaimer:  I reviewed the archives for this, found 
one related question, but did not see the resolution.

Config: Win2k, Java SDK 1.4.0, Tomcat 4.0.3, Cocoon 
2.0.4.
Out of curiousity, Why 2.0 when we just released 2.1?

I've downloaded the binary distribution and installed 
as directed.  I hit http://127.0.0.1:8080/cocoon and 
get a fatal error with the following message:

SAX2 driver class org.apache.xerces.parsers.SAXParser 
does not implement XMLReader
Sounds like you didn't follow the JDK 1.4 specific part
of the instructions.  Copy the "endorsed" jars (xalan's
jar, xerces' jar, xml-apis jar and xsltc jar if it's there)
from cocoon's lib into %TOMCAT_HOME%\common\endorsed first
removing anything else that may be there.
Geoff

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


Re: build problem

2003-08-14 Thread Bill French
and no, it doesn't work if i unset ANT_LIB.

On Wednesday, August 13, 2003, at 03:34  PM, Joerg Heinicke wrote:

Hmm, but the links to Ant are not correct. You locally installed 
version (/usr/local/ant/lib) is used while it should be 
/Users/french/download/cocoon-2.1/tools/lib. Does it work if you unset 
ANT_LIB before calling Cocoon script?

Joerg

Bill French wrote:

jeorg, i never touched the build script. ant is complaining that it  
can't find a class --  
org.apache.tools.ant.taskdefs.optional.TraXLiaison -- that's packaged 
 in optional.jar.
On Wednesday, August 13, 2003, at 02:50  PM, Joerg Heinicke wrote:
Can't you use the build scripts of Cocoon as they are? Cocoon comes  
with all needed libraries and the build script already sets 
classpath  correctly.

Joerg

Bill French wrote:

hi,
i'm on mac os 10.2.6:
Darwin 6.6 Darwin Kernel Version 6.6: Thu May  1 21:48:54 PDT 2003; 
  root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc
java 1.4.1:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-39)
Java HotSpot(TM) Client VM (build 1.4.1_01-14, mixed mode)
and i'm using ant 1.5.3 to build cocoon 2.1 from source. i added a  
 couple of debug lines to my ant shell script, and i have:
ANT_LIB set to /usr/local/ant/lib
LOCALCLASSPATH set to   
/usr/local/ant/lib/xml-apis.jar:/usr/local/ant/lib/xercesImpl.jar:/ 
usr/  
local/ant/lib/optional.jar:/usr/local/ant/lib/mindbright.jar:/usr/  
local/ant/lib/gc_ant_optional.jar:/usr/local/ant/lib/ant.jar
but i still can't build. i've tried different targets -- i'm given  
the  error:
BUILD FAILED
file:/Users/french/download/cocoon-2.1/src/targets/compile-  
build.xml:178: java.lang.ClassNotFoundException:   
org.apache.tools.ant.taskdefs.optional.TraXLiaison
has anyone else had problems building from the new 2.1 source   
distribution? i shower you with thanks in advance.
--bill


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


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


Re: build problem

2003-08-14 Thread Joerg Heinicke
Hmm, but the links to Ant are not correct. You locally installed version 
(/usr/local/ant/lib) is used while it should be 
/Users/french/download/cocoon-2.1/tools/lib. Does it work if you unset 
ANT_LIB before calling Cocoon script?

Joerg

Bill French wrote:

jeorg, i never touched the build script. ant is complaining that it  
can't find a class --  
org.apache.tools.ant.taskdefs.optional.TraXLiaison -- that's packaged  
in optional.jar.

On Wednesday, August 13, 2003, at 02:50  PM, Joerg Heinicke wrote:

Can't you use the build scripts of Cocoon as they are? Cocoon comes  
with all needed libraries and the build script already sets classpath  
correctly.

Joerg

Bill French wrote:

hi,
i'm on mac os 10.2.6:
Darwin 6.6 Darwin Kernel Version 6.6: Thu May  1 21:48:54 PDT 2003;   
root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc
java 1.4.1:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-39)
Java HotSpot(TM) Client VM (build 1.4.1_01-14, mixed mode)
and i'm using ant 1.5.3 to build cocoon 2.1 from source. i added a   
couple of debug lines to my ant shell script, and i have:
ANT_LIB set to /usr/local/ant/lib
LOCALCLASSPATH set to   
/usr/local/ant/lib/xml-apis.jar:/usr/local/ant/lib/xercesImpl.jar:/ 
usr/  
local/ant/lib/optional.jar:/usr/local/ant/lib/mindbright.jar:/usr/  
local/ant/lib/gc_ant_optional.jar:/usr/local/ant/lib/ant.jar
but i still can't build. i've tried different targets -- i'm given  
the  error:
BUILD FAILED
file:/Users/french/download/cocoon-2.1/src/targets/compile-  
build.xml:178: java.lang.ClassNotFoundException:   
org.apache.tools.ant.taskdefs.optional.TraXLiaison
has anyone else had problems building from the new 2.1 source   
distribution? i shower you with thanks in advance.
--bill


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


Re: build problem

2003-08-14 Thread Bill French
hmm, i'm confused. why can't i use my regular old install of ant to 
build cocoon?

On Wednesday, August 13, 2003, at 03:34  PM, Joerg Heinicke wrote:

Hmm, but the links to Ant are not correct. You locally installed 
version (/usr/local/ant/lib) is used while it should be 
/Users/french/download/cocoon-2.1/tools/lib. Does it work if you unset 
ANT_LIB before calling Cocoon script?

Joerg

Bill French wrote:

jeorg, i never touched the build script. ant is complaining that it  
can't find a class --  
org.apache.tools.ant.taskdefs.optional.TraXLiaison -- that's packaged 
 in optional.jar.
On Wednesday, August 13, 2003, at 02:50  PM, Joerg Heinicke wrote:
Can't you use the build scripts of Cocoon as they are? Cocoon comes  
with all needed libraries and the build script already sets 
classpath  correctly.

Joerg

Bill French wrote:

hi,
i'm on mac os 10.2.6:
Darwin 6.6 Darwin Kernel Version 6.6: Thu May  1 21:48:54 PDT 2003; 
  root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc
java 1.4.1:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-39)
Java HotSpot(TM) Client VM (build 1.4.1_01-14, mixed mode)
and i'm using ant 1.5.3 to build cocoon 2.1 from source. i added a  
 couple of debug lines to my ant shell script, and i have:
ANT_LIB set to /usr/local/ant/lib
LOCALCLASSPATH set to   
/usr/local/ant/lib/xml-apis.jar:/usr/local/ant/lib/xercesImpl.jar:/ 
usr/  
local/ant/lib/optional.jar:/usr/local/ant/lib/mindbright.jar:/usr/  
local/ant/lib/gc_ant_optional.jar:/usr/local/ant/lib/ant.jar
but i still can't build. i've tried different targets -- i'm given  
the  error:
BUILD FAILED
file:/Users/french/download/cocoon-2.1/src/targets/compile-  
build.xml:178: java.lang.ClassNotFoundException:   
org.apache.tools.ant.taskdefs.optional.TraXLiaison
has anyone else had problems building from the new 2.1 source   
distribution? i shower you with thanks in advance.
--bill


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


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


Link Livesites: Cocoon 2.0.4 World Stay

2003-08-14 Thread Paul Tedds
Title: Message



Site Name World 
Stay
Site URL www.world-stay.com
World Stay provide 
an on line hotel booking system for over 60,000 hotels world wide, and in 
multiple languages.


Re: SVG Serializer error

2003-08-14 Thread Joerg Heinicke
Yesterday a bug was fixed in Cocoon 2.1, I guess it's the same in 2.0.4. 
Can you try it: 
http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=106076435708268&w=2.

Regards,

Joerg

Gustavo Nalle Fernandes wrote:

Hi, I am obtaining the following error when trying to tranform a XML to 
SVG applying a XSL
on
Linux
tomcat 4.1.18
cocoon 2.0.4
j2se 1.4.1:
 

org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1 
The attribute 'd' of the element  is invalid
 at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:137)
 at 
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)
 at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
 at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
 at java.lang.Thread.run(Thread.java:534)
---
 
The error does not occur when using windows 2000, tomcat 4.1.18, cocoon 
2.0.4, j2se 1.4.1
Seems like a bug, any clues ?
 
 
 
Gustavo


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


Re: build problem

2003-08-14 Thread Bill French
i unset all my ant variables in the shell that i'm trying to build  
within.

bash> unset ANT_HOME ANT_LIB
bash> ./build.sh
i still get the same error:

BUILD FAILED
file:/Users/french/download/cocoon-2.1/src/targets/compile- 
build.xml:178: java.lang.ClassNotFoundException:  
org.apache.tools.ant.taskdefs.optional.TraXLiaison

thank you for your help.

On Wednesday, August 13, 2003, at 03:34  PM, Joerg Heinicke wrote:

Hmm, but the links to Ant are not correct. You locally installed  
version (/usr/local/ant/lib) is used while it should be  
/Users/french/download/cocoon-2.1/tools/lib. Does it work if you unset  
ANT_LIB before calling Cocoon script?

Joerg

Bill French wrote:

jeorg, i never touched the build script. ant is complaining that it   
can't find a class --   
org.apache.tools.ant.taskdefs.optional.TraXLiaison -- that's packaged  
 in optional.jar.
On Wednesday, August 13, 2003, at 02:50  PM, Joerg Heinicke wrote:
Can't you use the build scripts of Cocoon as they are? Cocoon comes   
with all needed libraries and the build script already sets  
classpath  correctly.

Joerg

Bill French wrote:

hi,
i'm on mac os 10.2.6:
Darwin 6.6 Darwin Kernel Version 6.6: Thu May  1 21:48:54 PDT 2003;  
  root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc
java 1.4.1:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-39)
Java HotSpot(TM) Client VM (build 1.4.1_01-14, mixed mode)
and i'm using ant 1.5.3 to build cocoon 2.1 from source. i added a   
 couple of debug lines to my ant shell script, and i have:
ANT_LIB set to /usr/local/ant/lib
LOCALCLASSPATH set to
/usr/local/ant/lib/xml-apis.jar:/usr/local/ant/lib/xercesImpl.jar:/  
usr/   
local/ant/lib/optional.jar:/usr/local/ant/lib/mindbright.jar:/usr/   
local/ant/lib/gc_ant_optional.jar:/usr/local/ant/lib/ant.jar
but i still can't build. i've tried different targets -- i'm given   
the  error:
BUILD FAILED
file:/Users/french/download/cocoon-2.1/src/targets/compile-   
build.xml:178: java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.TraXLiaison
has anyone else had problems building from the new 2.1 source
distribution? i shower you with thanks in advance.
--bill


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


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


Re: How to use stores for persistence

2003-08-14 Thread Olivier Billard
Hi Geoff,

I'm using a modified version of the workflow component of the krysalis project.
I want to store persistently states of this workflow, these states could bo modelized as 
beans (java objects with attributes to be precise). These objects could be numerous (a 
thousand ?). I'm looking for the best manner to store these objects :
 - database mapping (the best solution I think) with light memory store (caching ? 
complete light model ?)
 - excalibur store (filesystem access = overload ?)

And I'm wondering if the store defined in the cocoon.xconf is ready to use for client app 
or if it is already used by Cocoon components...

I hope I'm clear ;)

--
Olivier
On 13/08/2003 23:27, Geoff Howard wrote:
Olivier Billard wrote:

Hi all,

I would like to use store components for persistent storage.


Why?

Geoff


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


Re: question about LuceneIndexTransformer

2003-08-14 Thread Bill French
hi,

thanks for your reply. do i generate the index once statically and then 
keep the index somewhere, or generate it every time the user performs a 
search? how do i go about limiting my results to those matching search 
terms?

thanks again,

--bill

On Thursday, August 14, 2003, at 03:10  PM, Conal Tuohy wrote:

i added the following line to my sitemap.xmap file, inside the
 element:

src="org.apache.cocoon.transformation.LuceneIndexTransformer"/>

now i'm at a loss as for what to do next. do i define a pipeline
somehow referring to this transformer named "index"?
Yes.

Generate an index document like the sample on the Wiki page.
Transform it with the LuceneIndexTransformer:

(This is where your index gets built)
Then transform the result into whatever you like ...


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


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


AW: session cookies

2003-08-14 Thread Marco Rolappe
hi sonny,

the check is automatically done by the servlet engine; if the user's browser
doesn't accept cookies, sessions are realized by rewriting URLs. you have to
send your URLs through the servlet engine's encodeURL/encodeRedircetURL
though.

but the good news is that you can use cocoon's EncodeURLTransformer, which
does this automatically; you just give it a pattern that matches elements'
attributes that will be treated as URLs to be encoded.

HTH

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Sonny Sukumar
> Gesendet: Donnerstag, 14. August 2003 07:40
> An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Betreff: RE: session cookies
>
>
>
> Hmmm, how does one determine that the user doesn't have cookies
> enabled and
> then switch the whole app over to using URL rewriting?  That seems like a
> daunting task.
>
> >From: "neil" <[EMAIL PROTECTED]>
> >
> >See
> >http://cocoon.apache.org/2.1/userdocs/transformers/encodeurl-tran
sformer.html
>
>You can use session cookies if the browser allows them and if it doesn't
>you can
>encode the session id in your apps URLs. There's no need to lose users that
>don't like cookies.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus


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


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



RE: question about LuceneIndexTransformer

2003-08-14 Thread Conal Tuohy
> i added the following line to my sitemap.xmap file, inside the 
>  element:
> 
>   logger="sitemap.transformer.luceneindextransformer"
>  
> src="org.apache.cocoon.transformation.LuceneIndexTransformer"/>
> 
> now i'm at a loss as for what to do next. do i define a pipeline 
> somehow referring to this transformer named "index"?

Yes.

Generate an index document like the sample on the Wiki page.
Transform it with the LuceneIndexTransformer:

(This is where your index gets built)
Then transform the result into whatever you like ...



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



Re: Link Livesites: Cocoon 2.1

2003-08-14 Thread Christoph Gaffga
yes, all three sites (and some more, see http://www.triplemind.com) are
served from cocoon. Whenever possible we accelerate the pages by a
squid-cache infront the presentation cluster. This layer will be upgraded to
cocoon 2.1-release whithin the next week.

Christoph

- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 11:39 PM
Subject: Re: Link Livesites: Cocoon 2.1


> All 3 pages are served by Cocoon 2.1 M3. Do you want to upgrade to 2.1
> release?
>
> The pages are really fast!!
>
> Joerg
>
> Christoph Gaffga wrote:
>
> > http://www.urlaubstage.de
> > http://www.unterkunft.de
> > http://www.apartments.de
> >
> > The sites are all powered by a Tomcat-Cluster with cocoon 2.1 (release).
> > All pages are dynamicly generated with cocoon.
> >
> > They provide a search engine for over 9000 accomodations, mostly in
europe.
> > Registering for a simple account for advertising an accomodation on our
> > platform is free, the full account is 24 EUR a year. We are generating
about
> > 700 bookings a day from 25000 Visitors.
> > We also registered some international domains and will use
i18n-Transformer
> > to publish our content in english, french, spanish, italian and dutch in
the
> > end of this year.
> > We are enthusiastic about cocoon, but we hope perfomance and stability
will
> > improve more in the future. Congrats to the 2.1 release.
> >
> > regards
> > Christoph Gaffga
> > [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



question about LuceneIndexTransformer

2003-08-14 Thread Bill French
hi all,

i read the wiki on the LuceneIndexTransformer at 
http://wiki.cocoondev.org/Wiki.jsp?page=LuceneIndexTransformer and i 
have a question.

i added the following line to my sitemap.xmap file, inside the 
 element:


logger="sitemap.transformer.luceneindextransformer"

src="org.apache.cocoon.transformation.LuceneIndexTransformer"/>

now i'm at a loss as for what to do next. do i define a pipeline 
somehow referring to this transformer named "index"?

thank you in advance.

--bill

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


Re: How to use stores for persistence

2003-08-14 Thread Geoff Howard
Olivier Billard wrote:
Hi Geoff,

I'm using a modified version of the workflow component of the krysalis 
project.
I want to store persistently states of this workflow, these states could 
bo modelized as beans (java objects with attributes to be precise). 
These objects could be numerous (a thousand ?). I'm looking for the best 
manner to store these objects :
 - database mapping (the best solution I think) with light memory store 
(caching ? complete light model ?)
 - excalibur store (filesystem access = overload ?)

And I'm wondering if the store defined in the cocoon.xconf is ready to 
use for client app or if it is already used by Cocoon components...

I hope I'm clear ;)
You are clear.   I'd advise you toward the database mapping.  There are
examples popping up of using tools like Hibernate to abstract that if 
you like, or you can use straight jdbc.

The Store you see in cocoon.xconf is used internally by Cocoon for 
caching pipeline results and parsed transformers, etc.  While you can 
use it for application storage I'd recommend against it - I don't know 
of anyone else who has used it that way (if you're out there and have, 
speak up and let us know how it worked).  I could give more info on why 
I'd recommend against if you need it.

Geoff

On 13/08/2003 23:27, Geoff Howard wrote:

Olivier Billard wrote:

Hi all,

I would like to use store components for persistent storage.


Why?

Geoff


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





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


  1   2   3   4   >