3/21/2023 0 Comments Glassfish for linux: /opt/jdk1.7.0_04/jre/lib/amd64/xawt/libmawt.so: libXrender.so.1: cannot open shared object file: No such file or directoryĪt $NativeLibrary.load(Native Method)Īt 1(ClassLoader.java:1939)Īt 0(ClassLoader.java:1864)Īt (ClassLoader.java:1825)Īt 0(Runtime.java:792)Īt (System.java:1059)Īt (ClassLoader.java:1846)Īt 0(Runtime.java:845)Īt (System.java:1084)Īt .run(LoadLibraryAction.java:67)Īt .run(LoadLibraryAction.java:47)Īt (Native Method)Īt .(Disposer.java:59)Īt .(FileCacheImageInputStream.java:110)Īt .InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:69)Īt (ImageIO.java:357)Īt (ImageIO.java:1397)Īt .main(Orchestrator.java:439)Īt 0(Native Method)Īt (NativeMethodAccessorImpl.java:57)Īt (DelegatingMethodAccessorImpl.java:43)Īt .invoke(Method.java:601)Īt .main(EngineBootstrap.java:208) Using the user defined JAVA_HOME : /opt/jdk ~]$ sh java_ee_sdk-6u4-jdk7-linux-圆4.sh -n template We will first run fake install and save our choices as template. A rather blank windows will open where install will soon run. Now connect with linux command line vncviewer YOUR_VPS_IP:1 or Remote Desktop Viewer in Ubuntu or any VNC client software for your OS. Log file is /home/glassfish/.vnc/testsdk:1.log Starting applications specified in /home/glassfish/.vnc/xstartup New 'testsdk:1 (glassfish)' desktop is testsdk:1Ĭreating default startup script /home/glassfish/.vnc/xstartup Starting VNC server: 1:glassfish xauth: creating new authority file /home/glassfish/.Xauthority It will provide us with display 0 and screen as configured in /etc/sysconfig/vncservers. ~]# echo -e "VNCSERVERS=\"1:glassfish\"\nVNCSERVERARGS=\"-geometry 800圆00\"" > /etc/sysconfig/vncserversįinally we start Xvnc server. Now we're adding the user to Xvnc coniguration, switch to glassfish and set VNC password for the user. We need to set DISPLAY to a working value but there is no GUI environment or Xserver so we will install lightweight Xvnc server with a few dependencies. Please re-run after assigning an appropriate value to DISPLAY. This program requires DISPLAY environment variable to be set. Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode) Java(TM) SE Runtime Environment (build 1.7.0_04-b20) ~]# echo -e "export JAVA_HOME=/opt/jdk\nexport PATH=\$JAVA_HOME/bin:\$PATH" > /home/glassfish/.bashrc There is no java install on this basic VPS so let's add one (already downloaded to /root directory). Please ensure that you have Java 6 or newer installed on your systemĪnd accessible in your PATH or by setting JAVA_HOME Switch to glassfish account and run the installer (already downloaded to /home/glassfish in the example). Start with creating a username that the install will run under. This example installation has been performed on a basic Centos 6.1 64bit VPS but will work on a dedicated box too. We also presented a few common error messages that you may come across the procedure. We will combine both methods in this tutorial. You can also generate template here for future use. Method 2: Install Xvnc server on your VPS and connect with VNC viewer to run the graphical installer. Method 1: generate install template on a host with GUI and use it on your non-GUI VPS. It includes GlassFish Open Source Edition 3.1.2, Java EE 6 Code Samples, Java EE 6 API Documentation, Java EE 6 Tutorial and Your First Cup: An Introduction to the Java EE Platform. Java EE 6 SDK is a free integrated development kit used to build, test, and deploy Java EE 6 applications. The hints can also be applied to sole Glassfish installation with the Unix executables provided by Oracle, for example glassfish-3.1.2-unix.sh. We discuss 2 methods of Glassfish/JavaEE bundle install on a headless system. Sudo update-rc.Published on in Dedicated Server Java VPS If all goes well you can set the init script up for automatic startup and shutdown: $GLASSFISH_HOME/bin/asadmin restart-domain >/dev/nullĮcho "usage: $0 (start|stop|restart|help)" $GLASSFISH_HOME/bin/asadmin stop-domain >/dev/null If you choose root as the user you get the advantage that you can use ports /dev/null One decision you need to make right up front is what Linux user should "own" GlassFish V3. Other flavors of Linux may have slightly different procedures. This procedure was worked out on my Linux system which happens to be Ubuntu. In this blog I will take you through the manual steps needed to run GlassFish V3 as a service on Linux. Of course before I can hope to do that - I must be able to set it up manually. I have been investigating how to provide support for automatically starting GlassFish V3 as a service on Linux. We already support running GlassFish V3 as a service on Solaris 10 and Windows platforms (see my blog).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |