How do I create a Jetty Server in Eclipse Juno? - eclipse

This is what I've done so far:
From "Install New Software", I chose the site: "http://eclipse-jetty.sourceforge.net/update/"
Installed "Eclipse Jetty Feature".
Restarted Eclipse after the installation.
However, Jetty does not show up in the list of servers in the New Server wizard.
Any ideas what I'm doing wrong here? I'm a complete newbie to Java. I'm a C# programmer and I'm learning to use Eclipse and such. Sorry if I'm missing something obvious.
UPDATE 1
Screenshot of New Server > Download additional server adapters
If I attempt to install the server adapter, I see this error message during the installation:
UPDATE 2
Screenshot of Installed software
Screenshot of New Server Wizard
Screenshot of Run Configurations
Screenshot of Preferences > Run/Debug > Perspectives

Can you confirm Eclipse Jetty Feature is installed?
Help -> Install New Software > what is already installed?
Then to run Jetty you can add it in the Run Configurations or Debug Configurations under Jetty Webapp
Quick tutorial (you don't need the "Run Jetty Run" plugin)

Related

Cannot install Glassfish tools in Eclipse Photon / Eclipse IDE

Eclipse cannot install glassfish tools. under Oracle folder of server there is only options for Webllogic and cloud, The glassfish option appears only ONE time whe I first tried to install it. an after it no longer shows up
I have tried to remove eclipse an re-extartc it again but the same problem still occurs. What's the problem here? does Anyboy have installed glassfish tools on Phtoton successfully?
Go to Help > Install New Software...
Add the GlassFish Tools Update Site
http://download.eclipse.org/glassfish-tools/1.0.0/repository
as repository (or add the URL under Work with: directly) and install the tools via the wizard.
It is a bug in the new eclips. Try eclipse neon instead of your current eclipse and it will work
this will work for Eclips lastest version up to this point:
1-first go to : https://projects.eclipse.org/projects/webtools.glassfish-tools/downloads
2-Install Eclipse Sapphire: https://download.eclipse.org/sapphire/9.1.1/repository/
3-then go to : https://download.eclipse.org/glassfish-tools/1.0.1/repository/
4-copy URL link above.
5-open your eclips : go to help > install new software
6-paste the link that you copied in "Work with" text field and then press ENTER
7-then click on next and follow installation.( your need to restart your eclips after finishing installation )
8-enjoy buddy.
Download the sapphire .zip plugin and install it to eclipse
http://mirrors.xmission.com/eclipse/sapphire/9.1.1/sapphire-repository-9.1.1.zip
Download the glassfish .zip plugin and install it in to eclipse
https://download.eclipse.org/glassfish-tools/1.0.1/gf-tools-repository-1.0.1.201904090220.zip
Download the Glassfish server and add it as a new server to eclipse
http://mirrors.xmission.com/eclipse/glassfish/glassfish-5.1.0.zip
I've tried with Eclipse 2021-03, but it doesn't work.
It seems to be working with Eclipse 2020-12.
Instructions can be found here (including the right Eclipse version): https://projects.eclipse.org/projects/webtools.glassfish-tools/downloads
Hope it can be of some help.
Go to Help-> Install New Software -> Add..
Add this URL to Location, http://download.eclipse.org/glassfish-tools/1.0.0/repository .
Add a Name and proceed
Eclipse GlassFish Tools is archived. The project become inactive and you can not use for new version of Eclipse IDE. You can you Payara Tools instead:
Payara Server is an open-source application server derived from GlassFish Server Open Source Edition, so you can use it for Glassfish as well.
Follow These steps:
Find Payara Tools in Eclipse Marketplace...
When create new server choose payara and in configuration of Payara location add Glassfish server location instead:

Adding Tomcat into Eclipse

I am trying to add a tomcat server into runtime environments. I successfully installed tomcat. I already have Java EE eclipse, BUT after I click search under Window->Preferences->Server->Runtime environments and select apache tomcat and then click OK a window with the following text popups: No new server runtime environments were found. What am I doing wrong? I thought after switching to Java EE and installing tomcat I will be able to add the RE... Many thanks in advance!
After trying to add the RE: no tomcat servers list!!!
after trying to search (C:/Program Files/Apache...)
and finally the popup after choosing "apache software foundation" and hitting ok
You need to specify the server runtime in that window. From the browse button, select the base path of the directory where you have installed tomcat and hit next. Hopefully that should do it. There should also be an option to download and install, if you have internet connectivity.
If you dont see any server types in the 'add new Server' dialog, then you are probably missing the server adapters. In which case click on the 'Download additional server adapters' link. This will allow you to pick and download 'tomcat server adapter'. Once that is done.
Some screenshots etc would also help in understanding and helping you resolve your issue.
Hope this helps.
Run time environment click on add button select Apache tomcat-> Click on next button -> Browse the Tomcat 7.0 path -> Finish.
Because you are not having JST server adapters...you are not able to see installed apache in eclipse ....just install this through 'install new software' in help menu ....
You are most likely are missing the Eclipse Tomcat Server Feature. You can either try reinstalling all of the WTP plugins or maybe install Spring STS which I'm sure has the plugin installed.

Apache Tomcat is missing in Eclipse 3.7

I am planning to using Apache Tomcat for my development purpose in Eclipse IDE. I have created a webservice application, for this I need to configure Installed runtime as Tomcat Server, to run the service.
When I try to install it, I find it was missing in the list of servers.
How can I resolve this?
Window > Show View > Servers. From there, Right click > New > Server and you should see a first group called Apache, with plenty of Tomcats to choose from.
It might depend on the version of Eclipse you are using. I know for sure that Eclipse for Java EE Developers contains these servers, Eclipse Classic or Eclipse for Java Developers might not include them.
I got this problem and found this solution, may be it can help you:
- 1st: Copy file servlet-api.jar in folder install tomcat:ex:C:\tomcat\common\lib\servlet-api.jar into folder install java ex: C:\Program Files\java\jdk1.5\jre\lib\ext.
-2nd: open: C:\tomcat\conf\context.xml
add Text:
< Context reloadable = “true”>
WEB-INF/web.xml
…….
3rd: Download file tomcatPlugin….
unzip into "plugin" folder of eclipse
Start eclipse, go to Window\preference\
In Preference Tab:
Chose Tomcat and config:
+Tomcat version: Your installed tomcat version
+Tomcat home: link to folder that you unzip tomcat (C:\Tomcat5.5)
Manager App username: admin
Manager App password: admin
Clik OK
Restart Eclipse
OK. GOOD LUCK ^^
Source: http://maivanha.blogspot.com/2007/11/i.html

Running jetty from eclipse

Please let me know how can I configure jetty server to run from eclipse IDE?
Also, suggest me some good plugins for the same. I downloaded jetty launcher but not able create new configuration with it. Please help.
The best way I found to run Jetty from eclipse (and debug, etc.) was this : http://neelzone.wordpress.com/2007/06/18/jetty-and-eclipse-integration/
Basically, you create a java project, put jetty's code in it, create a context file in jetty/contexts that points to your web application, and Run as Java application.
No need for a plugin.
With Eclipse Kepler, I found two plugins, "Eclipse Jetty" and "Run Jetty Run" in the
market place.
I tried "Run Jetty Run" first but couldn't make it work (css file didn't load), but with
"Eclipse Jetty", it worked out of the box for my project.
I have followed the below steps to set up Jetty server in my eclipse:
(1) Download the 'net.sourceforge.eclipsejetty.launcher' jar (plugin) from the below URL:
http://sourceforge.net/projects/eclipse-jetty/
(2) Copy the downloaded jar file to your eclipse 'plugins' folder (Example: C:\eclipse-jee-luna\plugins)
(3) Restart Eclipse
(4) Go to Eclipse Workspace -> Right click on your web project -> Run -> Run Configurations > Jetty Web App > Set the 'WebApp Directory' > Click on Run
After following the above steps, I am able to successfully deploy & run my web project using Jetty Server in Eclipse.
I hope this is helpful and easy to set up.

