Session ended - avoiding error pages?

2003-05-29 Thread Derek Hohls
Hi

Users need to logon to gain access to the 'protected area' 
of the site - however, it appears that after a certain time
the session expires, and the access "rights" are revoked; 
after that any attempt to access any link in the protected 
sections results in a Cocoon error.

Three questions:

1.  How and whewre is the length of session set?

2. Is there any way of triggering, say, the display of a 
default (probably site index) page as soon as the session
ends?

3.  If a default (probably site index) page cannot be
triggered automatically, how do I display such a page as
soon as a user attempts to access any link from inside the
protected section AFTER the session expires?

Thanks.


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


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



Re: xsl:import and dynamically generated xslt

2003-05-29 Thread Luca Marchetti
Luca Marchetti wrote:
Ok.. resolved.. It was a bug in my Xalan implementation. Downloaded a ne 
xalan and all works well...

Luca

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


Re: Re[2]: [SOLUTION] FOP/HSSFSerializer's and non-englishcharacters

2003-05-29 Thread Yury Mikhienko
On Wed, 28 May 2003 20:20:19 +0400
Yury Mikhienko <[EMAIL PROTECTED]> wrote:

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

For using the jakarta-poi-1.8.0-dev library in cocoon2.0.4 and Russian support 
implementation,
I have implemented the several changes in  jakarta-poi-1.8.0-dev and in cocoon's hssf 
element processor classes:
(POI -1.8.0-dev )
In jakarta-poi-1.8.0/src/java/org/apache/poi/hssf/usermodel/HSSFDataFormat.java
change the following
[122]private  Vector formats = new Vector();
[123]private Workbook workbook;
[124]private boolean movedBuiltins = false;  
to
[122]private static Vector formats = new Vector();
[123]private static Workbook workbook;
[124]   private static boolean movedBuiltins = false;  

and following
[251]  public  short getFormat(String format)
to
[251]  public static short getFormat(String format)

(cocoon2.0.4)
In 
cocoon-2.0.4/src/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java
 
change the following
[137] retval.setStyle(_sheet.getCellStyleForRegion(_row.getRowNum(), (short)column));
to
[137] retval.setStyle(_sheet.getCellStyleForRegion((short)_row.getRowNum(), 
(short)column));

and
in 
cocoon-2.0.4/src/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Sheet.java
change the 
[341] return new Row(_sheet.createRow(rowNo), this);
to
[341] return new Row(_sheet.createRow((int) rowNo), this);

and
in 
cocoon-2.0.4/src/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Cell.java
add the 
[120] _cell.setEncoding(HSSFCell.ENCODING_UTF_16);


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

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



Re: xsl:import and dynamically generated xslt

2003-05-29 Thread Luca Marchetti
Pardom...

My Environment

Cocoon Version:  2.1m1
Servlet Container:  Jetty (included with Cocoon)
Java Version:  1.4.1_02
OS:  Linux
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


xsl:import and dynamically generated xslt

2003-05-29 Thread Luca Marchetti
Hi all,
   I've got this problem: I have a pipeline that correctly generates a 
xslt stylesheet.

   
   
   
   
   
This correctly generates this stylesheet:

   
- <#> http://www.w3.org/1999/XSL/Transform*";>
 
 

What's the problem? in another pipeline I use this stylesheet, but if my 
transformer is

where test.xsl is the generated stylesheet all works perfectly,
if my trasformer is

my  does not work, and on the server console I get an error:
java.net.MalformerURLExeption: unknown protocol: cocoon
at hava.net.URL.
...
...
at org.apache.xalan.xsltc.compiler.Import.parseContents




So... why? anyone have experienced the same problem?

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


pipeline using ?

2003-05-29 Thread Jakob

Hi,

I want a URL like this:

http://mysite.org/cocoon/myapp/today

to be "redirected" or transformed to a URL:

http://mysite.org/cocoon/myapp/2003/05/29

I know about



but not how I can integrate it in a pipeline.

How can this be done?  Thank you,

Jakob Fix.



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



JXForm (XMLForm), Hibernate, Flowscript and the prefs example

2003-05-29 Thread Hugo Burm

