RE: deploy cocoon-2.0.3 under WebLogic7.0SP1

2003-01-15 Thread Schaper, Christoph
We successfully deployed cocoon 2.0.4 on WebLogic7.0SP1 as a war file.
With a previous version of either WL or cocoon it does not seem to work.


Christoph

-Original Message-
From: Xiaonan Zheng [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2003 15:49
To: [EMAIL PROTECTED]
Subject: deploy cocoon-2.0.3 under WebLogic7.0SP1


Hi All,

We have an application built upon cocoon-2.0.3 that is running under
Tomcat.  We are in the process to migrate the application to
WebLogic7.0SP1.  I have troubles to deploy cocoon in the war format.
However, if I deploy cocoon in an exploded format, everything looks fine.
I contacted WebLogic support.  Natually, they say this is a cocoon problem,
because cocoon developer hard coded the classpath loading.  Does anybody
experience the same problem?  If you do, can you tell me what exactly the
issue is?  More importantly, is there a way to fix this?  I hate to deploy
our app in an exploded format in production.

Thanks,
Shannon.



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: 1001 question aboit Command Line Interface

2003-01-15 Thread Upayavira
Here's my suggestion.

At the beginning of your bat, CD to a folder close to the jar files. Then you'll have 
much less characters in your classpath.

I have had this problem trying to use the 2.0.4 CLI, but didn't persevere through to a 
solution.

Regards, Upayavira

> Hello,
> 
> althoug many people have asked question about the cli, I couln't find an
> answer to mine.
> 
> I want to call the cli. But before I have to add ALL the lib in WEB-INF to
> my class path.
> Because it is a really long classpath I mad a .bat. Running it I get an
> error that the line is too long.
> 
> I tried nearly everything. Is there a way to set the classpath
> directory-wise and not include each .jar?
> 
> If you are using the cli, please tell me the steps to  bring it to work.
> 
> Rob
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Re: Log4J in Cocoon

2003-01-15 Thread Brian Johnson
Sorry, missed one step. I created a new public Logger2LogKitManager 
class in my own project with identical code so I could use it directly.
Brian

On Wednesday, January 15, 2003, at 03:47  PM, Brian Johnson wrote:

For anybody else that's interested, The latest CVS of Excalibur and 
Avalon-Framework support this through the 
org.apache.avalon.excalibur.logger.Logger2LogKitManager class for 
Cocoon2.1. Here are the steps I took:
1. replaced avalon-framework.jar, excalibur-logger.jar and logkit.jar 
with the latest CVS builds.
2. extended the CocoonServlet class init method to set the 
Logger2LogKitManager as the LogKitManager and reinitialize cocoon
3. updated web.xml for the new Servlet class
Now I can control all my logging with Log4J, and I didn't have to 
change any existing Cocoon or Avalon code. I'm not sure if this will 
work with Cocoon 2.0.x. Thanks.
Brian

On Wednesday, January 15, 2003, at 09:41  AM, Brian Johnson wrote:

I would like to log the cocoon sitemap to Log4J so that I can view it 
chainsaw on a remote host. It appears that the LogKit SocketAppender 
is not compatible with Chainsaw. I set enableLogging on cocoon with a 
Log4JLogger, but it only logs a few random core messages to Log4J. 
Does anybody know how to either replace or add to the logkit to log 
all messages to Log4J? Thanks.
Brian


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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. 

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




Re: xmlform samples are not working for me

2003-01-15 Thread Ivelin Ivanov
Title: xmlform samples are not working for me



This looks like another bad version of the Xerces or Xalan 
libs.
Have these been changed lately?
 
Ivelin
 

  - Original Message - 
  From: 
  Jonathan Spaeth 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, January 15, 2003 9:11 
  AM
  Subject: xmlform samples are not working 
  for me
  
  I just checked out the latest version of the 
  repository and found the xmlform samples are not working for me: 
  Here is the stack trace.  Has anybody seen 
  this or know what it could be related to? 
  java.lang.NullPointerException:at 
  org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.validatePipeline(AbstractCachingProcessingPipeline.java:424)at 
  org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:545)at 
  org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:497)at 
  org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:463)at 
  org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)at 
  org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)at 
  org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)at 
  org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)at 
  org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)at 
  org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)at 
  org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)at 
  org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)at 
  org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)at 
  org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)at 
  org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)at 
  org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)at 
  org.apache.cocoon.Cocoon.process(Cocoon.java:600)at 
  org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)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.ContainerBa

Re: [announce] CVSSource at cocoondev.org

2003-01-15 Thread Stefano Mazzocchi
Sylvain Wallez wrote:

Dear all,

I'm please to announce the availability of the CVSSource I talked about 
recently on cocoon-dev.

This component allows adding new protocols to the ones available in 
Cocoon (such as "resource:", "cocoon:", etc) which are linked "live" to 
a remote CVS repository. These protocols are _writeable_ : reading a 
CVSSource gets the latest revision of the corresponding file, and 
writing it creates a new revision.

The implementation is based on a LGPL'ed library and so cannot be hosted 
on Apache's CVS. Steven Noels kindly accepted to host it on 
cocoondev.org. So everything is available at :
  http://www.cocoondev.org/projects/cvssource.html

This is still to be considered experimental, although already used on 
real projects. So I'm awaiting your comments, suggestions and patches !

Enjoy,
Sylvain


Awesome!

--
Stefano Mazzocchi   <[EMAIL PROTECTED]>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: i18n again

2003-01-15 Thread Hong Gia Dinh
Title: i18n again



Thanks. I had a look there and also applied it! 
I have 
a question, can i have a common.xml and common_xx.xml including common 
vocabularies that will be used in many files!! (the example uses aggregate to 
get it) but in case i dont use aggregate, so how can i use??? (i dont want to 
copy and paste common vocabularies in for example search_xx.xml, edit_xx.xml 
.  . .)
 
Thanks 
a lot in advance
GD

  -Original Message-From: Konstantin Piroumian 
  [mailto:[EMAIL PROTECTED]]Sent: 14 January 2003 
  15:35To: [EMAIL PROTECTED]Subject: Re: i18n 
  again
  Again, please take a look at i18n samples (either in 2.0.3 
  or 2.1 versions) and you'll see that it's possible to specify the message 
  catalogue name on pipeline level, so you can have different pipelines using 
  different message catalogues. In i18n samples there are two message 
  catalogues: messages_xx.xml and menu_xx.xml and they are used in different 
  pipelines.
   
  Konstantin
  
