cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Carvalho <sergio.carva...@acm.org>
Subject Re: C2 using X11
Date Fri, 27 Jul 2001 18:21:53 GMT

Is there a FAQ entry for this question? It's a very frequent one... 
Three options:
 1) Lose batik, if you don't need it. Delete the related serializers and related 
    pipelines from the sitemap and C2 should work without X.
 2) Xvfb. Xvfb allows you to run a virtual X server, with no graphics adapter.
 3) JRE 1.4. JRE 1.4's AWT doesn't require an X server, according to java guru.
    Keep in mind that this will be an option for a production server only when 
    JRE 1.4 leaves beta stage.

On Fri, 27 Jul 2001 09:43:16 -0400, Dave Smith <dave.smith@candata.com> wrote:
--
> 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(DefaultSystemColorResolver.java:27)
>          at 
> org.apache.batik.css.value.ColorFactory.<init>(ColorFactory.java:75)
>          at 
> org.apache.batik.css.value.CommonValueFactoryMap.<init>(CommonValueFactoryMap.java:39)
>          at 
> org.apache.batik.css.svg.SVGValueFactoryMap.<init>(SVGValueFactoryMap.java:39)
>          at 
> org.apache.batik.css.svg.SVGValueFactoryMap.<init>(SVGValueFactoryMap.java:32)
>          at 
> org.apache.batik.dom.svg.SVGDOMImplementation.<init>(SVGDOMImplementation.java: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(DefaultComponentFactory.java:81)
>          at 
> org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:70)
> at 
> org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:82)
>          at 
> org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:67)
>          at 
> org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(PoolableComponentHandler.java:85)
>          at 
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:383)
>          at 
> org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(SitemapComponentSelector.java:78)
>          at 
> org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java: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(DefaultComponentFactory.java:108)
>          at 
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:81)
>          at 
> org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:118)
>          at 
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:292)
>          at 
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:273)
>          at 
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:179)
>          at org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
>          at java.lang.Thread.run(Thread.java:484)
> 
> 
> ---------------------------------------------------------------------
> 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>
> 



--
Sergio Carvalho
---------------
sergio.carvalho@acm.org

If at first you don't succeed, skydiving is not for you

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