RE: problem creating a new transformer

2003-08-07 Thread Bruno Dumon
On Wed, 2003-08-06 at 21:18, Miguel Carvalho wrote:
 i tried to do that but it didn't worked that well, the thing is, like you
 have probably noticed i'm kind of newbie in cocoon, so i started this
 project from a sample chello that used cocoon 2.0rc2.
 Now, trying to upgrade to 2.0.4 i kind of messed up things a little :P

This chello thing, is that something you got recently? If so, could
you tell me where it's from? It might confuse other potential users as
well...

 
 I thought that it would be ehough to copy the cocoon.jar that is generated
 from the build dir of the src of cocon2.0.4 but it seems (my recente
 experience - today :) ) that this isn't that linear..

You'll need to copy over all the jars from WEB-INF/lib.

But I think it will be more manageable if you work the other way around:
copy your things to a new Cocoon webapp.

Since you're doing this work now, you might as well upgrade immediately
to the cocoon 2.1 Release Candidate.

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



selector

2003-08-07 Thread andi
Hi there,

I'm searching for solution for following problem. I
have to customize my xslts for many different browsers
(wap). to avoid map:when cascades in map:select i
would like to have something like the following (which
obviously doesn't work): 

map:select type=mPrismaBrowser
  map:when pattern=*
map:transform src=style/options2{1}.xsl /
  /map:when
/map:select

map:match doesn't work inside map:select :-(

any ideas?

thanks

andi m

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



[HELP]Could not find component (key [org.apache.cocoon.webapps.portal.components.PortalManager])

2003-08-07 Thread Jonathan Brazil
Hi All,

I am trying to modify the portal demo that comes with the latest release of
Cocoon. I have noticed that the admin login for the portal demo (not the
portal-fw) does not allow configuration of the portal or users, etc nor does
it allow organisation of the coplets on the page in the same way that the
portal-fw example allows. I have started to bring in the admin-conf rules to
try and add this functionality myself but instantly upon adding the
sunrise-adminconf rule and trying to execute the pattern to see what results
it yields I receive the included error message. This is probably a stupid
question but I am a Cocoon novice so any help would be greatly appreciated.

Thanks in advance,

Jonathan

Description:org.apache.avalon.framework.component.ComponentException: Could
not find component (key
[org.apache.cocoon.webapps.portal.components.PortalManager])


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



RE: problem creating a new transformer

2003-08-07 Thread Miguel Carvalho
Hi, i am now trying to upgrade to 2.1rc1, but i am wondering ... what
precautions do i need to clean up cooon a little. I just need a cocoon
project that allows me to create a generator, and a transformer in xsp and
java respectively. What are your sugestions? do i start with the webapp
directory /cocoon2.1rc1/src/webapp directory and start from there, do i
build cocoon and get the jar and libs and start a new project (but here i
will have another problem that is to achieve the right configuration to the
sitemap and xconf) or are there any more options that i am not seing???

oh and by the way... the compile time of cocoon in my computer was 14
minutes, how can i tell it not to build the javadoc and maybe the samples, i
dont know if it is possible but i would like to try and reduce a bit the
compile time.. :)

Thanks in advance
Miguel Carvalho

-Original Message-
From: Bruno Dumon [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 7 de Agosto de 2003 8:44
To: [EMAIL PROTECTED]
Subject: RE: problem creating a new transformer


On Wed, 2003-08-06 at 21:18, Miguel Carvalho wrote:
 i tried to do that but it didn't worked that well, the thing is, like you
 have probably noticed i'm kind of newbie in cocoon, so i started this
 project from a sample chello that used cocoon 2.0rc2.
 Now, trying to upgrade to 2.0.4 i kind of messed up things a little :P

This chello thing, is that something you got recently? If so, could
you tell me where it's from? It might confuse other potential users as
well...


 I thought that it would be ehough to copy the cocoon.jar that is generated
 from the build dir of the src of cocon2.0.4 but it seems (my recente
 experience - today :) ) that this isn't that linear..

