eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
386 stars 144 forks source link

[OPENINSTALLER] Text mode installation is broken #4929

Closed glassfishrobot closed 15 years ago

glassfishrobot commented 16 years ago

Build: GFV3TP2 Build 10a

OS: RedHat Linux 4

Unable to install on Linux even JAVA_HOME is pointing to JDK 1.5.0. Encountered the following error message:

inflated: metadata/view/updatetool.xml inflated: product-installer.sh inflated: product-installer.vbs

Welcome to GlassFish V3 installer

Using the user defined JAVA_HOME : /opt/java/jdk1.5.0_13 Entering setup... java.lang.UnsatisfiedLinkError: no Terminal in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at charva.awt.Toolkit.(Toolkit.java:895) at charva.awt.Window.init(Window.java:62) at charva.awt.Window.(Window.java:58) at charva.awt.Frame.(Frame.java:32) at charvax.swing.JFrame.(JFrame.java:34) at charvax.swing.JFrame.(JFrame.java:30) at org.openinstaller.util.ui.ChaxStandaloneSplash.(ChaxStandaloneSplash.java:91) at org.openinstaller.core.Orchestrator.main(Orchestrator.java:428) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.openinstaller.core.EngineBootstrap.main(EngineBootstrap.java:208)SEVERE INTERNAL ERROR: no Terminal in java.library.path [root@easqelx6 V3]$

Steps to reproduce:

1) Install the build by executing the ./glassfish-v3-preview2-b10a-unix.sh 2) Observe the above error messages

Environment

Operating System: Linux Platform: PC

Affected Versions

[V3]

glassfishrobot commented 6 years ago
glassfishrobot commented 16 years ago

@glassfishrobot Commented nluu said: After setting the DISPLAY variable, the installer execute properly.

glassfishrobot commented 16 years ago

@glassfishrobot Commented @ssevozen said:

glassfishrobot commented 16 years ago

@glassfishrobot Commented @ssevozen said: ...

glassfishrobot commented 16 years ago

@glassfishrobot Commented sdo said: Regardless of the setting of the DISPLAY variable, this error occurs if you run with the --text option.

As the --text option should suppress use of the GUI, it's a little odd that the installer is trying to instantiate Swing classes. At any rate, I don't want to open a separate issue on this, but it isn't just that the message needs to be more meaningful; the issue needs to be resolved so that the --text option works.

glassfishrobot commented 16 years ago

@glassfishrobot Commented sdo said: According to the installer spec, if the DISPLAY isn't set, the installer should default to text mode automatically. So I'm updating to reflect that this is a bug, not just an error message issue.

glassfishrobot commented 16 years ago

@glassfishrobot Commented @ssevozen said: V3 Prelude installer will not support interactive CLI installation. This is clearly stated in installer one pager and there is no mention of automatic switch to CLI mode.

Since --text option is not supported, usage help has to be adjusted accordingly and inability to run in GUI mode has to be handled gracefully. Also, installer must be able to run on headless system if silent installation option has been specified.

glassfishrobot commented 16 years ago

@glassfishrobot Commented kumara said: Add gfv3-prelude-include to status whiteboard

glassfishrobot commented 16 years ago

@glassfishrobot Commented kumara said: v3 defect tracking

glassfishrobot commented 16 years ago

@glassfishrobot Commented scatari said: Workaround by fixing OI usage message.

glassfishrobot commented 16 years ago

@glassfishrobot Commented scatari said: The OI script has to be altered.

glassfishrobot commented 16 years ago

@glassfishrobot Commented scatari said: Fixed usage text and open installer's validation for text mode.

glassfishrobot commented 16 years ago

@glassfishrobot Commented scatari said: ..

glassfishrobot commented 15 years ago

@glassfishrobot Commented nluu said: Build: GFv3 B46

We still see this issue with B46 when the DISPLAY is not set. Even though the --text mode is not supported, should the installer by pass this error and give the user a clearer message of setting the DISPLAY variable.


Welcome to GlassFish V3 installer

Using the user defined JAVA_HOME : /export/home/jdk/jdk160_13 Entering setup... java.lang.UnsatisfiedLinkError: no Terminal in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at charva.awt.Toolkit.(Toolkit.java:895) at charva.awt.Window.init(Window.java:62) at charva.awt.Window.(Window.java:58) at charva.awt.Frame.(Frame.java:32) at charvax.swing.JFrame.(JFrame.java:34) at charvax.swing.JFrame.(JFrame.java:30) at org.openinstaller.util.ui.ChaxStandaloneSplash.(ChaxStandaloneSplash.java:91) at org.openinstaller.core.Orchestrator.main(Orchestrator.java:428) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.openinstaller.core.EngineBootstrap.main(EngineBootstrap.java:208)SEVERE INTERNAL ERROR: no Terminal in java.library.path

glassfishrobot commented 15 years ago

@glassfishrobot Commented scatari said: This is actually a different issue than the usage message issue. Installer will be modified to check for display variable and warn appropriately.

glassfishrobot commented 15 years ago

@glassfishrobot Commented nluu said: I was going to reopen

https://glassfish.dev.java.net/issues/show_bug.cgi?id=5085

but it was closed as a dup of this bug (4929). Thus, I reopened 4929 instead. If you like me to close this one and reopen 5095, then please let me know. Thanks!

glassfishrobot commented 15 years ago

@glassfishrobot Commented scatari said: 4929 will be closed as the issue isolates and points directly to the actual issue. Console installation will not be supported due to limitations in OpenInstaller.

glassfishrobot commented 16 years ago

@glassfishrobot Commented Was assigned to scatari

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-4929

glassfishrobot commented 16 years ago

@glassfishrobot Commented Reported by nluu

glassfishrobot commented 15 years ago

@glassfishrobot Commented Marked as duplicate on Tuesday, June 30th 2009, 7:02:57 am