Required jdk version for SpagoBI 5.1 - java

I followed the instruction just like the one given in the link mentioned below.
http://www.scribd.com/doc/179575250/SpagoBI-4-0-Baby-Steps#scribd
a using jdk version is 1.6. When is double click on "SpagoBIStartup.bat". Tomcat sermver starts and the Spago related files are getting deployed but when i browse with the link.
http://localhost:8080/SpagoBI
Am getting 404. Antway tomcat is running not the SpagoBI. When I browse http://localhost:8080/ i can see the tomcat index page. is there any specific java version for SpagoBI 5.1 or Spago specific environment settings. I have already set the CATALINA_HOME to point the SpagoBI folder location.

JDK 1.7 is the minimum required version. SO i installed jdk 1.7 then it worked.

Related

Tomcat 9 service using older version of java

I am using Tomcat 9 and Java 11 on my windows server.
In my system there are total 3 JDKs present (two Java 1.8.x and one JDK 11 )
JAVA_HOME environment varibable points to JDK11
Also registry keys current version points to JDK11
I cannot uninstall older version of java 1.8 from my system as some of the apps are still using java 8.
Now when I am running Tomcat 9 service , it is picking older version of Java 1.8.x & not Java 11.
In catalina.bat file I have also added following explicitly
set JAVA_HOME=D:\Java\jdk 11.0.8
But still it picks older version of java. In the tomcat configuration java tab also points to Java 11 dll file.
When I run the tomcat locally using startup.bat file & not start the service through services app then in catalina logs I get correct version of Java.
Please suggest why tomcat service is not picking latest java 11 version.
Try uninstalling your Tomcat service and installing it again using service.bat in tomcat folder.
service.bat remove
service.bat install
If that doesn't work ,check the appropriate registry key. Here is mine:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Tomcat7.55\Parameters\Java
change the Jvm key value .
Note :To open regedit ,
In the search box on the taskbar, type regedit, then select Registry Editor (Desktop app) from the results.
Right-click Start , then select Run. Type regedit in the Open: box, and then select OK.

Glassfish server does not start. NullPointeException

I just downloaded the GlassFish 5.0 archive - Full Platform, unzipped it, I run it through the command line.
asadmin start-domain
problem:
Exception in thread "main" java.lang.NullPointerException
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(AbstractModulesRegistryImpl.java:152)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(AbstractModulesRegistryImpl.java:144)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:218)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:224)
at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceLocator(StaticModulesRegistry.java:88)
at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContainer.java:217)
at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContainer.java:255)
at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:231)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:371)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:306)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:57)
I tried to set the path in the file asenv.bat -> set path = C:/.../Java/bin - did not help. Tried so to launch: asadmin start-domain domain1 - did not help.
Installed: jdk-9.0.1 Also tried on the 8th, did not help. What to do???
OK, Glassfish 5.1 doesn't exist for the moment. Continue with Glassfish 5.0 with this solution:
Just set the AS_JAVA variable in your asenv.bat file located here: C:\DEVENV\glassfish5\glassfish\config.
File to edit: add last line
Relaunch your server....enjoy :
This looks to be this issue - https://github.com/eclipse-ee4j/glassfish/issues/22130.
GlassFish 5 does not work on JDK9, however GlassFish 6 works on JDK 11.
For me it didn't work what #Vifier Lockla did. I had to change the path/glassfish5/glassfish/config/asenv.conf file in a linux mint machine. At the bottom of the file the path of the jdk 1.8, i.e.
AS_JAVA="/usr/lib/jvm/jdk1.8.0_191"
GlassFish 5.1 also not working with Java 9 or later versions.
glassfish 5.1 also needs java 8 with the AS_JAVA hack in asenv.conf/bat file.
Edit asenv.bat put set AS_JAVA=/usr/lib/jvm/java-8-oracle
and asenv.conf AS_JAVA="/usr/lib/jvm/java-8-oracle"
It works
When you download the glassfish zip file from the internet and extract it.
Its a good practice to read the the readme file.
In my case the under the "prerequisites" title in the readme file, it specified: GlassFish 5.0 requires Oracle JDK 8 Update 144.
I downloaded and installed the JDK 8 update 144 as demanded. It worked instantly. I initially had JDK 14.0.2 and it was displaying the error #Aleksandr posted.
I made the same mistake as the OP, because the release notes said specifically "GlassFish Server Open Source Edition Release 5.0 requires Oracle JDK 8 Update 144 or later" under heading Required JDK Versions in release notes.
However what you can do is drop down each version to see which is the latest jdk version that glassfish 5 will be compatible with Or Just download Java SE Development Kit 8 from https://www.oracle.com/in/java/technologies/javase/javase8-archive-downloads.html.
You also have to add the java variable in asenv.bat as kindly commented by Vifier Lockla. Thanks to Vifier for the suggestion.
for me I changed to the directory where glassfish is
cd /opt
then
sudo glassfish5/bin/asadmin start-domain
I am sure this works

