cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lock, Fred" <fl...@gohealthcast.com>
Subject Still having trouble - RE: C2 on Solaris 8 install trouble
Date Sat, 17 Mar 2001 00:45:34 GMT
Berin, Konstantin:

I followed your instructions, but I'm still getting "The sitemap handler's
sitemap ..."

I've included the latest cocoon.log at the very bottom of this email. As you
can see in cocoon.log, the classpath definitely includes tools.jar (3 times
in fact).

I'm most troubled by the following line in cocoon.log:
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap

If you could give me any more help I would certainly appreciate it.

Thanks,
Fred

P.S. Latest cocoon.log at very bottom of this email.

-----Original Message-----
From: Berin Loritsch [mailto:bloritsch@apache.org]
Sent: Thursday, March 15, 2001 9:43 PM
To: cocoon-users@xml.apache.org
Subject: Re: C2 on Solaris 8 install trouble


"Lock, Fred" wrote:
> 
> Ok, I give up.
> 
> I've looked through all the email archives, and tried everything mentioned
> there. Still no luck. Please help.
> 
> The trouble is I get the dreaded "The sitemap handler's sitemap is not
> available." message when I try to access C2.
> 
> Here's my setup:
> Solaris 8 (Intel)
> JDK 1.3.0
> Cocoon 2.0a4
> Tomcat 3.2.1
> 
> I've followed the advice in the email archives so that the jars in
> $TOMCAT_HOME/lib are:
> ant.jar, jasper.jar, servlet.jar, webserver.jar, xerces_1_3_0.jar
> 
> I build cocoon.war using:
> $COCOON_HOME/build.sh -Dinclude.webapp.libs=yes webapp
> 
> I then copy $COCOON_HOME/build/cocoon/cocoon.war to $TOMCAT_HOME/webapps.
> 
> I start tomcat with $TOMCAT_HOME/bin/startup.sh and then try to hit
> http://localhost:8080/cocoon
> 
> And that's when I get the message.

Make sure that the tools.jar file is in your CLASSPATH.  You can do this in
one of three ways: include it in an environment variable $CLASSPATH, put the
jar in cocoon/WEB-INF/lib, or add the initial parameter "extra-classpath" to
point to the proper path.

You are getting a ClassNotFoundException in the JavaCompiler class which
means that Cocoon could not find the compiler to create the sitemap and
XSP pages.

---------------------------------------------------------------------
Latest cocoon.log starts here:
---------------------------------------------------------------------

DEBUG   356     [cocoon  ] (Thread-10): Using configuration file:
/cocoon.xconf
INFO    359     [cocoon  ] (Thread-10): Reloading from:
file:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/cocoon.xconf
DEBUG   645     [cocoon  ] (Thread-10): New Cocoon object.
DEBUG   645     [cocoon  ] (Thread-10): Using parser:
org.apache.cocoon.components.parser.JaxpParser
DEBUG   909     [cocoon  ] (Thread-10): Creating Repository with this
directory:
/export/home/flock/dte/jakarta-tomcat-3.2.1/work/localhost_8080%2Fcocoon
WARN    914     [cocoon  ] (Thread-10): Could not set up Component for role:
org.apache.cocoon.components.store.Repository
java.lang.NullPointerException
	at
org.apache.cocoon.components.CocoonComponentHandler.setLogger(CocoonComponen
tHandler.java:72)
	at
org.apache.cocoon.components.CocoonComponentManager.addComponentInstance(Coc
oonComponentManager.java:209)
	at org.apache.cocoon.Cocoon.init(Cocoon.java:121)
	at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:479)
	at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:125)
	at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
	at org.apache.tomcat.core.Handler.init(Handler.java:215)
	at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
	at org.apache.tomcat.core.Handler.service(Handler.java:254)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
