How to run jBoss AS 7 with eclipse 3.6(helios)? - java

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/

Related

Not able to add web project to tomcat server "There are no resources that can be added or removed from the server" - Java 17

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.

How to add Glassfish 6.0 server in Eclipse IDE for Enterprise Java Developers 2020-12 version

I've an old project which i'm trying to port on latest glassfish 6.0 version. I'm using 'Eclipse IDE for Enterprise Java Developers 2020-12' and unable to finad a way to add glassfish 6.0 server inside IDE. I'm seeing only upto Glassfish 5.1.0 are supported.
Downloaded Glassfish 6.0.0 from https://projects.eclipse.org/projects/ee4j.glassfish/downloads
Glassfish eclipse tool from https://download.eclipse.org/glassfish-tools/1.0.1/gf-tools-repository-1.0.1.201904090220.zip
Is Glassfish 6.0.0 not yet supported in Eclipse IDE?
[Eclipse glasshfish server][1].
[1]: https://i.stack.imgur.com/9TBv2.png
If you want to start Glassfish from Eclipse IDE, you can do it through Payara Tools,
Although the plugin recognizes it as a payara, no problem you can start and stop the server.

Apache Tomcat 9 Not Showing in Eclipse Server Runtime Environments

I have tomcat 9.0.11 installed, but the tomcat 9 server name does not see it to configure it , a solution please
Open your Eclipse IDE
Go to Help > Install New Software > Select a URL from where you want to install > Web, XML, Java EE and OSGi Enterprise Development > select JST Server Adapters Extensions Next and Install.
It will install Apache Tomcat Adaptors. Then you will be able to see all the Tomcat Server Versions in your list.
Right this issue popped up for me quite some time after the original post for a windows 10 x64 Eclipse 2020-09 for tomcat version 9. I went through the loops and the jumps to get to a final answer. For later versions you need the JST adapters mentioned above for the 2020-09 version of Eclipse that is located by going to:
Help -> Install new Software -> (in work with put in: https://download.eclipse.org/releases/2020-12/) -> (open drop down menu)Web, XML, Java EE and OSGi Enterprise Development -> Select options :JST Server Adapters, JST Server Adapters Extensions, JST Server UI (the last one is for the event that the server ui isnt present which it wasnt on my version of eclipse)
in the event that you already have one of these installed it won't run an install on that particular one but run an update on it instead.
You have downloaded and installed tomcat 9 to your machine, then on Eclipse > Window > Preferences > Server > Runtime Environment, after clicking on Add, and then select your downloaded tomcat.
Looks like you have a very old version of eclipse where the newer versions of servers aren't shown. Make sure you install the latest version (photon, or 4.8) of the eclipse JEE package (or some other package with the WTP plugins) and you will see the latest supported server versions in that list.
You should install the latest Eclipse IDE.
It has worked for me:
Before
After
Go to help and choose check for update. Then eclipse will updated to newer version which will show latest version of tomcat server

JDK 9 Compatibility

Currently, I have a JavaFX project running on JDK8 b181. The EJB's are also built on JDK8 b181 platform and deployed as an EAR on WebLogic 12.2.1. Everything works perfectly on NetBeans 8.2.
Now that we have decided to move everything to JDK9, I am not sure if all the technologies used above are compatible with 9. I highly appreciate if any experts can advice me on how to approach with this migration, especially for application server and EAR components.
I have done the below research:
Server: (Is there any vendor who supports JDK 9 for EAR deployment?)
The latest version of WebLogic 12.2.1.3 is still not compatible with JDK 9
The latest version of GlassFish 5 is still not compatible with JDK 9 (tried mapping AS_JAVA in asenv.conf file to JDK 9 and it did not work)
Tomcat 9 web server is compatible with JDK 9, but TomEE plugin to deploy EJBs as an EAR is still incompatible with JDK 9.
IDE:
Apache NetBeans9 is compatible with JDK 9. However, none of the enterprise modules (EJB, EAR) are migrated from NetBeans8. I have tried adding plugins in NetBeans 9 from NetBeans 8 repository, but still EJB projects only work on JDK 8.
At the first glance, Eclipse Photon seems to be compatible with JDK9. I have added e(fx)clipse plugin and was able to add JavaFX support. Still I could not deploy any EJB's (as an EAR built on JDK 9) on WebLogic 12.2.1.3.
Not sure for all the stack but TomEE 7.0.5 should run fine on JDK 9.

Add Tomcat 9 to eclipse

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

Categories