Tomcat start from terminal

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Tomcat start from terminal

jucy
Hi,

My develop environment is
tomcat at linux on IDC.
connect with terminal (putty).
calling GLPorfile.getDefault() makes following error.

  Actually As I use only offscreen drawable.
        drawable = GLDrawableFactory.getFactory(glProfile)
                                        .createOffscreenAutoDrawable(GLProfile.getDefaultDevice(),
                                                        glCap, null, width, height);

So, I thought that setting DISPLAY variable does not need.


javax.media.nativewindow.NativeWindowException: X11Util.Display: Unable to create a display(nil) connection. Thread http-18080-1
javax.media.nativewindow.NativeWindowException: X11Util.Display: Unable to create a display(nil) connection. Thread http-18080-1
        at jogamp.nativewindow.x11.X11Util.openDisplay(X11Util.java:452)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.isDeviceSupported(X11GLXDrawableFactory.java:246)
        at jogamp.opengl.SharedResourceRunner.getOrCreateShared(SharedResourceRunner.java:187)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.getOrCreateSharedResourceImpl(X11GLXDrawableFactory.java:379)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.getOrCreateSharedResourceImpl(X11GLXDrawableFactory.java:81)
        at jogamp.opengl.GLDrawableFactoryImpl.getOrCreateSharedResource(GLDrawableFactoryImpl.java:100)
        at jogamp.opengl.GLDrawableFactoryImpl.createSharedResourceImpl(GLDrawableFactoryImpl.java:129)
        at javax.media.opengl.GLDrawableFactory.createSharedResource(GLDrawableFactory.java:375)
        at javax.media.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1877)
        at javax.media.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1838)
        at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1807)
        at javax.media.opengl.GLProfile.access$000(GLProfile.java:77)
        at javax.media.opengl.GLProfile$1.run(GLProfile.java:201)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:187)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:2246)
        at javax.media.opengl.GLProfile.get(GLProfile.java:959)
        at javax.media.opengl.GLProfile.getGL4ES3(GLProfile.java:910)

Could you help me...?

Thank you
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat start from terminal

gouessej
Administrator
This post was updated on .
Hi

What do you mean by "I thought that setting DISPLAY variable does not need"? Have you tried to set the DISPLAY environment variable?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat start from terminal

kles4enko
In reply to this post by jucy
Putty is an ssh client! You do not have any running graphical environment. This is reason for that error.
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat start from terminal

gouessej
Administrator
neothemachine had a similar concern and made it work several months ago, I don't remember how:
http://forum.jogamp.org/connection-nil-in-graphics-device-tp4028605p4028645.html
Julien Gouesse | Personal blog | Website