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!
Related
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 Glassfish tools using Eclipse Mars on Windows 7 64 bit. I am getting an error "The specified directory is not a valid GlassFish installation", mostly because I can't find the actual installation root. After installing it through the Marketplace it doesn't seem to be on my hard drive.
This link suggests it should be on the top level of my C: drive, but it isn't there.
I tried to search for it, but searching my entire drive I only find C:\Program Files\eclipse\features\oracle.eclipse.tools.glassfish_8.6.1.201603011333 which doesn't seem to be what I'm looking for and Eclipse agrees.
I found this work around, but that is for Java EE 7. Mars requires Java EE 8.
Some tutorials show a step in Eclipse where the server is installed in a folder of my creation, but that step never comes up.
Not sure where to go from here. Any suggestions?
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
Here is the things I tried
In Eclipse Mars go to Help-> Install New Software
Click on add button and paste the URL of the update site which is in our case: Eclipse Mars tools for Jboss
Now select the JBossAS Tools plugin and Click "Next"
EDIT :-
Even after doing above points i am not able to see the Jboss server in eclipse mars so i tried below
Go to eclipse market place - > search for Jboss -> Then from List Red Hat Jboss Developer Studio(Mars) 9.0->Confirm
Even now i am not able to see Jboss server in the eclipse add server list so not able to run my application in Jboss server .
Can any one tell me what can be the issue why Jboss server not listed in the server List?
EDIT 1 :-
You need Java 8 to run Eclipse with JBoss Tools 4.3.0.Beta1 even if you don't build and deploy with this version of Java (ie, you can still build and deploy on Java 6 or 7).
See http://tools.jboss.org/blog/2015-06-23-beta1-for-mars.html#java-8-to-run-eclipse-older-runtimes-ok-for-builds-deployment
Are you running with Java 8 ? JBoss Tools/Developer Studio Beta on Mars requires Java 8.
You can use it to develop against older versions of Java just fine though.
I had same problem,I solved it by doing the following
You can install runtimes into Eclipse by selecting Window → Preferences menu and then selecting Server → Runtime Environments from the categories available on the left.
After that jboss appear in the server view
This is b/c eclipse mars installation process goes through installer which will pick the JRE which is installed that time(in my case that was 1.7) and the JBoss need java 1.8 for proper installation b/c of that every time when u start eclipse it shows that some files are not install for jBoss…After eclipse installation if you change the JRE environment it will not change for JBOSS installion….
For me ; i removed JDk1.7 from Application/Java/VirtualMachineEmviroment(JDK1.8 should remain intact) and Re-run eclipse installer. Now install again Jboss tools form eclipse market…This time for new server configuration , there will be Jboss Community folder...
I have GlassFish server3.1.2.2 pre installed on my machine. Which I want to use in my Eclipse Luna
How do I manually configure it to use in Eclipse?
When I tried using Eclipse Market Place i got an error
No repository found at http://download.oracle.com/otn_software/oepe/luna.
I tried searching through net for which I get pointed to the Oracle Enterprise Pack for Eclipse (OEPE) which is of about 485MB.
Is there an another way round for this?
You must use Eclipse WTP (Web Tool Platform), and should use the lastest version is Luna 4.4.
Link download: Eclipse IDE for Java EE Developers
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/lunar
Menu Windows\Show view\Other, choose folder Server, click on Servers.
Right click on blank area to use context menu, choose New\Server
Press link "Download additional server adapters"
Choose "GlassFish Tools" from Oracle vendor.
Then, restart Eclipse.
Or you download GlassFish tools (Supports GlassFish 4.0 and 3.1) from: https://marketplace.eclipse.org/content/glassfish-tools and install manually.
Read more about creating a server: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.wst.server.ui.doc.user%2Ftopics%2Ftwcrtins.html
I could fix it using below steps.(GlassFish server3.1.2.2 and eclipse Luna 4.4.1)
Help > Eclipse Marketplace > Search GlassFish > you will see
GlassFish Tools > Select appropriate one and install it.
Restart eclipse
Windows > Open Views > Other > Server > Servers > GlassFish 3.1
You will need jdk1.7.0 added to Installed JRE. Close the previous window to take effect of new default jdk1.7.0.
This questions seems a little bit outdated but here is my solution.
I assume that you have already downloaded GlassFish on your hard drive and unzipped the files on a directory.
A - Eclipse MarketPlace / Installing GlassFish Tools
The first thing as it is said on previous answers, you have to downloaded GlassFish Tools from eclipse marketplace;
Help -> EclipseMarket Place
And install GlassFish on the screen below;
B - Adding GlassFish Server
Open Server View, if it is not visible on the bottom of the eclipse, then;
Window -> Show View -> Servers
As the server view is visible, simply click "No servers are available. Click this link to create a new server..." as shown below;
C - Adding GlassFish Server
On the New Server window, select GlassFish as shown below. On my experience, there is only one GlassFish option that I can select, instead of several GlassFish options with versions as you can see down below;
D - Configuring GlassFish & Java Locations
Enter the exact GlassFish location and also Java location as you can see below;
E - Last Step
On the last step of this configuration, just leave everything as it is. For simplicity, I don't define an admin password;
Now everything is all set, hope that this helps!
To use Glassfish tools with Eclipse Luna you need Java 8. I also faced this problem because I had Java 7. If you have Java 7 in your environment then download eclipse Kepler. It will work fine.
I had the same issue.
Not able to install neither using Marketplace nor Servers tab.
Following is the alternative.
1) Help -> Install New Software
2) Use url : http://download.oracle.com/otn_software/oepe/12.1.3.6/luna/repository
Above is the OEPE tool provided by oracle for EE development.
3) From all the suggestions, select glassfish tools.
4) Install it.
5) Restart eclipse.
Eclipse 4.4.2 Luna
JDK : 1.8
I had the same problem, to resolve it, go windows -> preferences -> servers and select runtime environment, and now you will see a new window, in the
upper right you will see a option: Download additional server adapter, click and install the glassfish server.
For Eclipse Mars use the similar approach as harshit.
1) Help -> Install New Software
2) Use url: http://download.oracle.com/otn_software/oepe/mars repository Above is the OEPE tool provided by oracle for EE development.
3) From all the suggestions, select Glassfish Tools, (Oracle Weblogic Server Tools, Oracle Weblogic Scripting Tools, Oracle patches, Oracle Maven Tools).
4) Install it.
5) Restart eclipse
In point 3) are 4 tools are in braces, I don't know minimal combination, but only install Glassfish Tools has no effect.
During restart Oepe ask for Java 8 JDK if Eclipse run on on older version.
Eclipse 4.5.0 Mars JDK : 1.8
For Eclipse Luna
Go to Help>Eclipse MarketPlace> Search for GlassFish Tools and install it.
Restart Eclipse.
Now go to servers>new>server and you will find Glassfish server.
You should use eclipse official website and official oracle links.
https://www.eclipse.org/setups/marketplace/?id=2318313
http://download.oracle.com/otn_software/oepe/neon
Use the relevant link for the new version eclipse .
It took me 4 hours to resolve this. Hope this helps others.