RE: PDF Double Dipping -- FOP bug?

2002-09-13 Thread Matthew Langham



Hi 
Paul,

I 
think this is a known bug when using the PDF viewer in Microsoft 
IE.

Matthew

 

  -Original Message-From: Paul Lee 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, September 13, 2002 
  2:47 AMTo: [EMAIL PROTECTED]Subject: PDF 
  "Double Dipping" -- FOP bug?
  
  I know the subject line is pretty 
  stupid, but hell, its been a long day
  
  I have started to use Cocoon to 
  generate HTML and PDF output from a database. It works great but I noticed that 
  whenever I generate a PDF file the same query always get executed twice, while 
  the equivalent HTML generation uses only one request. This is especially noticeable as one 
  of my queries take a minute long. 
  Cocoon also seem to reprocess the XML whenever I ask for the PDF 
  transformation  this is evident from the double spike in the processing 
  power usage (I am running Windows 2000 and you can see the two hills 
  prominently in the Task Manager)
  
  I am wondering if I am doing 
  anything wrong, but I noticed that it seems to be doing the same thing even to 
  the hello.pdf example on a fresh, plain installation 
  of Tomcat/Cocoon.
  
  This leads me to wonder: is this a 
  bug in FOP? Has anyone seen/solve 
  this?
  
  Thanks in 
  advance!
  
  Paul
  
  p.s. Tomcat 4.0.4, Cocoon 2.0.3, 
  Windows 2000  Windows XP, JDK1.4  
  1.3.1


Re: [SUMMARY] How can I log in non-Cocoon Java classes?

2002-09-13 Thread Bertrand Delacretaz

On Friday 13 September 2002 09:24, Alan Hodgkinson wrote:
 More material for the (soon to be written) Cocoon hackers guide. :)

Maybe you want to add this to the Cocoon Wiki at 
http://outerthought.net/wiki/Wiki.jsp? it would be a nice complement to 
what's already there IMHO.

-Bertrand

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: PDF Double Dipping -- FOP bug?

2002-09-13 Thread Bertrand Delacretaz

On Friday 13 September 2002 02:47, Paul Lee wrote:
. . .I noticed that whenever I generate a PDF
 file the same query always get executed twice
. . .

Most probably your client is Internet Explorer?

http://marc.theaimsgroup.com/?l=fop-userm=102836194606677w=2 
contains references to info about this IE bug, which causes it to make two or 
sometimes even more HTTP requests for non-HTML content.

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.






-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: PDF Double Dipping -- FOP bug?

2002-09-13 Thread caleb racey








Known bug in acrobat reader I think



http://support.microsoft.com/default.aspx?scid=kb;EN-US;q293792



I seem to remember (though may be totally
wrong) that the first request is trying to find the content length, and the
second request tries to get the content. There was something in the cocoon todos a while back about it.dont know
what happened though.





-Original Message-
From: Paul Lee
[mailto:[EMAIL PROTECTED]] 
Sent: 13 September 2002 01:47
To: [EMAIL PROTECTED]
Subject: PDF Double
Dipping -- FOP bug?



I know the subject line is
pretty stupid, but hell, its been a long day



I have started to use Cocoon
to generate HTML and PDF output from a database. It works great but I noticed that
whenever I generate a PDF file the same query always get executed twice, while
the equivalent HTML generation uses only one request. This is especially noticeable as one of
my queries take a minute long.
Cocoon also seem to reprocess the XML whenever I ask for the PDF
transformation  this is evident from the double spike in
the processing power usage (I am running Windows 2000 and you can see the two
hills prominently in the Task Manager)



I am wondering if I am doing
anything wrong, but I noticed that it seems to be doing the same thing even to
the hello.pdf example on a fresh, plain installation of Tomcat/Cocoon.



This leads me to wonder: is
this a bug in FOP? Has anyone
seen/solve this?



Thanks in advance!



Paul



p.s. Tomcat 4.0.4, Cocoon
2.0.3, Windows 2000  Windows XP, JDK1.4  1.3.1










[SUMMARY] form validator and matches-regex problem

2002-09-13 Thread Antonio Gallardo Rivera

PLease, to be clear, then the email validator can be:

matches-regex=^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)\w\w\w?\w?$/
  ^^^
This will check for example: .com .ni and .info?

Its that right? 

Antonio Gallardo

 Er, watch out: there are TDLs that have 2 characters (the 
 country codes) and others that have 4 (.info).