DEBUG   917     [cocoon  ] (Thread-10): Classpath =
/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/classes:/
export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/junit.
jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/m
aybeupload.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WE
B-INF/lib/jstyle.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/coc
oon/WEB-INF/lib/rhino.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapp
s/cocoon/WEB-INF/lib/xalan-2.0.0.jar:/export/home/flock/dte/jakarta-tomcat-3
.2.1/webapps/cocoon/WEB-INF/lib/fop-0_16_0.jar:/export/home/flock/dte/jakart
a-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/avalonapi.jar:/export/home/flock/d
te/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/batik-all.jar:/export/hom
e/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/bsf.jar:/export/
home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/xerces_1_3_0.
jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib/x
t.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/lib
/jakarta-regexp-1.2.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/
cocoon/WEB-INF/lib/javac.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/web
apps/cocoon/WEB-INF/lib/cocoon-2.0a4.jar:/export/home/flock/dte/jakarta-tomc
at-3.2.1/webapps/cocoon/WEB-INF/lib/tools.jar:/export/home/flock/dte/jakarta
-tomcat-3.2.1/lib/ant.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/lib/ja
sper.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/lib/servlet.jar:/export
/home/flock/dte/jakarta-tomcat-3.2.1/lib/test:/export/home/flock/dte/jakarta
-tomcat-3.2.1/lib/webserver.jar:/export/home/flock/dte/jakarta-tomcat-3.2.1/
lib/xerces_1_3_0.jar:/usr/java1.3.0/lib/tools.jar:/usr/java1.3.0/lib/tools.j
ar:/usr/java1.3.0/lib/tools.jar
DEBUG   917     [cocoon  ] (Thread-10): Work directory =
/export/home/flock/dte/jakarta-tomcat-3.2.1/work/localhost_8080%2Fcocoon
DEBUG   936     [cocoon  ] (Thread-10): ComponentFactory creating new
instance of org.apache.cocoon.components.parser.JaxpParser.
DEBUG   954     [cocoon  ] (Thread-10): ComponentFactory creating new
instance of org.apache.cocoon.components.parser.JaxpParser.
DEBUG   956     [cocoon  ] (Thread-10): ComponentFactory creating new
instance of org.apache.cocoon.components.parser.JaxpParser.
DEBUG   958     [cocoon  ] (Thread-10): ComponentFactory creating new
instance of org.apache.cocoon.components.parser.JaxpParser.
DEBUG   1106    [cocoon  ] (Thread-10): Root configuration: cocoon
DEBUG   1107    [cocoon  ] (Thread-10): Configuration version: 2.0
DEBUG   1107    [cocoon  ] (Thread-10): Setting up components...
DEBUG   1147    [cocoon  ] (Thread-10): Adding component
(org.apache.cocoon.components.parser.Parser =
org.apache.cocoon.components.parser.JaxpParser)
DEBUG   1147    [cocoon  ] (Thread-10): Adding component
(org.apache.cocoon.components.language.generator.ProgramGenerator =
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl)
DEBUG   1316    [cocoon  ] (Thread-10): Adding component
(org.apache.cocoon.components.url.URLFactory =
org.apache.cocoon.components.url.URLFactoryImpl)
DEBUG   1379    [cocoon  ] (Thread-10): Adding component
(org.apache.cocoon.components.saxconnector.SAXConnector =
org.apache.cocoon.components.saxconnector.NullSAXConnector)
DEBUG   1547    [cocoon  ] (Thread-10): Adding component
(org.apache.avalon.util.datasource.DataSourceComponentSelector =
org.apache.cocoon.components.CocoonComponentSelector)
DEBUG   1551    [cocoon  ] (Thread-10): Adding component
(org.apache.avalon.util.pool.PoolController =
org.apache.cocoon.components.ComponentPoolController)
DEBUG   1592    [cocoon  ] (Thread-10): Adding component
(org.apache.cocoon.components.language.programming.ProgrammingLanguageSelect
or = org.apache.cocoon.components.CocoonComponentSelector)
DEBUG   1593    [cocoon  ] (Thread-10): Adding component
(org.apache.cocoon.components.language.markup.MarkupLanguageSelector =
org.apache.cocoon.components.CocoonComponentSelector)
DEBUG   1593    [cocoon  ] (Thread-10): Adding component
(org.apache.cocoon.components.store.Store =
org.apache.cocoon.components.store.MemoryStore)
DEBUG   1623    [cocoon  ] (Thread-10): Adding component
(org.apache.cocoon.components.classloader.ClassLoaderManager =
org.apache.cocoon.components.classloader.ClassLoaderManagerImpl)
DEBUG   1711    [cocoon  ] (Thread-10): Setting up the sitemap.
DEBUG   1742    [cocoon  ] (Thread-10): Sitemap location = sitemap.xmap
DEBUG   1995    [cocoon  ] (Thread-10): ComponentFactory creating new
instance of org.apache.cocoon.components.url.URLFactoryImpl.
DEBUG   1995    [cocoon  ] (Thread-10): Getting the URLFactories
DEBUG   1996    [cocoon  ] (Thread-10): 	for protocol: resource
org.apache.cocoon.components.url.ResourceURLFactory
DEBUG   2029    [cocoon  ] (Thread-10): 	for protocol: context
org.apache.cocoon.components.url.ContextURLFactory
DEBUG   2062    [cocoon  ] (Thread-10): Beginning sitemap regeneration
DEBUG   2063    [cocoon  ] (Thread-10): Making URL from
file:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/sitemap.xmap
DEBUG   2065    [cocoon  ] (Thread-24): ComponentFactory creating new
instance of
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
DEBUG   2065    [cocoon  ] (Thread-24): Could not find ComponentHandler,
attempting to create one for role:
org.apache.cocoon.components.language.generator.ServerPagesSelector
DEBUG   2067    [cocoon  ] (Thread-24): ComponentFactory creating new
instance of
org.apache.cocoon.components.language.generator.GeneratorSelector.
DEBUG   2070    [cocoon  ] (Thread-24): ComponentFactory creating new
instance of org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.
DEBUG   2071    [cocoon  ] (Thread-24): CocoonComponentSelector setting up
with root element: 
DEBUG   2071    [cocoon  ] (Thread-24): Could not find ComponentHandler,
attempting to create one for role:
org.apache.cocoon.components.store.Repository
DEBUG   2072    [cocoon  ] (Thread-24): ComponentFactory creating new
instance of org.apache.cocoon.components.store.FilesystemStore.
DEBUG   2073    [cocoon  ] (Thread-24): ComponentFactory creating new
instance of org.apache.cocoon.components.CocoonComponentSelector.
DEBUG   2073    [cocoon  ] (Thread-24): CocoonComponentSelector setting up
with root element: markup-languages
DEBUG   2335    [cocoon  ] (Thread-24): Adding
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage for xsp
DEBUG   2410    [cocoon  ] (Thread-24): Adding
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage
for sitemap
DEBUG   2410    [cocoon  ] (Thread-24): ComponentFactory creating new
instance of org.apache.cocoon.components.CocoonComponentSelector.
DEBUG   2410    [cocoon  ] (Thread-24): CocoonComponentSelector setting up
with root element: programming-languages
DEBUG   2544    [cocoon  ] (Thread-24): ComponentFactory creating new
instance of
org.apache.cocoon.components.language.programming.java.JavaLanguage.
DEBUG   2544    [cocoon  ] (Thread-24): Looking up
org.apache.cocoon.components.classloader.ClassLoaderManager
DEBUG   2545    [cocoon  ] (Thread-24): Setting the parameters
DEBUG   2749    [cocoon  ] (Thread-24): Adding
org.apache.cocoon.components.language.programming.java.JavaLanguage for java
DEBUG   2865    [cocoon  ] (Thread-24): The instance was not accessible,
creating it now.
DEBUG   2866    [cocoon  ] (Thread-24): ComponentFactory creating new
instance of
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage.
DEBUG   6658    [cocoon  ] (Thread-24): Making URL from
jar:file:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/
lib/cocoon-2.0a4.jar!/org/apache/cocoon/components/language/markup/sitemap/j
ava/sitemap.xsl
DEBUG   6658    [cocoon  ] (Thread-24): Logicsheet
Used:jar:file:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB
-INF/lib/cocoon-2.0a4.jar!/org/apache/cocoon/components/language/markup/site
map/java/sitemap.xsl
WARN    11595   [cocoon  ] (Thread-24): Could not load class for program
'org/apache/cocoon/www/sitemap_xmap'
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at
org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.loadClass(Cl
assLoaderManagerImpl.java:58)
	at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:121)
	at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:119)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:245)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:163)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)
	at java.lang.Thread.run(Thread.java:484)
