You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dave Smith <da...@candata.com> on 2001/07/27 15:43:16 UTC

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(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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: C2 using X11

Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
On Fri, 27 Jul 2001, Sergio Carvalho wrote:

> Is there a FAQ entry for this question? It's a very frequent one... 

	It is in the C2 faq in CVS.

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

	There is a fourth option:

	4) Install the PJA toolkit (http://www.eteks.com/pja/en/), which
	implements the java drawing routines without requiring an underlying
	X11 server (check the licence though).

	Cheers,

	Marcus
-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:


---------------------------------------------------------------------
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: C2 using X11

Posted by Sergio Carvalho <se...@acm.org>.
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 <da...@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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: C2 using X11

Posted by Dave Smith <da...@candata.com>.
In short... thnaks, xvfb did the trick.

java guru wrote:
> Hi.,
>   In short, use xvfb..look for more info in the
> mailing list archives...
> 
> 
>  --- Dave Smith <da...@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.
>>
>>
>>



---------------------------------------------------------------------
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: C2 using X11

Posted by java guru <ja...@yahoo.co.in>.
Hi.,
  In short, use xvfb..look for more info in the
mailing list archives...


 --- Dave Smith <da...@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:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>  

=====
Thanks and have great day
srini

____________________________________________________________
Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

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