- Original Message - 
From: 
Hong Gia Dinh 

To: [EMAIL PROTECTED] 

Sent: Tuesday, January 14, 2003 
06:32
Subject: i18n again

Hi all, 
I have rather large messages files! Can i have any way 
to define many messages for each language??? My 
messages_en.xml contains too many data! and i dont want a too large message, 
because it is very hard to managed and supervised! now i want to separate 
into number of messages such as messages_en_1.xml messages_en_1_1.xml . . . 
. can i do something like that or can i separate into small files to manage 
clearer?
Thanks a lot in advance GD 



Re: & in url [WAS: file generator error]

2003-01-15 Thread J.Pietschmann
Geoff Howard wrote:

Sorry for being an idiot.  & is valid in the html as delimeter, but the
browser should take it out so that

...

The reason I was confused was because I remembered a problem I encountered
in the past with & as the delimeter in html being passed through, but I
believe the problem there was more complicated - javascript was passing the
& literally IIRC.


You are in dire need to read the HTML and XML specs
at W3C and get rid of the mental baggage of the Tag
Soup approach early browsers imposed on unsuspecting
users.
If you want to have an ampersand in user data transported
in any HTML or XML document, like the Cocoon site map,
you have to escape it as &. Proper HTML and XML parsers
will deliver an ampersand to the application. Those nasty
exceptions introduced in JavaScript embedded in HTML are
actually bugs which sloppy developers who don't even know
where to find specs got used to.

J.Pietschmann


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Log4J in Cocoon

2003-01-15 Thread Brian Johnson
For anybody else that's interested, The latest CVS of Excalibur and 
Avalon-Framework support this through the 
org.apache.avalon.excalibur.logger.Logger2LogKitManager class for 
Cocoon2.1. Here are the steps I took:
1. replaced avalon-framework.jar, excalibur-logger.jar and logkit.jar 
with the latest CVS builds.
2. extended the CocoonServlet class init method to set the 
Logger2LogKitManager as the LogKitManager and reinitialize cocoon
3. updated web.xml for the new Servlet class
Now I can control all my logging with Log4J, and I didn't have to 
change any existing Cocoon or Avalon code. I'm not sure if this will 
work with Cocoon 2.0.x. Thanks.
Brian

On Wednesday, January 15, 2003, at 09:41  AM, Brian Johnson wrote:

I would like to log the cocoon sitemap to Log4J so that I can view it 
chainsaw on a remote host. It appears that the LogKit SocketAppender 
is not compatible with Chainsaw. I set enableLogging on cocoon with a 
Log4JLogger, but it only logs a few random core messages to Log4J. 
Does anybody know how to either replace or add to the logkit to log 
all messages to Log4J? Thanks.
Brian


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Logkit logger not working from within custom protocol

2003-01-15 Thread Collin VanDyck



Hi,
 
I've extended AbstractLoggable and implemented 
SourceFactory and Composable in order to create a protocol that will generate 
SAX events.  When I retrieve the logger (this.getLogger()), I get null 
back, which means i have resorted to system.out.printlns to debug (yek).  
Does anyone also have this problem?  I'm extremely new to Cocoon/Avalon, so 
any advice == much appreciated.
 
I'm running Cocoon on Win2k w/ Jboss3, 
Java1.4
 
thanks,--
 
Collin VanDyckAOL: djtclYahoo: 
webcollin


Not loading the HSQLDB?

2003-01-15 Thread Mark Horgan
Hi there,

I'm trying to not load the HSQLDB on startup to save memory. I've tried
commenting the  tag in cocoon.xconf but it still loads and
causes cocoon not to work properly. Is HSQLDB required for proper/internal
working of cocoon and if not how does one not load it?

Mark



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




deploy cocoon-2.0.3 under WebLogic7.0SP1

2003-01-15 Thread Xiaonan Zheng
Hi All,

We have an application built upon cocoon-2.0.3 that is running under
Tomcat.  We are in the process to migrate the application to
WebLogic7.0SP1.  I have troubles to deploy cocoon in the war format.
However, if I deploy cocoon in an exploded format, everything looks fine.
I contacted WebLogic support.  Natually, they say this is a cocoon problem,
because cocoon developer hard coded the classpath loading.  Does anybody
experience the same problem?  If you do, can you tell me what exactly the
issue is?  More importantly, is there a way to fix this?  I hate to deploy
our app in an exploded format in production.

Thanks,
Shannon.



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Custom ModifiableSource for new protocol

2003-01-15 Thread iconix
Hi,

I'm trying to write a new source for a custom protocol to proprietary
backend. the Source would inherit from
org.apache.cocoon.environment.ModifiableSource.
Now so far so good, but there are two ways such as Source can deliver its
XML as I understood:

- via toSAX()
- via getInputStream()/Source()

Now as it comes out my source needs both choices depending on the URL.
Because on the one hand I want to create SAX events for some object on the
other hand get a stream from the backend that contains already XML and
just want to pass it on.

Furthermore when I look at the code of existing sources I'm not getting
the idea how a source really works? I mean the SAX events have nothing to
do with the stream, is it two choices for a source or what? There are some
sources that only use toSAX(), some that use only streams, some that use
both.

Last but not least, the refresh() method of a ModifiableSource, when is it
being called? Is it the idea that a source keeps the data that it gets
from e.g. the backend and gives back that data whenever someone calls
toSAX or getInputStream() and only re-fetch that data in refresh()? Or can
one re-fetch the data with each request? And is there any way to influence
when refresh() is being called and what is the "default"?


Thanks for any help, Peter



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: - question

2003-01-15 Thread Geoff Howard
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 15, 2003 11:45 AM
> To: [EMAIL PROTECTED]
> Subject:  - question
>
>
> Hi,
>
> I want to include my own Java-Class in my XSP-Page



> 
>xmlns:xsp="http://apache.org/xsp";>
>
>   
>
> 

correct.

>
>   
>  
> String hello = null;
> hello = get_g();
> 
>
>hello
change the last line to:
 hello

You don't state what "doesn't work" but if you mean the page returned only a
literal attribute bla="hello" then this should be your only problem from
what I can see.


>
>
>
>   
> 
>
>
> Where do I have to place my Java-Class. Under .../cocoon/Web-Inf/classes
> (where I hava placed it right now!)?

yes, that works - make sure that if your class is declared part of a package
that you replicate the directory structure under WEB-INF/classes (many
people seem to make that mistake)

> How do I call methods, like my method get_g()?

