I have downloaded the newest version of apache tomcat and I want to connect tomcat with eclipse .
When I try to I get
I have seen many answers about this but in ubuntu not windows 10 . My eclipse version is 2020-09 (4.17.0) I don't know maybe that's the problem
I also saw that Apache Tomcat version 9 supports JAVA EE , 5,6,7 ,8 Web modules and I have jdk 14.02 as my path . Maybe this is the problem
Using a version installed to be run by your O.S. means an unpredictable file and jar layout, and the server tools need to know the layout to gather the right libraries to run Tomcat properly with full control of the created process for debugging. Use a zip file or tarball straight from tomcat.apache.org instead.
Related
In Apache NetBeans 12.0 LTS
When I'm trying to install Hibernate plugin it says :
Some plugins require plugin Freemarker Integration to be installed
The plugin Freemarker Integration is requested in implementation version 238.
The following plugin is affected:
Hibernate
But there's on Apache NetBeans Plugin Portal Freemarker plugin is not available.
I tried installing Freemarker plugin from old plugin portal of NetBeans
FreeMarker support for NetBeans
but getting same error.
I'm using:
Debain 10.4 Buster LXQt AMD 64-bits
openjdk 11.0.7 2020-04-14 LTS
Apache NetBeans 12.0 LTS
I've also created issue there at Apache's JIRA issue tracker
No dependent plugins are available at Apache NetBeans plugin portal for Hibernate
But I think they will not pay attention.
This causes because there is a conflict for the version of freemarker, netbeans is looking for freemarker.jar with OpenIDE-Module-Implementation-Version: 238, but in my case the OpenIDE-Module-Implementation-Version: was 239 and that was causing the issue.
You can fix this by
Close your running netbeans application
Download freemarker.jar with OpenIDE-Module-Implementation-Version: 238 org-netbeans-libs-freemarker-RELEASE81.jar and rename the downloaded library to org-netbeans-libs-freemarker.jar
Navigate to ide/modules subfolder in apache netbeans installation directory
You will find the freemarker library org-netbeans-libs-freemarker.jar, replace this with your downloaded library.
Restart the netbeans(or perhaps restarting the computer should work) and you should be able to download the hibernate plugin
ps- you can check the OpenIDE-Module-Implementation-Version by opening the jar library as an archive and inside the META-INF/MANIFEST.MF file
Also refer this for more information
This is the way.
unistall netbeans.
install netbeans (but not started it yet)
Open: "netbeans-12.0/netbeans/ide/modules/org-netbeans-libs-
freemarker.jar" with an arquive manager and go to META-INF/MANIFEST.MF
change the value 239 for 238 in lines. To be like this:
OpenIDE-Module-Implementation-Version: 238
OpenIDE-Module-Specification-Version: 2.42.0.238
close and update you change.
start the netbeans for the fist time and all will go well.
The hibernate plugin was not anything important. I was trying to install that one, but because of the above error, Netbeans did not load, and on top of it, the CentOS-8-Stream came to logged-out.
So, I remove the hibernate instances.
cd ~/.netbeans/13/
grep -r "hibernate"
Resolution: Removal of the faulty plugins
Removed the JAR s from /home/jacobd/netbeans-13/netbeans/java/modules/locale/
Removed the XML s from /home/jacobd/netbeans-13/netbeans/java/config/Modules name matching hibernate, two xml will be here.
I had the same issue with NetBeans version 16 and solved it by installing freemaker.jar module which replaced the default module that comes with NetBeans.
Please try the following
step 1: Download freemaker modules from the following link:
https://drive.google.com/file/d/1AySqHHh73y1SDXU9H0wqGtu4VqMWYfRi/view?usp=sharing
step 2:
Close all NetBeans running applications and
copy the downloaded module and go to the NetBeans installation directory as follows:
C:\Program Files\NetBeans-16\netbeans\ide\modules
first delete the org-netbeans-libs-freemar.jar and paste the downloaded module to replace org-netbeans-libs-freemar.jar that comes with NetBeans ( I mean the one you deleted)
Start NetBeans and go to Tools > Plugins >Available Plugins then scroll until you see Hibernate
This is my screenshot of my installation on windows 10
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
I installed Eclipse and tomcat6 service on windows 8
i get the tomcat front page at localhost:8080 and in server tab in eclipse it says "Tomcat v6.0 at localhost Started, Syncronized" however im unable to run any of my imported projects on server.
Right click on server -> add and remove... -> There are no resources that can be added
Right click on project -> Properties -> Facets, Dynamic web module is checked
in project properties, in targeted runtimes i only get option for tomcat7
and if i click show all runtimes it will show 6.0 but it's diabled and cannot be selected.
Does this mean i have to uninstall 6 and install 7 instead or what?
all the project files are from school so i dont know about them but i dont remember anyone saying that i need to install newer version...
Trying to run on server just brings up server selection without possibility to use existing server...
It has to do with the Dynamic Web Module Version. Tomcat 6 supports upto version 2.5 if I am right. So upgrade to use a newer tomcat (By the way tomcat 6 is very old and you should use at least 8) or use an older Dynamic Web Module Version.
I had some troubles to install Eclipse with tomcat 6. The problem was that the server was not compatible with the Dynamic Web.
For that reason download a new version of the server. Just change the parameters and you will run your app. Also be sure about you have the JDK that you need installed.
Last version of Apache Tomcat:
https://tomcat.apache.org/download-90.cgi
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
The instructions for the Java EE tutorial specify to download and install the following :
Java SE SDK
Java EE SDK
Netbeans
I downloaded SE 8, EE 7 & Netbeans 8.0.2
Installed SE ok, and EE ok - it's essentially glassfish4. While installing Netbeans I'm instructed in the tutorial to NOT install glassfish and, when done with Netbeans to add glassfish to the Netbeans installation.
When I do so, I get the following message (I'm pointing # c:\glassfish4\glassfish which is the correct path AFAIK)
Not a valid GlassFish Server installation.
I've seen another person in the last week with this same error, I looked into that problem and it said that there should be a file in a directory to solve the problem (C:\glassfish4\glassfish\config\glassfish.container). That file does exist on my system.
How does netbeans determine a valid Glassfish installation?
ETA: I followed zapl's advice below, reinstalled Netbeans with it's default Glassfish and, when I right click on Glassfish 4.1 Server, all options are greyed except Refresh and Remove (so, no start/stop, no view of Admin Console, Server Log or Update Center)
I ran into the same problem. It is a known Netbeans-Bug: https://netbeans.org/bugzilla/show_bug.cgi?id=253008
There appear to be two solutions:
Use a nightly Build Netbeans Version equal or higher than 201506180001
In /glassfish/lib/install/applications/__admingui/WEB-INF/lib link (or copy) console-core-4.2-SNAPSHOT.jar to console-core-4.1.jar. After that netbeans is able to find the JAR file and add Glassfish nightly as a Glassfish 4.1 server.
I renamed the JAR as in solution 2 and now it works fine...
Hope this helps!