DearCocooners!
Can someone please help me? I get an internal server error after building Cocoon2 beta
2 and placing it in tomcathome/webapps and so on. Cocoon 2 beta 1 is running fine.
Servlet engine is tomcat 3.2.1 on Windows98. At the bottom of this mail I included
excerpts from browser-windoe and cocoon.log.
Please show me the right way, much thanks in advance, Arno
**************************************************************************
Cocoon 2 - Internal server error
--------------------------------------------------------------------------------
type internal-server-error
message Exception in Handler
description org.apache.cocoon.ProcessingException: Exception in
Handler:java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/welcome
embedded exception
java.lang.NullPointerException
embedded exception stacktrace
java.lang.NullPointerException
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:163)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)
exception
org.apache.cocoon.ProcessingException: Exception in
Handler:java.lang.NullPointerException
path-info
welcome
stacktrace
org.apache.cocoon.ProcessingException: Exception in
Handler:java.lang.NullPointerException
at org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:257)
at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:167)
at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:169)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:90)
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: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:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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)
java.lang.NullPointerException
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:163)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)
-----------------------------------------
-----------------------------------------
from cocoon.log:
-----------------------------------------
DEBUG 13400 [cocoon ] (Thread-24): looking up hintmap for role
org.apache.cocoon.components.language.markup.MarkupLanguageSelector
ERROR 13400 [cocoon ] (Thread-24): The component instance for 'xsp' has an
invalid class name.
java.lang.ClassNotFoundException:
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.configure(DefaultComponentSelector.java:241)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:110)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:98)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:100)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:220)
at java.lang.Thread.run(Thread.java:484)
DEBUG 13400 [cocoon ] (Thread-24): Could not access the Component for role:
org.apache.cocoon.components.language.markup.MarkupLanguageSelector
org.apache.avalon.framework.configuration.ConfigurationException: The component
instance for 'xsp' has an invalid class name.
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.configure(DefaultComponentSelector.java:249)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:110)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:98)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:100)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:220)
at java.lang.Thread.run(Thread.java:484)
java.lang.ClassNotFoundException:
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.configure(DefaultComponentSelector.java:241)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:110)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:98)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:100)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:220)
at java.lang.Thread.run(Thread.java:484)
WARN 13450 [cocoon ] (Thread-24): Could not lookup Component
org.apache.avalon.framework.component.ComponentException: Could not access the
Component for role: org.apache.cocoon.components.language.markup.MarkupLanguageSelector
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:192)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:98)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:100)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:220)
at java.lang.Thread.run(Thread.java:484)
org.apache.avalon.framework.configuration.ConfigurationException: The component
instance for 'xsp' has an invalid class name.
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.configure(DefaultComponentSelector.java:249)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:110)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:98)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:100)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:220)
at java.lang.Thread.run(Thread.java:484)
java.lang.ClassNotFoundException:
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.configure(DefaultComponentSelector.java:241)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:110)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:98)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:100)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentManager.lookup(DefaultComponentManager.java:185)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:220)
at java.lang.Thread.run(Thread.java:484)
DEBUG 13450 [cocoon ] (Thread-24): ComponentHandler initialized for:
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl
DEBUG 13450 [cocoon ] (Thread-24): Making URL from
file:/C:/Programme/ApacheGroup/jakarta-tomcat-3.2.1/webapps/cocoon/sitemap.xmap
DEBUG 13450 [cocoon ] (Thread-24): UnnamedSelector: ComponentSelector could not
find the component for hint: org\apache\cocoon\www\sitemap_xmap
DEBUG 13450 [cocoon ] (Thread-24): The instance was not accessible, creating it
now.
ERROR 13450 [cocoon ] (Thread-24): Error compiling sitemap
java.lang.NullPointerException
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:163)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)
ERROR 13450 [cocoon ] (Thread-10): Problem with servlet
org.apache.cocoon.ProcessingException: Exception in
Handler:java.lang.NullPointerException
at org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:257)
at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:167)
at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:169)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:90)
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: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:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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)
java.lang.NullPointerException
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:163)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)
java.lang.NullPointerException
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:163)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)
INFO 13510 [cocoon ] (Thread-10): 'welcome' Processed by Apache Cocoon 2.0b1 in
220 milliseconds.
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>