I posted an implementation of the prefs example:
(http://localhost:8080/cocoon/samples/flow/prefs/)
to a Wiki page:
http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormJXFormHibernateAndFlowscript.

This examples uses JXForm and Hibernate for making the prefs persistent. The
Hibernate Sessionfactory is implemented in an Avalon component and created
from flowscript by the Cocoon componentmanager.

Hugo Burm


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



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

2003-05-29 Thread J.Pietschmann
Yury Mikhienko wrote:
 >   src="org.apache.cocoon.serialization.HSSFSerializer"
>   mime-type="application/vnd.ms-excel">
   KOI8-R
 
XLS is a binary format which *may* use Unicode. I don't think 
is of any use here, and asking for KOI8 encoding is definitely pointless.
J.Pietschmann

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


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

2003-05-29 Thread J.Pietschmann
Yury Mikhienko wrote:
Ok, the PDF serializer works properly (but with .ttf fonts only),
PFM fonts should work too, as well many OpenType fonts (OpenType
extends TrueType).
J.Pietschmann



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


Re: log level? thought i set it correctly...

2003-05-29 Thread Charles Yates
Tomcat logging is controled by $TOMCAT_HOME/conf/server.xml.  See 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html

icewind wrote:

Hi,

I am running cocoon 2.1-dev in tomcat 4. My log
directory, 
$TOMCAT_HOME/logs is gets really big, so I figured I'd
set the log levels from DEBUG to ERROR.

So, I modified $MY_WEBAPP/WEB-INF/logkit.xconf and
changed all the "DEBUG" to "ERROR".
I modified $MY_WEBAPP/WEB-INF/web.xml and changed the
log level in there to ERROR.
I looked in $TOMCAT_HOME/conf/web.xml and saw that
there was only one spot to change the log level, in
the JSP execution servlet. It was set as WARNING so I
left that as is. 

I then stopped tomcat, cleared teh work directories
and restarted. When I tail the logs, I still see tons
of DEBUG messages, and my logs grow just as fast as
before. What did I miss?
Thanks

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.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]


log level? thought i set it correctly...

2003-05-29 Thread icewind
Hi,

I am running cocoon 2.1-dev in tomcat 4. My log
directory, 
$TOMCAT_HOME/logs is gets really big, so I figured I'd
set the log levels from DEBUG to ERROR.

So, I modified $MY_WEBAPP/WEB-INF/logkit.xconf and
changed all the "DEBUG" to "ERROR".

I modified $MY_WEBAPP/WEB-INF/web.xml and changed the
log level in there to ERROR.

I looked in $TOMCAT_HOME/conf/web.xml and saw that
there was only one spot to change the log level, in
the JSP execution servlet. It was set as WARNING so I
left that as is. 

I then stopped tomcat, cleared teh work directories
and restarted. When I tail the logs, I still see tons
of DEBUG messages, and my logs grow just as fast as
before. What did I miss?

Thanks

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: Newbie Question: Where do I add to sitemap?

2003-05-29 Thread Ross Bleakney
Nevermind, I found the answer: put the  element inside

Thanks,
Ross

On Wed, 2003-05-28 at 17:35, Ross Bleakney wrote:
> Cocooners,
> I have created an action, but I need to modify my sitemap.xmap like so:
> 
> 
> 
> 
> 
> Where do I put this? I've tried putting it before the components, after
> the components, etc. I've looked at a bunch of examples, but they don't
> show the entire file (only snippets).
> 
> Thanks,
> Ross
> 
> 
> 
> 
> 
> -
> 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: Where do I add to sitemap?

2003-05-29 Thread Steven Cummings
Actions go *inside* components (actions are a type of component, like generator, 
serializer, transformer, etc.):


  
...
 etc. etc.

HTH

/S

Ross Bleakney <[EMAIL PROTECTED]> wrote:

>Cocooners,
>I have created an action, but I need to modify my sitemap.xmap like so:
>
>
>
>
>
>Where do I put this? I've tried putting it before the components, after
>the components, etc. I've looked at a bunch of examples, but they don't
>show the entire file (only snippets).
>
>Thanks,
>Ross
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114
MSN:   [EMAIL PROTECTED]


__
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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



Newbie Question: Where do I add to sitemap?

2003-05-29 Thread Ross Bleakney
Cocooners,
I have created an action, but I need to modify my sitemap.xmap like so:





Where do I put this? I've tried putting it before the components, after
the components, etc. I've looked at a bunch of examples, but they don't
show the entire file (only snippets).