The same way you would from any java class (your usage above should work
fine) since XSP generates and compiles a java file the first time your page
is executed.  I would highly recommend going to take a look at it.  It's
under your servlet container's work directory - most likely
$TOMCAT_HOME/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon
/www/jonny/filename_xsp.java - you may have to browse around for it if I've
made incorrect guesses.


HTH,
Geoff Howard


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




LogKit problem

2003-01-15 Thread Leszek Gawron
Hello,
My problem is simple: I'd like to have rotated logs named : 
sitemap.log.2003.01.15.18.19h. I have already found that cocoon is able to
append and rotate logs which can be quite nicely configured. I've read that
there are two types of log file naming 
1. revolving : you have to provide start and stop log index. File names look
like : sitemap.log.1, sitemap.log.2. When the upper bound index is reached the
lower index is taken so the log rotates 

2. unique : filename is sitemap.log. where logkit documentation says
that unique id is a number of milisecond since 1970/sth/sth. I've read in
logkit documentation that the file name may also contain "human readable" date
version but I have not idea how to configure it in the logkit.xconf file.

I need to change the log file every hour because I'm sometimes searching for
database errors and in bigger files it's a nightmare.

best regards 
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: 1001 question aboit Command Line Interface

2003-01-15 Thread Bertrand Delacretaz

Robert Sösemann wrote:
>. . .

set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\avalon-excalibur-vm14-20020705.
jar;D:\tmp\rauser-cocoon\WEB-INF\lib\avalon-framework-20020627.jar

>. . .

You need the equals signs in there I think, here's an example that works 
under windows 2000:

  @echo off
  set classpath=d:\bla\foo.jar
  set classpath=%classpath%;d:\x\y.jar
  set classpath=%classpath%;.\z.jar
  echo classpath=%classpath%

Running this correctly outputs:

  classpath=d:\bla\foo.jar;d:\x\y.jar;.\z.jar

Also, making a SUBST on D:\tmp\rauser-cocoon\ as suggested by someone 
else would make this more readable.

Hope this helps!
-Bertrand


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



Re: 1001 question aboit Command Line Interface

2003-01-15 Thread Robert Sösemann
Thanks. As I don't want to install ant. Could you just send me this batch
file.
- Original Message -
From: "du Plessis, Corneil C" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 2:52 PM
Subject: RE: 1001 question aboit Command Line Interface


Look at the lcp.bat that comes with Ant.


-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Sent: 15 January, 2003 13:57
To: [EMAIL PROTECTED]
Subject: Re: 1001 question aboit Command Line Interface


Robert Sösemann wrote:
 >. . .
> Because it is a really long classpath I mad a .bat. Running it I get an
> error that the line is too long.

If it is really a "line too long" problem and not and "out of
environment space" problem, you might want to try to setup the classpath
in several steps:

   set CLASSPATH=%CLASSPATH%;.\someDir\someJar.jar
   set CLASSPATH=%CLASSPATH%;.\someDir\someOtherJar.jar
...

 >. . .
> Is there a way to set the classpath
> directory-wise and not include each .jar?

I don't think so.


--
  Bertrand Delacretaz (codeconsult.ch, jfor.org)

  buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
  blogspace http://www.codeconsult.ch/bertrand


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official
business of
Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
privileged and protected by law. Standard Bank does not own and endorse any
other content.
Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank.

The person addressed in the e-mail is the sole authorised recipient. Please
notify the sender
immediately if it has unintentionally reached you and do not read, disclose
or use the content
in any way.

Standard Bank can not assure that the integrity of this communication has
been maintained nor
that it is free of errors, virus, interception or interference.

__

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: 1001 question aboit Command Line Interface

2003-01-15 Thread Robert Sösemann
Thanks for your support. Here is my batch file to start the cocoon CLI.

-

set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\avalon-excalibur-vm14-20020705.
jar;D:\tmp\rauser-cocoon\WEB-INF\lib\avalon-framework-20020627.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\batik-all-1.5b2.jar;D:\tmp\raus
er-cocoon\WEB-INF\lib\bsf-2.2.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\castor-0.9.3.9-xml.jar;D:\tmp\r
auser-cocoon\WEB-INF\lib\cocoon-2.0.3.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\cocoon-scratchpad.jar;D:\tmp\ra
user-cocoon\WEB-INF\lib\commons-collections-1.0.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\commons-httpclient-20020423.jar
;D:\tmp\rauser-cocoon\WEB-INF\lib\commons-JXPath-20020320.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\commons-logging-1.0.jar;D:\tmp\
rauser-cocoon\WEB-INF\lib\deli-0.50.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\fop-0.20.3.jar;D:\tmp\rauser-co
coon\WEB-INF\lib\hsqldb-1.61.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\jakarta-poi-1.5.0-dev-20020408.
jar.jar;D:\tmp\rauser-cocoon\WEB-INF\lib\jakarta-regexp-1.2.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\jena-1.3.0.jar;D:\tmp\rauser-co
coon\WEB-INF\lib\jimi-1.0.jar;D:\tmp\rauser-cocoon\WEB-INF\lib\jisp_1_0_2.ja
r
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\jstyle.jar;D:\tmp\rauser-cocoon
\WEB-INF\lib\jtidy-04aug2000r7-dev.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\krysalis-wings-0.1.0-dev-2.jar;
D:\tmp\rauser-cocoon\WEB-INF\lib\logkit-20020529.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\lucene-1.2-rc2.jar;D:\tmp\rause
r-cocoon\WEB-INF\lib\maybeupload_1-0-5pre3.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\pizza-1.1.jar;D:\tmp\rauser-coc
oon\WEB-INF\lib\rdffilter.jar;D:\tmp\rauser-cocoon\WEB-INF\lib\resolver-2002
0130.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\rhino-1.5r3.jar;D:\tmp\rauser-c
ocoon\WEB-INF\lib\velocity-1.2.jar;D:\tmp\rauser-cocoon\WEB-INF\lib\xalan-2.
3.1.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\xercesImpl-2.0.0.jar;D:\tmp\rau
ser-cocoon\WEB-INF\lib\xml-apis.jar;D:\tmp\rauser-cocoon\WEB-INF\lib\xmldb-a
pi-2001.jar
set CLASSPATH
%CLASSPATH%;D:\tmp\rauser-cocoon\WEB-INF\lib\xt-19991105.jar;C:\Program
Files\Tomcat 4.1\common\lib\servlet.jar

java org.apache.cocoon.Main -c D:\tmp\rauser-cocoon -d D:\tmp\static -u
INFO -f D:\tmp\uris.txt -C D:\tmp\rauser-cocoon\WEB-INF\cocoon.xconf -r
false

