cewolf on linux

2005-01-28
2013-01-13
  • javacodeforger
    javacodeforger
    2005-01-28

    Hello,

    I've recently deployed my web application on a hosting server which is running linux OS.

    My application works fine when i tested it on my PC which uses Windows XP

    however on the server i get this error in the log file

    2005-01-27 20:54:18 StandardContext[/stocktrend]CewolfServlet: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

    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.(X11GraphicsEnvironment.java:134)

    pls help
    rgds

     
    • julius3419
      julius3419
      2005-02-14

      in <tomcat>/bin:

      >./shutdown.sh
      >export CATALINA_OPTS="-Djava.awt.headless=true"
      >./startup.sh

       
    • violstar
      violstar
      2005-04-07

      Or add the following line to catalina.sh

      CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true"