RE: session attributes in sitemap

2003-05-28 Thread Carmona Perez, David
Look at the Sunshine component:

http://www.plenix.org/dbprism/doc/xdocs/developing/sunshine-contexts.html 


or create a simple action to do that.


David

-Mensaje original-
De: Mato Mira, Fernando [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 28 de mayo de 2003 15:09
Para: '[EMAIL PROTECTED]'
Asunto: RE: session attributes in sitemap

> From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
> On Wed, 28 May 2003 11:56:55 +0200
> "Mato Mira, Fernando" <[EMAIL PROTECTED]> wrote:
> >
> >   Is there a way to set a session attribute in the sitemap?
> >
> Try use SessionValidatorAction

I don't think this can be used to set it to the value of a match variable
like {1}.

-
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: Why tag does not work in

2003-05-28 Thread Yan, Charlene
All,

Maybe this is the wrong place to ask a question on XSL-FO.  Can someone point me to a 
mailing list on XSL-FO?  

Thanks a lot!

Charlene

-Original Message-
From: Yan, Charlene 
Sent: Tuesday, May 27, 2003 5:26 PM
To: [EMAIL PROTECTED]
Subject: Why  tag does not work in 


I am using XSL formatting objects.
I'm trying to specify different font weight to some text in one block.  
Solution Name: 
 

Somehow after I add the wrapper tag, the text inside the wrapper is not displayed.  
Only select name is displayed.  I have attached the stylesheet below.  Please help me!

Thanks.

Charlene
=





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

  
   http://www.w3.org/1999/XSL/Format";>
   

 
   
   
   
 

 
   
 
   
 


  
  
  
   
  
  Page 
   

  

  

   
  

  
  
Solution 
Detail Report 
Solution Name: 
 
Solution ID: 

Solution 
Keyword(s): 
 
Solution 
Description:


  
  


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



SQLTransformer bug

2003-05-28 Thread Carmona Perez, David
Dear Cocooners,

I've think I found a bug in the SQLTransformer in Cocoon 2.0.4, at least under 
Informix.

I use a simple query (select * from table) and it fails.  After having investigated a 
bit, I've come to the conclusion that it tries to do the following

open connection
create prepared statement
get resultset
close connection
navigate through the gathered resultset

Of course when navigating through the resultset, you get an SQLException.
If I comment out the  connection closing, everything works ok.

The right order would need to be:

open connection
create prepared statement
get resultset
navigate through the gathered resultset
close connection


Has this happened to anyone else?


David


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



Re: session attributes in sitemap

2003-05-28 Thread Yury Mikhienko
On Wed, 28 May 2003 15:08:36 +0200
"Mato Mira, Fernando" <[EMAIL PROTECTED]> wrote:

> > From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
> > On Wed, 28 May 2003 11:56:55 +0200
> > "Mato Mira, Fernando" <[EMAIL PROTECTED]> wrote:
> > > 
> > >   Is there a way to set a session attribute in the sitemap?
> > > 
> > Try use SessionValidatorAction
> 
> I don't think this can be used to set it to the value of a match variable
> like {1}.
> 

I don't understand what you want

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



RE: session attributes in sitemap

2003-05-28 Thread Mato Mira, Fernando
> From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
> On Wed, 28 May 2003 11:56:55 +0200
> "Mato Mira, Fernando" <[EMAIL PROTECTED]> wrote:
> > 
> >   Is there a way to set a session attribute in the sitemap?
> > 
> Try use SessionValidatorAction

I don't think this can be used to set it to the value of a match variable
like {1}.

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



Re: java.net.BindException: Address already in use (was: Apperant Failure)

2003-05-28 Thread Geoff Howard
This used to happen under older versions with hsql.  It didn't shut down
properly with cocoon and you'd get a BindException when restarting.  Didn't
cause any problems really, and if you don't need hsql for production you
should get rid of it anyway.  From your xalan version I'd guess you may be
using a version of cocoon that did not have this corrected.
Geoff

At 04:05 AM 5/28/2003, you wrote:
Hello Chris,

please compose a new mail if you want to open a new thread. Otherwise the 
subject is misleading and the mails are wrongly sorted in thread-view-able 
browsers.

Server.run/init: java.net.BindException: Address already in use
This may happen if your server was not shut down correctly the last time. 
This has not much to do with Cocoon I guess. You can kill such processes 
in Linux with "killall -9 java". BUT beware this kills every java process 
on this machine owned by the logged in user. It's also possible to search 
for the process ids and kill them step by step. In Windows NT or 2000 you 
can use the task manager to kill java processes.

Joerg

Chris Pratt wrote:
After much effort I have got cocoon half working on Weblogic 6.10 Sp3
Now I am getting the following error:
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.
In the web log I have the following:
Server.run/init: java.net.BindException: Address already in use
Any ideas. I do have the xalan-2.3.1.jar as first entry in the classpath.
Chris


-
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: flow - sendmailaction - content

2003-05-28 Thread Frank Taffelt

> OTOH why is it a problem to send a mail with attachments but no body?

maybe it's only a problem of the mua. When opening such a mail, i have a
blank screen and have to open the attachment.

Frank


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



Re: flow - sendmailaction - content

2003-05-28 Thread Christian Haul
On 28.May.2003 -- 01:37 PM, Frank Taffelt wrote:
> > In 2.1 you can pass a URLs to the action from which it obtains
> > attachments, eg cocoon://create_my_mail .
> 
> Yes i tried this and it works. But i won't use attachements. It would be
> nice, if the body (usually plaintext or html) could be treated the same way.
> Do you have a hint ?

Look at 

src/blocks/mail/java/org/apache/cocoon/acting/Sendmail.java
src/blocks/mail/java/org/apache/cocoon/mail/MailMessageSender.java

the first is really only a wrapper for the latter and feeds sitemap
parameters to the MailMessageSender.

OTOH why is it a problem to send a mail with attachments but no body?

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: flow - sendmailaction - content

2003-05-28 Thread Frank Taffelt
> In 2.1 you can pass a URLs to the action from which it obtains
> attachments, eg cocoon://create_my_mail .

Yes i tried this and it works. But i won't use attachements. It would be
nice, if the body (usually plaintext or html) could be treated the same way.
Do you have a hint ?


Frank


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



Re: session attributes in sitemap

2003-05-28 Thread Yury Mikhienko
On Wed, 28 May 2003 11:56:55 +0200
"Mato Mira, Fernando" <[EMAIL PROTECTED]> wrote:

> Hello,
> 
>   Is there a way to set a session attribute in the sitemap?
> 
> Thanks
> 
Try use SessionValidatorAction

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Re: session attributes in sitemap

2003-05-28 Thread Christian Haul
On 28.May.2003 -- 11:56 AM, Mato Mira, Fernando wrote:
> Hello,
> 
>   Is there a way to set a session attribute in the sitemap?

Only by using an action.

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: flow - sendmailaction - content

2003-05-28 Thread Christian Haul
On 28.May.2003 -- 11:27 AM, Frank Taffelt wrote:
> Hi,
> 
> a FlowScript question:
> 
> In my flowscript i wish to send email via the sendmailaction. The email
> should contain formatted content (HTML). How can i get the output from a
> pipeline into the flowscript?

In 2.1 you can pass a URLs to the action from which it obtains
attachments, eg cocoon://create_my_mail .

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]