I get this error:
---
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/cocoon/Main


- Original Message -
From: "Bertrand Delacretaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 4:27 PM
Subject: Re: 1001 question aboit Command Line Interface


> Robert Sösemann wrote:
> > I tried this, but - for which reason ever - only the last "set" line is
> > really changing the classpath.
> > Do have any ideas why?
>
> We might be able to help if you post a (minimal) excerpt from your batch
> file here, that demonstrates the problem.
>
> -Bertrand
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




[announce] CVSSource at cocoondev.org

2003-01-15 Thread Sylvain Wallez
Dear all,

I'm please to announce the availability of the CVSSource I talked about 
recently on cocoon-dev.

This component allows adding new protocols to the ones available in 
Cocoon (such as "resource:", "cocoon:", etc) which are linked "live" to 
a remote CVS repository. These protocols are _writeable_ : reading a 
CVSSource gets the latest revision of the corresponding file, and 
writing it creates a new revision.

The implementation is based on a LGPL'ed library and so cannot be hosted 
on Apache's CVS. Steven Noels kindly accepted to host it on 
cocoondev.org. So everything is available at :
  http://www.cocoondev.org/projects/cvssource.html

This is still to be considered experimental, although already used on 
real projects. So I'm awaiting your comments, suggestions and patches !

Enjoy,
Sylvain

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



- question

2003-01-15 Thread Johannes . Becker
Hi,

I want to include my own Java-Class in my XSP-Page

for example: " execute_report.class" :

class execute_report {

  public String get_g()
  {
String hello = "Hi there";
return hello;
  }


 public static void main(String[] args) {
  System.out.println("Yo");
}
}

My XSP in Folder: .../cocoon/jonny/xsp :


http://apache.org/xsp";>

  
   


  
 
String hello = null;
hello = get_g();

   
   hello
   
   
   
  



Where do I have to place my Java-Class. Under .../cocoon/Web-Inf/classes
(where I hava placed it right now!)?
How do I call methods, like my method get_g()?

My approach doesn't work.

Thanks
Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: & in url [WAS: file generator error]

2003-01-15 Thread Geoff Howard
> Geoff Howard wrote:
> > I would regard the behavior below to be incorrect - so the million
> > dollar question is what is the correct behavior:
> >
> > Can GET parameters be separated by & instead of
> > & according to the W3C, etc?
>
> I don't think so. & is the delimiter, not &. What is when amp; is
> really needed? & is only the escaped & in XML and HTML. So if you
> write an  there must be & in theory, but it's parsed as
> &. If you use & in href, it's only the "intelligence" of the browser to
> not interpret it as starting of an entity. But in the URL itself, it
> must be &, not &
>

Sorry for being an idiot.  & is valid in the html as delimeter, but the
browser should take it out so that
http://localhost:8080/cocoon/samples/system/request.html?foo=bar&f
ee=fi">test
sends you to:
http://localhost:8080/cocoon/samples/system/request.html?foo=bar&fee=fi
with the unescaped ampersand.

The reason I was confused was because I remembered a problem I encountered
in the past with & as the delimeter in html being passed through, but I
believe the problem there was more complicated - javascript was passing the
& literally IIRC.

Mea Culpa,
Geoff


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




error 503 from tomcat about cocoon

2003-01-15 Thread Fernando Wermus
I´m getting the next error in Cocoon:

Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet Cocoon2 is currently
unavailabletype Status reportmessage Servlet Cocoon2 is currently
unavailabledescription The requested service (Servlet Cocoon2 is currently
unavailable) is not currently available.

and...

F:\Program Files\JBuilder6\jdk1.3.1\bin\javaw -classpath "F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\bin\bootstrap.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\lib\jasper-compiler.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\lib\jasper-runtime.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\lib\naming-factory.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\lib\webserverglue.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\activation.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\jdbc2_0-stdext.jar;F:\Progra
m Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\jndi.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\jta.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\mail.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\naming-common.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\naming-resources.jar;F:\Prog
ram Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\servlet.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\tyrex-0.9.7.0.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\common\lib\xerces.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\catalina.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\jakarta-regexp-1.2.jar;F:\Pr
ogram
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\servlets-common.jar;F:\Progr
am
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\servlets-default.jar;F:\Prog
ram
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\servlets-invoker.jar;F:\Prog
ram
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\servlets-manager.jar;F:\Prog
ram
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\servlets-snoop.jar;F:\Progra
m
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\servlets-webdav.jar;F:\Progr
am Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\tomcat-ajp.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\tomcat-util.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\server\lib\warp.jar;F:\Program
Files\JBuilder6\jakarta-tomcat-4.0.1\webapps\cocoon.war;F:\Program
Files\JBuilder6\jdk1.3.1\demo\jfc\Java2D\Java2Demo.jar;F:\Program
Files\JBuilder6\jdk1.3.1\jre\lib\i18n.jar;F:\Program
Files\JBuilder6\jdk1.3.1\jre\lib\jaws.jar;F:\Program
Files\JBuilder6\jdk1.3.1\jre\lib\rt.jar;F:\Program
Files\JBuilder6\jdk1.3.1\jre\lib\sunrsasign.jar;F:\Program
Files\JBuilder6\jdk1.3.1\lib\dt.jar;F:\Program
Files\JBuilder6\jdk1.3.1\lib\htmlconverter.jar;F:\Program
Files\JBuilder6\jdk1.3.1\lib\tools.jar"  -Dcatalina.home="F:/Program
Files/JBuilder6/jakarta-tomcat-4.0.1" org.apache.catalina.startup.Bootstrap
start -config "C:\Documents and Settings\Fernando Marcelo
Wer\jbproject\C2inT4inJB5\conf\server8080.xml" -nonaming
HttpConnector Abriendo sockets de servidor en todas las direcciones IP
disponibles Starting service Tomcat-Standalone Apache Tomcat/4.0.1
WebappLoader[/citylive]: Deploying class repositories to work directory
C:\Documents and Settings\Fernando Marcelo
Wer\jbproject\C2inT4inJB5\work\citylive StandardManager[/citylive]: Seeding
random number generator class java.security.SecureRandom
StandardManager[/citylive]: Seeding of random number generator has been
completed StandardWrapper[/citylive:Cocoon2]: Marking servlet Cocoon2 as
unavailable StandardContext[/citylive]: Servlet /citylive threw load()
exception: javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.cocoon.servlet.CocoonServlet or a class it depends on
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.cocoon.servlet.CocoonServlet or a class it depends onat
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)  at
org.apache.catalina.core.StandardService.start(StandardService.java:388)at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)  at
org.apache.catalina.startup.Catalina.start(Catalina.java:776)   at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at
org.apache.catalina.startup.Catalina.process(Catalina.java:179) at
java.lang.reflect.Method.invoke(Native Method)  at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Standa

