• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Headless Server and Registration Page Problems

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
we just install JForum and set optins as is described here:
CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true"
But at Register page we still recieve this error:
An error has ocurred. For detailed stack trace, please see the page's source code.

/home/j4v4adm1in/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
And Stack inside page source is:

<!-- BEGIN ERROR STACK TRACE <br /> java.lang.reflect.InvocationTargetException <br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) <br /> at java.lang.reflect.Method.invoke(Method.java:324) <br /> at net.jforum.Command.process(Command.java:106) <br /> at net.jforum.JForum.service(JForum.java:298) <br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) <br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) <br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) <br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) <br /> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) <br /> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) <br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) <br /> at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) <br /> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) <br /> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) <br /> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) <br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) <br /> at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) <br /> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) <br /> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) <br /> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) <br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) <br /> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) <br /> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) <br /> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) <br /> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) <br /> at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309) <br /> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) <br /> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) <br /> at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615) <br /> at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) <br /> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) <br /> at java.lang.Thread.run(Thread.java:534) <br /> Caused by: java.lang.UnsatisfiedLinkError: /home/j4v4adm1in/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory <br /> at java.lang.ClassLoader$NativeLibrary.load(Native Method) <br /> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) <br /> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503) <br /> at java.lang.Runtime.loadLibrary0(Runtime.java:788) <br /> at java.lang.System.loadLibrary(System.java:834) <br /> at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) <br /> at java.security.AccessController.doPrivileged(Native Method) <br /> at java.awt.Toolkit.loadLibraries(Toolkit.java:1437) <br /> at java.awt.Toolkit.<clinit>(Toolkit.java:1458) <br /> at java.awt.Color.<clinit>(Color.java:250) <br /> at net.jforum.util.Captcha.buildInitialFactories(Captcha.java:108) <br /> at com.octo.captcha.engine.image.ListImageCaptchaEngine.<init>(ListImageCaptchaEngine.java:492) <br /> at net.jforum.util.Captcha.<init>(Captcha.java:80) <br /> at net.jforum.util.Captcha.<clinit>(Captcha.java:84) <br /> at net.jforum.entities.UserSession.createNewCaptcha(UserSession.java:347) <br /> at net.jforum.view.forum.UserAction.insert(UserAction.java:142) <br /> ... 40 more <br /> <br /> END ERROR STACK TRACE-->
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I just disable "Enable Captcha during registration" option in Administration interface and error disappear.

This is just workaround of this problem - so you can add this decision to Headless server theme,

Regards
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anonymous wrote:...

/home/j4v4adm1in/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
And Stack inside page source is:

BEGIN ERROR STACK TRACE
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

Caused by: java.lang.UnsatisfiedLinkError: /home/j4v4adm1in/j2sdk1.4.2_06/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)
...


Are you by chance running this on a Linux or Unix-based server that doesn't have an X environment installed on it?

Even though you may be running headless, the Java JDK's still need access to the basic X libraries to function properly... the JDK is compiled that way.

Therefore, you can either remove all functionality that requires these libraries (anything graphical), or you can install an X server (xorg or similar). Even if you don't actually run the X server, the libraries need to be there for the graphical Java libs to work properly.

HTH.
[originally posted on jforum.net by fcgreg]
 
reply
    Bookmark Topic Watch Topic
  • New Topic