Eclipse 2019-09 R Cannot Install Tomcat 9 - eclipse

Hi I tried to install tomcat9.0 on Eclipse but I got "unknown version of tomcat was specified" and the "next" button is dimmed. Any idea to fix it?

Tomcat 9 is not the only version that explicitly supports Java 8: If you check this page, you will see that "Supports Java version: 8 and later", which in this context means, that it officially supports only Java 8 and above. It does not mean however this is the only one supporting Java 8. Theoretically, you should be able to use any Tomcat version, in practice a.
Tomcat 8 will work perfectly: well since it supports Java 7 and above. The majority of people with a Java8 + Tomcat combination are using Tomcat 8. Tomcat 8 also has Eclipse WTP support.

Related

Start GlassFish server with JDK11 in NetBeans IDE

I try to run the Glassfish server 6.2.2 on JDK11 which Officially supports JDK 11 on NetBeans 12.5 which itself should have Jakarta EE 9 GlassFish 6 Support. If I start GlassFish I get a message from NetBeans saying
GlassFish server could not be started with JDK 11 (Default). Pleas select another Java SE Plattform.
If I start GlassFish server via asadmin it works as a charm. So I am guessing it is a NetBeans issue.
Is there a workaround to get this to work or am I missing something?
I have read Problem with Glassfish server on netbeans JDK not which was asked only a couple of days ago and also Does GlassFish server 5.1 can started with JDK15 and also Start Glassfish in Netbeans 10 with JDK11 but they are all about older GlassFish versions prior to version 6.
EDIT
By the way: if I try to start GlassFish 6.2.2 with JDK8 I get an error message
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occured. Program will exit.
Unrecognized option: --add-opens=jdk.management/com.sun.management/com.sun.management.internal=ALL-UNNAMED
So I have no possibility to start the server at all.
While the Release Notes for NetBeans 12.5 state "Jakarta EE 9 GlassFish 6 Support", the information on the associated GitHub link titled "Jakarta EE 9 GlassFish 6 Support #2902" clarifies the extent of that support:
Adds support for GlassFish 6 automatic registration; Prepares for
Jakarta EE 9.1 and GlassFish 6.1.0, although not yet enabled for
automatic registration.
So NetBeans 12.5 does not support the use of Glassfish 6.2.x. Bear in mind that NetBeans 12.5 was released on September 13, nearly three weeks prior to the release of Glassfish 6.2, so the lack of support is hardly unreasonable.
For more details on why GlassFish 6.2.x won't work with NetBeans 12.5, see these comments from NetBeans issue 5734: JDK-Selection for Glassfish 6.1 is restricted to JDK 1.8
Netbeans expects to have a description of every Glassfish
distribution, and 6.2 has yet to be done. Unfortunately ATM when you
select 6.2.x it defaults to the nearest major version which is 6.0,
and JDK is therefore restricted again, which is correct in that
version.
It looks like support for GlassFish 6.2.x will be included in NetBeans 12.6 which is currently scheduled for release later this month, sometime between November 15th and November 30th.
Updated 12/8/21: The OP has confirmed that this issue is resolved with NetBeans 12.6, which was released on 11/29/21.

Can't install glassfish server in eclipse oxygen

Hi I am using Eclipse Oxygen in Ubuntu 18.4 with Oracle Java 10. I tried to install glassfish server in Eclipse but failed. every time I tried it said java development kit is required instead of JRE. I had given the path "/usr/lib/jvm/java-10-oracle". Even if I put the path as "/var/cache/oracle-jdk 10-installer/",it says "Java installer not found in the specified folder". i am putting the two screenshots here for your reference. Please help.Here are the 2 screenshots for the above two cases
[Note that in this answer I am assuming you are using GlassFish 5.0, which is the latest version]
GlassFish will not currently work on Java 10 due to the JPMS (module system). You need to use Java 8 instead.
You should also be aware that you need specifically Java 8u161 or lower for GlassFish, but the latest release of Java 8 can be used with Payara Server which will work in the same way as GlassFish.
If you really need to use GlassFish on a version of Java 8 higher than u161, then you can use the latest 5.0.1 nightly build

Eclipse Mars Tomcat 8 server disappeared

I'm trying to define a Tomcat 8.5.16 server but everytime I use the 7 I get an error and when I go into preference to use the newer server it tells me the v8 installation is expecting an 8 server although I am pointing it to my tomcat 8. Please help.
I click OK and get "The Apache Tomcat installation at this directory is version 8.5.16. A Tomcat 8.0 installation is expected."
This is under windows->preferences-> Adding a server.
I think Tomcat 8.5.16 cannot be added as Tomcat 8.0.
See also:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=494936
You may have to upgrade your eclipse or apply a patch, for example,
https://bugs.eclipse.org/bugs/attachment.cgi?id=262418&action=edit

Indigo Java EE with GlassFish bundle

I use Eclipse Indigo Java EE and I want to use the GlassFish 3 server. I am used to work with Tomcat which can easily be accessed from Eclipse.
I followed How to install the GlassFish 3 server adapter with Eclipse Helios 3.6 answer but I got the following error:
Cannot complete the install because one or more required items could not be found.
Software being installed: GlassFish Java EE 5, Java EE 6 1.0.54 (com.sun.enterprise.jst.server.sunappsrv.feature.feature.group 1.0.54)
Missing requirement: GlassFish Java EE 5, Java EE 6 1.0.54 (com.sun.enterprise.jst.server.sunappsrv.feature.feature.group 1.0.54) requires 'org.eclipse.platform.feature.group [3.5.0,3.6.0)' but it could not be found
The solution for this problem is a dated link so I can't find any way to solve this issue.
Please provide me a up-to-date solution for this.
The information in the linked question is outdated.
You should
Download and unzip glassfish separately.
In Eclipse, choose Help -> Eclipse Marketplace..., and search for Glassfish. This will locate amongst others "GlassFish Java EE Application Server Plugin for Eclipse" which has an Install button. Use the button to install.
Wait.
Restart Eclipse if prompted.
In the Servers view, right-click and choose New -> Server... Now you can choose to install a Glassfish server. Be certain to use exactly the adapter for the Glassfish server you have. Point to the glassfish folder inside the unpacked server.

how to configure Sun One in Eclipse?

I need a step by step method because I have never used a server like this in Eclipse.
Do you have some installation tips and tutorial links for this kind of configuration?
As mentioned in this old GlassFish FAQ:
What is the difference between SunOne, SJSAS, and GlassFish?
SunOne is an old branding which was replaced by Sun Java System some time ago.
Sun Java System Application Server is the supported version of GlassFish.
Specifically, SJSAS 9.0 PE and GlassFish v1 are the same bits (except for the installer). Similarly SJS AS 9.1 and GlassFish v2 will be the same.
(See also the SO question "eclipse for sun one server for debugging and running application")
So you could rather declare a GlassFish server in your Eclipse.
Actually, at https://glassfishplugins.dev.java.net/, you have a link to download a Eclipse Galileo preconfigured with the GlassFish v3 Java EE 6 runtime.
From there, you can fond some tutorials (like this one) to configure your GlassFish server in Eclipse.