[C2.1M2] IndexOutOfBoundsException (release/recycle)

2003-05-28 Thread Christoph Gaffga
Hi ,

we were trying to upgrade our servers from C2.04 to C2.1M2 and having a lot
of IndexOutOfBoundException in our logs. It seems that something with
Release/Recycle don't work in the ComponentManager. Is this a known bug in
C2.1M2, does anybody has the same problems? Is there a known workaround for
that?

Regards
Christoph Gaffga



java.lang.IndexOutOfBoundsException: Index: 48, Size: 34
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.remove(ArrayList.java:388)
at
org.apache.cocoon.components.EnvironmentDescription.removeFromAutoRelease
(CocoonComponentManager.java:569)
at
org.apache.cocoon.components.CocoonComponentManager.removeFromAutomaticRelea
se
(CocoonComponentManager.java:410)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.release
(AbstractProcessingPipeline.java:203)
at org.apache.cocoon.components.source.impl.SitemapSource.reset
(SitemapSource.java:436)
at org.apache.cocoon.components.source.impl.SitemapSource.recycle
(SitemapSource.java:456)
at
org.apache.cocoon.components.source.impl.SitemapSourceFactory.release
(SitemapSourceFactory.java:111)
at org.apache.excalibur.source.impl.SourceResolverImpl.release
(SourceResolverImpl.java:331)
at org.apache.cocoon.components.CocoonComponentManager.release
(CocoonComponentManager.java:457)
at org.apache.cocoon.environment.AbstractEnvironment.release
(AbstractEnvironment.java:511)
at org.apache.cocoon.generation.FileGenerator.recycle
(FileGenerator.java:90)
at org.apache.avalon.excalibur.pool.ResourceLimitingPool.put
(ResourceLimitingPool.java:438)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut
(PoolableComponentHandler.java:245)
at org.apache.avalon.excalibur.component.ComponentHandler.put
(ComponentHandler.java:452)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.release
(ExcaliburComponentSelector.java:337)
at org.apache.cocoon.components.ExtendedComponentSelector.release
(ExtendedComponentSelector.java:316)
at org.apache.cocoon.components.ExtendedComponentSelector.release
(ExtendedComponentSelector.java:313)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.recycle
(AbstractProcessingPipeline.java:637)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.rec
ycle(AbstractCachingProcessingPipeline.java:932)
at org.apache.avalon.excalibur.pool.ResourceLimitingPool.put
(ResourceLimitingPool.java:438)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut
(PoolableComponentHandler.java:245)
at org.apache.avalon.excalibur.component.ComponentHandler.put
(ComponentHandler.java:452)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.release
(ExcaliburComponentSelector.java:337)
at org.apache.cocoon.components.ExtendedComponentSelector.release
(ExtendedComponentSelector.java:316)
at
org.apache.cocoon.components.EnvironmentDescription.removeFromAutoRelease
(CocoonComponentManager.java:564)
at
org.apache.cocoon.components.CocoonComponentManager.removeFromAutomaticRelea
se
(CocoonComponentManager.java:410)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.release
(AbstractProcessingPipeline.java:203)
at org.apache.cocoon.components.source.impl.SitemapSource.reset
(SitemapSource.java:436)
at org.apache.cocoon.components.source.impl.SitemapSource.toSAX
(SitemapSource.java:428)




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