Installation of Jetty into Eclipse

I've had Jetty recommended as a good container for fast and simple development, in my case, Java Server Faces. I wish to use it with my Eclipse IDE (Version: 3.4.1), but quite frankly, can't figure out how.
I've tried various outdated plugins, only with large amounts of errors in return, so I'm hoping someone could guide me from downloading the right version to installing it, and being able to press "RUN", and see a simple Hello World in JSP/JSF work.
Cheers.
I use the Run Jetty Run plugin. Its very simple and easy to use
You could follow that tutorial from the eclipse help pages.
But check the version of your jetty. From this thread, V6 is recommended (V9 would work too, from Jacob's comment).
I believe the J2EE Preview server is hard coded to that internal Eclipse supplied version of Jetty.
However, you can execute "Window -> Preferences" and on the "Server -> Server Runtime Environments" page, click the Add button. Click the "Download additional server adapters" link and a dialog should appear and eventually list a Jetty Generic Server Adapter you can try.
I have followed the below steps to set up Jetty server in my eclipse:
(1) Download the 'net.sourceforge.eclipsejetty.launcher' jar (plugin) from the below URL:
http://sourceforge.net/projects/eclipse-jetty/
(2) Copy the downloaded jar file to your eclipse 'plugins' folder (Example: C:\eclipse-jee-luna\plugins)
(3) Restart Eclipse
(4) Go to Eclipse Workspace -> Right click on your web project -> Run -> Run Configurations -> Jetty Web App -> Set the 'WebApp Directory' -> Click on Run
After following the above steps, I am able to successfully deploy & run my web project using Jetty Server in Eclipse.
I hope this is helpful.