Re: [XMLForm] xmlform-scope parameter

2003-01-15 Thread Jakob Praher
Am Mit, 2003-01-15 um 14.42 schrieb [EMAIL PROTECTED]:
> Hello,
> 
> What is the difference between "request" and "session" for the value of 
>xmlform-scope parameter?
> 

request means that the values are stored in the request attributes like:

String formid = /*... */
Form frm = /* create the form */
Request requ = /* get it from somewhere */
requ.setAttribute( formid, form );

wheras session means that a session is used to store the values

Session sess = requ.getSession( );
sess.setAttribute( formid, form );

the difference is that Sesssion attributes persist over a
request/response cycle, whereas request attributes are lost when the
request is recycled (that is after the response has written itself to
the client ).

if you have multiple views i think it is better to choose session.
whereas when everything gets done in one request/response cycle you can
use the request scope since it is more efficent (don't requires session
storage .. )

hope this helps


> Thank you
> Sylvain
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Re: 1001 question aboit Command Line Interface

2003-01-15 Thread Bertrand Delacretaz
Robert Sösemann wrote:

I tried this, but - for which reason ever - only the last "set" line is
really changing the classpath.
Do have any ideas why?


We might be able to help if you post a (minimal) excerpt from your batch 
file here, that demonstrates the problem.

-Bertrand


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



xmlform samples are not working for me

2003-01-15 Thread Jonathan Spaeth
Title: xmlform samples are not working for me





I just checked out the latest version of the repository and found the xmlform samples are not working for me:


Here is the stack trace.  Has anybody seen this or know what it could be related to?


java.lang.NullPointerException:
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.validatePipeline(AbstractCachingProcessingPipeline.java:424)
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:545)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:497)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:463)
at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.Cocoon.process(Cocoon.java:600)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
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.apa

Re: 1001 question aboit Command Line Interface-> ant?

2003-01-15 Thread Sanne de Roever
Hi,

I know that with ant you can automatically build a classpath.
Maybe in combination with a thread that could do the trick.

Regards,

Sanne

- Original Message -
From: "Bertrand Delacretaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 12:57 PM
Subject: Re: 1001 question aboit Command Line Interface


> Robert Sösemann wrote:
>  >. . .
> > Because it is a really long classpath I mad a .bat. Running it I get an
> > error that the line is too long.
>
> If it is really a "line too long" problem and not and "out of
> environment space" problem, you might want to try to setup the classpath
> in several steps:
>
>set CLASSPATH=%CLASSPATH%;.\someDir\someJar.jar
>set CLASSPATH=%CLASSPATH%;.\someDir\someOtherJar.jar
> ...
>
>  >. . .
> > Is there a way to set the classpath
> > directory-wise and not include each .jar?
>
> I don't think so.
>
>
> --
>   Bertrand Delacretaz (codeconsult.ch, jfor.org)
>
>   buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
>   blogspace http://www.codeconsult.ch/bertrand
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: Cocoon Portal Framework Question

2003-01-15 Thread Gulatee, Eric
Title: RE: Cocoon Portal Framework Question





Hi,


  Aha!  Okay, I had done the endorsed directory creation with Xalan and Xerces jar [as per the documentation] however I didn't realize XSLTC had to be turned off with JDK1.4.1 nor that tomcat has an endorsed directory!  

Thanks for your prompt and pertinent answers :)
Eric