Problem with encodings using XMLSerializer?

2003-05-28 Thread Torsten Knodt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,
does someone know about a problem with the XMLSerializer regarding the 
encoding. I have given us-ascii, tried also with US-ASCII but it gives out 
iso-8859-15 or something like this. At least the german umlauts are shown 
right with this charset. I know the same setup worked a while ago with cocoon 
2.1 cvs version. Now, perhaps some month later, it doesn't work any more.
Hope I haven't missed a thread regarding this.

Regards
Torsten
- -- 
Domain in provider transition, hope for smoothness. Planed date is 1.7.2003.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+1IavvxZktkzSmiwRAgDTAJwL3jEQPByuPi6QSONdwXmFpfyefACcDgvh
OlxOMo1fDu0n2lmRgsSdg+o=
=20eI
-END PGP SIGNATURE-


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



session attributes in sitemap

2003-05-28 Thread Mato Mira, Fernando
Hello,

  Is there a way to set a session attribute in the sitemap?

Thanks

--
Fernando D. Mato Mira   [EMAIL PROTECTED] 

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



Can we stop cocoon logging this as errors?

2003-05-28 Thread Tsui, Alban
Title: Can we stop cocoon logging this as errors?





I have a webapp/site setup using cocoon 2.0.3 but whenever there is a redirection e.g. via action or users clicking hte pages very fast... I get the following:

ERROR   (2003-05-16) 13:53.20:296   [access] (Unknown-URI) Unknown-thread/CocoonServlet: Cocoon servlet threw an Exception while trying to close stream.

java.io.IOException: The stream has been closed
    at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:238)
    at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
    at java.lang.Thread.run(Unknown Source)


Could this be suppressed anywhere? I don't want to switch off my logging totally



alban


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




flow - sendmailaction - content

2003-05-28 Thread Frank Taffelt
Hi,

a FlowScript question:

In my flowscript i wish to send email via the sendmailaction. The email
should contain formatted content (HTML). How can i get the output from a
pipeline into the flowscript?

thanks in advance,
Frank


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



Re: Apperant Failure

2003-05-28 Thread Bruno Dumon
On Wed, 2003-05-28 at 10:11, Joerg Heinicke wrote:
> Dave Allen Barker Jr wrote:
>  > Stylesheets that use  generate a "Unable to get transformer
>  > handler" error.  Any help would be greatly appreciated!  I hope the
>  > following information is insightful.
> 
> Hello Dave,
> 
> not so long ago there was a problem with path resolving in XSLTC. AFAIK 
> it's fixed, I only don't know if it was before or after the 2.1M2 
> release. Maybe Bruno can help here.
> 