El Viernes, 30 de Agosto de 2002 14:17, Barbara Post escribió:
 Thanks Andre, you're right. :-)

--
website: www.babsfrance.fr.st
ICQ #: 135868405
- Original Message - 
From: Andre Thenot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 4:20 PM
Subject: Re: form validator and regexp problem...


 On Friday, August 30, 2002, at 09:36 , Barbara Post wrote:
 
  I use the regexp expression from C 2.0.3 form validator example 
  and want to
  validate 2 email fields :
 
  in the descriptor :
 
   parameter name=emailTo nullable=no type=string
  matches-regexp=^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)\w\w\w?$/
  ^^
 Er, watch out: there are TDLs that have 2 characters (the 
 country codes) and others that have 4 (.info).
 
 A.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [SUMMARY] form validator and matches-regex problem

2002-09-13 Thread Antonio Gallardo Rivera

This does not work with:

[EMAIL PROTECTED]

Antonio Gallardo

El Viernes, 13 de Septiembre de 2002 02:09, Antonio Gallardo Rivera escribió:
 PLease, to be clear, then the email validator can be:

 matches-regex=^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)\w\w\w?\w?$/
  
 ^^^ This will check for example: .com .ni and .info?

 Its that right?

 Antonio Gallardo

  Er, watch out: there are TDLs that have 2 characters (the
  country codes) and others that have 4 (.info).

 El Viernes, 30 de Agosto de 2002 14:17, Barbara Post escribió:
  Thanks Andre, you're right. :-)

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: [SUMMARY] How can I log in non-Cocoon Java classes?

2002-09-13 Thread Piroumian Konstantin

 From: Alan Hodgkinson [mailto:[EMAIL PROTECTED]] 
 
 More material for the (soon to be written) Cocoon hackers guide. :)
 
 
 Logging in non-Cocoon Java Classes
 --
 
 This explaines how to implement Cocoon-style logging, in a 
 Java class that is not inherited from a Cocoon or Avalon 
 component class. The class is however used within a Cocoon 
 application. 
 
 A typical use for this might be in a Java Bean used in a 
 Cocoon application.
 
 1. The class must extend AbstractLogEnabled.

'MUST' is a little strong word here. Isn't it enough to implement the
LogEnabled interface
(http://jakarta.apache.org/avalon/api/org/apache/avalon/framework/logger/Log
Enabled.html) and provide methods for getting the logger?

The AbstractLogEnabled is a utility helper class and the problem with it is
that you'll have to extend it, which is not possible in all the cases, e.g.
if your class extends some app-specific base class and you can't change it.

Konstantin

 
 2. You must enable logging in the class by calling the
enableLogging() method on the class. This requires that you 
have a Logger object to provide to enableLogging(). Generally 
you can get the Logger from a Cocoon component class. In my 
case I call enableLogging from a Cocoon action class, which 
extends AbstractXMLFormAction.
 
 The resulting code is as follows:
 
 1. In the non-component class that needs to implement logging: 
You simply call the appropriate log method using the Logger
provided by the getLogger() method, which is available from 
the parent class AbstractLogEnabled.
 
 import org.apache.avalon.framework.logger.AbstractLogEnabled;
 
 public class SomeClass extends AbstractLogEnabled {
  
   public void someMethod() {
 ...
 getLogger().debug( Hello, log. It worked! ); 
 getLogger().info(  Hello, log. Here is info ); 
 getLogger().error( Hello, log. Here is an error ); 
 //..etc.
 ...
   }
 }
 
 2. In an Avalon component class, or a class that inherits from one:
Call enableLogging(). Note that most of the Cocoon classes extend 
Avalon Component classes.
 
   ...
   SomeClass myClass = new SomeClass();
   myClass.enableLogging( getLogger() );
   myClass.someMethod(); // Writes some log messages
   ...
 
 Note that you must call enableLogging() before you call any methods 
 that write log messages. It is not necessarily obvious when to call 
 enableLogging() as the creation and initialization of many of your 
 classes will be handled automatically by Avalon, one of the Cocoon
 sub-systems.
 
 To be absolutely sure that you are writing solid code, you'll need a
 basic understanding of the Avalon component life-cycle. This is a big 
 subject and beyond the scope of this short paper. You can read more 
 at:
 
 Avalon logkit, which is used by Cocoon:
 
  http://jakarta.apache.org/avalon/logkit/whitepaper.html

Avalon component lifecycle:

 
http://jakarta.apache.org/avalon/framework/reference-the-lifecycle.html

