You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by snpe <sn...@snpe.co.yu> on 2002/03/06 16:21:17 UTC

Re: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)

Hello,
	I  try your solution on Linux.
I get tomcat-4.0.3 from source, compile and execute with JDK1.4
Next I set xml-cocoon2 from CVS  (06-mar-2002)
I set all and delete xalan, xerces,batik and xml-apis from cocoon/WEB-INF/lib
(I try change javac.jar with  tools.jar without success)
<init-param>
      <param-name>extra-classpath</param-name>      			        
<param-value>/usr/local/tomcat-4.0.3/common/lib/xalan-2.3.1.jar:/usr/local/tomcat-4.0.3/common/lib/xercesImpl-2.0.0.jar:/usr/local/tomcat-4.0.3/common/lib/xml-apis.jar:/usr/local/tomcat-4.0.3/common/lib/batik-libs-1.1.1.jar
      </param-value>
    </init-param>

I add in web.xml from cocoon :

regards
haris peco
 
I get error:

Cocoon 2 - Internal server error
type fatal
message Error compiling sitemap
description org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/
path-info
stack-trace
org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NoClassDefFoundError
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
at org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:98)
at 
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82)
at 
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:80)
at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(PoolableComponentHandler.java:88)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:467)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(DefaultSitemapComponentSelector.java:181)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addSitemapComponent(DefaultSitemapComponentSelector.java:188)
at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:275)
at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap.java:759)
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:386)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:251)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
... 1 more
java.lang.NoClassDefFoundError
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
at org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:98)
at 
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82)
at 
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:80)
at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(PoolableComponentHandler.java:88)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:467)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(DefaultSitemapComponentSelector.java:181)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addSitemapComponent(DefaultSitemapComponentSelector.java:188)
at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:275)
at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap.java:759)
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:386)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:251)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:536)
On Saturday 02 March 2002 08:48 pm, Vadim Gritsenko wrote:
> > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> >
> > Hi,
> >
> > Here are steps to install Cocoon with the Tomcat 4.0.3. Following
>
> steps
>
> > were tried under Win2000 and Cocoon CVS version, and assume that
>
> Tomcat
>
> > is installed under C:\Apache\jakarta-tomcat-4.0.3 directory. Make
> > appropriate arrangements in JAR file versions for older Cocoon and
> > directories/slashes for Linux.
> >
> > 1. Download and install Tomcat 4.0.3, from
> > http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/
> >
> > 2. Copy following libraries from the xml-cocoon2\lib\core directory to
> > the %CATALINA_HOME%\common\lib directory:
> >     xalan-2.3.1.jar
> >     xercesImpl-2.0.0.jar
> >     xml-apis.jar
> >
> > 3. Copy following library from the xml-cocoon2\lib\optional directory
>
> to
>
> > the %CATALINA_HOME%\common\lib directory:
> >     batik-libs-1.1.1.jar
> >
> > 4. Remove xt-19991105.jar from the xml-cocoon2\lib\optional directory.
> >
> > 5. Edit extra-classpath parameter in the
> > xml-cocoon2\src\webapp\WEB-INF\web.xml:
> >     <init-param>
> >       <param-name>extra-classpath</param-name>
>
> <param-value>C:\Apache\jakarta-tomcat-4.0.3\common\lib\xalan-2.3.1.jar;C
>
> :\Apache\jakarta-tomcat-4.0.3\common\lib\xercesImpl-2.0.0.jar;C:\Apache\
>
> jakarta-tomcat-4.0.3\common\lib\xml-apis.jar;C:\Apache\jakarta-tomcat-4.
>
> > 0.3\common\lib\batik-libs-1.1.1.jar</param-value>
> >     </init-param>
> >
> > 6. Clean Cocoon:
> >     build clean
> >
> > 7. Build Cocoon:
> >     build -Dinclude.webapp.libs=yes webapp
> >
> > 8. Copy xml-cocoon2\build\cocoon\cocoon.war
>
> Forgot to mention one step:
>   Remove xalan, xerces, batik, xml-apis libraries from the cocoon.war
> archive.
>
> > 9. Launch Tomcat. Access http://localhost:8080/cocoon/.
> >
> > Known issues: I did not put any effort into configuring JSP examples,
> > and they do not work out-of-the-box.
> >
> > Please try these steps and get back with results.
>
> Vadim
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>


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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: snpe [mailto:snpe@snpe.co.yu]
> 
> On Thursday 07 March 2002 07:37 pm, Vadim Gritsenko wrote:
> > > From: snpe [mailto:snpe@snpe.co.yu]
> > >
> > > > You need to get CVS version of Batik with some bug fixed.
> > > >
> > > > Vadim
> > >
> > > I do this and SVG work, menu in docs work, but I haven't contents
in
> >
> > doc
> >
> > Do you mean http://localhost:8080/cocoon/documentation/ shows
navigation
> > but does not have content?
> >
> > If yes, take latest CVS version of the Cocoon docs from CVS.
> >
> 
> Yes.
> I don't know how.
> I get xml-cocoon2 with -r HEAD options
 