Thanks,
Ross





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



Build Error in Cocoon

2003-05-29 Thread Scott McClure
I have installed Cocoon, previously, but I was trying to build it from 
scratch and I ran into the error:

BUILD FAILED
file:C:/cocoon-2.1m2/build/cocoon2.1m2/temp/blocks-build.xml:1053: 
C:\cocoon-2.1m2\src\blocks\session-fw\lib not found.

Relevant information:
OS: Windows XP Pro
JDK: 1.4.2 (Bleeding edge... Although I dont think that has anything to 
do with it...)
Cocoon: 2.1 milestone 2 (If you couldnt tell from the error...)

Any information is greatly appreciated.

Scott McClure

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


Link Hosting:

2003-05-29 Thread MediaHost \(TM\)



Hi Cocoon People,
 
Just wanted to correct a few details concerning 
Cocoon Support at MediaHost(TM).
 
First: What a surprise, but the URL changed and is 
now at http://www.mediahost.org and NOT 
at http://dev.startcom.org anymore.
 
Second: We offer today version 1.8.2 and the newest 
version 2.1. The customer can choose between this two versions, since we found 
out, that the older version is still wanted. Everything on a Resin 
Enterprise - Apache server.
 
Third: Thanks a lot for the great tool and thanks 
also for the listing of our URL for almost two years now!!!
Signer:  Eddy NiggCompany: StartCom 
Group at http://www.startcom.org    
MediaHost (TM) at http://www.mediahost.org
 
 
 
---StartCom Ltd.http://www.startcom.org
 
Outgoing mail is certified Virus Free.Checked by AVG anti-virus system 
(http://www.grisoft.com).Version: 
6.0.484 / Virus Database: 282 - Release Date: 
5/27/2003


Re: using XML String in XSP

2003-05-29 Thread Christian Haul
Gould, Troy (ELS) wrote:
I've tried your suggestions for whitespace and alternative xml tags (and
attributes) and it still craps out.
The example from Cocoon Developers book (shown below) doesn't even work


String xmlString = "A test value";
xmlString

Now, this example will not work as you have xml in your string literal 
which will result in broken java code. Use either CDATA or entities < 
>

Even putting the  tag around xmlString doesn't work either.  I've
tried addeding/removing whitespace all over the place and still not working.
The generated .java code for the .xsp file is just putting the following in
the code:
String xmlString = "
See ;-)

which is where I see the errors in the log files.

Seems like a definite bug.
Nope.

	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: Can we stop cocoon logging this as errors?

2003-05-29 Thread Charles Yates
there's a bug report on this:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16218
Tsui, Alban wrote:

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



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.



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


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

2003-05-29 Thread Charles Yates
The only thing I can think of is to upgrade to cocoon 2.1 where a 
SourceResolver is available from the ComponentManager.  But then you 
already knew that . . .

DURDINA Michal wrote:

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]
 



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


RE: using XML String in XSP

2003-05-29 Thread Gould, Troy (ELS)
I've tried your suggestions for whitespace and alternative xml tags (and
attributes) and it still craps out.

The example from Cocoon Developers book (shown below) doesn't even work


String xmlString = "A test value";
xmlString


Even putting the  tag around xmlString doesn't work either.  I've
tried addeding/removing whitespace all over the place and still not working.


The generated .java code for the .xsp file is just putting the following in
the code:
String xmlString = "

which is where I see the errors in the log files.

Seems like a definite bug.


I'm to the point where I'd rather just write my own Transformer.   Seems
like a bug like this has to be a show stopper for a lot of people.  






-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:23 AM
To: [EMAIL PROTECTED]
Subject: Re: using XML String in XSP


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]

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



Re: Error using "Protected Area" in samples

2003-05-29 Thread Joerg Heinicke
Hello Bobby,

try to use Xalan instead of XSLTC for this transformation. In the best 
case it will work (possible bug in XSLTC: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20308), in the worst 
case you will at least get a better error message.

Joerg

Bobby Mitchell wrote:
Using Version: 2.1m3-dev, RedHat 9.0, Tomcat 4.1.24.

I tried to access "Protected Area" in samples and get the following error:
 
org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for stylesheets/simple-page2html.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