> -Original Message-
> From: Lenya L. Khachaturov [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 15, 2003 3:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Cocoon Portal Framework Question
> 
> 
> On Wed, Jan 15, 2003 at 08:50:15AM +0100, Carsten Ziegeler wrote:
> > Hi,
> > 
> > there are two problems with JDK 1.4.x:
> > 
> > First, you have to copy the versions of Xalan and Xerces provided
> > with Cocoon to the endorsed directory of your JDK as explained
> > in the installation guide of Cocoon.
> > 
> > Second, you have to turn of xsltc! Change the setting in the main
> > sitemap for the default transformer and turn off xsltc and then
> > the portal should work.
> > 
> fix: "the endorsed directory of your Tomcat distribution", not JDK.
> -- 
> Lenya Khachaturov
> mailto:[EMAIL PROTECTED]
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 





Cocoon Cache and no-cache? (Repost: "no-cache" Pragma in HTTP Request)

2003-01-15 Thread Christoph Gaffga
Hi,
When I press Ctrl+F5 in IE6 then I think cocoon should give me a fresh page,
without anythin from the cache.
Does cocoon check for the Request-Header: Pragma: no-cache? Is it
implemented or would it be in the next version?
Does anybody know about this?

thanks in andvance
Christoph

P.S.: Squid for example looks for this in the Request-Header.


- Original Message -
From: "Christoph Gaffga" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 12, 2003 2:57 AM
Subject: "no-cache" Pragma in HTTP Request


> Hi,
> does anybody know if cocoon brings a page from the cache even if I sent a
> "no-cache" Header field in my request (see
> http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#pragma), for Example
when
> I press Ctrl-F5 in IE6?
>
> And, if not, would it be implemented in the next version?
>
> thanks in advance
> Christoph
>
>
> MfG
> Ihr Urlaubstage.de-Team
> Christoph Gaffga
> [EMAIL PROTECTED]
>
> -
> Urlaubstage.de - Unterkünfte weltweit
> Web: http://www.urlaubstage.de
> Email: [EMAIL PROTECTED]
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: 1001 question aboit Command Line Interface

2003-01-15 Thread du Plessis, Corneil C
Look at the lcp.bat that comes with Ant.


-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Sent: 15 January, 2003 13:57
To: [EMAIL PROTECTED]
Subject: Re: 1001 question aboit Command Line Interface


Robert Sösemann wrote:
 >. . .
> Because it is a really long classpath I mad a .bat. Running it I get an
> error that the line is too long.

If it is really a "line too long" problem and not and "out of 
environment space" problem, you might want to try to setup the classpath 
in several steps:

   set CLASSPATH=%CLASSPATH%;.\someDir\someJar.jar
   set CLASSPATH=%CLASSPATH%;.\someDir\someOtherJar.jar
...

 >. . .
> Is there a way to set the classpath
> directory-wise and not include each .jar?

I don't think so.


-- 
  Bertrand Delacretaz (codeconsult.ch, jfor.org)

  buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
  blogspace http://www.codeconsult.ch/bertrand


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Log4J in Cocoon

2003-01-15 Thread Brian Johnson
I would like to log the cocoon sitemap to Log4J so that I can view it 
chainsaw on a remote host. It appears that the LogKit SocketAppender is 
not compatible with Chainsaw. I set enableLogging on cocoon with a 
Log4JLogger, but it only logs a few random core messages to Log4J. Does 
anybody know how to either replace or add to the logkit to log all 
messages to Log4J? Thanks.
Brian


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



RE: Re: 1001 question aboit Command Line Interface

2003-01-15 Thread robert_hitchins
Try it without the equals sign:

SET CLASSPATH %CLASSPATH%;

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 8:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: 1001 question aboit Command Line Interface


I tried this, but - for which reason ever - only the last "set" line is
really changing the classpath.
Do have any ideas why?

Robert
- Original Message -
From: "Bertrand Delacretaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 12:57 PM
Subject: Re: 1001 question aboit Command Line Interface


> Robert Sösemann wrote:
>  >. . .
> > Because it is a really long classpath I mad a .bat. Running it I 
get an
> > error that the line is too long.
>
> If it is really a "line too long" problem and not and "out of
> environment space" problem, you might want to try to setup the 
classpath
> in several steps:
>
>set CLASSPATH=%CLASSPATH%;.\someDir\someJar.jar
>set CLASSPATH=%CLASSPATH%;.\someDir\someOtherJar.jar
> ...
>
>  >. . .
> > Is there a way to set the classpath
> > directory-wise and not include each .jar?
>
> I don't think so.
>
>
> --
>   Bertrand Delacretaz (codeconsult.ch, jfor.org)
>
>   buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
>   blogspace http://www.codeconsult.ch/bertrand
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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. 

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




Re: 1001 question aboit Command Line Interface

2003-01-15 Thread Robert Sösemann
I tried this, but - for which reason ever - only the last "set" line is
really changing the classpath.
Do have any ideas why?

Robert
- Original Message -
From: "Bertrand Delacretaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 12:57 PM
Subject: Re: 1001 question aboit Command Line Interface


> Robert Sösemann wrote:
>  >. . .
> > Because it is a really long classpath I mad a .bat. Running it I get an
> > error that the line is too long.
>
> If it is really a "line too long" problem and not and "out of
> environment space" problem, you might want to try to setup the classpath
> in several steps:
>
>set CLASSPATH=%CLASSPATH%;.\someDir\someJar.jar
>set CLASSPATH=%CLASSPATH%;.\someDir\someOtherJar.jar
> ...
>
>  >. . .
> > Is there a way to set the classpath
> > directory-wise and not include each .jar?
>
> I don't think so.
>
>
> --
>   Bertrand Delacretaz (codeconsult.ch, jfor.org)
>
>   buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
>   blogspace http://www.codeconsult.ch/bertrand
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




[XMLForm] xmlform-scope parameter

2003-01-15 Thread Sylvain.Thevoz
Hello,

What is the difference between "request" and "session" for the value of xmlform-scope 
parameter?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: 1001 question aboit Command Line Interface

2003-01-15 Thread Michael Homeijer
Besides setting the path in different lines, like Bertrand explained,
additionally you can use the subst command to shorten the path spec to your
libs, something like: subst x: "path to\WEB-INF\lib".

HTH
Michael

-Original Message-
From: Robert Sösemann
To: [EMAIL PROTECTED]
Sent: 15-1-2003 12:21 
Subject: 1001 question aboit Command Line Interface

Hello,

althoug many people have asked question about the cli, I couln't find an
answer to mine.

I want to call the cli. But before I have to add ALL the lib in WEB-INF
to
my class path.
Because it is a really long classpath I mad a .bat. Running it I get an
error that the line is too long.

I tried nearly everything. Is there a way to set the classpath
directory-wise and not include each .jar?

If you are using the cli, please tell me the steps to  bring it to work.

Rob


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




RE: Splitting WML file

2003-01-15 Thread Andrew Larcombe
-Original Message-
From: Skip Carter [mailto:[EMAIL PROTECTED]]
Sent: 14 January 2003 17:30
To: [EMAIL PROTECTED]
Subject: Re: Splitting WML file

>> First off, I'm a fully fledged newbie when it comes to cocoon, so at this
>> stage I'm looking for pointers rather than absolute answers - although
that
>> would be nice ;-)
>>
>> I've used Cocoon to translate some xml documents to wml format using the
>> bog-standard wml converter that the "Hello, World" samples use and it
works
>> without any problems when viewing them using a desktop browser.
>>
>> The problem that I have to solve is concerned with using wml with mobile
>> devices. These devices often have small amounts of memory, and a limited
>> file size that they can accept (eg the Nokia 7110 has a maximum file size
of
>> 1397 bytes.)
>>
>> What would be the best strategy to adopt to split the xml or wml file
into a
>> suitable size (NB the split file must, of course be valid xml.) How have
>> other people dealt with this problem?
>
>
>   I have handled this by by using statements in a style sheet that extracts
out
>   one subsection of a single XML file before transforming it to WML.  So,
the

Thanks for the reply,

Unfortunately your solution wouldn't be appropriate for my situation, and
re-reading my original message I should have phrased it better. Our wml
essentially uses tags to delimit paragraphs eg.


Some text
Some more text
Third para


We serve up html pages and create pdfs from this wml with no problem as
there is no limit on the file size with these formats.

However, with wml there is essentially a 1397 byte limit so what I think I
need to do is process each para until that limit is reached. Then, somehow,
when the request for the next page comes in, I need to start at the
paragraph where I left off.

Any thoughts on where and how I could do this within the cocoon framework?

Thanks

A



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: & in url [WAS: file generator error]

2003-01-15 Thread Joerg Heinicke
Nice to hear that you finally got it to work. Let's end the thread ;-)

Joerg

[EMAIL PROTECTED] wrote:

Hi Joerg,

Your snippet works well for me (with "&")!

So, if I'm right this means that it isn't a bug but a problem in my code!?

=> I have found that it was a matcher problem in my sitemap!
Now it works!


Thank you all for you help
Sylvain

-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: mercredi, 15. janvier 2003 10:47
À: [EMAIL PROTECTED]
Objet: Re: & in url [WAS: file generator error]


Hi Sylvain,

yes, we lost the original posting a bit ;-)