Yes, this should do this. Try updating your Cocoon from CVS and test
docs again.

Vadim

> thanks
> haris peco
> 


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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)

Posted by snpe <sn...@snpe.co.yu>.
On Thursday 07 March 2002 07:37 pm, Vadim Gritsenko wrote:
> > From: snpe [mailto:snpe@snpe.co.yu]
> >
> > > You need to get CVS version of Batik with some bug fixed.
> > >
> > > Vadim
> >
> > I do this and SVG work, menu in docs work, but I haven't contents in
>
> doc
>
> Do you mean http://localhost:8080/cocoon/documentation/ shows navigation
> but does not have content?
>
> If yes, take latest CVS version of the Cocoon docs from CVS.
>

Yes.
I don't know how.
I get xml-cocoon2 with -r HEAD options

thanks
haris peco

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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: snpe [mailto:snpe@snpe.co.yu]
> 
> > You need to get CVS version of Batik with some bug fixed.
> >
> > Vadim
> 
> I do this and SVG work, menu in docs work, but I haven't contents in
doc
 
Do you mean http://localhost:8080/cocoon/documentation/ shows navigation
but does not have content?

If yes, take latest CVS version of the Cocoon docs from CVS.

Vadim

> regards
> peco
> 


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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)

Posted by snpe <sn...@snpe.co.yu>.
> You need to get CVS version of Batik with some bug fixed.
>
> Vadim

I do this and SVG work, menu in docs work, but I haven't contents in doc

regards
peco

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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: snpe [mailto:snpe@snpe.co.yu]
> 
> On Wednesday 06 March 2002 06:26 pm, Vadim Gritsenko wrote:
> > > From: snpe [mailto:snpe@snpe.co.yu]
> > >
> > > Hello,
> > > 	I  try your solution on Linux.
> > > I get tomcat-4.0.3 from source, compile and execute with JDK1.4
> >
> > Ok, my fault. One more correction: these steps are for JDK1.3.1.
Search
> > archives, read Cocoon CVS documentation for JDK1.4 issues.
> 
> Hello,
>    I play with this:
> 
> I do all with your solution and add batik in
webapps/cocoon/WEB-INF/lib
> tomcat 4.0. is from source, and cocoon is form CVS and compile with
JDK1.4
> 
> Now cocoon work, but SVG don't work
> In 'doc' menu I haven't image and 'SVG' menu is empty

You need to get CVS version of Batik with some bug fixed.

Vadim

 
> All is same with "HOWTO jdk1.4' from Matt Wiliams
> 
> Please help
> 
> regards
> haris peco


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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)

Posted by snpe <sn...@snpe.co.yu>.
On Wednesday 06 March 2002 06:26 pm, Vadim Gritsenko wrote:
> > From: snpe [mailto:snpe@snpe.co.yu]
> >
> > Hello,
> > 	I  try your solution on Linux.
> > I get tomcat-4.0.3 from source, compile and execute with JDK1.4
>
> Ok, my fault. One more correction: these steps are for JDK1.3.1. Search
> archives, read Cocoon CVS documentation for JDK1.4 issues.

