Friday, December 21, 2018

To install WebLogic on Ubuntu 

1. Unzip the zipped installation file.

ubuntu@skubuntu:/Store/Software/Linux$ unzip fmw_12.2.1.3.0_wls_Disk1_1of1.zip
Archive:  fmw_12.2.1.3.0_wls_Disk1_1of1.zip
  inflating: fmw_12.2.1.3.0_wls.jar
  inflating: fmw_12213_readme.htm
ubuntu@SKWindowsPro:/mnt/c/ShareDrive/Software/Linux$

ubuntu@skubuntu:/Store/Software/Linux$ java -jar fmw_12.2.1.3.0_wls.jar
Launcher log file is /tmp/OraInstall2018-12-17_02-24-47PM/launcher2018-12-17_02-24-47PM.log.
Extracting the installer . . . . . . . . . . . . . . .



2. Install WebLogic.

ubuntu@SKWindowsPro:/mnt/c/ShareDrive/Software/Linux$ java -jar fmw_12.2.1.3.0_wls.jar
Launcher log file is /tmp/OraInstall2018-12-17_02-24-47PM/launcher2018-12-17_02-24-47PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2295.000 MHz    Passed
Checking monitor: must be configured to display at least 256 colors.  DISPLAY environment variable not set.    Failed <<<<
Checking swap space: must be greater than 512 MBChecking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 153335 MB    Passed

Some system prerequisite checks failed.
You must fulfill these requirements before continuing.

Continue? (yes [y] / no [n]) [n]
y
You have confirmed that the product can be installed on this platform.
Continuing with the installation.


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018-12-17_02-24-47PM
DISPLAY is not set.  Please set the DISPLAY environment variable and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh:                      %% setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
%% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
%% <full path to xclock; see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for xclock: /usr/X11R6/bin/xclock
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
        at java.awt.Window.<init>(Window.java:536)
        at java.awt.Frame.<init>(Frame.java:420)
        at java.awt.Frame.<init>(Frame.java:385)
        at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1763)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1838)
        at javax.swing.JDialog.<init>(JDialog.java:272)
        at javax.swing.JDialog.<init>(JDialog.java:206)
        at javax.swing.JDialog.<init>(JDialog.java:154)
        at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.<init>(SpecifyInventoryDirectoryDialog.java:248)
        at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.showDialog(SpecifyInventoryDirectoryDialog.java:781)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:643)

The log(s) can be found here: /tmp/OraInstall2018-12-17_02-24-47PM.
ubuntu@SKWindowsPro:/mnt/c/ShareDrive/Software/Linux$

=>Solve display problem 
ubuntu@SKWindowsPro:/mnt/c/ShareDrive/Software/Linux$ DISPLAY=192.168.1.128:0.0; export DISPLAY
ubuntu@SKWindowsPro:/mnt/c/ShareDrive/Software/Linux$ echo $DISPLAY

192.168.1.128:0.0

-ignoreSysPrereqs


=>Solve UnsatisfiedLinkError
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory

=>
sudo apt install x11-xserver-utils
sudo vi /etc/ssh/ssh_config

No comments:

Post a Comment