You'll need to copy over all the jars from WEB-INF/lib.

But I think it will be more manageable if you work the other way around:
copy your things to a new Cocoon webapp.

Since you're doing this work now, you might as well upgrade immediately
to the cocoon 2.1 Release Candidate.

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



AW: IE6: Can't open dynamic PDF from applet

2003-08-07 Thread Skladovs, Victor
Thanx!

I'll try it. Hope it helps -:))

Viktor

-Ursprüngliche Nachricht-
Von: Conal Tuohy [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. August 2003 12:08
An: [EMAIL PROTECTED]
Betreff: RE: IE6: Can't open dynamic PDF from applet


Hi Victor

I think you need to have a look at the HTTP layer. What I use for these
debugging situations is a little java app called NetTool. 

It's small but it's excellent for debugging HTTP, esp SOAP. You can use
it to tunnel http connections, so you can see the HTTP request sent by
your browser and also see the response from the server. 

Or you can use it to make any kind of HTTP request, as a kind of
browser. You can add headers, choose a method, and you can save your
requests and use them again.

Cheers!

Con
download it here:
http://nettool.sourceforge.net/

 -Original Message-
 From: Skladovs, Victor [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 7 August 2003 20:25
 To: [EMAIL PROTECTED]
 Subject: AW: IE6: Can't open dynamic PDF from applet
 
 
 Thanks to everybody for your answers!
 
 This trick with ending .pdf doesn't work too!
 I don't use https.
 
 
 -Ursprüngliche Nachricht-
 Von: J.Pietschmann [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 6. August 2003 20:22
 An: [EMAIL PROTECTED]
 Betreff: Re: IE6: Can't open dynamic PDF from applet
 
 
 Skladovs, Victor wrote:
  Anybody of the community must have faced this problem, I believe.
  Are there workarounds for this problem? Why does it work with proxy
  (cache?)?
 
 Check whether the Cocoon pipeline is exexuted multiple times for the
 request, and fails after the first time. Check also
 http://xml.apache.org/fop/faq.html#iex-servlet-multiple
 That's also often the reason why retrieving PDF over HTTPS fails.
 It may help to use
   applet.getAppletContext().showDocument(
http://myserver/cocoon/table.pdf?par1=1par2=2e=.pdf;);
 
 J.Pietschmann
 
 It seems like all these solutions relate to the old isuues of 
 Cocoon (I
 may be wrong!), when it was not possible to see PDF documents 
 even from
 html page.
 But in Cocoon 2.0.4 I'm using this is not a problem. All formats (pdf,
 excel) are being shown perfect. In my html page there stands a link
 http://myserver/cocoon/table.pdf?par1=1par2=2; too and all 
 works fine.
 But when I try to open it from an applet using the method
 getAppletContext().showDocument(), I receive always the same error
 message, and all these solutions (ending with .pdf etc) don't 
 help. The
 only hint to this problem I think is that it works with 
 proxy. Why? What
 does the proxy do that it works?
 Any ideas are highly appreciated!
 
 Regards,
 Viktor Skladovs
 
 
 
 -
 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]



AW: Rendering XML!

2003-08-07 Thread Jens Maukisch
Hi,

 we want to present our data (XML)  in different format like Excel,
pfg,html or some other XML.
 I want to use Cocoon for that . Can somebody guide me on how to do that or
refer to some resources.

you should take a look at the cocoon documentation,
especially the serializers:
http://cocoon.apache.org/2.1/userdocs/serializers/serializers.html
and at the cocoon wiki:
http://wiki.cocoondev.org/Wiki.jsp

and then have a look at the cocoon examples


hth

Jens Maukisch

sn AG
netBank solutions
Klingenderstr. 5mailto:[EMAIL PROTECTED]
D-33100 Paderborn   http://www.s-und-n.de



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



datasource connect retry

2003-08-07 Thread David Kavanagh
I'm seeing a problem with cocoon 2.0.4 and my database connection.
I'm running on JBoss3.0.7 with tomcat 4.1.x and JDK1.4.1_01
What happens is that I connect to the database to get information for a 
screen. That works fine. I drop the connection (close my port map), then 
the query fails (with the first stack trace fragement below).
Next, I restore my port map (so the connection is re-established) and I 
still see an error (the second stack trace fragment below).
It seems like the cocoon DataSource object isn't doing its thing. I've 
configured the datasource using the j2ee option. I have the JNDI 
datasource set up in jboss. We have other apps that have done a manual 
lookup of the JNDI datasource and are able to recover just fine. So, 
that leaves the Cocoon datasource as the culprit.
Anyone know anything about this?

Thanks,
David
When the connection is broken...

DEBUG   (2003-08-06) 14:42.09:309   [sitemap.transformer.sql] 
(/membership/) Thread-9/SQLTransformer: SQLTransformer:.executeQuery() 
query.execute failed
java.sql.SQLException: Failed to obtain connection. Made 5 attempts with 
5000ms interval
   at 
org.apache.cocoon.transformation.SQLTransformer$Query.getConnection(SQLTransformer.java:1006)
   at 
org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer.java:1059)
   at 
org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.java:301)

Still, after the connection is restored...
DEBUG   (2003-08-06) 14:44.04:514   [sitemap.transformer.sql] 
(/membership/) Thread-11/SQLTransformer$Query: SQLTransformer$Query: 
could not acquire a Connection -- waiting 5000 ms to try again.
ERROR   (2003-08-06) 14:44.09:522   [sitemap.transformer.sql] 
(/membership/) Thread-11/SQLTransformer$Query: Caught a SQLException
java.sql.SQLException: Failed to obtain connection. Made 5 attempts with 
5000ms interval
   at 
org.apache.cocoon.transformation.SQLTransformer$Query.getConnection(SQLTransformer.java:1006)
   at 
org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer.java:1059)
   at 
org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.java:301)
   at 
org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTransformer.java:458)



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


RE: problem creating a new transformer

2003-08-07 Thread Bruno Dumon
On Thu, 2003-08-07 at 15:27, Miguel Carvalho wrote:
 Hi, thanks for the previous tips.. ;)
 
 Now i'm having an existencial doubt... :)
 
 I've created a transformer in java but it was made when i was still using
 the chello project...
 
 Because i am trying to follow the instructions on the wiki,

I would suggest first trying to get your project working on Cocoon 2.1,
and only after that try to automate things using the wiki-description.

  i will try to
 create my project outside the cocoon folder and change the
 $cocoon-root/sitemap.xmap so i create a mount point to my directory.

It would be better if you let your build script copy your directory to
the cocoon webapp. The root sitemap contains an automount mount
statement that will automatically mount any subdirectories.

 
 and now my doubt ...
 
 the transformer mentioned above imported org.apache.cocoon.*, do i have to
 copy the cocoon.jar and all the other libs needed by cocoon to my project
 libs directory?? or is there another way?

Instead of copying them, let your build script directly point to the
WEB-INF/lib directory of the webapp.

Don't expect me to hold your hand during all this however.

-- 
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: Newbie: substring searching for /

2003-08-07 Thread Chris Clark
I'm using 2.1m2 and in it the request object has a scheme which should give you the 
http or https.
So you should be able to use:

map:generate type=file 
src='{request:scheme}//:{request:serverPort}/{request:contextPath}/xml/report{requestQuery}'/

Cheers,
Chris

