cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snpe <s...@snpe.co.yu>
Subject Re: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3 (Linux)
Date Wed, 06 Mar 2002 15:21:17 GMT
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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message