Java not found while installing Websphere Application Server - java

I am trying to install the Websphere Application Server (32bit) in Ubuntu 14.04.3 (64bit) using the IBM installation manager a silent install and a response file.
The commands I am using are:
sudo ./IBMIM --launcher.ini silent-install.ini -input
ibm_im_response_file.xml -acceptLicense
In the logs I see the following:
WARNING: /opt/IBM/WebSphere/AppServer/bin/iscdeploy.sh: 44:
/opt/IBM/WebSphere/AppServer/bin/iscdeploy.sh:
/opt/IBM/WebSphere/AppServer/java/bin/java: not found
although this file exists, but it's a link to /opt/IBM/WebSphere/AppServer/java/jre/java
EDIT: same happens when using the GUI
EDIT2: I tried doing the same under Ubuntu 12.04 and it worked. Apparently there is some problem regarding the 32bit version that is related to the ia32-libs package that is no longer available in 14.04.

If you are trying to Install Websphere Application Server through Installation Manager then you need to select IBM SDK provided with Websphere Application Server.
If you don't choose the IBM SDK you will be need to enter the JAVA Path in next steps.

Related

Running Jenkins Node/Agent as a Windows Service with OpenJDK

I have a Windows virtual machine with OpenJDK 13 installed that I would like to setup as a Jenkins node/agent.
When I create the node configuration using the Jenkins UI and select Launch Method: Launch Agent by connecting it to the master it provides a link to download slave-agent.jnlp
On a system with the original jdk/jre older than version 9, which contains java web start, if I run that jnlp file, it brings up a window with a menu that includes an option File - Install as A Service
However, as OpenJDK (and I believe any JRE/JDK versions greater than 8) do NOT contain Java Web Start, I cannot seem to gain access to that option.
I am able to successfully run java -jar agent.jar -jnlpUrl https://jenkinsserver/blah/slave-agent.jnlp -secret blah -workDir "somedirectory" and have the node register with Jenkins, but it is not running as a service.
I had an older agent that was still using old version of JRE, so I looked at its Jenkins service configuration and unfortunately it seems to be relying on executable(s), .config file(s), and xml file(s), which I cannot determine the source of, beyond they must be created when running the "Install as a service" instructions from slave-agent.jnlp
I also attempted to use IcedTea-Web which is apparently supposed to be a Java Web Start replacement, but I've had no success.
Can anyone tell me how to setup a Windows machine running OpenJDK as a Jenkins node/agent with the Jenkins node/agent components running as a Windows service?
I had a similar issue and now I use NSSM.
Download NSSM
Open a cmd and install the service (I used JenkinsService as Servicename):
<path to nssm.exe>\nssm install <Servicename>
Insert the path to the jdk to the field Path
add the rest to the field Arguments:
-jar agent.jar -jnlpUrl https://jenkinsserver/blah/slave-agent.jnlp -secret blah -workDir "somedirectory"
Click on install the service
Now you can check the new service JenkinsService in the windows service manager. As soon as it's running you can check the connection to the master.
If you want to setup a Java base application as a service, I believe the best option would be to use Procrun from Apache. It is the exact method that Tomcat uses.

Java JDK issue or any thing else

I have working to setup an project on local. I have used Virtual Box because VMWare Fusion is available for MAC and I am working on windows. During the process when I run “vagrant up --provider=virtualbox” commend then JDK 7 error was displayed error screenshot is given below
http://prntscr.com/m7jp7e
After that I have installed “Oracle JDK 8” on /usr/lib/jvm/ path manually on virtual box Linux and then run vagrant up command then again JDK 8 issue is displayed.
I have also changed the path of java_home and jdk_version in “coldfusion-server.rb” file.
Please have a look error screenshot below.
Error Screenshot: https://www.screencast.com/t/9OQC3iLold2r
Mac user here! Highly recommend using CommandBox to run any version of Adobe ColdFusion on a Mac. Much easier to deal with than VirtualBox or manual installation. The only issues you might encounter is with older versions of ACF that run on JRun showing errors in CF Admin related to JRun specific references. Nothing to really worry about.
You can change the JDK and other settings used by CommendBox using server.json:
{
"name":"ACF Application",
"jvm":{
"javaHome":"/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home",
"heapSize":2048,
"minHeapSize":1024,
"args":"-XX:MaxPermSize=1024m"
},
"app":{
"cfengine":"adobe#9.0.2+282541",
"serverHomeDirectory":"serverHome"
}
}
These are some of the settings I have to run a legacy ACF 9 on my Mac using an older JDK with non-default memory settings. See Configuring Your Server for more info.

issue with starting java web start application on linux

