Oracle, GlassFish Tools in Eclipse Enterprise - java

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.

Related

WebSphere Developer Tools 8.0 Not able to start server in modern Eclipse

I am trying to run Eclipse WebSphere Developer Tools with a local WebSphere 8.0.x installation. I also installed IBM's WebSphere Dev server and am having trouble successfully starting each server.
This is because the instructions say that the eclipse.ini should be updated to point to the IBM/WAS/AppServer/jre so that they match up. If you do not do this, the server will start but will spin at 100% because Eclipse can't get confirmation it started correctly. Eclipse warns you about not having the Eclipse JRE match the server JRE version.
I am using Eclipse Oxygen, which is Java 1.8. I installed WebSphere Developer Tools 8.0.x. WAS 8 is java 1.6, as such the server JRE/JDK is 1.6. Why would they make this tool for Eclipse Mars, Neon, Oxygen if you can't ever complete their instructions and make the Eclipse JRE align with the server JRE? Is there a way to get around this? I am wondering what I missed.
Eclipse Oxygen only supports Java 8 and above. You can get the JDK 8 from WebSphere Application Server v9 to run WDT in Oxygen. If you can point me to the instructions that you were following, we can review (and update if needed) to make sure the instructions are clear.

"Java EE 7" and JBoss EAP 7.0 in Netbeans

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.

How to update WebLogic server JDK from 1.7 to 1.8 on Windows 7?

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

NetBeans (8.0.2) can't communicate with Wildfly 9 (Final)

If i start a Wildfly 9 Server with NetBeans, it does not detect that it is started. If i start again, i get the error message "WildFly 9.0.0 Start Failed. HTTP Connector port 8080 is already in use."
The port is used by Wildfly. Wildfly is started by NetBeans but not detected.
(If i stop Wildfly manually, i can start it again with no error message, but NetBeans does not detect it. If i try to start again, i get the error message "... port 8080 is already in use.")
Why can't NetBeans detect the running Wildfly instance?
Netbeans support for WildFly 9 and 10 that is in the workings, it was added to latest builds that will be part of 8.1 Netbeans release.
For time being best thing to do is to try the nightly builds where it works.
you can grab nightly builds from http://bits.netbeans.org/download/trunk/nightly/latest/
"NetBeans 8.1 beta" was released and includes support for Wildfly 9 and 10: https://netbeans.org/community/releases/81/
I can confirm this behavior, I tried it too. AFAIK Wildfly support in Netbeans was maintained by plugin created directly by JBoss community. This changed in Netbeans 8.0.2 and now it is part of Netbeans installation package. Problems with support of newly released versions of Wildfly is occurring quite often.
Here for Wildfly 8: https://netbeans.org/bugzilla/show_bug.cgi?id=241805
Here for Wildfly 8.1: https://netbeans.org/bugzilla/show_bug.cgi?id=245297
I would suggest to wait until they add support for version 9, or you can try proactively raise the bug in Netbeans bugzilla.
I came across the same issue on a windows 7 machine with netbeans 8.2 (8.1 as well) and wildfly 9.0.2.
Actually the issue came from an entry in my hosts file configured to map localhost to the actual machine ip address. The issue was fixed as soon I removed that entry.
Hope this will help.

How can I get Java EE v5.0 to work with WAS 6.1?

How can I get Java EE v5.0 to run on Webpshere Application Server 6.1? My coworker is able to run EAR 5.0 projects, but the highest version I can use is 1.4. I need to be able to use EAR version 5.0
Thanks.
For the record we are both using IBM RAD 7.5.5 - she is on a windows 7 computer and I am on a windows 8 machine.
I tried installing a feature pack to WAS 6.1 but it didn't seem to help out at all.
You can't. I don't know what your coworker is doing, but she is not running JEE5 under WAS 6.1.

Categories

Resources