Artur,

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 CatalogManager.properties
    [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(Class.java:1590)

Because I am using only theCLI, I had lots of blocks excluded, and my Webapp didn't include the 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(HTMLGenerator.java:217)
    [java]     at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:381)
    [java]     at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:652)

Does anyone on this list had the same problem? Thanks in advance.

Artur Matos.

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







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



Reply via email to