I've recently been restoring my Java EE setup after a computer crash and I thought I'd try Open JDK 16 and Glassfish 6.1.0 but on deploying my application I get the following exception which I've never seen before:
java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: Error occurred during deployment: Exception while deploying the app [myapp-0.0.1-SNAPSHOT] : org.xml.sax.SAXException: Requested schema is not found in local repository, please ensure that there are no typos in the XML namespace declaration.. Please see server.log for more details.
I'm not sure how to resolve that, or maybe I should just roll back to JDK11. I was previously running JDK 1.8.0 and Glassfish 5.1.0
Eclipse Glassfisch 6.1.0 does not currenctly support JDK 16. Only JDK11.
From the documentation found here:
Eclipse GlassFish 6.2.0 is a Jakarta EE 9.1 Compatible Implementation and the latest release of Eclipse GlassFish. It supports Jakarta MVC as a major new feature. Officially supports JDK 11. Runs on JDK 16 (but not fully tested on 16).
Eclipse GlassFish 6.1.0 is a Jakarta EE 9.1 Compatible Implementation and the previous release of Eclipse GlassFish. It's functionally identical to Eclipse GlassFish 6.0.0, but supports JDK 11.
Eclipse GlassFish 6.0.0 is a Jakarta EE 9 Compatible Implementation and and older release of Eclipse GlassFish. This release only supports JDK 8.
So you need to either compile your application with jdk11 or upgrade to glassfish 6.2.0. But be aware: it is not fully tested with jdk 16 yet.
Related
Trying to setup eclipse following Definitive Guide to JSF in Java EE 8. Choosing 'No servers are available' does not list the required 'Oracle, GlassFish Tools'. I am using Eclipse version: 2021-06, on Windows 10 64-bit, Java JDK 15.0.2. I've trying installing GlassFish Tools from the eclipse market place without success. For some reason, on the Define New Server page, Tomcat v9.0 Server at localhost in listed as the Server name, Apache tomcat v9.0 is listed as the Server runtime environment.
Should I be re-installing eclipse for the enterprise?
You can use Payara Tools instead. I forked that initially from GlassFish Tools and added many improvements to it. It supports GlassFish as well.
The original GlassFish Tools hasn't been updated for a long time and is probably not compatible with the more recent Eclipse releases.
I am using JBoss 7.1 with JDK1.7. I am planning to upgrade to Java11. JBoss 7.1 is not starting. Could you please let me know which version of JBoss I have to use with Java11?
No, JBoss 7.1 does not support either Java 11 nor even Java 8.
Check this post at jboss.org for detailed information
Recently released EAP 7.2 supports JDK 11, see https://access.redhat.com/articles/2026253
I tried to add jboss-eap-7.0 to Netbeans 8.2 according to this article.
Then, I created an enterprise application in Netbeans and set the server to JBoss. But there is not Java EE 7 option to choose. How can I have "Java EE 7" coupled with "JBoss EAP 7.0" in Netbeans 8.2?
What you are attempting is not possible for several reasons.
While JBoss EAP 7 is EE 7 certified, it is not supported by NetBeans 8.2 / Java 8, and cannot be installed successfully.
If you followed the workaround in the link you cited, you told NetBeans that you were installing WildFly when you were actually installing JBoss. That may have allowed the installation to proceed, but it is not surprising that you had problems creating an app for that server afterwards.
Also, JBoss EAP 7 will not work with Java 8. See this link:
JBoss AS 7 does not work with Java 8. If you need to use Java 8
consider upgrading to WildFly (wildfly.org) which is a Java EE 7
implementation. WildFly is the new name for JBoss AS. When you try to run AS7 of JDK8 it will hang during the boot...
I can confirm that JBoss EAP 7 still hangs on startup with JDK 1.8. To proceed you have a several options, depending on the constraints of your development environment:
Use an IDE other than NetBeans 8.2 to install JBoss EAP 7. The obvious choice is JBoss Developer Studio from Red Hat. It's based on Eclipse, is free with registration and (not surprisingly) and makes installing and using JBoss easy. You still won't be able to use Java 8 though; you would have to use Java 7.
Switch to using WildFly (or some other alternative such as Payara) as your app server in NetBeans, rather than using JBoss EAP 7. This approach allows you to use Java 8 to develop, deploy and test EE 7 applications within NetBeans.
Download and install JBoss EAP 7 outside of NetBeans, and manually deploy your EE 7 applications to that server.
I wanted to upgrade the JDK version of my WebLogic server (10.3.6) from 1.7 to 1.8. What can be the possible steps required to do this?
I have existing weblogic and JDK old versions on Windows platform. I want to update them. But when I search document about update steps on internet, I couldn't find anything. They just mention about installing process.
As you want to update weblogic and jdk version 1.7 to 1.8,
Then you can uninstall both of them.
Then download weblogic 12.2.1 and jdk 8 from following link.
Weblogic download link: weblogic download from here
JDK8 download link: jdk 8 download from here
Then install JDK8 first and then weblogic. Hope it is easy.
From Oracle blogs documentation,
WebLogic 12.2.1 requires Java 8 (JDK 8) as a runtime.
WebLogic 12.1.3 can be used with Java 7 or Java 8. Using WebLogic
12.1.3 with Java 7 caused warnings because of the permspace settings in the WebLogic start scripts. Permspace is removed from JDK 8, so
also these warnings are gone now with WebLogic 12.2.1 and JDK8.
JDK 8 comes with Nashorn JavaScript engine. Try the jjs command line
tool. Read the complete article here.
You can also follow the link: JRE 8 compatibility with weblogic 10.3.6 (11g
I thought the support for Java 1.8 has begun with WLS 12.1.3.
So I assume its not possible/realistic to get wls10.x.x work with a newer jdk as 1.7.x.
https://community.oracle.com/thread/3539686
Have a problem. Before start server jboss 7.1.1, I have a problem:
**Error:** JDK 1.7 (or earlier) should be specified either as project SDK or
alternative JRE
I am using jdk 1.8 In project. And I can use only 1.6 JRE for working with JBOSS.
If I used 1.8 at project, and 1.6 jre with jboss, I take error with unsupported major.minor version 52.0.
Can I change jdk for JBOSS on 1.8? And how to do it?
I found the posting below on the JBoss developer developer forum.
The short version is that you would need to backport various bug fixes to JBoss AS 7 in order to get it run on a Java 8 JRE. It would be better / easier to upgrade to Wildfly. (He says.)
Re: AS 7 on Java 8 by Tomaz Cerar Apr 8, 2015 6:18 AM (in response to Matija Vizintin)
Any big reason you cannot upgrade to WildFly 8?
Core issue that prevents boot of AS7 on JDK8 is
https://issues.jboss.org/browse/WFLY-2057
which was fixed by
https://github.com/wildfly/wildfly/commit/fa93ceff49c3e84851cb8b00157e4fbed1d2cdb7
You could apply this commit to
https://github.com/wildfly/wildfly/releases/tag/7.2.0.Final-testsuite-fix
tag and rebuild it.
but, this will only make sure server starts on JDK8, there ware
handful of other fixes / changes that we needed to address to make
sure testsuite passes properly.
In any case, i would recommend you to go with WildFly 8.2.0.Final.