We did not upgrade xalan after the M2 release, so it seems there might
be yet another problem.

Dave, I assume you have nothing in your JAVA_HOME/jre/lib/endorsed
directory?

If so, could you create a simple reproducable testcase (and by
preference, file it as a bug in bugzilla)?

Thanks.

-- 
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: [SOLUTION]Re: Need to use getInputStream() from HttpRequest !!!

2003-05-28 Thread Lionel Crine
Yes, it is.

The example in the book use an enumeration to get the document.
It test if the file is a filepartfile or a filepartarray.
I've decided to work with filepartArray.

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


from 2.0.4 to 2.1m3 - The database detection method has changed-ODBC

2003-05-28 Thread Stavros Kounis
hi people

there is a small msAccess report (just few xsp) system designed in cocoon
2.0.4 and tested in 2.1-dev too.

now i want to put this in production using 2.1m3-dev
without to touch anything i dont get results from database (in 2.0.4 and
2.1-dev work fine)

this is a clean snapshot of 2.1m3

the only files ia have change are:

web.xml:


load-class




org.hsqldb.jdbcDriver


sun.jdbc.odbc.JdbcOdbcDriver





cocoon.xconf:



jdbc:odbc:litho_db




i have just copy paste all this from 2.1-dev where everything work


in error.log i get:

ERROR   (2003-05-28) 11:13.58:735   [sitemap.generator.serverpages]
(/cocoonCVS/osOthello-s/encoding/masterdetails.xsp)
Thread-16/masterdetails_xsp:
java.sql.SQLException: The database detection method has changed.
If your database is not being recognized (anymore) you can either fix it
in the Cocoon2EsqlConnection class,  file it to bugzilla, report it to
cocoon-dev or to me (tcurdt.at.apache.org) directly.
 Only be sure to include the database string "access" in your post.



what method has changed?

i try to get data from msAccess through ODBC


any comment?

thnx


--stavros



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



Re: using XML String in XSP

2003-05-28 Thread Christian Haul
On 27.May.2003 -- 04:47 PM, Gould, Troy (ELS) wrote:
> I'm using cocoon 2.0.4 and having difficulties with the
> xsp-util:include-expr and xsp:expr tags.
> 
> I have a method in a class that returns a XML Document as a String which I
> want to utilize within an xsp page.  However, I don't want the string to
> come back as text because the '<' tag (and others) will be escaped as <.
> I want the returned xml string to become part of the SAX stream.

> Then, I went to using:
> 
> String testDoc = WebServiceClient.getDocument("testDoc.xml");
> 
> 
  
testDoc
>

(mind the whitespace!) or

 
  


> 
> 
> All this was doing was printing out XML with util:include-expr and util:expr
> as tags.  The tag processor seems to not be processing my util namespace
> tags.

So, do you use the correct namespace for them? Does your XSP have a
correct structure (e.g. some top level tag starting the page?)

> The real problem is can I use XSP to get a XML Document as a String and
> still have it put into the SAX stream as a Node or do I need to just write
> my own custom generator to do this instead?

This is possible from XSP.

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: Re[2]: FOP/HSSFSerializer's and non-english characters

