Help! I am trying to get Cocoon2 to work and am getting the following error:

********************************** START OF ERROR MESSAGE
***********************
type internal-servlet-error

message Internal servlet error

description Cocoon was not initialized.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

embedded exception stacktrace

org.xml.sax.SAXException: Could not get valid parserNamespace not supported
by SAXParser
        at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:61)
        at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
        at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
        at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
        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.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java, Compiled Code)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java,
Compiled Code)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java,
Compiled Code)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


embedded exception

org.xml.sax.SAXException: Could not get valid parserNamespace not supported
by SAXParser

stacktrace

org.apache.avalon.framework.configuration.ConfigurationException: Error
trying to load configurations
        at org.apache.cocoon.Cocoon.configure(Cocoon.java:220)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
        at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
        at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
        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.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java, Compiled Code)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java,
Compiled Code)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java,
Compiled Code)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


exception

org.apache.avalon.framework.configuration.ConfigurationException: Error
trying to load configurations



-----Original Message-----
From: Dave Smith [mailto:[EMAIL PROTECTED]]
Sent: July 27, 2001 9:43 AM
To: [EMAIL PROTECTED]
Subject: C2 using X11 


Well I got c2 ruuning with jetty (rm javax.xml.jaxp.jar and 
org.apache.crimson.jar from the lib directory and add xerces_1_4_1.jar)
but now I am having another problem.

I guess in the default config it uses svgxml,svg2jpeg .. etc and it must 
use the native java awt libraries that need to connect to an X11 
display. Is there any way to get around this? The machine running 
jetty/cocoon will not have one.



java.lang.InternalError: Can't connect to X11 window server using ':0.0' 
as the value of the DISPLAY variable.
         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
         at 
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:58)
         at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:57)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at java.awt.Toolkit$2.run(Toolkit.java:498)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
         at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
         at java.awt.SystemColor.<clinit>(SystemColor.java:335)
         at 
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSy
stemColorResolver.java:27)
         at 
org.apache.batik.css.value.ColorFactory.<init>(ColorFactory.java:75)
         at 
org.apache.batik.css.value.CommonValueFactoryMap.<init>(CommonValueFactoryMa
p.java:39)
         at 
org.apache.batik.css.svg.SVGValueFactoryMap.<init>(SVGValueFactoryMap.java:3
9)
         at 
org.apache.batik.css.svg.SVGValueFactoryMap.<init>(SVGValueFactoryMap.java:3
2)
         at 
org.apache.batik.dom.svg.SVGDOMImplementation.<init>(SVGDOMImplementation.ja
va:88)
         at 
org.apache.batik.dom.svg.SVGDOMImplementation.<clinit>(SVGDOMImplementation.
java:59)
         at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.<init>(SAXSVGDocumentFactory.
java:59)
         at org.apache.cocoon.xml.dom.SVGBuilder.<init>(SVGBuilder.java:59)
         at 
org.apache.cocoon.serialization.SVGSerializer.<init>(SVGSerializer.java:47)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:237)
         at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:81)
         at 
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
70)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
imitingPool.java:82)
         at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftRes
ourceLimitingPool.java:67)
         at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Po
olableComponentHandler.java:85)
         at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(ExcaliburComponentSelector.java:383)
         at 
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(Sitem
apComponentSelector.java:78)
         at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:225)
         at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap
.java:1309)
         at 
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:744)
         at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:108)
         at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:81)
         at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:118)
         at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(ProgramGeneratorImpl.java:292)
         at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:273)
         at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:179)
         at org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
         at java.lang.Thread.run(Thread.java:484)

********************************** END OF ERROR MESSAGE
***********************

I am using Tomcat 3.2.3 as my servlet and am getting this error after
installing Xerces. I do not know if I installed Xerces 1.4.2 correctly
because I could not find any installation instructions, but all I did was
add a the Xerces directory to my CLASSPATH. (I am using NT 4.)

Any help would be appreciated. Thanks in advance.


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

Reply via email to