You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thomas Schrader <th...@charite.de> on 2001/10/11 14:05:52 UTC

a new newbe with problems

Hi,
after installing cocoon2.0b1 under tomcat3.2 i have an error message:


  Cocoon 2 - Internal server error
  
------------------------------------------------------------------------

type internal-server-error

messageThe sitemap handler's sitemap is not available.

descriptionorg.apache.cocoon.ProcessingException: The sitemap handler's 
sitemap is not available.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

exception

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.

path-info

stacktrace

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.
	at org.apache.avalon.framework.CascadingException.(CascadingException.java:40)
	at org.apache.cocoon.ProcessingException.(ProcessingException.java:36)
	at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:498)

------------------------------------------------------------------------

any ideas to fix the error?

Thanx

Thomas Schrader



Re: a new newbe with problems

Posted by Yann SECQ <Ya...@lifl.fr>.
Martijn Bouterse wrote:

> I had a real xserver running. It still wouldn't work. What I had to do
> is to allow connections to my xserver and to export the DISPLAY
> environment var accordingly.
> Cocoon works now but I still don't like running a Xserver solely for the
> purpose of facilitating a Java library which needs a display (and not
> using it!).

That's a JDK issue, not a Coccoon one ! But, it will be probably
solved when Batik will switch to Java 1.4 :
http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html#headless

Cheers, yann.

-- 
  / Yann SECQ            Equipe SMAC           secq@lifl.fr \
| Multi-Agent Systems Modeling & Agent Oriented Programming |
  \ http://www.lifl.fr/SMAC        http://www.lifl.fr/~secq /


---------------------------------------------------------------------
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: a new newbe with problems

Posted by Martijn Bouterse <ma...@surfnet.nl>.
Karl Oie wrote:
> 
> batik and svg needs a X11 to run properly, if you run a server without x,
> read this from a previous mail:
> 
> goto http://www.xfree86.org and get the xvfb package, i had the same
> problem, so i included this in the tomcat.sh after i installed Xvfb:
> 
> if [ "$1" = "stop" ] ; then
>     # kill off any framebuffer running, kill kill kill :-)
>     kill -TERM `/sbin/pidof Xvfb`
> elif [ "$1"="start" -o "$1"="run" ] ; then
>     # start up a virtual framebuffer for cocoon2's rendering
>     Xvfb :1 -screen 0 320x240x24 &
> fi
> 
> this setsup a virtual framebuffer for x to run in, now all the batik and
> svg
> stuff works without running a real x server.
> 

I had a real xserver running. It still wouldn't work. What I had to do
is to allow connections to my xserver and to export the DISPLAY
environment var accordingly.
Cocoon works now but I still don't like running a Xserver solely for the
purpose of facilitating a Java library which needs a display (and not
using it!).

Sigh.

Martijn Bouterse

---------------------------------------------------------------------
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: a new newbe with problems

Posted by Karl Oie <ka...@gan.no>.
batik and svg needs a X11 to run properly, if you run a server without x,
read this from a previous mail:

goto http://www.xfree86.org and get the xvfb package, i had the same
problem, so i included this in the tomcat.sh after i installed Xvfb:

if [ "$1" = "stop" ] ; then
    # kill off any framebuffer running, kill kill kill :-)
    kill -TERM `/sbin/pidof Xvfb`
elif [ "$1"="start" -o "$1"="run" ] ; then
    # start up a virtual framebuffer for cocoon2's rendering
    Xvfb :1 -screen 0 320x240x24 &
fi

this setsup a virtual framebuffer for x to run in, now all the batik and
svg
stuff works without running a real x server.

mvh karl oie



-----Original Message-----
From: Martijn Bouterse [mailto:martijn.bouterse@surfnet.nl]
Sent: 11. oktober 2001 15:03
To: cocoon-users@xml.apache.org
Subject: Re: a new newbe with problems