[EMAIL PROTECTED] wrote:


Joerg,

I found the same as you if I type the URL in my browser.



Nice to hear.



But in my case the problem is that the URL will be parsed through an
XML parser.

If I type "&" the XML parser returns me this error: An error occurred
The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
notifies that org.apache.cocoon.ProcessingException says: The
reference to entity "c" must end with the ';' delimiter.

More precisely: org.apache.cocoon.ProcessingException: Failed to load
sitemap from
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:168:70:org.xml.sax.SAXParseException:
The reference to entity "c" must end with the ';' delimiter.



That's clear, it must be so. & means "here starts an entity". And in 
contrast to most HTML browsers an XML parser doesn't try to add the 
obviously missing ';'.


And If I type "&" the XML parser doesn't return an error but the
link isn't correct anymore because it uses "&" instead of "&".



And here you are wrong. The link *is* correct then. Similar to HTML 
(e.g. ) you *must* escape & to & (HTML browsers only try 
to solve the problem themselves, if they find an & without ;). And as 
you can see below in the quoted message I had it working (& is 
resolved to &). Try to add this little snippet into the sitemap (only 
map:generate + map:serialize), test it, have a look into the core.log 
and tell me, what's wrong with your Cocoon version. Maybe you test a 
newer one, if there was really a bug in the resolving, but I don't 
assume so.

Regards,

Joerg


-Message d'origine- De: Joerg Heinicke
[mailto:[EMAIL PROTECTED]]

Hello Geoff and Sylvain,

I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).


Using this sitemap snippet

 http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20wa
rnings"/>  


DEBUG   (2003-01-13) 16:48.59:984   [core.manager]
(/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolving 
'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
with base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
DEBUG (2003-01-13) 16:48.59:984   [core.manager]
(/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolved to systemID 
'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
DEBUG   (2003-01-13) 16:48.59:984   [core.manager]
(/cocoon/joerg/test) Thread-9/SourceResolverImpl: Making URL from
http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings

--

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: 1001 question aboit Command Line Interface

2003-01-15 Thread Bertrand Delacretaz
Robert Sösemann wrote:
>. . .

Because it is a really long classpath I mad a .bat. Running it I get an
error that the line is too long.


If it is really a "line too long" problem and not and "out of 
environment space" problem, you might want to try to setup the classpath 
in several steps:

  set CLASSPATH=%CLASSPATH%;.\someDir\someJar.jar
  set CLASSPATH=%CLASSPATH%;.\someDir\someOtherJar.jar
...

>. . .
Is there a way to set the classpath
directory-wise and not include each .jar?


I don't think so.


--
 Bertrand Delacretaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
 blogspace http://www.codeconsult.ch/bertrand


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




1001 question aboit Command Line Interface

2003-01-15 Thread Robert Sösemann
Hello,

althoug many people have asked question about the cli, I couln't find an
answer to mine.

I want to call the cli. But before I have to add ALL the lib in WEB-INF to
my class path.
Because it is a really long classpath I mad a .bat. Running it I get an
error that the line is too long.

I tried nearly everything. Is there a way to set the classpath
directory-wise and not include each .jar?

If you are using the cli, please tell me the steps to  bring it to work.

Rob


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




error-mapping in cocoon2.0.4

2003-01-15 Thread Yury Mikhienko
Hi all!

Today I upgrade my cocoon from 2.0.2 to 2.0.4 version. 
In cocoon2.0.2 I have the following error mapping:
 in web.xml:
 
   404
   error404.xml   
  

in sitemap.xmap:
  

   

   

   

   


 
 
 

  

and it properly works to this day.

Now (in cocoon2.0.4) this error mapping dont works :((

If I tset the following error-handling in sitemap:
   


   

I get the following error:

Cocoon 2 - Internal server error

type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: 
Line 4509, column 26: Duplicate method declaration: boolean 
error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector, 
org.apache.cocoon.environment.Environment, java.util.Map, java.lang.Exception, 
boolean) Line 0, column 0: 1 error

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap:
Line 4509, column 26:  Duplicate method declaration: boolean 
error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector, 
org.apache.cocoon.environment.Environment, java.util.Map, java.lang.Exception, boolean)
Line 0, column 0: 
1 error

at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:360)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:484)
org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap:
Line 4509, column 26:  Duplicate method declaration: boolean 
error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector, 
org.apache.cocoon.environment.Environment, java.util.Map, java.lang.Exception, boolean)
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:417)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:484)

Why? What I did wrong?
How I can pretty handle the 404 error in cocoon 2.0.4 ?

Thanx for advise.

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

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: & in url [WAS: file generator error]

2003-01-15 Thread Sylvain.Thevoz
Hi Joerg,

Your snippet works well for me (with "&")!

So, if I'm right this means that it isn't a bug but a problem in my code!?

=> I have found that it was a matcher problem in my sitemap!
Now it works!


Thank you all for you help
Sylvain



-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: mercredi, 15. janvier 2003 10:47
À: [EMAIL PROTECTED]
Objet: Re: & in url [WAS: file generator error]


Hi Sylvain,

yes, we lost the original posting a bit ;-)

[EMAIL PROTECTED] wrote:
> Joerg,
> 
> I found the same as you if I type the URL in my browser.

Nice to hear.

> But in my case the problem is that the URL will be parsed through an
> XML parser.
> 
> If I type "&" the XML parser returns me this error: An error occurred
>  The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
> notifies that org.apache.cocoon.ProcessingException says: The
> reference to entity "c" must end with the ';' delimiter.
> 
> More precisely: org.apache.cocoon.ProcessingException: Failed to load
> sitemap from
> file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:
> 
>file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:168:70:org.xml.sax.SAXParseException:
> The reference to entity "c" must end with the ';' delimiter.

That's clear, it must be so. & means "here starts an entity". And in 
contrast to most HTML browsers an XML parser doesn't try to add the 
obviously missing ';'.

> And If I type "&" the XML parser doesn't return an error but the
> link isn't correct anymore because it uses "&" instead of "&".

And here you are wrong. The link *is* correct then. Similar to HTML 
(e.g. ) you *must* escape & to & (HTML browsers only try 
to solve the problem themselves, if they find an & without ;). And as 
you can see below in the quoted message I had it working (& is 
resolved to &). Try to add this little snippet into the sitemap (only 
map:generate + map:serialize), test it, have a look into the core.log 
and tell me, what's wrong with your Cocoon version. Maybe you test a 
newer one, if there was really a bug in the resolving, but I don't 
assume so.

