You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Oleg Konovalov <ol...@yahoo.com> on 2005/01/13 14:44:44 UTC

Fwd: Can't start Cocoon 2.0.4 on Tomcat 4.1

Hi,
 
I am trying to learn Cocoon based on Lajos Moczar/Aston book.
 
Installed Tomcat 4.1.31, downloaded Cocoon
cocoon-2.0.4-vm14-bin.zip, unzipped it and put its cocoon.war
into webapps directory and started Tomcat.
Also copied 3 jars (xercesImpl-200.jar, xalan-231.jar,
xml-apis.jar) 
from cocoon.war to Java_Home\jre\lib\endorsed
 
When I try to access http://localhost:8080/cocoon ,
getting:
 
Cocoon 2 - Internal server error
type fatal
message Failed to generate program code (this may happen if
you use Xalan in incremental processing mode). 
Please check log file and/or console for errors.
 
 description org.apache.cocoon.ProcessingException: Failed to
 generate program code (this may happen if you use Xalan in
 incremental processing mode). Please check log file and/or
 console for errors.
 
 sender org.apache.cocoon.servlet.CocoonServlet
 source Cocoon servlet
 
 stack-trace
 
 org.apache.cocoon.ProcessingException: Failed to generate
 program code (this may happen if you use Xalan in incremental
 processing mode). Please check log file and/or console for
 errors.
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:395)
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:534)
 
 
 Checked logs - nothing special, in console:
 
 java.lang.RuntimeException: Errors in XSLT transformation:
 Fatal: File

jar:file:/C:/jakarta-tomcat-4.1.31/webapps/cocoon/WEB-INF/lib/cocoon

-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xs
 l; Line 154; Column 32;
 org.apache.xml.utils.WrappedRuntimeException: The output
  format must have a
 '{http://xml.apache.org/xalan}content-handler' property!
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
at java.lang.Thread.run(Thread.java:534)
 
Using Win2000, IE 5.5, JDK 1.4.2_06

 What am I missing ?
 Please help !
 
 Thank you in advance,
 Oleg
 olegkon@yahoo.com
 
 P.S.: I am not using the latest Tomcat and Cocoon, because
 in the book they recommend Tomcat4 and cocoon2.03
 which matches my development environment


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Fwd: Can't start Cocoon 2.0.4 on Tomcat 4.1

Posted by Oleg Konovalov <ol...@yahoo.com>.
Stefan,

Thank you for a good advice, 
after putting 2 JARs (Xerces and Xalan)
into tomcat-home\common\endorsed 
it worked just fine !

Thank you again,
Oleg.

--- Stefan Burkard <ne...@burknet.ch> wrote:

