Juerg,

Yes, we are aware of the work-around. Am just trying to improve the Out-Of-Box 
experience of
Cocoon2. Yes, some people do look at faq's. But quite a few just don't read anything, 
shoot emails
and start cribbing immediately if things don't work the first time around....Also 
Batik samples
are just a small portion of C2. The whole of C2 should work even if Batik support is 
broken.

Thanks,
dims

--- juerg lehni <[EMAIL PROTECTED]> wrote:
> I think there is a nice workaround for your X11 problem:
> 
> Just use the Pure Java AWT available at http://www.eteks.com/pja/en/ as
> replacement for the awt toolkit. The PJA doesn't use any native graphics
> resource of the system. Switching the toolkit from X11 or windows default
> toolkit to PJA toolkit is simple: change the "awt.toolkit" system property
> to "com.eteks.awt.PJAToolkit".
> 
> I hope this helps
> 
> Juerg
> 
> ----- Original Message -----
> From: "Davanum Srinivas" <[EMAIL PROTECTED]>
> To: "Stephane Hillion" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, June 11, 2001 8:09 PM
> Subject: [C2] Headless X11
> 
> 
> > Stephane,
> > What are your thoughts about lazy instantiation? Many people in the C2
> beta are setting up Servers
> > without X11.
> >
> > Thanks,
> > dims
> >
> > >It's definitely too late for writing e-mails... Forgot to describe my
> environment:
> > >  -> SuSE Linux 7
> > >  -> SUN Java 2
> > >  -> Today's CVS Tomcat
> > >  -> Today's CVS C2
> > >
> > >and that, after setting the DISPLAY variable, C2 starts ok and the
> sitemap compiles.
> > >
> > >On Mon, 28 May 2001 01:04:40 +0200
> > >Sirgio Carvalho <[EMAIL PROTECTED]> wrote:
> > >
> > >>
> > >> Just checked out C2's last CVS, built and installed it on Tomcat 4. It
> won't start, because
> > batik needs an X server to start! This is downright unusable in most
> server environments. I never
> > deploy X servers on server machines. Besides imposing unneeded load, X
> raises security issues
> > better left away from server machines.
> > >>
> > >> Comments on this?
> > >>
> > >> This is the exception I got in cocoon.log:
> > >>
> > >> ERROR   41463   [cocoon  ] (Thread-6): Error compiling sitemap
> > >> 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:83)
> > >> 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:75)
> > >> at
> >
> org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(
> DefaultComponentSelector.java:306)
> > >> at
> >
> org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(Sitem
> apComponentSelector.java:42)
> > >> at
> org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
> a:150)
> > >> at
> org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap
> .java:943)
> > >> at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:493)
> > >> at
> >
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
> faultComponentFactory.java:110)
> > >> at
> >
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
> ThreadSafeComponentHandler.java:78)
> > >> at
> >
> org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(
> DefaultComponentSelector.java:306)
> > >> at
> >
> org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
> or(GeneratorSelector.java:75)
> > >> at
> >
> org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
> or(GeneratorSelector.java:71)
> > >> at
> >
> org.apache.cocoon.components.language.generator.GeneratorSelector.select(Gen
> eratorSelector.java:57)
> > >> at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(
> ProgramGeneratorImpl.java:261)
> > >> at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
> ogramGeneratorImpl.java:145)
> > >> at org.apache.cocoon.sitemap.Handler.run(Handler.java:221)
> > >> at java.lang.Thread.run(Thread.java:484)
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, email: [EMAIL PROTECTED]
> > >>
> > >>
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, email: [EMAIL PROTECTED]
> > >
> > >
> >
> > =====
> > Davanum Srinivas, JNI-FAQ Manager
> > http://www.jGuru.com/faq/JNI
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail - only $35
> > a year!  http://personal.mail.yahoo.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to