If you're still curious, here is a link to an excellent white paper 
explaining development using avalon:

  http://jakarta.apache.org/avalon/developing/index.html

..and that's all there is to it. 

Many thanks to Marcus Crafter and Judith Andres for their help.

Best wishes,

Alan.

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: PDF Double Dipping -- FOP bug?

2002-09-13 Thread Alex McLintock


whenever I generate a PDF file the same query always get executed twice,


This is in my FAQ. http://www.owal.co.uk/cgi-bin/fopfaq.cgi

I know I haven't updated it in absolutely ages, but it is a bit 
disheartening that people aren't looking at it before posting to the list.


Alex


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




possible bug in pipeline/transformer?

2002-09-13 Thread Simon Price

I'm seeing some strange behaviour when I use an XSLT stylesheet 
generated on the fly by cocoon. Unless I reference the generated xsl in 
the pipeline before using it as a transformer src I get a null pointer 
exception on the transformer (the one labelled DEBUG below). Hence the 
pointless map:part hack below.

   map:match pattern=bind-*.xsl
 map:generate src=model/{1}.xml/
 map:transform src=model/makebinder.xsl/
 map:serialize type=xml/
   /map:match

   map:match pattern=*.html
 map:aggregate element=doc

!-- HACK: I don't want this here but it makes the transform work!--
map:part src=cocoon:/bind-staff_model.xsl/

   map:part src=model/staff_model.xml/
   map:part src=xforms/{1}.xml/
 /map:aggregate
 map:transform src=model/selectmodels.xsl/
 map:transform src=cocoon:/bind-staff_model.xsl label=DEBUG/

Is this a bug? I can't find anything about it in bugzilla or on the 
list. Thoughts/suggestions welcomed.

There's nothing wrong with the stylesheet itself - if I save the xml it 
produces as a file and then use that as the transform src it all works 
fine without the hack.

VERSION INFO:
cocoon 2.1 (HEAD of about 2 weeks ago), jdk1.3.1, tomcat 4.0.1

Cheers

Simon

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [SUMMARY] How can I log in non-Cocoon Java classes? -- Improved solution

2002-09-13 Thread Alan Hodgkinson


Dear Piroumian,

  This explaines how to implement Cocoon-style logging, in a
  snip/
  1. The class must extend AbstractLogEnabled.
 
 ..Isn't it enough to implement the LogEnabled interface?
 snip/ and provide methods for getting the logger?

Yup, in Cocoon/Avalon, like Perl, there's more than one way to do it. :)
I just tried it your technique and it works just fine.

 The AbstractLogEnabled is a utility helper class and the problem with it is
 that you'll have to extend it, which is not possible in all the cases, e.g.
 if your class extends some app-specific base class and you can't change it.

This is, in fact, a more flexible solution. In my simple case, I just
needed 
logging from a bean and the extend was possible. With your method,
you're 
free from the restriction. You do have the (minimal) overhead of
implementing 
the LogEnabled interface, but in exchange you get the flexibility of not 
having to extend any log related classes.

For the record, here's a summary of the improved solution:

  import org.apache.avalon.framework.logger.Logger;
  import org.apache.avalon.framework.logger.LogEnabled;

  class SomeBean extends SomeOtherBean implements LogEnabled {
..
// The LogEnabled interface is one method: enableLogging
private Logger logger;
public void enableLogging( Logger logger ) { 
  this.logger = logger; 
}

// Example method that writes to the log
public void setThing( String thing ) {
  logger.debug( SomeBean: thing =  + thing );
  ...
}
  }

Note that you still have to call enabledLogging() with a valid Logger,
before you use write to the log, as I explained in original summary.

BTW: By popular demand, I published my original summary in the Wiki. 

  http://outerthought.net/wiki/Wiki.jsp?page=JavaLogging

But due to your input, it's already out of date :). I'll update it.

Thanks your help and..

Best wishes,

Alan.

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [SUMMARY] form validator and matches-regex problem

2002-09-13 Thread Ivan Luzyanin

Hi!

Try matches-regex=^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)+(\w){2,4}$/

Best regards!
Ivan.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: [SUMMARY] How can I log in non-Cocoon Java classes? -- Improved solution

2002-09-13 Thread Piroumian Konstantin

 From: Alan Hodgkinson [mailto:[EMAIL PROTECTED]] 
 Dear Piroumian,

