Azure Java Build Failure - spring

I have an existing Azure build that worked on Java 11. We upgraded the app to Java 17 and all is fine until the Azure pipeline runs. I get an error saying the JDK is incorrect. Azure is still using ver. 11. I have changed the version in the UI to Java 17 which was an available option and it still is using Java 11. How do I change the Java version?

Related

Anypoint Studio Launch/Deployment Issues

Recently I downloaded Anypoint Studio 7.4 on my computer, but I've not been able to launch the same. I am running Java Version 8 Update 181 (build 1.8.0_181-b13) .When I try to launch, I get to the workspace selection screen and after that the Anypoint Studio 7.4 window just stays on screen frozen. Eventually, it crashes with this error:
After this, I see this long error message:
I used to run Anypoint Studio 6.6.4 projects without any issues, but now I'm not able to deploy any of my old projects. I get the following errors:
Error: Could not find or load main class org.mule.tooling.server.application.ApplicationDeployer
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128M; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
I have found several instances of such errors in this forum, but sadly none of them have helped me so far. My Studio 6.6.4 Java preferences is shown below:
In short, I now have 2 issues (both versions of Anypoint Studio)
Have you installed newer Java versions in your system as well? This error was common when Java 9 or 11 were installed along with 8. See this article for details on how to fix it.
The first error could be that the Java version used is 32 bits and the Studio version is 64 bits. Both should match. Be sure to use the matching version of Java and Studio. Not that if your Windows is 32 bits you will to install both as 32 bits.
PermSize and MaxPermSize are just ignored in Java 8 and cause no issues. The second problem is not finding the ApplicationDeployerclass which is strange. Is there a Mule Runtime version in the project tree?

STS 3.7.2 oracle enterprise pack java prompt

I just installed STS 3.7.2. Since my application uses weblogic 10.3.6, i tried installed the oracle enterprise pack (oracle weblogic tools). I finally got around to installing it and now everytime STS starts up, it says "Eclipse is running on JDK 1.7..Oracle enterprise pack requies java 8 and above..". The following screens prompt me to pick jdk 1.8. Once i pick the folder location, STS shuts down. upon starting it up again, i go through the same prompt of picking java 8 installation location. Not sure why STS does not remember.
Try modify java home at eclipse.ini
https://wiki.eclipse.org/Eclipse.ini

Will lastest websphere liberty full platform run oracle java 8?

I am looking at the latest websphere liberty 8.5.5.7 full platform (https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments/) and I wonder if it can run oracle java 8? I see on the download page that ibms java 8 only supports the web profile but I don't care if i run a jdk from oracle or ibm as long as it is version 8.
Historically websphere has demanded ibms jdk on linux and solaris.
I have search ibms site but not found any answer.
Yes we support running Liberty on non-IBM JVMs, including those from Oracle. As for the downloads from IBM that come bundled with Java 8 you can use that with more than the web profile (you can use the installUtility to download and install the full Java EE 7 platform onto the web profile install).

Can I Install Liferay 6.1 EE in clustered Glassfish 2.1.1?

I have a simple question about installation Liferay 6.1 EE into clustered environment in Glassfish 2.1.1 web application server, the question is can I do that , if yes what I need of configuration if not why , whats the problem ?
I have already a stable production server clustered and running Liferay 5.2 EE with Glassfish 2.1.1 and I want just upgrade Liferay with current clustered environment .
I want the answer quickly.
Thanks in advance
OK, I made a PoC , and seems working, I installed Liferay 6.1 CE on glassfish 2.1.1 (with JDK 7 32-bit) as a standalone and clustered and seems working.
About performance and stability, I didn't make any test, but just a run and startup for portal yes working well without exceptions, I tried that on Glassfish 2.1.1 installed on windows with JDK 1.7 (32-bit), but for 64-bit failed in cluster mode because a bug in Glassfish 2.1.1 side with 64-bit Windows OS (known as ClassNotFoundException sun.security.pkcs11.SunPKCS11), but as a standalone working well in 64-bit too.

Can I use Weblogic 10.3 to build applications that run on WebLogic server 9.2?

I have WebLogic 10.3 installed (Server, Workshop and Portal).
However, some of the legacy service applications are deployed on WebLogic 9.2.
I have noticed that after using Ant to build the service library, I get an EBJ stub named ABCD_be9p7l_EOImpl_1030_WLStub.class.
Building it from WebLogic 9.2 gives ABCD_be9p7l_EOImpl_922_WLStub.class.
My question is, if I deploy the 10.3 one in the 9.2 server, will there be any compatibility issues that will stop the services from running?
If there is, is there any way that I can use WebLogic 10.3 to build applications that run on 9.2?
Read "Compatibility Statement for Oracle® WebLogic Server 10g Release 3 (10.3)" document:
Oracle attempts to support binary and source-level compatibility between the current version of WebLogic Server and all versions as far back as 8.1 in the areas of persistent data, generated classes, and API compatibility. In some cases, it is impossible to avoid incompatibilities.
and "Upgrading WebLogic Application Environments" article:
Application environments that run with WebLogic Server 10.3 can interact with application environments built on WebLogic Server 7.0, 8.1, 9.x, or 10.0.
Most existing WebLogic Server applications can be run without modification in the new WebLogic Server 10.3 application environment. You should review the compatibility information described in WebLogic Server 10.3 Compatibility with Previous Releases to determine whether any feature changes affect the applications in your environment. If your application uses APIs that have been deprecated or removed, then you may encounter warnings or exceptions at run time.

Resources