Hello,
   I play with this:

I do all with your solution and add batik in webapps/cocoon/WEB-INF/lib
tomcat 4.0. is from source, and cocoon is form CVS and compile with JDK1.4

Now cocoon work, but SVG don't work
In 'doc' menu I haven't image and 'SVG' menu is empty

All is same with "HOWTO jdk1.4' from Matt Wiliams

Please help

regards
haris peco

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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: snpe [mailto:snpe@snpe.co.yu]
> 
> Hello,
> 	I  try your solution on Linux.
> I get tomcat-4.0.3 from source, compile and execute with JDK1.4

Ok, my fault. One more correction: these steps are for JDK1.3.1. Search
archives, read Cocoon CVS documentation for JDK1.4 issues.

<snip/>

> org.apache.cocoon.ProcessingException: Error compiling sitemap:
> java.lang.NoClassDefFoundError
> at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
> at java.lang.Thread.run(Thread.java:536)
> Caused by: java.lang.NoClassDefFoundError
> at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
> at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
> at
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)

<snip/>

Vadim

> On Saturday 02 March 2002 08:48 pm, Vadim Gritsenko wrote:
> > > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> > >
> > > Hi,
> > >
> > > Here are steps to install Cocoon with the Tomcat 4.0.3. Following
> >
> > steps
> >
> > > were tried under Win2000 and Cocoon CVS version, and assume that
> >
> > Tomcat
> >
> > > is installed under C:\Apache\jakarta-tomcat-4.0.3 directory. Make
> > > appropriate arrangements in JAR file versions for older Cocoon and
> > > directories/slashes for Linux.
> > >
> > > 1. Download and install Tomcat 4.0.3, from
> > >
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/
> > >
> > > 2. Copy following libraries from the xml-cocoon2\lib\core
directory to
> > > the %CATALINA_HOME%\common\lib directory:
> > >     xalan-2.3.1.jar
> > >     xercesImpl-2.0.0.jar
> > >     xml-apis.jar
> > >
> > > 3. Copy following library from the xml-cocoon2\lib\optional
directory
> >
> > to
> >
> > > the %CATALINA_HOME%\common\lib directory:
> > >     batik-libs-1.1.1.jar
> > >
> > > 4. Remove xt-19991105.jar from the xml-cocoon2\lib\optional
directory.
> > >
> > > 5. Edit extra-classpath parameter in the
> > > xml-cocoon2\src\webapp\WEB-INF\web.xml:
> > >     <init-param>
> > >       <param-name>extra-classpath</param-name>
> >
> >
<param-value>C:\Apache\jakarta-tomcat-4.0.3\common\lib\xalan-2.3.1.jar;C
> >
> >
:\Apache\jakarta-tomcat-4.0.3\common\lib\xercesImpl-2.0.0.jar;C:\Apache\
> >
> >
jakarta-tomcat-4.0.3\common\lib\xml-apis.jar;C:\Apache\jakarta-tomcat-4.
> >
> > > 0.3\common\lib\batik-libs-1.1.1.jar</param-value>
> > >     </init-param>
> > >
> > > 6. Clean Cocoon:
> > >     build clean
> > >
> > > 7. Build Cocoon:
> > >     build -Dinclude.webapp.libs=yes webapp
> > >
> > > 8. Copy xml-cocoon2\build\cocoon\cocoon.war
> >
> > Forgot to mention one step:
> >   Remove xalan, xerces, batik, xml-apis libraries from the
cocoon.war
> > archive.
> >
> > > 9. Launch Tomcat. Access http://localhost:8080/cocoon/.
> > >
> > > Known issues: I did not put any effort into configuring JSP
examples,
> > > and they do not work out-of-the-box.
> > >
> > > Please try these steps and get back with results.
> >
> > Vadim
> >


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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>