Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Glassfish Server in Eclipse manually

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?

like image 296
InCh Avatar asked Aug 08 '14 09:08

InCh


People also ask

Can I use GlassFish in eclipse?

Installing Glassfish toolsOpen Eclipse Marketplace from Help-> Eclipse Marketplace menu. Type Glassfish in the search box to filter Glassfish plugins. In the search result, find Glassfish tools , click the Install button to install it. After it is installed, restart Eclipse IDE to apply the plugin.

Does Eclipse support GlassFish 6?

Glassfish 6 are not supported in eclipse (Eclipse support for Glassfish 6) Bookmark this question.

What is GlassFish open source server?

Oracle GlassFish Server is the world's first implementation of the Java Platform, Enterprise Edition (Java EE) 6 specification. Built using the GlassFish Server Open Source Edition, Oracle GlassFish Server delivers a flexible, lightweight, and production-ready Java EE 6 application server.


2 Answers

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.

enter image description here

enter image description here

Right click on blank area to use context menu, choose New\Server

enter image description here

Press link "Download additional server adapters"

enter image description here

Choose "GlassFish Tools" from Oracle vendor.

enter image description here

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

like image 194
Do Nhu Vy Avatar answered Sep 19 '22 01:09

Do Nhu Vy


I could fix it using below steps.(GlassFish server3.1.2.2 and eclipse Luna 4.4.1)

  1. Help > Eclipse Marketplace > Search GlassFish > you will see GlassFish Tools > Select appropriate one and install it.
  2. Restart eclipse
  3. Windows > Open Views > Other > Server > Servers > GlassFish 3.1
  4. You will need jdk1.7.0 added to Installed JRE. Close the previous window to take effect of new default jdk1.7.0.
like image 30
user4530877 Avatar answered Sep 19 '22 01:09

user4530877