> hi oleg
> 
> not sure about this, but i think you should put the 3 jars
> into 
> tomcat-home\common\endorsed
> (you putted them in Java_Home\jre\lib\endorsed)
> 
> greetings
> stefan
> 
> Oleg Konovalov wrote:
> > I don't have that option:
> > both my (project) production and book I am reading
> > are using Cocoon 2.04 and JBoss3-Tomcat4.
> > 
> > Any other suggestions ?
> > 
> > Thank you,
> > Oleg.
> >  
> > --- Joachim Wackerow <wa...@zuma-mannheim.de> wrote:
> > 
> > 
> >>Oleg
> >>
> >>Use the newest Cocoon 2.1.6 and Tomcat 5.0.x (Java 1.4.x) or
> >>5.5.x (Java 
> >>1.5.x!). Cocoon must be build, see the INSTALL.TXT in the
> >>Cocoon 
> >>distribution. These combinations are running without
> problems
> >>with 
> >>Windows XP Professional.
> >>
> >>Achim
> >>
> >>Oleg Konovalov wrote:
> >>
> >>
> >>>Hi,
> >>> 
> >>>I am trying to learn Cocoon based on Lajos Moczar/Aston
> >>
> >>book.
> >>
> >>> 
> >>>Installed Tomcat 4.1.31, downloaded Cocoon
> >>>cocoon-2.0.4-vm14-bin.zip, unzipped it and put its
> >>
> >>cocoon.war
> >>
> >>>into webapps directory and started Tomcat.
> >>>Also copied 3 jars (xercesImpl-200.jar, xalan-231.jar,
> >>>xml-apis.jar) 
> >>>from cocoon.war to Java_Home\jre\lib\endorsed
> >>> 
> >>>When I try to access http://localhost:8080/cocoon ,
> >>>getting:
> >>> 
> >>>Cocoon 2 - Internal server error
> >>>type fatal
> >>>message Failed to generate program code (this may happen if
> >>>you use Xalan in incremental processing mode). 
> >>>Please check log file and/or console for errors.
> >>> 
> >>> description org.apache.cocoon.ProcessingException: Failed
> >>
> >>to
> >>
> >>> generate program code (this may happen if you use Xalan in
> >>> incremental processing mode). Please check log file and/or
> >>> console for errors.
> >>> 
> >>> sender org.apache.cocoon.servlet.CocoonServlet
> >>> source Cocoon servlet
> >>> 
> >>> stack-trace
> >>> 
> >>> org.apache.cocoon.ProcessingException: Failed to generate
> >>> program code (this may happen if you use Xalan in
> >>
> >>incremental
> >>
> >>> processing mode). Please check log file and/or console for
> >>> errors.
> >>>at
> >>>
> >>
> >
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:395)
> > 
> >>>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:534)
> >>> 
> >>> 
> >>> Checked logs - nothing special, in console:
> >>> 
> >>> java.lang.RuntimeException: Errors in XSLT transformation:
> >>> Fatal: File
> >>>
> >>>
> >>
> >
>
jar:file:/C:/jakarta-tomcat-4.1.31/webapps/cocoon/WEB-INF/lib/cocoon
> > 
> >>>
> >
>
-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xs
> > 
> >>> l; Line 154; Column 32;
> >>> org.apache.xml.utils.WrappedRuntimeException: The output
> >>>  format must have a
> >>> '{http://xml.apache.org/xalan}content-handler' property!
> >>>at
> >>>
> >>
> >
>
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
> > 
> >>>at java.lang.Thread.run(Thread.java:534)
> >>> 
> >>>Using Win2000, IE 5.5, JDK 1.4.2_06
> >>>
> >>> What am I missing ?
> >>> Please help !
> >>> 
> >>> Thank you in advance,
> >>> Oleg
> >>> olegkon@yahoo.com
> >>> 
> >>> P.S.: I am not using the latest Tomcat and Cocoon, because
> >>> in the book they recommend Tomcat4 and cocoon2.03
> >>> which matches my development environment
> >>>
> >>>
> >>>
> >>
> >
>
---------------------------------------------------------------------
> > 
> >>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >>>For additional commands, e-mail:
> >>
> >>users-help@cocoon.apache.org
> >>
> >>
> >>
> >
>
---------------------------------------------------------------------
> > 
> >>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >>For additional commands, e-mail:
> users-help@cocoon.apache.org
> >>
> >>
> > 
> > 
> > 
> > =====
> > Oleg Konovalov
> > home: 609-688-1775
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Fwd: Can't start Cocoon 2.0.4 on Tomcat 4.1

Posted by Stefan Burkard <ne...@burknet.ch>.
hi oleg

not sure about this, but i think you should put the 3 jars into 
tomcat-home\common\endorsed
(you putted them in Java_Home\jre\lib\endorsed)

greetings
stefan