Thomas Schrader wrote:
>
> Hi,
> after installing cocoon2.0b1 under tomcat3.2 i have an error message:
>
> Cocoon 2 - Internal server error
>
> ----------------------------------------------------------------------
>
> type internal-server-error
>
> messageThe sitemap handler's sitemap is not available.

I have the same problem. While looking in the logfiles
($TOMCAT_HOME/webapps/cocoon/WEB-INF/logs/*) I found this:

DEBUG   (2001-10-11) 14:53.22:918   [cocoon  ] (/cocoon/)
Thread-16/Handler: Beginning sitemap regeneration
DEBUG   (2001-10-11) 14:53.22:919   [cocoon  ] (/cocoon/)
Thread-16/URLFactoryImpl: Making URL from
file:/var/lib/tomcat/webapps/cocoon/sitemap.xmap
DEBUG   (2001-10-11) 14:53.22:921   [cocoon  ] (/cocoon/)
Thread-16/URLFactoryImpl: Making URL from
file:/var/lib/tomcat/webapps/cocoon/
DEBUG   (2001-10-11) 14:53.22:936   [cocoon  ] (/cocoon/)
Thread-16/URLFactoryImpl: Making URL from
file:/var/lib/tomcat/webapps/cocoon/sitemap.xmap
DEBUG   (2001-10-11) 14:53.22:938   [cocoon  ] (/cocoon/)
Thread-16/ExcaliburComponentSelector: UnnamedSelector: ComponentSelector
could not find the component for hint:
org/apache/cocoon/www/sitemap_xmap
DEBUG   (2001-10-11) 14:53.22:939   [cocoon  ] (/cocoon/)
Thread-16/GeneratorSelector: Could not access component for hint:
org/apache/cocoon/www/sitemap_xmap
DEBUG   (2001-10-11) 14:53.22:940   [cocoon  ] (/cocoon/)
Thread-16/ProgramGeneratorImpl: The instance was not accessible from the
internal cache. Proceeding.

and the error:

ERROR   (2001-10-11) 14:53.23:377   [cocoon  ] (/cocoon/)
Thread-16/Handler: Error compiling sitemap
java.lang.NoClassDefFoundError
	at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.<init>(SAXSVGDocumentFactory.
java:59)
	at org.apache.cocoon.xml.dom.SVGBuilder.<init>(SVGBuilder.java:44)
	at
org.apache.cocoon.serialization.SVGSerializer.<init>(SVGSerializer.java:46)
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java:237)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Un
known
Source)
	at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown
Source)
	at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown
Source)
	at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown
Source)
	at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown
Source)
	at
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Un
known
Source)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(Unknown
Source)
	at
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(Sitem
apComponentSelector.java:91)
	at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:231)
	at
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap
.java:1412)
	at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:829)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Un
known
Source)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
Unknown
Source)
	at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:143)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(ProgramGeneratorImpl.java:348)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:183)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
	at java.lang.Thread.run(Thread.java:484)

I think this has to do something with it. Any insights are welcome.

Martijn Bouterse

---------------------------------------------------------------------
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: a new newbe with problems

Posted by Martijn Bouterse <ma...@surfnet.nl>.
Thomas Schrader wrote:
> 
> Hi,
> after installing cocoon2.0b1 under tomcat3.2 i have an error message:
> 
> Cocoon 2 - Internal server error
> 
> ----------------------------------------------------------------------
> 
> type internal-server-error
> 
> messageThe sitemap handler's sitemap is not available.

I have the same problem. While looking in the logfiles
($TOMCAT_HOME/webapps/cocoon/WEB-INF/logs/*) I found this:

DEBUG   (2001-10-11) 14:53.22:918   [cocoon  ] (/cocoon/)
Thread-16/Handler: Beginning sitemap regeneration
DEBUG   (2001-10-11) 14:53.22:919   [cocoon  ] (/cocoon/)
Thread-16/URLFactoryImpl: Making URL from
file:/var/lib/tomcat/webapps/cocoon/sitemap.xmap
DEBUG   (2001-10-11) 14:53.22:921   [cocoon  ] (/cocoon/)
Thread-16/URLFactoryImpl: Making URL from
file:/var/lib/tomcat/webapps/cocoon/
DEBUG   (2001-10-11) 14:53.22:936   [cocoon  ] (/cocoon/)
Thread-16/URLFactoryImpl: Making URL from
file:/var/lib/tomcat/webapps/cocoon/sitemap.xmap
DEBUG   (2001-10-11) 14:53.22:938   [cocoon  ] (/cocoon/)
Thread-16/ExcaliburComponentSelector: UnnamedSelector: ComponentSelector
could not find the component for hint:
org/apache/cocoon/www/sitemap_xmap
DEBUG   (2001-10-11) 14:53.22:939   [cocoon  ] (/cocoon/)
Thread-16/GeneratorSelector: Could not access component for hint:
org/apache/cocoon/www/sitemap_xmap
DEBUG   (2001-10-11) 14:53.22:940   [cocoon  ] (/cocoon/)
Thread-16/ProgramGeneratorImpl: The instance was not accessible from the
internal cache. Proceeding.

and the error:

ERROR   (2001-10-11) 14:53.23:377   [cocoon  ] (/cocoon/)
Thread-16/Handler: Error compiling sitemap
java.lang.NoClassDefFoundError
	at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.<init>(SAXSVGDocumentFactory.java:59)
	at org.apache.cocoon.xml.dom.SVGBuilder.<init>(SVGBuilder.java:44)
	at
org.apache.cocoon.serialization.SVGSerializer.<init>(SVGSerializer.java:46)
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java:237)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown
Source)
	at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown
Source)
	at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown
Source)
	at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown
Source)
	at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown
Source)
	at
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Unknown
Source)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(Unknown
Source)
	at
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(SitemapComponentSelector.java:91)
	at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:231)
	at
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap.java:1412)
	at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:829)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown
Source)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown
Source)
	at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:143)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:348)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:183)
	at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
	at java.lang.Thread.run(Thread.java:484)

I think this has to do something with it. Any insights are welcome.

Martijn Bouterse

---------------------------------------------------------------------
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: a new newbe with problems

Posted by Henrik Hofmann <He...@creon-it.com>.
            Hi,
 
First try to install cocoon2rc1.
 
 
The error message you've posted could be anything. Try to look in the
log files and/or post them.
 
bye
 
            

RE: a new newbe with problems

Posted by Valdas Rapsevicius <va...@lgt.lt>.
Your sitemap file is not correct.

Good luck,
Valdo
-----------------------
mailto:valdo@lgt.lt

  -----Original Message-----
  From: Thomas Schrader [mailto:thomas.schrader@charite.de]
  Sent: Thursday, October 11, 2001 2:06 PM
  To: cocoon-users@xml.apache.org
  Subject: a new newbe with problems


  Hi,
  after installing cocoon2.0b1 under tomcat3.2 i have an error message:

  Cocoon 2 - Internal server error

----------------------------------------------------------------------------
--

  type internal-server-error

  messageThe sitemap handler's sitemap is not available.

  descriptionorg.apache.cocoon.ProcessingException: The sitemap handler's
sitemap is not available.

  sender org.apache.cocoon.servlet.CocoonServlet

  source Cocoon servlet

  request-uri

/cocoon/

  exception

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
available.

  path-info

  stacktrace

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
available.	at
org.apache.avalon.framework.CascadingException.(CascadingException.java:40)
at org.apache.cocoon.ProcessingException.(ProcessingException.java:36)	at
org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)	at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)	at
org.apache.cocoon.Cocoon.process(Cocoon.java:293)	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)	at
javax.servlet.http.HttpServlet.service(HttpServlet..java:853)	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)	at
org.apache.tomcat.core.Handler.service(Handler.java:287)	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:498)


----------------------------------------------------------------------------
--


any ideas to fix the error?ThanxThomas Schrader