DEBUG   11597   [cocoon  ] (Thread-24): Language Exception
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
	at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:124)
	at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:119)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:245)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:163)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)
	at java.lang.Thread.run(Thread.java:484)
DEBUG   11639   [cocoon  ] (Thread-24): Can't load ServerPage
org.apache.avalon.ComponentManagerException: Could not add component for
class: org.apache.cocoon.www.sitemap_xmap
	at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:61)
	at
org.apache.cocoon.components.language.generator.GeneratorSelector.select(Gen
eratorSelector.java:50)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(
ProgramGeneratorImpl.java:263)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:172)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)
	at java.lang.Thread.run(Thread.java:484)
DEBUG   11640   [cocoon  ] (Thread-24): ComponentFactory creating new
instance of
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage.
DEBUG   12340   [cocoon  ] (Thread-24): Making URL from
jar:file:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB-INF/
lib/cocoon-2.0a4.jar!/org/apache/cocoon/components/language/markup/sitemap/j
ava/sitemap.xsl
DEBUG   12341   [cocoon  ] (Thread-24): Logicsheet
Used:jar:file:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/WEB
-INF/lib/cocoon-2.0a4.jar!/org/apache/cocoon/components/language/markup/site
map/java/sitemap.xsl
WARN    14695   [cocoon  ] (Thread-24): Could not load class for program
'org/apache/cocoon/www/sitemap_xmap'
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at
org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.loadClass(Cl
assLoaderManagerImpl.java:58)
	at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:121)
	at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:119)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:245)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:210)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)
	at java.lang.Thread.run(Thread.java:484)
