OSGi Linux Headless Deployment

I developed the OSGi application on my Windows machine, which is just perfect. No matter how I need it to run on my Linux server, and here I ran into problems.

There is no GUI in my application. It just works with the console and is controlled by the command line.

My first deployment attempt, I built a product based on my existing target. It exported perfectly to Windows.exe, so I added the necessary delta packages for Linux. The problem is that it has only two variants of Linux (GTK) and Linux (MOTIF). My linux server runs on CentOS without a graphical interface, since it is a hosted computer, so when I try to deploy it, I get a segmentation error.

I searched around what to do, but I do not come up with any answers.

Any help would be greatly appreciated. I've been staring at this topic for more than a week.

Greetings

+4
source share
1 answer

The google keyword is "xvfb" - it acts like an X server, but ignores everything sent to it, so you don't need any graphics hardware. Try this (make sure you install DISPLAY accordingly).

A cleaner solution would be to find out why the library requires an X server, if it works without - perhaps you can update the question in more detail.

+1
source

Source: https://habr.com/ru/post/1399071/


All Articles