Oleg Konovalov wrote:
> I don't have that option:
> both my (project) production and book I am reading
> are using Cocoon 2.04 and JBoss3-Tomcat4.
> 
> Any other suggestions ?
> 
> Thank you,
> Oleg.
>  
> --- Joachim Wackerow <wa...@zuma-mannheim.de> wrote:
> 
> 
>>Oleg
>>
>>Use the newest Cocoon 2.1.6 and Tomcat 5.0.x (Java 1.4.x) or
>>5.5.x (Java 
>>1.5.x!). Cocoon must be build, see the INSTALL.TXT in the
>>Cocoon 
>>distribution. These combinations are running without problems
>>with 
>>Windows XP Professional.
>>
>>Achim
>>
>>Oleg Konovalov wrote:
>>
>>
>>>Hi,
>>> 
>>>I am trying to learn Cocoon based on Lajos Moczar/Aston
>>
>>book.
>>
>>> 
>>>Installed Tomcat 4.1.31, downloaded Cocoon
>>>cocoon-2.0.4-vm14-bin.zip, unzipped it and put its
>>
>>cocoon.war
>>
>>>into webapps directory and started Tomcat.
>>>Also copied 3 jars (xercesImpl-200.jar, xalan-231.jar,
>>>xml-apis.jar) 
>>>from cocoon.war to Java_Home\jre\lib\endorsed
>>> 
>>>When I try to access http://localhost:8080/cocoon ,
>>>getting:
>>> 
>>>Cocoon 2 - Internal server error
>>>type fatal
>>>message Failed to generate program code (this may happen if
>>>you use Xalan in incremental processing mode). 
>>>Please check log file and/or console for errors.
>>> 
>>> description org.apache.cocoon.ProcessingException: Failed
>>
>>to
>>
>>> generate program code (this may happen if you use Xalan in
>>> incremental processing mode). Please check log file and/or
>>> console for errors.
>>> 
>>> sender org.apache.cocoon.servlet.CocoonServlet
>>> source Cocoon servlet
>>> 
>>> stack-trace
>>> 
>>> org.apache.cocoon.ProcessingException: Failed to generate
>>> program code (this may happen if you use Xalan in
>>
>>incremental
>>
>>> processing mode). Please check log file and/or console for
>>> errors.
>>>at
>>>
>>
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:395)
> 
>>>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:534)
>>> 
>>> 
>>> Checked logs - nothing special, in console:
>>> 
>>> java.lang.RuntimeException: Errors in XSLT transformation:
>>> Fatal: File
>>>
>>>
>>
> jar:file:/C:/jakarta-tomcat-4.1.31/webapps/cocoon/WEB-INF/lib/cocoon
> 
>>>
> -2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xs
> 
>>> l; Line 154; Column 32;
>>> org.apache.xml.utils.WrappedRuntimeException: The output
>>>  format must have a
>>> '{http://xml.apache.org/xalan}content-handler' property!
>>>at
>>>
>>
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
> 
>>>at java.lang.Thread.run(Thread.java:534)
>>> 
>>>Using Win2000, IE 5.5, JDK 1.4.2_06
>>>
>>> What am I missing ?
>>> Please help !
>>> 
>>> Thank you in advance,
>>> Oleg
>>> olegkon@yahoo.com
>>> 
>>> P.S.: I am not using the latest Tomcat and Cocoon, because
>>> in the book they recommend Tomcat4 and cocoon2.03
>>> which matches my development environment
>>>
>>>
>>>
>>
> ---------------------------------------------------------------------
> 
>>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>For additional commands, e-mail:
>>
>>users-help@cocoon.apache.org
>>
>>
>>
> ---------------------------------------------------------------------
> 
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
> 
> 
> 
> =====
> Oleg Konovalov
> home: 609-688-1775


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Fwd: Can't start Cocoon 2.0.4 on Tomcat 4.1

Posted by go...@osmosis.gr.
hi oleg
i have a working copy of cocoon 2.0.4 runing on tomcat 4.1.24 succesfull
on windows XP with j2sdk1.4.2_06

tomcat's common\endorsed has:
01/10/2003  12:05 ££         2.907.319 xalan-2.5.1.jar
19/03/2003  09:17 §£           885.250 xercesImpl.jar
19/03/2003  09:17 §£           124.676 xmlParserAPIs.jar

and  common\lib has:
19/03/2003  09:17 §£            45.386 activation.jar
19/03/2003  09:17 §£           717.666 ant.jar
19/03/2003  09:17 §£           165.119 commons-collections.jar
19/03/2003  09:17 §£            62.998 commons-dbcp.jar
19/03/2003  09:17 §£            18.404 commons-logging-api.jar
19/03/2003  09:17 §£            28.930 commons-pool.jar
14/01/2005  03:50 ££                 0 dir.txt
19/03/2003  09:17 §£           183.342 jasper-compiler.jar
19/03/2003  09:17 §£            73.012 jasper-runtime.jar
19/03/2003  09:17 §£            84.854 jdbc2_0-stdext.jar
19/03/2003  09:17 §£            98.496 jndi.jar
19/03/2003  09:17 §£             8.674 jta.jar
19/03/2003  09:17 §£           280.984 mail.jar
19/03/2003  09:17 §£            28.491 naming-common.jar
19/03/2003  09:17 §£            18.183 naming-factory.jar
19/03/2003  09:17 §£            39.042 naming-resources.jar
19/03/2003  09:17 §£            80.054 servlet.jar

i don't remember if i have build cocoon from sources or use a binary 
distr.


BTW 

i'll suggest you to move forward to cocoon2.1
allmost everything from 2.0.4 works on 2.1

plus:
it's more easy to get help from this list using 2.1 instead of 2.0


regards
-- stavros 



On Fri, 14 Jan 2005, Oleg Konovalov wrote:

