You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2005/09/22 16:12:11 UTC

[DAISY] Created: Installation FAQs

A new document has been created.

http://cocoon.zones.apache.org/daisy/legacydocs/720.html

Document ID: 720
Branch: main
Language: default
Name: Installation FAQs
Document Type: Document
Created: 9/22/05 2:11:57 PM
Creator (owner): Helma van der Linden
State: publish

Parts
=====

Content
-------
Mime type: text/xml
Size: 3596 bytes
Content:
<html>
<body>

<h2>Why doesn't anything happen when I access 'http://localhost/cocoon/'?</h2>

<p>You might want to check a few things.</p>

<ul>
<li>Is your server listening to port 80? If not, you have to call the right
port, for example, 'http://localhost:8080/cocoon/'. Note that Apache Tomcat
binds by default to port 8080, NOT 80.</li>
<li>Did your servlet engine install the WAR file? You can check this by making
sure the WAR file was unpacked or connecting to the administration tools of your
servlet engine.</li>
<li>If you didn't restart the servlet engine, do it.</li>
<li>In Tomcat 4, did you change CATALINA_BASE to a different value than the
default CATALINA_HOME? If so, copy the war files to CATALINA_BASE/webapps or set
CATALINA_BASE=CATALINA_HOME. Then, restart Tomcat.</li>
</ul>

<h2>Why does Cocoon take so long to start?</h2>

<p>Cocoon compiles sitemaps into java classes to increase runtime performance.
This occurs at startup only when the sitemap file is modified. For all other
requests, the compiled sitemap is executed.</p>

<h2>Why is cocoon.war so big?</h2>

<p>Cocoon.war includes all the libraries it requires to run. This includes
several megabytes of Java classes. It also includes the JDK javac compiler which
must be present in the war file to allow page compilation without classloading
problems.</p>

<h2>I get a java.lang.VerifyError when accessing 'http://localhost/cocoon/'.
What's wrong?</h2>

<p>Cocoon requires a JAXP 1.1 compliant parser. Some servlet engines (like
Tomcat 3.2.1) use older XML parsers. Replace the XML parser with a more recent
one (e.g. the Xerces 1.3.0 or newer).</p>

<p>For Tomcat 3.2.1, remove the jaxp.jar and the parser.jar from the tomcat/lib
directory. Copy the xerces.jar to this directory and rename it to parser.jar.
Before you restart Tomcat, make sure to delete the tomcat/work directory.</p>

<h2>Cocoon still won't start, this time I get
javax.xml.transform.TransformerConfigurationException: Namespace not supported
by SAXParser in the Cocoon log file.</h2>

<p>This is a classloader issue with Tomcat and some other servlet engines.
Basically it means that the Xerces library included with Cocoon is not being
found. The solution is to place the Xerces library first in the classpath.</p>

<h2>Cocoon won't start, and I get a "java.lang.NoSuchMethodError:
org.apache.log.LogKit: method
createLogger(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/log/Logger;
not found" in my Servlet Container's log.</h2>

<p>You have an old set of libraries installed. Copy the correct libraries from
the distribution.</p>

<p>Even better, build Cocoon with "build webapp". This build creates a complete
WAR file with all necessary libraries included.</p>

<h2>Windows 95/98 tells me that I don't have enough environment-memory.</h2>

<p>This is another neat feature from DOS- times. To increase environment-space
add the following line to your config.sys (and restart):</p>

<pre>shell=c:\command.com /E:4096 /P
</pre>

<h2>I'm still stuck, what do I do?</h2>

<p>Contact the Cocoon Users mail list (users@cocoon.apache.org). Please do not
contact developers directly for help. Cocoon users are generally more responsive
because they tend to have more experience than developers troubleshooting
installation problems.</p>

<p>Cocoon has several log files which are stored in the context where you
installed Cocoon. These logs are located in '{cocoon}/WEB-INF/logs/' where
{cocoon} is the context where Cocoon is installed. The information contained in
that file will help others help you.</p>

</body>
</html>

Collections
===========
The document belongs to the following collections: legacydocs