- Java EE 8 Development with Eclipse
- Ram Kulkarni
- 217字
- 2021-06-18 18:59:55
Installing the GlassFish server
Download GlassFish from https://glassfish.java.net/download.html. GlassFish comes in two flavors: Web Profile and Full Platform. Web Profile is like Tomcat, which does not include EJB support. So download the Full Platform.
Unzip the downloaded file in a folder. The default port of the GlassFish server is 8080. If you want to change that, open glassfish/domains/domain1/config/domain.xml in a text editor (you could open it in Eclipse too, using the File | Open File menu option) and look for 8080. You should see it in one of the <network-listener>. Change the port if you want to (which may be the case if some other application is already using that port).
To start the server, run the startserv script (.bat or .sh depending on the OS you use). Once the server has started, open a web browser and browse to http://localhost:8080. You should see a page like the following:

Figure 1.8: The default Glassfish web application
This page is located at glassfish/domains/domain1/docroot/index.html. Click on the go to the Administration Console link in the page to open the GlassFish administrator (see the following screenshot):

Figure 1.9: The Glassfish administrator
For details on administrating the GlassFish server, refer to https://javaee.github.io/glassfish/doc/5.0/administration-guide.pdf.
To stop the GlassFish Server, run the stopserv script in the glassfish/bin folder.
- Mastering JavaScript Functional Programming
- C++程序設(shè)計(第3版)
- CMDB分步構(gòu)建指南
- PostgreSQL Cookbook
- C語言程序設(shè)計(第2版)
- C語言程序設(shè)計
- Learning Neo4j 3.x(Second Edition)
- Hands-On Full Stack Development with Go
- RISC-V體系結(jié)構(gòu)編程與實踐(第2版)
- MyBatis 3源碼深度解析
- 奔跑吧 Linux內(nèi)核
- Practical Maya Programming with Python
- Python機(jī)器學(xué)習(xí)與量化投資
- Building Apple Watch Projects
- Spring Boot 2+Thymeleaf企業(yè)應(yīng)用實戰(zhàn)