P.S. The Input Modules link in the samples is very good for figuring out what you 
have at your disposal.

 -Original Message-
 From: Grange, John [SMTP:[EMAIL PROTECTED]
 Sent: Monday, August 04, 2003 11:37 AM
 To:   '[EMAIL PROTECTED]'
 Subject:  Newbie: substring searching for /
 
 Hi, 
 
 I have the following node in my sitemap.xmap file: 
 map:generate type=file 
 src='{request:substring-before(protocol,/)}//:{request:serverPort}/{request:contextPath}/xml/report{requestQuery}'/
 
 The idea is that I should be able to get the http or https from the user's request.  
 Cocoon returns to me with the error below, however and I'm at a loss as to why.
 
 description org.apache.cocoon.ProcessingException: Language Exception: 
 org.apache.cocoon.components.language.LanguageException: Error compiling 
 sitemap_xmap: Line 1315, column 128: method /(java.lang.String, java.lang.String) 
 not found Line 1317, column 84: method /(java.lang.String, java.lang.String) not 
 found Line 0, column 0: 2 errors 
 
 sender org.apache.cocoon.servlet.CocoonServlet 
 
 source Cocoon servlet 
 
 stack-trace 
 
 org.apache.cocoon.ProcessingException: Language Exception: 
 org.apache.cocoon.components.language.LanguageException: Error compiling 
 sitemap_xmap:
 
 Line 1315, column 128:  method /(java.lang.String, java.lang.String) not found 
 Line 1317, column 84:  method /(java.lang.String, java.lang.String) not found 
 Line 0, column 0: 
 2 errors 
 
 
 
 
 John Grange 
 Software Team Leader 
 Tel: +44 (0) 1749 834922 
 Email: [EMAIL PROTECTED] 
 
 BlueFinger Limited 
 Underwood Business Park, Wookey Hole Road, Wells, Somerset, BA5 1AF, UK 
 Tel: +44 (0) 1749 834900 
 Fax: +44 (0) 1749 834902 
 Mobile: +44 (0) 7876 038058 
 web: www.bluefinger.com 
 
 Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. 
 BS1 6EG. 
 *** This E-mail contains confidential information for the addressee only. If you are 
 not the intended recipient, please notify us immediately. You should not use, 
 disclose, distribute or copy this communication if received in error. No binding 
 contract will result from this e-mail until such time as a written document is 
 signed on behalf of the company. BlueFinger Limited cannot accept responsibility for 
 the completeness or accuracy of this message as it has been transmitted over public 
 networks.***
 

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



Re: problem with the CLI

2003-08-07 Thread Upayavira
 Upayavira,
 
 I rebuild cocoon as you suggested.
 This indeed fixes my problem.
 I can now enjoy the full power of cocoon without misterious stack
 traces :-) Thanks a lot for your great help !

You're welcome.

And if you're planning to keep using the CLI, keep an eye on the CVS - I've got some 
major changes that I've been working on, but I'm not going to put them into CVS until 
after 2.1 has been released. There's a lot of refactoring, which would need more 
testing. Once this refactor is complete, it'll be much easier to support and extend.

Glad I was able to help.

Regards, Upayavira


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



Re: AW: Binary Version Cocoon2.1

2003-08-07 Thread Bertrand Delacretaz
Le Mardi, 5 aoû 2003, à 11:17 Europe/Zurich, Mustafa Ali, Halgurt a 
écrit :

...This is not the Problem, I compiled the Source code, but I could 
not get Deli started, can you tell me what I have to do in order to 
get Deli examples shown? There is some Options to be considered while 
compiling cocoon, but I do not know them...
I'm not familiar with Deli but according to 
http://wiki.cocoondev.org/Wiki.jsp?page=SamplesRefactor the deli 
samples have not been tested yet.

You should post a more detailed description of your problem here (with 
a new subject) so that someone can help you out.

-Bertrand

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


Re: Request generator changes ?

2003-08-07 Thread Geoff Howard
http://wiki.cocoondev.org/Search.jsp?query=uploadsSearch=Find%21