> I don't have that option:
> both my (project) production and book I am reading
> are using Cocoon 2.04 and JBoss3-Tomcat4.
> 
> Any other suggestions ?
> 
> Thank you,
> Oleg.
>  
> --- Joachim Wackerow <wa...@zuma-mannheim.de> wrote:
> 
> > Oleg
> > 
> > Use the newest Cocoon 2.1.6 and Tomcat 5.0.x (Java 1.4.x) or
> > 5.5.x (Java 
> > 1.5.x!). Cocoon must be build, see the INSTALL.TXT in the
> > Cocoon 
> > distribution. These combinations are running without problems
> > with 
> > Windows XP Professional.
> > 
> > Achim
> > 
> > Oleg Konovalov wrote:
> > 
> > > Hi,
> > >  
> > > I am trying to learn Cocoon based on Lajos Moczar/Aston
> > book.
> > >  
> > > Installed Tomcat 4.1.31, downloaded Cocoon
> > > cocoon-2.0.4-vm14-bin.zip, unzipped it and put its
> > cocoon.war
> > > into webapps directory and started Tomcat.
> > > Also copied 3 jars (xercesImpl-200.jar, xalan-231.jar,
> > > xml-apis.jar) 
> > > from cocoon.war to Java_Home\jre\lib\endorsed
> > >  
> > > When I try to access http://localhost:8080/cocoon ,
> > > getting:
> > >  
> > > Cocoon 2 - Internal server error
> > > type fatal
> > > message Failed to generate program code (this may happen if
> > > you use Xalan in incremental processing mode). 
> > > Please check log file and/or console for errors.
> > >  
> > >  description org.apache.cocoon.ProcessingException: Failed
> > to
> > >  generate program code (this may happen if you use Xalan in
> > >  incremental processing mode). Please check log file and/or
> > >  console for errors.
> > >  
> > >  sender org.apache.cocoon.servlet.CocoonServlet
> > >  source Cocoon servlet
> > >  
> > >  stack-trace
> > >  
> > >  org.apache.cocoon.ProcessingException: Failed to generate
> > >  program code (this may happen if you use Xalan in
> > incremental
> > >  processing mode). Please check log file and/or console for
> > >  errors.
> > > at
> > >
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:395)
> > > 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:534)
> > >  
> > >  
> > >  Checked logs - nothing special, in console:
> > >  
> > >  java.lang.RuntimeException: Errors in XSLT transformation:
> > >  Fatal: File
> > > 
> > >
> >
> jar:file:/C:/jakarta-tomcat-4.1.31/webapps/cocoon/WEB-INF/lib/cocoon
> > > 
> > >
> >
> -2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xs
> > >  l; Line 154; Column 32;
> > >  org.apache.xml.utils.WrappedRuntimeException: The output
> > >   format must have a
> > >  '{http://xml.apache.org/xalan}content-handler' property!
> > > at
> > >
> >
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
> > > at java.lang.Thread.run(Thread.java:534)
> > >  
> > > Using Win2000, IE 5.5, JDK 1.4.2_06
> > > 
> > >  What am I missing ?
> > >  Please help !
> > >  
> > >  Thank you in advance,
> > >  Oleg
> > >  olegkon@yahoo.com
> > >  
> > >  P.S.: I am not using the latest Tomcat and Cocoon, because
> > >  in the book they recommend Tomcat4 and cocoon2.03
> > >  which matches my development environment
> > > 
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail:
> > users-help@cocoon.apache.org
> > > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> > 
> > 
> 
> 
> =====
> Oleg Konovalov
> home: 609-688-1775
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Fwd: Can't start Cocoon 2.0.4 on Tomcat 4.1

Posted by Oleg Konovalov <ol...@yahoo.com>.
I don't have that option:
both my (project) production and book I am reading
are using Cocoon 2.04 and JBoss3-Tomcat4.

Any other suggestions ?

Thank you,
Oleg.
 
--- Joachim Wackerow <wa...@zuma-mannheim.de> wrote:

