After migrating the Eclipse (2021-9) workspace to Java 17, it is not possible any longer to add the Web project to the tomcat server.
Tomcat version is 9.0.54. All projects have Project Facet 17 and the related java 17 JRE.
Also the plugin 'Java 17 Support for Eclipse 2021-09 (4.21)' has been installed.
But adding the web project to the tomcat server is not working any longer. I get the message "There are no resources that can be added or removed from the server".
It only works when I set the project facet of this Web project back to Java 11 again. But that is not what we want.
So far I didn't find a solution for this problem. Do you know how to solve this issue?
Bug
This appears to be a known bug in Eclipse:
Bug 576466 - Can't add Java 17 WebApplication to Tomcat9
Workaround
As for a workaround, the author of the bug report mentions Eclipse does work properly if you switch to using Tomcat version 10.
FYI, versions of 9.x and 10.0 of Tomcat are special in that they are virtually identical, developed in parallel, the main difference being the switch in package names from javax.* to jakarta.* as part of compliance with Jakarta 9.0. See Transition from Java EE to Jakarta EE by Arjan Tijms.
Furthermore, Tomcat 10.1 is built to support Java 11, as part of compliance with Jakarta 9.1. Since you are using Java 17, I would suggest using Tomcat 10.1.x in your situation.
We are upgrading tomcat version to 9.0.35 which is compatible with Java 8. We are using DROOL KIE web container war 6.5 which is deployed in tomcat. So question here is are these versions compatible.
Java 8 - KIE war 6.5 - Tomcat 9.0.3.
We have tried it in non-production environment and result looks fine. But since documentation of Drools is not clear we need this confirmation.
I have downloaded and installed tomcat 9 to my machine, but on Eclipse > Window > Preferences > Server > Runtime Environment, after clicking on Add, I see only Tomcat 7 and Tomcat 8, but not Tomcat 9.
What I have done:
1) installed tomcat 9 to local server;
2) updated eclipse to Mars (latest as of 2015-11-25);
3) installed eclipse "JST Server Adapters" and "JST Server Adapters Extensions"
Note:
My purpose of using tomcat 9 is it seems to be the only version that explicitly support java 8 and later, and my web app is using java 8. (http://tomcat.apache.org/whichversion.html)
I also have tomcat 7 exist in project but I also want to keep it in the machine, not to delete it.
Please see screenshot.
Please let me know about any config that I missed!
There are two things to note here:
Tomcat 9 is not released yet. Not a final version that is. If you check the official website, you will see that the only available version is an M1 version. Hence there is no support from Eclipse WTP for this early version. It will come soon, but not yet.
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 support 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 support Java 7 and above. The majority of people with a Java8 + Tomcat combination are using Tomcat 8. Tomcat 8 also has Eclipse WTP support.
I was able to get the adapters for Apache 9 by installing Eclipse Java EE Developer Tools 3.9.4
Use a later version of eclipse e.g. Eclipse Neon.
It should work.
I tried all the above methods but still was unable to find solution for the problem then I did the following and that helped me to add Apache tomcat to my Eclipse IDE:
After following Help>Eclipse Marketplace and installing Eclipse Java EE Developer Tools 3.10 still tomcat was not available so I went to Help>Eclipse Marketplace>Installed>Eclipse Java EE Developer Tools 3.10>Change I put tick on the following and then I got the Apache Tomcat finally in my Eclipse IDE:
JST Server Adapters
JST Server Adapters Extensions
JSF Tools-Tag Library Metadata(Apache Trindad)
Git Integration for Eclipse
Use later EE version of Eclipse! Contains Tomcat adapters 8.5 and 9.0
I had same problem, but not now.
On my side, eclipse marketplace was stucked on previous WST server adapters.
I've used old update feature Windows > Install New Software
In main update site, I found Web, XML, Java EE and OSGi Enterprise Development part, where WST Adapters where ready to update ...
Eclipse MarketPlace often embed too much features & plugins.
On my own point view, easier to keep a light eclipse ;-)
Tested on eclipse 2020-09
I am trying to add jersey to our (old) jboss project but I get "Unsupported classversion" when deploying to jboss - which points to a compile vs runtime version mismatch. In production and on our test servers, the application runs on java 6 but it is built using java 7. Corporate bureaucracy means that it will take months to upgrade the servers to java 7 but the code itself no longer compiles in java 6 due to some javaws dependencies. So for the foreseeable future, I am stuck with these versions.
All my changes work fine if they are compiled and run in java 7 but don't deploy if compiled in java 7 but run in java 6.
I have tried using the maven-compiler-plugin to force the target to be 1.6 but then I run into "source release 1.7 requires target release 1.7" errors.
I can see that at least one the jersey jar artifacts that is downloaded by maven is compiled with java 7 (51.0) and that presumably is the cause. Anyone have any tips as to how I can go forward with this?
Indeed, Downgrading the version of jersey to one compiled with java6 sorted the issue (kinda - I get some jersey problems now instead).
I extracted the class files from the .jar and ran "file" on one and I found that 2.6 version of jersey was the last to support java 6
For some reason, I need to upgrade my JBOSS server to JBOSS AS 7, but I found that that default latest adapter is just for AS 5. Any Suggestions?
Right now I'm using JBOSS AS 4.2 and eclipse 3.6(helios), after a quick search I find I can either upgrade both my eclipse to 3.7 indigos and JBOSS 7, or I can use eclipse 3.6 with JBOSS 6. Since I have plugins on my current IDE, install a new eclipse isn't my first choice, then how can I run JBOSS 7 with eclipse 3.6?
Thank you.
Yao
Download the "Development" version of JBoss tools, which includes the latest Jboss AS Adapter for JBoss 7, by pasting this URL into Exclipse --> Help menu --> install new software:
http://download.jboss.org/jbosstools/updates/development/indigo/