cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject Re: Problems using the HTMLGenerator in command line mode 2.1
Date Wed, 03 Sep 2003 13:18:43 GMT

Are you able to update to the CVS Cocoon and retry? A fix has just been 
committed that should remove (or at least reduce) the dependence upon 
the HTTP environment. This should fix your problem. But I can see that 
the HTMLGenerator does have some references to HttpServletRequest, which 
means it will continue to need to have Servlet2_2.jar in the classpath.

Let me know if this sorts it.

Regards, Upayavira

Artur Matos wrote:

>Hi to all,
>I am having some problems using the HTML generator with the new
>Cocoon 2.1 CLI. The code that I am using was working flawlessy with
>the previous Cocoon 2.0.4, so I guess this should be some
>problem with the new version. I tried to match a very simple pipeline,
>one that generates one HTML file from the filesystem using the HTML
>generator, and serializes it into XML, without any further steps in between. I got the
following error:
>[java] Cannot find
>     [java] Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream
>     [java]     at java.lang.Class.getDeclaredConstructors0(Native Method)
>     [java]     at java.lang.Class.privateGetDeclaredConstructors(
>Because I am using only theCLI, I had lots of blocks excluded, and my Webapp didn't include
>servlet_2.2.jar file. I copied it, and tried to run the CLI again. I got the following
error instead:
> [java] Exception in thread "main" java.lang.NullPointerException
>     [java]     at org.apache.cocoon.generation.HTMLGenerator.setup(
>     [java]     at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(
>     [java]     at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(
>Does anyone on this list had the same problem? Thanks in advance.
>Artur Matos.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message