cause: org.apache.excalibur.xml.xslt.XSLTProcessorException: Unable to 
create templates for stylesheet: 
file:/var/tomcat4/webapps/cocoon/samples/protected/stylesheets/simple-page2html.xsl 

Anybody see this and figure it out?


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


Re: Apperant Failure

2003-05-29 Thread Dave Allen Barker Jr
Bruno Dumon wrote:

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?
That is correct.


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


Thanks.

Thank you!

(Sorry for not keeping the thread, I hadn't subscribed to the list yet.)



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


Re: Apperant Failure

2003-05-29 Thread Dave Allen Barker Jr
That seems to be the case; when using Xalan, the error is not generated.

(Sorry for not keeping the thread, I hadn't subscribed to the list yet.)

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

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]


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

2003-05-29 Thread Yury Mikhienko
> 
> 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".
> 

I build and install (with cocoon2.0.4 rebuild) the jakarta-poi-1.8.0 but get the some 
result:
I get the "B5AB" symbols instead the "тест" word :((
May be I must configure the HSSFSerializer (like in FOP cause)?
in sitemap.xmap I have the following configuration:


...
 
   KOI8-R
 
   ...


may be that configuration is not complete?

Where I'm wrong?
Thanks for advise.

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

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



XSP : pages auto-refreshes a hunderd time!

2003-05-29 Thread Maxime.Gheysen
I had this problem a while ago, and it comes back. But I don't know why!
My page reloads itself until an error comes. If I take a tracer I can
see that the page comes correctly, but once loaded it is reloaded again
and again!

Why?

Has anybody any idea? Here is the complete XSP-page :


http://apache.org/xsp";
 xmlns:session="http://apache.org/xsp/session/2.0"; 
 xmlns:esql="http://apache.org/cocoon/SQL/v2";
 xmlns:xsp-request="http://apache.org/xsp/request/2.0";>   


java.text.SimpleDateFormat




Workflow Manager - session from 
  




Date now = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("dd--yy
HH:mm:ss");
String dateform = formatter.format(now);



.print?
dateform



 
 
 
  
   Order Name : 
   


  
 
 
 
  
 list of all orders:
 
 wfmgt
 

  SELECT * 
  FROM Orders 
  WHERE od_archive = 0
  AND od_sector = 
   
   

Order ID
Order Name
Edit Order
Delete Order
Creation Date




view-order?myID=


upd-order?myID=
Edit 

del-order_del?myID=
Delete

 




 

 
order-archivate_arcView archived
orders

manage-orderBack

 




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



RE: No way to extend XSP/JSP classpath?

2003-05-29 Thread Geoff Howard
The next version (2.2) of cocoon will enable hot-deployable
applications, but for now you are stuck editing configuration
files for some needs.
You can automate this process with ant using cocoon's XConfToolTask
which despite it's name can be used to patch other xml config
files (except 2.0.x can't do web.xml).
Don't you edit the config files for your servlet container and
http server?  What's so bad about editing a sitemap and xconf?
Geoff

At 03:12 AM 5/28/2003, you wrote:
> 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]


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


Re: problems tracking session from page to page

2003-05-29 Thread Geoff Howard
I'd have to look into the code to figure out exactly _why_ this happened,
but my understanding is that the start of generating "commits" the response.
Exactly what constitutes the "start" I don't know off hand, but my guess
would be when the SAX method startDocument() is called on the pipeline.
You get the same error I think if you omit the create-session attribute on
a simple one-xsp pipeline that uses session code inside the root element.
HTH,
Geoff
At 02:14 AM 5/28/2003, you wrote:
geoff,

you're right!  i moved the create-session attribute to the first map:part in
the aggregation you saw in my example.  i did the same in another nearly
identical aggregation in my sitemap.  now i'm able to access the session
from within the particular map:part where i wanted to in the first place.
i don't quite understand why this change made it work, though.  my only
clues are:
1.)  by accessing the session in the first map:part, i've somehow enabled
session access in a later map:part that otherwise wouldn't have
been able to access the session successfully.
2.)  the IllegalStateException was telling me that i "Cannot create a
session
after the response has been committed."
each map:part invokes a matcher similar to this one:





does the map:serialize "commit" the response?  is that what the error
message is
talking about?
thanks!

Mike Lenyon
- Original Message -
From: "Geoff Howard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 12:10 PM
Subject: Re: problems tracking session from page to page
> I think the issue is the aggregation.  to test, go directly to the
> general.currentproduct pipeline (with the create-session attr. in).
> If that works, try to move it to the first map:part if you can as
> a workaround.  A better solution would be to look into the session
> actions that will ensure you have created your session before the
> pipeline starts generating.
>
> HTH,
> Geoff
>
> At 08:56 AM 5/27/2003, you wrote:
> >hi geoff,
> >
> >yes, i've tried putting create-session in the xsp:page tag.  but i still
get
> >the IllegalStateException.  as you're probably aware, having
create-session
> >causes the following line to appear at the beginning of the generate()
> >method:
> >
> >Session session = request.getSession(true);
> >
> >that's the line that the exception refers to.
> >
> >here's a snippet from my sitemap to exemplify one of the two pages where
to
> >problem occurs:
> >
> > 
> > 
> > 
> > 
> > 
> > 

> > 
> > 
> > 
> > 
> > 
> >
> >does that provide any useful clues?
> >
> >thanks in advance.
> >
> >Mike Lenyon
> >- Original Message -
> >From: "Geoff Howard" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, May 27, 2003 8:22 AM
> >Subject: Re: problems tracking session from page to page
> >
> >
> > > But I think the problem is that your code is working with the
> > > session after processing starts and attempting there to create
> > > a session after it's too late.  Have you tried the create-session
> > > attribute yet?
> > >
> > > Geoff Howard
> > >
> > > At 07:05 AM 5/27/2003, you wrote:
> > > >antonio,
> > > >
> > > >thanks for your response, but please look at what i'm saying:
> > > >
> > > > > > > language="java"
> > > > xmlns:xsp="http://apache.org/xsp";
> > > > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > > > xmlns:xsp-session="http://apache.org/xsp/session/2.0";>
> > > >
> > > >causes the error message:
> > > >java.lang.IllegalStateException: Cannot create a session after the
> >response
> > > >has been committed
> > > >
> > > >in other words, not having create-session="true" doesn't matter.
simply
> > > >having
> > > > xmlns:xsp-session="http://apache.org/xsp/session/2.0"; causes the
> > > >problem.
> > > >
> > > >Mike Lenyon
> > > >- Original Message -
> > > >From: "Antonio Gallardo" <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Tuesday, May 27, 2003 1:49 AM
> > > >Subject: Re: problems tracking session from page to page
> > > >
> > > >
> > > > > Hi:
> > > > >
> > > > > I dont remember if changed from default. Before the default was
create
> >a
> > > > > new session. Now I think this is not the default.
> > > > >
> > > > > Please try to use:
> > > > > xmlns:xsp-session="http://apache.org/xsp/session/2.0";
> > > >create-session="true"
> > > > >
> > > > > Best Regards,
> > > > >
> > > > > Antonio Gallardo
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > >-
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > 

Error using "Protected Area" in samples

2003-05-29 Thread Bobby Mitchell
Using Version: 2.1m3-dev, RedHat 9.0, Tomcat 4.1.24.

I tried to access "Protected Area" in samples and get the following error:
  

org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for stylesheets/simple-page2html.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

cause: org.apache.excalibur.xml.xslt.XSLTProcessorException: Unable to 
create templates for stylesheet: 
file:/var/tomcat4/webapps/cocoon/samples/protected/stylesheets/simple-page2html.xsl

Anybody see this and figure it out?

--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638


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


RE: Why tag does not work in

2003-05-29 Thread Yan, Charlene
Thank you very much!!

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Why  tag does not work in 


Yan, Charlene wrote:
 > 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

Hello Charlene,

the Mulberry XSL-list is for both XSLT and XSL FO: 
http://www.mulberrytech.com/xsl/xsl-list/.

If it is a specific problem with FOP, you can ask on the FOP user list:
http://xml.apache.org/mail.html#fop-user.

Joerg

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


-
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-29 Thread Joerg Heinicke
Yan, Charlene wrote:
> 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

Hello Charlene,

the Mulberry XSL-list is for both XSLT and XSL FO: 
http://www.mulberrytech.com/xsl/xsl-list/.

If it is a specific problem with FOP, you can ask on the FOP user list:
http://xml.apache.org/mail.html#fop-user.
Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]