cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Corey Jewett ...@syntheticplayground.com>
Subject Re: After installation: UnsatisfiedLinkError: libawt: libXp.so.6
Date Tue, 19 Mar 2002 09:10:08 GMT
I believe I have a solution for your problem. It may become problematic
in a production environment. My tomcat is set up to run under the tomcat
user. the X display :0 is always logged in under corey. Basically X
server does not allow the batik code (which is the AWT requirement) to
connect to the server because it is the tomcat user.

It should be pretty obvious I'm surrently using my workstation as my
cocoon server, so this may not apply to you.

Two solutions:

1. Install an AWT library which is not dependant on X libs (Apparently
all Sun and IBM JDKs are. This is probably the better solution. There's
a link somewhere in the cocoon docs to such an AWT implementation.

2. A quick X solution is to run 'xhost localhost' which adds localhost
to the list of accepted network clients. I have tomcat set up to boot
with the machine via an init.d script, but I've found I have to kill it
and restart after enabling localhost to connect to X. Also you may have
to nuke the contents of tomcat/work to clear the cache.

HTH

Corey


On Mon, 2002-03-18 at 04:43, Jonathan Crenner wrote:
> Hi All,
> 
> I'm trying to have Cocoon successfully running on the following config after 
> having developed/tested my applications with Cocoon under Windows:
> 
> * Linux Mandrake 8.1 kernel 2.4.8
> * Tomcat 4.0.3
> * Cocoon 2.0
> * Sun's jdk 1.4.0
> 
> Cocoon initializes correctly, but after the first request (which fails: The 
> sitemap handler's sitemap is not available.), here is what I get in the 
> error.log file (full listing at the end):
> 
> java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.0/jre/lib/i386/libawt.so: 
> libXp.so.6: cannot open shared object file: No such file or directory
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> 
> I thought I had a problem with AWT, but I coded a simple AWT application 
> which worked perfectly...
> 
> If I check the libraries with ldconfig -p | grep libXp, I get:
> 	libXp.so.6 (libc6) => /usr/X11R6/lib/libXp.so.6
> 	libXp.so (libc6) => /usr/X11R6/lib/libXp.so
> 
> So the libXp.so library that Cocoon claims to be missing is available on the 
> system...
> 
> This is not even a problem because my server is headless, otherwise I assume 
> I would have got:
> 
> java.lang.InternalError: Can't connect to X11 window server using ':0.0' as 
> the value of the DISPLAY variable.
> 
> Anyway, even if I have an X server running, the exception gets sent as 
> well....
> 
> This is neither linked to jdk 1.4 as I upgraded from 1.3 to try to solve the 
> problem and the exception was the exact same with this older version...
> 
> So has anyone got this error or has clues on how to solve it?
> 
> Thanks a lot in advance for your help,
> 
> Jonathan Crenner
> 
> Complete listing of error.log:
> 
> FATAL_E (2002-03-18) 13:04.16:965   [core.datasources.personnel] 
> (Unknown-URI) Unknown-thread/LogKitLogger: Excalibur could not create any 
> connections.  Examine your settings to make sure they are correct.  Make 
> sure you can connect with the same settings on your machine.
> ERROR   (2002-03-18) 13:16.18:526   [sitemap.generator.velocity] (/cocoon/) 
> HttpProcessor[8180][4]/VelocityGenerator: ResourceManager : unable to find 
> resource 'VM_global_library.vm' in any resource loader.
> ERROR   (2002-03-18) 13:16.18:724   [sitemap.generator.velocity] (/cocoon/) 
> HttpProcessor[8180][4]/VelocityGenerator: ResourceManager : unable to find 
> resource 'VM_global_library.vm' in any resource loader.
> ERROR   (2002-03-18) 13:16.18:846   [sitemap.generator.xmldb] (/cocoon/) 
> HttpProcessor[8180][4]/XMLDBGenerator: There was a problem setting up the 
> connection
> ERROR   (2002-03-18) 13:16.18:849   [sitemap.generator.xmldb] (/cocoon/) 
> HttpProcessor[8180][4]/XMLDBGenerator: Make sure that your driver is 
> available
> ERROR   (2002-03-18) 13:16.18:874   [sitemap.generator.xmldb] (/cocoon/) 
> HttpProcessor[8180][4]/XMLDBGenerator: There was a problem setting up the 
> connection
> ERROR   (2002-03-18) 13:16.18:876   [sitemap.generator.xmldb] (/cocoon/) 
> HttpProcessor[8180][4]/XMLDBGenerator: Make sure that your driver is 
> available
> ERROR   (2002-03-18) 13:16.18:924   [sitemap.generator.xmldbcollection] 
> (/cocoon/) HttpProcessor[8180][4]/XMLDBCollectionGenerator: There was a 
> problem setting up the connection
> ERROR   (2002-03-18) 13:16.18:926   [sitemap.generator.xmldbcollection] 
> (/cocoon/) HttpProcessor[8180][4]/XMLDBCollectionGenerator: Make sure that 
> your driver is available
> ERROR   (2002-03-18) 13:16.18:946   [sitemap.generator.xmldbcollection] 
> (/cocoon/) HttpProcessor[8180][4]/XMLDBCollectionGenerator: There was a 
> problem setting up the connection
> ERROR   (2002-03-18) 13:16.18:949   [sitemap.generator.xmldbcollection] 
> (/cocoon/) HttpProcessor[8180][4]/XMLDBCollectionGenerator: Make sure that 
> your driver is available
> ERROR   (2002-03-18) 13:16.23:404   [sitemap] (/cocoon/) 
> HttpProcessor[8180][4]/Handler: Error compiling sitemap
> java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.0/jre/lib/i386/libawt.so: 
> libXp.so.6: cannot open shared object file: No such file or directory
> 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> 	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480)
> 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1396)
> 	at java.lang.Runtime.loadLibrary0(Runtime.java:772)
> 	at java.lang.System.loadLibrary(System.java:832)
> 	at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.awt.Toolkit.loadLibraries(Toolkit.java:1397)
> 	at java.awt.Toolkit.<clinit>(Toolkit.java:1418)
> 	at java.awt.Color.<clinit>(Color.java:250)
> 	at 
> org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(Unknown 
> Source)
> 	at org.apache.batik.css.value.ColorFactory.<init>(Unknown Source)
> 	at org.apache.batik.css.value.CommonValueFactoryMap.<init>(Unknown Source)
> 	at org.apache.batik.css.svg.SVGValueFactoryMap.<init>(Unknown Source)
> 	at org.apache.batik.css.svg.SVGValueFactoryMap.<init>(Unknown Source)
> 	at org.apache.batik.dom.svg.SVGDOMImplementation.<init>(Unknown Source)
> 	at org.apache.batik.dom.svg.SVGDOMImplementation.<clinit>(Unknown Source)
> 	at org.apache.batik.dom.svg.SAXSVGDocumentFactory.<init>(Unknown Source)
> 	at org.apache.cocoon.xml.dom.SVGBuilder.<init>(SVGBuilder.java:44)
> 	at 
> org.apache.cocoon.serialization.SVGSerializer.<init>(SVGSerializer.java:53)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> 	at java.lang.Class.newInstance0(Class.java:296)
> 	at java.lang.Class.newInstance(Class.java:249)
> 	at 
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:98)
> 	at 
> org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82)
> 	at 
> org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126)
> 	at 
> org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91)
> 	at 
> org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:80)
> 	at 
> org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(PoolableComponentHandler.java:88)
> 	at 
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:467)
> 	at 
> org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(SitemapComponentSelector.java:94)
> 	at 
> org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:233)
> 	at 
> org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap.java:982)
> 	at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:390)
> 	at 
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
> 	at 
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
> 	at 
> org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:135)
> 	at 
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:356)
> 	at 
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:187)
> 	at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
> 	at java.lang.Thread.run(Thread.java:536)
> ERROR   (2002-03-18) 13:16.23:419   [access] (/cocoon/) 
> HttpProcessor[8180][4]/CocoonServlet: Problem with servlet
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not 
> available. Please check logs for the exact error.
> 	at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:246)
> 	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:122)
> 	at 
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:582)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> 	at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	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.java:190)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at 
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	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:2343)
> 	at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 	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:174)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 	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:1012)
> 	at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
> 	at java.lang.Thread.run(Thread.java:536)
> 
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> ---------------------------------------------------------------------
> 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>
> 



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