I'd say: 'Dear Konstantin'.
(Reminder to myself: Create a FAQ entry for the name format of our Exchange
server ;)).

 
   This explaines how to implement Cocoon-style logging, in a
   snip/
   1. The class must extend AbstractLogEnabled.
  
  ..Isn't it enough to implement the LogEnabled interface?
  snip/ and provide methods for getting the logger?
 
 Yup, in Cocoon/Avalon, like Perl, there's more than one way 
 to do it. :)

It's not a different technic, cause the AbstractLogEnabled simply implements
the LogEnabled interface and provide a pair of convenience methods.

 I just tried it your technique and it works just fine.

[...]

 
 BTW: By popular demand, I published my original summary in the Wiki. 
 
  http://outerthought.net/wiki/Wiki.jsp?page=JavaLogging

But due to your input, it's already out of date :). I'll update it.

That's why I like the Wiki: it's extremely easy to update.

Btw, there is a cocoon-docs mail list where Cocoon documentation discussions
take place, so maybe you'll like to join the list.

Regards,
  person
titleMr/title
firstnameKonstantin/firstname
lastnamePiroumian/lastname
  /person


Thanks your help and..

Best wishes,

Alan.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




[Q] Search index

2002-09-13 Thread Ivan Luzyanin

Hi!

How to create search index for multiple language site? 
Any suggestions, examples?

Ivan Luzyanin.
My env.: Cocoon-2.0.3, JDK-1.4, Tomcat-4.0.4

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: PDF Double Dipping -- FOP bug?

2002-09-13 Thread Paul Lee

Hi everyone thanks for the info!  Yes I am using IE 6 (a mandate,
unfortunately) and I guess I'll have to write the file out to disk
first.

And Alex, sorry if I gave you that disheartening feeling, but actually I
did look for the problem in your FAQ: it just didn't occur to me that
the browser was the culprit and I skipped the title How do I get my web
based FOP working with Internet Explorer? promptly.  Rather I was
looking for keywords like Double Dipping ;)

Thanks again,

Paul