DEBUG   14696   [cocoon  ] (Thread-24): Language Exception
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
	at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:124)
	at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:119)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:245)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:210)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)
	at java.lang.Thread.run(Thread.java:484)
ERROR   14726   [cocoon  ] (Thread-24): Error compiling sitemap
org.apache.avalon.ComponentManagerException: Could not add component for
class: org.apache.cocoon.www.sitemap_xmap
	at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:61)
	at
org.apache.cocoon.components.language.generator.GeneratorSelector.select(Gen
eratorSelector.java:50)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(
ProgramGeneratorImpl.java:263)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:219)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)
	at java.lang.Thread.run(Thread.java:484)
DEBUG   14730   [cocoon  ] (Thread-10): Changing Cocoon
context(sitemap.xmap) to prefix()
DEBUG   14730   [cocoon  ] (Thread-10): 	from
context(file:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/)
and prefix()
DEBUG   14730   [cocoon  ] (Thread-10): 	at URI 
DEBUG   14731   [cocoon  ] (Thread-10): New context is
file:/export/home/flock/dte/jakarta-tomcat-3.2.1/webapps/cocoon/
ERROR   14733   [cocoon  ] (Thread-10): Problem with servlet
org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
available.
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:106)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:213)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:388)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
INFO    14804   [cocoon  ] (Thread-10): '' Processed by Apache Cocoon 2.0a4
in 13.031 seconds.

---------------------------------------------------------------------
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