Regards,

Joerg

>>> -Message d'origine- De: Joerg Heinicke
>>> [mailto:[EMAIL PROTECTED]]
>>> 
>>> Hello Geoff and Sylvain,
>>> 
>>> I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).
>>> 
>>> 
>>> Using this sitemap snippet
>>> 
>>>  >> src="http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20wa
>>>  rnings"/>  
>>> 
>>> 
>>> DEBUG   (2003-01-13) 16:48.59:984   [core.manager]
>>> (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolving 
>>> 'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
>>> with base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
>>> DEBUG (2003-01-13) 16:48.59:984   [core.manager]
>>>(/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolved to systemID 
>>> 'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
>>>  DEBUG   (2003-01-13) 16:48.59:984   [core.manager]
>>> (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Making URL from
>>>  http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: & in url [WAS: file generator error]

2003-01-15 Thread Joerg Heinicke
Hi Sylvain,

yes, we lost the original posting a bit ;-)

[EMAIL PROTECTED] wrote:

Joerg,

I found the same as you if I type the URL in my browser.


Nice to hear.


But in my case the problem is that the URL will be parsed through an
XML parser.

If I type "&" the XML parser returns me this error: An error occurred
 The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
notifies that org.apache.cocoon.ProcessingException says: The
reference to entity "c" must end with the ';' delimiter.

More precisely: org.apache.cocoon.ProcessingException: Failed to load
sitemap from
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:168:70:org.xml.sax.SAXParseException:
The reference to entity "c" must end with the ';' delimiter.


That's clear, it must be so. & means "here starts an entity". And in 
contrast to most HTML browsers an XML parser doesn't try to add the 
obviously missing ';'.

And If I type "&" the XML parser doesn't return an error but the
link isn't correct anymore because it uses "&" instead of "&".


And here you are wrong. The link *is* correct then. Similar to HTML 
(e.g. ) you *must* escape & to & (HTML browsers only try 
to solve the problem themselves, if they find an & without ;). And as 
you can see below in the quoted message I had it working (& is 
resolved to &). Try to add this little snippet into the sitemap (only 
map:generate + map:serialize), test it, have a look into the core.log 
and tell me, what's wrong with your Cocoon version. Maybe you test a 
newer one, if there was really a bug in the resolving, but I don't 
assume so.

Regards,

Joerg

-Message d'origine- De: Joerg Heinicke
[mailto:[EMAIL PROTECTED]]

Hello Geoff and Sylvain,

I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).


Using this sitemap snippet

 http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20wa
 rnings"/>  


DEBUG   (2003-01-13) 16:48.59:984   [core.manager]
(/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolving 
'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
with base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
DEBUG (2003-01-13) 16:48.59:984   [core.manager]
(/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolved to systemID 
'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
 DEBUG   (2003-01-13) 16:48.59:984   [core.manager]
(/cocoon/joerg/test) Thread-9/SourceResolverImpl: Making URL from
 http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: & in url [WAS: file generator error]

2003-01-15 Thread Sylvain.Thevoz
Joerg,

I found the same as you if I type the URL in my browser.

But in my case the problem is that the URL will be parsed through an XML parser.

If I type "&" the XML parser returns me this error:
An error occurred 
The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:
The reference to entity "c" must end with the ';' delimiter. 

More precisely:
org.apache.cocoon.ProcessingException: Failed to load sitemap from 
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap: 
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:168:70:org.xml.sax.SAXParseException:
 The reference to entity "c" must end with the ';' delimiter. 


And If I type "&" the XML parser doesn't return an error but the link isn't 
correct anymore because it uses "&" instead of "&".

Sylvain

-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: mardi, 14. janvier 2003 21:14
À: [EMAIL PROTECTED]
Objet: Re: file generator error


Hello Geoff,

If I type http://127.0.0.1:8080/cocoon/joerg/test?test=test&test2=test2 
in Mozilla URL textbox I get expected


   
 test2
   
   
 test
   


If I type 
http://127.0.0.1:8080/cocoon/joerg/test?test=test&test2=test2 I get 
(IMO also) expected


   
 test2
   
   
 test
   


because & as delimiter for the parameters (not &), so amp; must be 
the beginning of the next parameter name. But I think, that's not the 
problem. The only one is the replacing of the character reference & 
with the character & done by the XML parser. And as I only can point out 
it works for me as shown below. Why, Sylvain, aren't you simply trying 
the same? Afterwards a simple look in the core.log shows the correct 
resolving of & or not.

Regards,

Joerg

Geoff Howard wrote:
> don't remember seeing a bug fix related to this, but that could be it - I
> use a cvs version of 2.1 from early december (12/7 I think).  Joerg, do you
> get the result I do on the request generator example (Sylvain too)?
> 
> Geoff
> 
>>-Message d'origine-
>>De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
>>
>>Hello Geoff and Sylvain,
>>
>>I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).
>>
>>Using this sitemap snippet
>>
>>
>>   >src="http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20wa
>>rnings"/>
>>   
>>
>>
>>
>>DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
>>Thread-9/SourceResolverImpl: Resolving
>>'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings' with
>>base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
>>DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
>>Thread-9/SourceResolverImpl: Resolved to systemID
>>'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
>>DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
>>Thread-9/SourceResolverImpl: Making URL from
>>http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




XMLForms handling demo

2003-01-15 Thread adriano . zigante
Hi.

When I try to repeat the execution of the demo:  
http://localhost:8080/cocoon/samples/xmlform/wizard.

I receive a java.lang.NullPointerException.

- C2-CVS 14.01.2003
- Apache Tomcat/4.0
- Windows 2000
- jdk1.3.1_06

Regards,

Adriano Zigante

[scripta volant, NullPointerException manent]






-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon Portal Framework Question

2003-01-15 Thread Lenya L. Khachaturov
On Wed, Jan 15, 2003 at 08:50:15AM +0100, Carsten Ziegeler wrote:
> Hi,
> 
> there are two problems with JDK 1.4.x:
> 
> First, you have to copy the versions of Xalan and Xerces provided
> with Cocoon to the endorsed directory of your JDK as explained
> in the installation guide of Cocoon.
> 
> Second, you have to turn of xsltc! Change the setting in the main
> sitemap for the default transformer and turn off xsltc and then
> the portal should work.
> 
fix: "the endorsed directory of your Tomcat distribution", not JDK.
-- 
Lenya Khachaturov
mailto:[EMAIL PROTECTED]

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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