-Original Message-
From: Alex McLintock [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 13, 2002 5:21 AM
To: [EMAIL PROTECTED]
Subject: Re: PDF Double Dipping -- FOP bug?


whenever I generate a PDF file the same query always get executed
twice,


This is in my FAQ. http://www.owal.co.uk/cgi-bin/fopfaq.cgi

I know I haven't updated it in absolutely ages, but it is a bit 
disheartening that people aren't looking at it before posting to the
list.


Alex


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [SUMMARY] form validator and matches-regex problem

2002-09-13 Thread Barbara Post

I use :

^([\d\w][\d\w\-_\.]*@[\d\w\-_]+\.[\w]+[\.\w]*$ which works too.

When do I have to use square brackets and when do I use round ones
(parenthesis) ? Thanks.

Babs
- Original Message -
From: Ivan Luzyanin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 13, 2002 11:46 AM
Subject: Re: [SUMMARY] form validator and matches-regex problem


Hi!

Try matches-regex=^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)+(\w){2,4}$/

Best regards!
Ivan.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




How to retrieve manual mode key value in DBAction

2002-09-13 Thread Bruce Perryman

Hello,

I'm using a cocoon database action which adds a record
to the database, correctly incrementing the key value
on insert using 'mode=manual' in the db.xml.
Is there a way to retrieve the inserted value of the
key in the same action? Do I have to code a select or
is there a return value with the field?

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




building from CVS

2002-09-13 Thread Barbara Post

  [javadoc]
E:\BP\cvs\cocoon21\xml-cocoon2\build\cocoon\src\org\apache\cocoon\co
mponents\pipeline\AbstractProcessingPipeline.java:76: Class
sun.tools.tree.ThisE
xpression not found in import.
  [javadoc] import sun.tools.tree.ThisExpression;
  [javadoc]^
  [javadoc] javadoc: warning - Import not found:
sun.tools.tree.ThisExpression -
 ignoring!

Built it 10 minutes ago. jdk 1.3.1.

Also got :

 [echo] *  Classes of the optional package Activation are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  The SUN Activation package is required for the AxisRPCReader
clas
s
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the SUN Activation package and place the jar in the
lib/local
 dir

Which activation package ?

And also this message at the beginning :

[available] DEPRECATED - available used to override an existing property.
[available]   Build file should not reuse the same property name for
different v
alues.

What does this exactly mean ?

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




big bug in latest CVS ? Basic custom Action not working

2002-09-13 Thread Barbara Post

Hello,

I have the following, with CVS built 10 minutes ago, same bug with
yesterday's one... :

map:match pattern=xmldoc/*
   map:act type=xmldocexists
   map:parameter name=taminoUri
value=http://i3in0/tamino/BAEPP/BAEPP/
   map:parameter name=query value=Template[@Id='{../1}']/
   map:redirect-to uri=login/
   /map:act
   map:redirect-to uri=http://google.fr/
   /map:match

It does not work : {../1} has an empty value... I just println the query
parameter as soon as I get it in the action class see below.

If I use {1} which is wrong, I get the action executed twice : a first time
with the value of what is
matched by the star, a second time with login passed as value of query
parameter !!

This is really alarming... ;-o or maybe I need some rest...
Any clue ? The same bug if I use cocoon-2.1-dev.jar from 09/03, but all the
other newest jars.

public class XMLDocumentExistsAction extends ComposerAction
implements ThreadSafe {
  String uri = ;
  String query = ;

public Map act(Redirector redirector,
   SourceResolver resolver,
   Map objectModel,
   String source,
   Parameters param)
 {
  Map sitemapParams = new HashMap();
try{
this.uri = (String) param.getParameter(taminoUri);
System.out.println(new query to : + this.uri);
this.query = (String) param.getParameter(query);
System.out.println(this.query);
}

Babs



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: building from CVS

2002-09-13 Thread Bobby Mitchell



Barbara Post wrote:

  [javadoc]
E:\BP\cvs\cocoon21\xml-cocoon2\build\cocoon\src\org\apache\cocoon\co
mponents\pipeline\AbstractProcessingPipeline.java:76: Class
sun.tools.tree.ThisE
xpression not found in import.
  [javadoc] import sun.tools.tree.ThisExpression;
  [javadoc]^
  [javadoc] javadoc: warning - Import not found:
sun.tools.tree.ThisExpression -
 ignoring!

Built it 10 minutes ago. jdk 1.3.1.

Also got :

 [echo] *  Classes of the optional package Activation are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  The SUN Activation package is required for the AxisRPCReader
clas
s
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the SUN Activation package and place the jar in the
lib/local
 dir

Which activation package ?

Could it be the JavaBeans Activation Framework?
http://java.sun.com/products/javabeans/glasgow/jaf.html



And also this message at the beginning :

[available] DEPRECATED - available used to override an existing property.
[available]   Build file should not reuse the same property name for
different v
alues.

What does this exactly mean ?

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


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





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




sitemap reloading

2002-09-13 Thread Gernot Koller

Hi!

In some docu I read that for development it is a wise thing to have the following enty 
in your cocoon.xconf

sitemap file=sitemap.xmap reload-method=synchron check-reload=yes/

To me this sounded like, if I change my sitemap cocoon will automatically 
reload/recompile it without being necessary to restart the server.
Well, it doesn't seem to work this way. Did I misunderstand the meaning of the entry 
or is my Websphere Application Server to blame ?
Anybody else using WSAD and Websphere having similar problems ? Restarting the whole 
server for every change in the sitemap is quite a pain...

thanks,

Gernot.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




XSP and ServletContext object

2002-09-13 Thread Werner Guttmann

Hi,

the output of the XSP generator seems to indicate that in an XSP doc (or
logicsheet), there are a set of built-in variables that
you can use to access servlet objects (taken from the comments in the
java file derived from an XSP doc):

/* Built-in parameters available for use */
// context- ServletContext
// request- org.apache.cocoon.environment.Request
// response   - org.apache.cocoon.environment.Response
// parameters - parameters defined in the sitemap

Now, when trying to use the context object, I am getting the following
exception:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling

instruction_controller_xml:
Line 118, column 50:  Class javax.servlet.ServletContext not found in
void generate().
Line 0, column 0:
1 error

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

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

 at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:198)

 at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202)

 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278)

 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)

 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:317)

 at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)

 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

with the root being

org.apache.cocoon.components.language.LanguageException: Error compiling
instruction_controller_xml:
Line 118, column 50:  Class javax.servlet.ServletContext not found in
void generate().
Line 0, column 0:
1 error

 at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243)

 at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:207)

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

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

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

 at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:198)

 at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202)

 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278)

 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)

 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:317)

 at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

 at
prg.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144)

 at

Re: sitemap reloading

2002-09-13 Thread Barbara Post

I guess this is due to Websphere, here I use Tomcat 4.0.4 and it works fine
every time... with every version of C 2.0/2.1 I tried. I never used
Websphere...