> Oleg
> 
> Use the newest Cocoon 2.1.6 and Tomcat 5.0.x (Java 1.4.x) or
> 5.5.x (Java 
> 1.5.x!). Cocoon must be build, see the INSTALL.TXT in the
> Cocoon 
> distribution. These combinations are running without problems
> with 
> Windows XP Professional.
> 
> Achim
> 
> Oleg Konovalov wrote:
> 
> > Hi,
> >  
> > I am trying to learn Cocoon based on Lajos Moczar/Aston
> book.
> >  
> > Installed Tomcat 4.1.31, downloaded Cocoon
> > cocoon-2.0.4-vm14-bin.zip, unzipped it and put its
> cocoon.war
> > into webapps directory and started Tomcat.
> > Also copied 3 jars (xercesImpl-200.jar, xalan-231.jar,
> > xml-apis.jar) 
> > from cocoon.war to Java_Home\jre\lib\endorsed
> >  
> > When I try to access http://localhost:8080/cocoon ,
> > getting:
> >  
> > Cocoon 2 - Internal server error
> > type fatal
> > message Failed to generate program code (this may happen if
> > you use Xalan in incremental processing mode). 
> > Please check log file and/or console for errors.
> >  
> >  description org.apache.cocoon.ProcessingException: Failed
> to
> >  generate program code (this may happen if you use Xalan in
> >  incremental processing mode). Please check log file and/or
> >  console for errors.
> >  
> >  sender org.apache.cocoon.servlet.CocoonServlet
> >  source Cocoon servlet
> >  
> >  stack-trace
> >  
> >  org.apache.cocoon.ProcessingException: Failed to generate
> >  program code (this may happen if you use Xalan in
> incremental
> >  processing mode). Please check log file and/or console for
> >  errors.
> > at
> >
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:395)
> > 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:534)
> >  
> >  
> >  Checked logs - nothing special, in console:
> >  
> >  java.lang.RuntimeException: Errors in XSLT transformation:
> >  Fatal: File
> > 
> >
>
jar:file:/C:/jakarta-tomcat-4.1.31/webapps/cocoon/WEB-INF/lib/cocoon
> > 
> >
>
-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xs
> >  l; Line 154; Column 32;
> >  org.apache.xml.utils.WrappedRuntimeException: The output
> >   format must have a
> >  '{http://xml.apache.org/xalan}content-handler' property!
> > at
> >
>
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
> > at java.lang.Thread.run(Thread.java:534)
> >  
> > Using Win2000, IE 5.5, JDK 1.4.2_06
> > 
> >  What am I missing ?
> >  Please help !
> >  
> >  Thank you in advance,
> >  Oleg
> >  olegkon@yahoo.com
> >  
> >  P.S.: I am not using the latest Tomcat and Cocoon, because
> >  in the book they recommend Tomcat4 and cocoon2.03
> >  which matches my development environment
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:
> users-help@cocoon.apache.org
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


=====
Oleg Konovalov
home: 609-688-1775

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Fwd: Can't start Cocoon 2.0.4 on Tomcat 4.1

Posted by Joachim Wackerow <wa...@zuma-mannheim.de>.
Oleg

Use the newest Cocoon 2.1.6 and Tomcat 5.0.x (Java 1.4.x) or 5.5.x (Java 
1.5.x!). Cocoon must be build, see the INSTALL.TXT in the Cocoon 
distribution. These combinations are running without problems with 
Windows XP Professional.

Achim

Oleg Konovalov wrote:

> Hi,
>  
> I am trying to learn Cocoon based on Lajos Moczar/Aston book.
>  
> Installed Tomcat 4.1.31, downloaded Cocoon
> cocoon-2.0.4-vm14-bin.zip, unzipped it and put its cocoon.war
> into webapps directory and started Tomcat.
> Also copied 3 jars (xercesImpl-200.jar, xalan-231.jar,
> xml-apis.jar) 
> from cocoon.war to Java_Home\jre\lib\endorsed
>  
> When I try to access http://localhost:8080/cocoon ,
> getting:
>  
> Cocoon 2 - Internal server error
> type fatal
> message Failed to generate program code (this may happen if
> you use Xalan in incremental processing mode). 
> Please check log file and/or console for errors.
>  
>  description org.apache.cocoon.ProcessingException: Failed to
>  generate program code (this may happen if you use Xalan in
>  incremental processing mode). Please check log file and/or
>  console for errors.
>  
>  sender org.apache.cocoon.servlet.CocoonServlet
>  source Cocoon servlet
>  
>  stack-trace
>  
>  org.apache.cocoon.ProcessingException: Failed to generate
>  program code (this may happen if you use Xalan in incremental
>  processing mode). Please check log file and/or console for
>  errors.
> at
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:395)
> 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:534)
>  
>  
>  Checked logs - nothing special, in console:
>  
>  java.lang.RuntimeException: Errors in XSLT transformation:
>  Fatal: File
> 
> jar:file:/C:/jakarta-tomcat-4.1.31/webapps/cocoon/WEB-INF/lib/cocoon
> 
> -2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xs
>  l; Line 154; Column 32;
>  org.apache.xml.utils.WrappedRuntimeException: The output
>   format must have a
>  '{http://xml.apache.org/xalan}content-handler' property!
> at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
> at java.lang.Thread.run(Thread.java:534)
>  
> Using Win2000, IE 5.5, JDK 1.4.2_06
> 
>  What am I missing ?
>  Please help !
>  
>  Thank you in advance,
>  Oleg
>  olegkon@yahoo.com
>  
>  P.S.: I am not using the latest Tomcat and Cocoon, because
>  in the book they recommend Tomcat4 and cocoon2.03
>  which matches my development environment
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org