Operating System: Linux version 2.6.18-308.1.1.el5 (mockbuild#x86-002.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)) #1 SMP Fri Feb 17 16:47:13 EST 2012
Java Version: Match: digest selected JREDesc: JREDesc[version 1.6+, heap=134217728-536870912, args=-ea, href=null, sel=false, null, null], JREInfo: JREInfo for index 0:
platform is: 1.7
product is: 1.7.0_17
location is: http://java.sun.com/products/autodl/j2se
path is: /usr/java/jre1.7.0_17/bin/java
Tried with Mozilla Firefox.
Problem: Unable to start the java web start application for JRE 1.7.0, even though I am using the deployment toolkit.
source for html for JRE 7.0: deployJava.createWebStartLaunchButton(url,'1.7.0');
source for html for JRE 6.0: deployJava.createWebStartLaunchButton(url,'1.6.0');
Note:
The application runs perfectly fine in a Windows environment, and Linux is running the 1.6 version just fine. I also noticed the default JRE of the machine is still 1.6.0, even though I have installed JRE 1.7.0 using RPM from here and when I am trying to install now it is saying that the JRE is already installed.
Update: I have updated the default JRE, now it shows JRE 1.7.0
[root#L3FMV80 defaults]# java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
[root#L3FMV80 Downloads]# rpm -ivh jre-7u17-linux-i586.rpm
Preparing... ########################################### [100%]
package jre-1.7.0_17-fcs.i586 is already installed
You don't say what distribution you are using. Try installing openjdk icedtea-web, the latter being a web start implementation and a browser plug-in.
You don't have to be using the browser plug-in. You can open the file with the "javaws" program.
I have good solution from this
So after a good long time not being able to play this Facebook game
we’re building for P2P-related research, which runs on Java Web Start,
I finally got pissed today and sat down and finally got to the bottom
of it.
Because Java isn’t free technology and all that, OpenSUSE actually
comes preinstalled with OpenJDK instead of the common version of Java
distributed by Sun. With this default configuration, Web Start (JNLP)
files on the internet will open by default in an open implementation
of Java Web Start called ‘IcedTea Web Start’, which I hear works
reasonably well – but outright doesn’t work for some cases, like mine.
For people who, like me, need to run Sun’s version of Web Start from
Firefox – first, you need to grab and install Sun’s version of the
Java runtime using your software package manager (in OpenSUSE the
package is called java-1_6_0-sun). Verify that you have a program
called ‘javaws’ after this step. You can simply type ‘javaws’ into an
open terminal and make sure it is recognized as Java(TM) Web Start.
Okay, next all we need to do is get Firefox to use javaws when opening
JNLP files. For other distros you’d go to Edit > Preferences >
Applications in Firefox, look for JNLP, and change the setting so it
uses javaws. On OpenSUSE, Firefox is integrated so it takes its
file-association settings directly from KDE. So you’ll have to instead
go to KDE’s systemsettings (Configure Desktop) > Advanced Tab > File
Associations. Here, run a search for JNLP, then add ‘/usr/bin/javaws’
to the top of the Application Preference Order.
We’re done! Next time you open a JNLP Web Start file in Firefox, it
should offer to use Sun’s Java Web Start to open it :)
Useful Link: how to run jnlp files under ubuntu

Informix CSDK install failing

I'm trying to install the Informix CSDK to get the drivers for an ODBC connection using Perl and DBD::ODBC. When running the ./installclientsdk, I'm getting the following error:
Initializing InstallShield Wizard........
Launching InstallShield Wizard........erified.
The wizard cannot continue because of the following error: could not load wizard specified in /wizard.inf (104)
I've read that only open-jdk is available on Ubuntu 11.10 so I went and installed the java version, which is where I'm at now. If I debug, I get:
QJMLException: (error code = 3002; message="java.lang.ClassNotFoundException: sun.beans.editors.BoolEditor")
I've been following this post:
http://ubuntuforums.org/showthread.php?t=1483193
But so far no luck on getting JRE running or the CSDK installed. Any suggestions on this one?
Thanks!
There should be a JVM included with the software, and the installer should use it if it cannot find an appropriate alternative. The question then is whether the JVM bundled with CSDK can run on Ubuntu 11.10. It is certified for Redhat and SuSE, I believe.
Which version of CSDK are you trying to install? Which kernel version and GNU C Library version are in Ubuntu 11.10?
I'm not keen on the '...erified' (as opposed to ...verified) part of the message; it is ominous when such simple messages are not displaying correctly.
I've not installed Informix on Ubuntu sufficiently recently to have any useful recollections of how well it worked. I don't remember any problems, but that could just mean I'm old and forgetful.

Does anyone have a beginners guide to installing and using glassfish?

I am after a all round installation and introduction to Glassfish.
(ie Your boss has told you need to develop your web applications for glassfish instead of tomcat)
Installing
Installing Glassfish onto your own PC for testing.
Download the installer file off the glassfish website
Move the installer jar to the location you wish the files to be installed. Once
installed, the install folder can not be moved. If you are not sure where to place it on OS/X or Linux, drop the installer jar into /usr/local/, this will result in your appserver being installed as /usr/local/glassfish
Run the installer with extra memory java -Xmx256m -jar glassfish-installer-xxx.jar
Run the configuration script: cd glassfish; lib/ant/bin/ant -f setup.xml
Starting the app server
To start glassfish with the default configuration type bin/asadmin start-domain domain1. This will result in the following URL's becoming available:
Admin website http://localhost:4848/
Application site http://localhost:8080/
The default administrator username and password are:
Username: admin
Password: adminadmin
IDE support
Eclipse support
The easiest way to get Glassfish working under Eclipse 3.5 is to use this software Update url (https://ajax.dev.java.net/eclipse) inside Eclipse.
Caveats and warnings
For those used to storing application settings and configuration in a context.xml file, glassfish does not support this.
Moving on from here
The following links are also very useful:
Guide to JMS in glassfish
Guide to JMS in glassfish in Netbeans

Categories