Sorry.
- Original Message -
From: Gernot Koller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 13, 2002 3:32 PM
Subject: sitemap reloading


 Hi!

 In some docu I read that for development it is a wise thing to have the
following enty in your cocoon.xconf

 sitemap file=sitemap.xmap reload-method=synchron check-reload=yes/

 To me this sounded like, if I change my sitemap cocoon will automatically
reload/recompile it without being necessary to restart the server.
 Well, it doesn't seem to work this way. Did I misunderstand the meaning of
the entry or is my Websphere Application Server to blame ?
 Anybody else using WSAD and Websphere having similar problems ? Restarting
the whole server for every change in the sitemap is quite a pain...

 thanks,

 Gernot.



 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




AW: XSP and ServletContext object

2002-09-13 Thread Andres, Judith

Hi Werner,

Not an object of class javax.servlet.ServletContext is available but a wrapper object 
of class org.apache.cocoon.environment.Context.

Anyway, for me using the context variable works.

regards
Judith

 -Ursprüngliche Nachricht-
 Von:  Werner Guttmann [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Freitag, 13. September 2002 15:34
 An:   [EMAIL PROTECTED]
 Betreff:  XSP and ServletContext object
 
 Hi,
 
 the output of the XSP generator seems to indicate that in an XSP doc (or
 logicsheet), there are a set of built-in variables that
 you can use to access servlet objects (taken from the comments in the
 java file derived from an XSP doc):
 
 /* Built-in parameters available for use */
 // context- ServletContext
 // request- org.apache.cocoon.environment.Request
 // response   - org.apache.cocoon.environment.Response
 // parameters - parameters defined in the sitemap
 
 Now, when trying to use the context object, I am getting the following
 exception:
 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 
 instruction_controller_xml:
 Line 118, column 50:  Class javax.servlet.ServletContext not found in
 void generate().
 Line 0, column 0:
 1 error
 
  at
 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:340)
 
  at
 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292)
 
  at
 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:198)
 
  at
 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202)
 
  at
 
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278)
 
  at
 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)
 
  at
 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:317)
 
  at
 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)
 
  at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 
  at
 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156)
 
  at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 
  at
 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140)
 
  at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 
  at
 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144)
 
  at
 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)
 
  at
 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)
 
  at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
  at
 org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 with the root being
 
 org.apache.cocoon.components.language.LanguageException: Error compiling
 instruction_controller_xml:
 Line 118, column 50:  Class javax.servlet.ServletContext not found in
 void generate().
 Line 0, column 0:
 1 error
 
  at
 
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243)
 
  at
 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:207)
 
  at
 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:388)
 
 
  at
 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:333)
 
  at
 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292)
 
  at
 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:198)
 
  at
 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202)
 
  at
 
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278)
 
  at
 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)
 
  at
 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:317)
 
  at
 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)
 
  at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 
  at
 

RE: building from CVS

2002-09-13 Thread Piroumian Konstantin

 From: Barbara Post [mailto:[EMAIL PROTECTED]] 
 
   [javadoc]
 E:\BP\cvs\cocoon21\xml-cocoon2\build\cocoon\src\org\apache\cocoon\co
 mponents\pipeline\AbstractProcessingPipeline.java:76: Class
 sun.tools.tree.ThisE
 xpression not found in import.
   [javadoc] import sun.tools.tree.ThisExpression;
   [javadoc]^
   [javadoc] javadoc: warning - Import not found:
 sun.tools.tree.ThisExpression -
  ignoring!

[Cross-posting from cocoon-users.]

I had a question about exactly this import when I saw the CVS commit from
Carsten. And I couldn't find any reference to this class in the same diff.
This should be a type, no?

Barbara, try to remove that import and try again. Should help.

Konstantin

 
 Built it 10 minutes ago. jdk 1.3.1.
 
 Also got :
 
  [echo] *  Classes of the optional package Activation are not
  [echo] *  available. Apache Cocoon builds without them.
  [echo] *
  [echo] *  The SUN Activation package is required for the 
 AxisRPCReader
 clas
 s
  [echo] *
  [echo] *  Recovery:
  [echo] *  Get the SUN Activation package and place the jar in the
 lib/local
  dir
 
 Which activation package ?
 
 And also this message at the beginning :
 
 [available] DEPRECATED - available used to override an 
 existing property.
 [available]   Build file should not reuse the same property name for
 different v
 alues.
 
 What does this exactly mean ?
 
 Babs
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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