2003-05-28 Thread Yury Mikhienko
> >> >  > Cocoon's FOP/HSSFSerializer still does not support non-english characters,
> >> >  > can I solve this problem?
> >> > 
> >> > I don't know about the HSSFSerializer, but the PDFSerializer
> >> > does not have problems with non-ASCII characters. You'll have
> >> > to install appropriate fonts though, refer to
> >> >   http://xml.apache.org/fop/faq.html#pdf-characters
> >> > and
> >> > http://xml.apache.org/fop/faq.html#pdf-characters
> >> > 
> >> > Check the Cocoon docs for how to supply a user configuration
> >> > with user fonts to the PDF serializer.
> >> > 
> >> > If this still doesn't solve your problem, you'll have to
> >> > supply more details.
> >> > 
> >> 
> >> Thank you, will try.
> >> 
> 
> YM> Ok, the PDF serializer works properly (but with .ttf fonts only), but what about 
> the HSSFSerializer?
> YM> I still does not properly generate the exel document with russian characters :((
> 
> There is the "jakarta-poi-1.7.0-dev-20020624.jar" library in the
> "cocoon-2.1/src/blocks/poi/lib". It does not support russian
> characters. The support begins from version "1.8-dev".
> See "http://jakarta.apache.org/poi/changes.html#1.8-dev";
> The current version of POI is "2.0-pre1".
> 

Thank you, Peter.
Will try again.

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Re: Apperant Failure

2003-05-28 Thread Joerg Heinicke
Dave Allen Barker Jr wrote:
> Stylesheets that use  generate a "Unable to get transformer
> handler" error.  Any help would be greatly appreciated!  I hope the
> following information is insightful.
Hello Dave,

not so long ago there was a problem with path resolving in XSLTC. AFAIK 
it's fixed, I only don't know if it was before or after the 2.1M2 
release. Maybe Bruno can help here.

The problem was with the path resolving in XSLTC, you can switch to 
Xalan and it should work.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17825
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19324
Joerg

My Process

1.  Exploring the LinkRewriter Demos, I went to the "sitedemo".

2.  org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.apache.avalon.framework.CascadingRuntimeException: Error accessing 
attribute '/site/index/@href' from input module 'linkmap'. Error using 
source cocoon:/linkmap

3.  So, I tried to bring up the "linkmap", and got:  
org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for stylesheets/relativize-linkmap.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Things I've Tried

*  relativize-linkmap.xsl imports dotdots.xsl.  If I replace the 
 with the content of the dotdots.xsl stylesheet, the 
problem dissapears.
*  If I visit other samples that use , the problem follows.
*  Trying Cocoon 2.1-M1, this problem does not exist.

My Environment

Cocoon Version:  2.1m2
Servlet Container:  Jetty (included with Cocoon)
Java Version:  1.4.1_02
OS:  Windows XP
I didn't see anyone report the problem, and since it's so fundamental, I 
figure it's me.  So, thank you in advance for any pointers you can give!


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


java.net.BindException: Address already in use (was: Apperant Failure)

2003-05-28 Thread Joerg Heinicke
Hello Chris,

please compose a new mail if you want to open a new thread. Otherwise 
the subject is misleading and the mails are wrongly sorted in 
thread-view-able browsers.

Server.run/init: java.net.BindException: Address already in use
This may happen if your server was not shut down correctly the last 
time. This has not much to do with Cocoon I guess. You can kill such 
processes in Linux with "killall -9 java". BUT beware this kills every 
java process on this machine owned by the logged in user. It's also 
possible to search for the process ids and kill them step by step. In 
Windows NT or 2000 you can use the task manager to kill java processes.

Joerg

Chris Pratt wrote:
After much effort I have got cocoon half working on Weblogic 6.10 Sp3

Now I am getting the following error:

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.
In the web log I have the following:

Server.run/init: java.net.BindException: Address already in use

Any ideas. I do have the xalan-2.3.1.jar as first entry in the classpath. 

Chris


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


Re[2]: FOP/HSSFSerializer's and non-english characters

2003-05-28 Thread Peter Velychko
Wednesday, May 28, 2003, 8:08:47 AM, you wrote:

YM> On Tue, 27 May 2003 11:44:48 +0400
YM> Yury Mikhienko <[EMAIL PROTECTED]> wrote:

>> On Mon, 26 May 2003 21:35:18 +0200
>> "J.Pietschmann" <[EMAIL PROTECTED]> wrote:
>> 
>> > Yury Mikhienko wrote:
>> >  > Cocoon's FOP/HSSFSerializer still does not support non-english characters,
>> >  > can I solve this problem?
>> > 
>> > I don't know about the HSSFSerializer, but the PDFSerializer
>> > does not have problems with non-ASCII characters. You'll have
>> > to install appropriate fonts though, refer to
>> >   http://xml.apache.org/fop/faq.html#pdf-characters
>> > and
>> > http://xml.apache.org/fop/faq.html#pdf-characters
>> > 
>> > Check the Cocoon docs for how to supply a user configuration
>> > with user fonts to the PDF serializer.
>> > 
>> > If this still doesn't solve your problem, you'll have to
>> > supply more details.
>> > 
>> 
>> Thank you, will try.
>> 

YM> Ok, the PDF serializer works properly (but with .ttf fonts only), but what about 
the HSSFSerializer?
YM> I still does not properly generate the exel document with russian characters :((

There is the "jakarta-poi-1.7.0-dev-20020624.jar" library in the
"cocoon-2.1/src/blocks/poi/lib". It does not support russian
characters. The support begins from version "1.8-dev".
See "http://jakarta.apache.org/poi/changes.html#1.8-dev";
The current version of POI is "2.0-pre1".

-- 
Best regards,
 Petermailto:[EMAIL PROTECTED]


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



Re: Scheduler

2003-05-28 Thread Olivier Billard
Sorry, wrong list !


- Original Message - 
From: Olivier Billard
To: Cocoon Users
Sent: Wednesday, May 28, 2003 9:45 AM
Subject: Scheduler


Bonjour à tous !

Un thread est passé sur Cocoon-Dev, où quelqu'un demandait s'il existait un
composant de scheduling pour Cocoon.
Dans la réponse figure une série de composant Excalibur pouvant effectuer ce
service.

http://marc.theaimsgroup.com/?t=10540466466&r=1&w=2


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



Scheduler

2003-05-28 Thread Olivier Billard



Bonjour à tous !
 
Un thread est passé sur Cocoon-Dev, où quelqu'un 
demandait s'il existait un composant de scheduling pour Cocoon.
Dans la réponse figure une série de composant 
Excalibur pouvant effectuer ce service.
 
http://marc.theaimsgroup.com/?t=10540466466&r=1&w=2
    


  
  

  

  
  Olivier BillardIngénieur LogicielService Propriété 
  Industrielle
  

  
  Jouve Rennes12, rue des 
  LandellesImmeuble Hercule II35510 CESSON 
  SEVIGNEFRANCE

  
  TélFaxEmail

  
  : 02.99.86.98.46: 02.99.86.98.01: [EMAIL PROTECTED]

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


<>

RE: How to access sourceResolver in action configure() method

2003-05-28 Thread DURDINA Michal
Charles, 
thank you for a tip, but this way I only get the root of the webapplication.


(This produces the same result as something I was using:
org.apache.cocoon.environment.SourceResolver env =
org.apache.cocoon.components.CocoonComponentManager.getCurrentEnvironment();
path = env.resolve(myConfigFileName).getSystemId();
File file = new File(path);
)

But I have my action in mounted sitemap and sourceResolver for mounted
sitemap works in the context of the sitemap directory.
If my mounted sitemap is located in 'subsitemap' directory and I use action
within this sitemap, correct resolving of 'myconfig.xml' would be

d:/jboss/server/default/deploy/webapp.war/subsitemap/myconfig.xml

but via Context or Environment I only get my file resolved as 
d:/jboss/server/default/deploy/webapp.war/myconfig.xml - what is wrong.

Do not you know any way how to get same environment object as that which is
passed by SitemapManager to the act() method of any action located in
mounted sitemap?
Maybe I could get it from ComponentManager by some role?

Thank you,
Michal


-Original Message-
From: Charles Yates [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 7:32 PM
To: [EMAIL PROTECTED]
Subject: Re: How to access sourceResolver in action configure() method


Can you put the configuration stuff into cocoon.xconf?  Then it would be 
available in configure().  If not you could implement Contextualizable 
and get the HttpContext like this:

public void contextualize(Context aContext) throws ContextException {
myContext =
(HttpContext)
aContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT);
}

then you could get the file like this:

myConfigFile = new File(myContext.getRealPath(myConfigFileName));

Charles

(this works in 2.1, should in 2.0.4, though maybe minor differences)



DURDINA Michal wrote:

>Hello!
>I am using own ConfigurableComposerAction and I have problem with loading
>configuration from external file (from filesystem). In act() method, I
would
>use SourceResolver parameter passed to this method, but in configure()
>method I do not know where should I get the source resolver from.
>
>I am using Cocoon 2.0.4 with compiled sitemap, thus I cannot use this:
>
>  public void compose(ComponentManager manager) throws ComponentException {
>this.manager = manager;
>this.resolver =
(SourceResolver)manager.lookup(SourceResolver.ROLE);
>}
>
>Thank you for your help, 
>Michal
>
>-
>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]
__ Informacia od NOD32 1.415 (20030521) __

Tato sprava bola preverena systemom NOD32 pre Exchange.
http://www.eset.sk




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



RE: No way to extend XSP/JSP classpath?

2003-05-28 Thread Mato Mira, Fernando
> From: Geoff Howard [mailto:[EMAIL PROTECTED]

>  Look in cocoon.xconf and web.xml for additional classpath.
> I'm not sure if this is available within xsp though.

Great. I don't know if this will work for XSP but I don't care:
It's bad enough I have to modify the main sitemap and add my stuff
as a subdirectory of cocoon. I still haven't had to touch cocoon.xconf so
I'll leave it alone for now.

Thanks

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