cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Punte <stevep...@excite.com>
Subject Use PJA: How to run cocoon2 without X11
Date Sat, 07 Jul 2001 00:11:40 GMT
Another possiblity, especially if a graphics card
is not available, is to use the PJA toolkit.

Either PJA classes can be directly invoked, or with
enought finess of awt.properties, all graphics
activity will be routed to this pure java 
implementation.

Result is very platform independent operation.


Steve Punte
stevep@candlelightsoftware.com




On Fri, 6 Jul 2001 18:46:01 +0200, cocoon-users@xml.apache.org wrote:

>  Hi!
>  
>  How can I run cocoon 2 without X11. Why is a Display needed???
>  
>  Christoph Gaffga
>  
>  
>  
>  > Hi !
>  >
>  > for me, this is a strange error. Why does C2 need the X server.
>  > And how can I fix it.
>  >
>  > thanks in advance.
>  >
>  > Christoph Gaffga
>  >
>  >
>  >
>  > ERROR   41966   [cocoon  ] (Thread-5): 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:940)
>  >         at
>  > org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:490)
>  >         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:224)
>  >         at java.lang.Thread.run(Thread.java:484)
>  > DEBUG   42028   [cocoon  ] (HttpProcessor[8080][4]): Changing Cocoon
>  > context(sitemap.xmap) to prefix()
>  > DEBUG   42030   [cocoon  ] (HttpProcessor[8080][4]):    from
>  > context(file:/opt/tomcat4.b5/webapps/cocoon/) and prefix()
>  > DEBUG   42031   [cocoon  ] (HttpProcessor[8080][4]):    at URI
>  > DEBUG   42032   [cocoon  ] (HttpProcessor[8080][4]): New context is
>  > file:/opt/tomcat4.b5/webapps/cocoon/
>  > ERROR   42037   [cocoon  ] (HttpProcessor[8080][4]): Problem with
servlet
>  > org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
>  not
>  > available.
>  >         at
>  > org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
>  >         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
>  >         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.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>  > FilterChain.java:254)
>  >         at
>  >
> 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>  > ain.java:194)
>  >         at
>  >
> 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>  > va:255)
>  >         at
>  >
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
>  :5
>  > 66)
>  >         at
>  >
> 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  >         at
>  > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >         at
>  >
> 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>  > va:225)
>  >         at
>  >
> 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>  > 66)
>  >         at
>  >
> 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  >         at
>  > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >         at
>  >
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252)
>  >         at
>  >
> 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
>  > )
>  >         at
>  >
> 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>  > 66)
>  >         at
>  >
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
>  >         at
>  >
> 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>  > 64)
>  >         at
>  >
> 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  >         at
>  > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >         at
>  >
> 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>  > :163)
>  >         at
>  >
> 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>  > 66)
>  >         at
>  >
> 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  >         at
>  > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >         at
>  >
> 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
>  > 875)
>  >         at
>  >
> 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
>  >         at java.lang.Thread.run(Thread.java:484)
>  > INFO    42236   [cocoon  ] (HttpProcessor[8080][4]): '' Processed by
>  Apache
>  > Cocoon 2.0b1 in 27.898 seconds.
>  >
>  >
>  
>  
>  ---------------------------------------------------------------------
>  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>
>





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



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