http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithCocoon
http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithFlow
http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadWithAction
The FileUploadsWithFlow is actually poorly titled.  It does cover flow, 
but more importantly it's the only place besides the archives and the 
code itself where Stefano's reworking of the request parsing is documented.

Geoff

Michael Wechner wrote:
Geoff Howard wrote:

Michael Wechner wrote:

snip /



The Wiki has more.  This is in bad need of moving into the real 
documentation.  If anyone has the time, a good gameplan would be to 
combine the three upload related pages at the wiki into a good 
document on uploads with Cocoon with all the current changes in mind.


do you have the URLs of the related pages within the Wiki?

The search didn't reveal a lot:
http://wiki.cocoondev.org/Search.jsp?query=enable-uploadsSearch=Find%21
Thanks

Michael

  I can't

write it at the moment, but I could guide someone through 
understanding the issues and the current state.

Geoff Howard

-Original Message-
From: Michael Wechner [mailto:[EMAIL PROTECTED] Sent: 07 
August 2003 15:39
To: [EMAIL PROTECTED]
Subject: Re: Request generator changes ?

Vincent De Groote wrote:

Hello,

I cocoon-2.0.3, the request generator produced parameters for the 
datas

sent

by a form (in multipart/form-datas).  In cocoon 2.1, these values 
are not
generated anymore.

What do I need to do to retrieve the old processing ?
maybe you have to enable-uploads

 init-param
param-nameenable-uploads/param-name
param-valuetrue/param-value
/init-param
within web.xml

HTH

Michael


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


Re: Where are httpclient sources

2003-08-07 Thread Geoff Howard
Nuno Leong wrote:
Where are the sources used to build commons-httpclient-20020423.jar ?
The naming convention tells that the jar is built from a cvs checkout of 
that project on April 23 2002.  You can get the same sources from that 
day via their cvs.  Cocoon has since implemented a policy of only 
including released versions of external libraries to combat just this 
sort of problem.  At this point I think there are only one or two cases 
where that policy is violated in the cvs of cocoon 2.1.

What is the specification version of the httpclient needed to run cocoon 
2.0.4 ?
 
I searched http://jakarta.apache.org/commons/httpclient/ but found only 
implementations of the 2.0 specification which (I believe) is 
incompatible with cocoon...
Don't know anything about the specifics.  Perhaps someone else.

Geoff

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


Error message: net.sf.saxon.TransformerFactoryImpl is not a TrAX Transformer Factory

2003-08-07 Thread Maik Dobryn

Hi All,

I am using Cocoon 2.1rc1. I would like to use the Saxon XSL Transformer 
instead of the default one, but I get an emtpy site in conjunction with an 
error in the logs.

Do anyone know this kind of message and can tell me want it means?

Regards, Maik


[core.log / error.log]
ERROR   (2003-08-06) 18:11.37:362   [core.xslt-processor] (/xthesis/) 
PoolThread-4/XSLTProcessorImpl: The indicated class 
'net.sf.saxon.TransformerFactoryImpl' is not a TrAX Transformer Factory. 
Using default TrAX Transformer Factory instead.

[cocoon.xconf]
[...]
component role=org.apache.excalibur.xml.xslt.XSLTProcessor/saxon 
class=org.apache.excalibur.xml.xslt.XSLTProcessorImpl 
logger=core.xslt-processor
parameter name=use-store value=false/
parameter name=transformer-factory 
value=net.sf.saxon.TransformerFactoryImpl/
/component
[...]

[sitemap.xmap]
[...]
map:transformer name=saxon pool-grow=2 pool-max=32 pool-min=8 
src=org.apache.cocoon.transformation.TraxTransformer
use-request-parametersfalse/use-request-parameters
use-browser-capabilities-dbfalse/use-browser-capabilities-db  
xslt-processor-roleorg.apache.excalibur.xml.xslt.XSLTProcessor/saxon/xslt-processor-role
/map:transformer
[...]


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