Apache Tomcat Still Looking for Uninstalled Java Version

I have jasperserver running on apache tomcat on a web application. I have Java version 1.4 installed and the correct JAVA_HOME environment variable set. I can get to "myurl:8080" just fine and it shows the apache tomcat page. Originally i installed java 1.8 which seemed to be incompatible for my old version of jasperserver.
I needed to install an older version of Java, so i uninstalled 1.8 and installed 1.4 on my linux instance for my Java App. However, when i try and connect to jasperserver through the app, it seems like it is still looking in the old directory for old java library. How can i configure this to look at my new directory in same location? The error is below.
java.io.FileNotFoundException: /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar
The correct version of java is located below.
/usr/lib/jvm/java1.4.2_18/
Try changing the java_home and jre_home environment variables path,if you update
java version.The environment variables need to be edited.
Here is how to change or edit the environment variables

Running multiple instances of Apache tomcat will not work in my pc

I have two jdks and jres installed in my pc java 1.5 and java 1.8 for some work purpose. Now I have one instance of tomcat 5.5 which I took from another pc and pasted it in my pc c:/servers folder. It is running fine using java 1.5. So I set the JAVA_HOME and path to java 1.5. Now I downloaded tomcat 7 binary distribution zip file and extracted it in my c:/servers directory. I changed the connector port, shutdown port and AJP port to different values. set CATALINA_BASE to c:/servers directory. But when I'm running the startup.bat two windows are popping up for a sec and they are closing. The server is not starting. I found the error as java.lang.UnsupportedClassVersionError. Bad version number in class file
Then I tried to install tomcat 8 using windows installer with again different port numbers in the same c:/servers directory which worked perfectly. It started and tomcat home screen also loaded. My work is survived with tomcat installer but I want to know why manual configuration failed.
OS = windows 10 64 bit
Please help me in making manual configuration of tomcat. If any other information is needed, I'll provide.
EDIT 1
I got this error java.lang.InvocationTargetException when I tried to install another instance of tomcat 5.5 manually in c:/servers directory
The exception UnsupportedClassVersionError occurs when you try to execute *.class files with an older version of Java as they were compiled for.
In your case, you are trying to run Tomcat 7 with Java 1.5, but its minimum requirement for the JRE is version 1.6. The latest version of Tomcat that supports Java 1.5 is Tomcat 6. Check out this overview for more information:
Apache Tomcat Versions

glassfish server JDK/JRE issue

I am trying to setup grassfish4 server in my eclipse Juno. I have both JDK1.8.0-05 and jre8 installed. When I am creating the new server, I get this for selecting JDK1.8.0-0
"This server runtime requires JRE 1.7 or higher.".
and when I select jre, I get this "Glassfish server runtime requires full JDK instead of JRE".
In the preference-java-Installed JREs tab, I have my JDK checked. and pointing to the location C:\Program Files (x86)\Java\jdk1.8.0_05 and my jre unchecked pointing to C:\Program Files (x86)\Java\jre8.
What settings I need to do to fix this problem? Please suggest.
GlassFish 4 does not support Java 8 yet. There is a 4.0.1 release planned for later this year that will fix this.

Categories

Resources