Original: http://docs.oracle.com/javaee/7/tutorial/doc/overview009.htmTranslation: Shi Zholin [email protected]1.9 GlassFish Server ToolsGlassFish Server is a compliant implementation of the Java EE 7 platform. In addition to supporting all the APIs described in the previous sections, GlassFish
First, download GlassFish Server Download the appropriate version from the following address:Http://glassfish.java.net/public/downloadsindex.htmlHttp://www.oracle.com/technetwork/java/javaee/downloads/ogs-3-1-1-downloads-439803.htmlSecond, Eclipse install GlassFish Server pluginOn the main menu bar of Eclipse--window--
1. Java environment variable settings
Assume that the JDK installation directory is c: \ Program Files \ Java \ jdk1.6.0 _ 25
1. Set java_home to c: \ Program Files \ Java \ jdk1.6.0 _ 25.
2. Set the PATH value to % java_home % \ bin.
3. Set the classpath value to.; % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. Jar
2. Start glassfish
Glassfish-3.1.2.2 is the glassfosh
You can add an associated application server in netbeans so that we can release the application in netbeans.ProgramAfter,
You can deploy an application to an application server with one click.
In addition, after modifying the application, it can also be reflected to the corresponding application server in real time, facilitating web application debugging.
1.
1.glassfish4.0:https://glassfish.java.net/download.html#gfosetab2. Transfer the downloaded Glassfish-4.0.zip to the server/home/[usrname]/opt directory, using the command transfer:SCP glassfish-4.0.zip [email protected] [usrname][1-5]:/home/[usrname]/opt3. Create folder:/HOME/[USRNAME]/OPT/GLASSFISH4, using the command:sudo mkdir glassfish4/home/[usrname]/opt/4.
Configure the glassfish server in netbeans
1. Start the glassfish server and enter http: // localhost: 4848/in the address bar to enter the server configuration interface, as shown below:
2. Select JDBC of resources under common tasks. The JDBC resources and connection p
Glassfish Arbitrary File Reading Vulnerability in an app server of youfu
Arbitrary File Reading Vulnerability in glassfish app ServerIp211.151.62.149Verify if the vulnerability exists
http://211.151.62.149:4848/theme/META-INF/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passw
Release date:Updated on:
Affected Systems:Oracle GlassFish Enterprise Server 3.1.1Description:--------------------------------------------------------------------------------Cve id: CVE-2012-0551
Oracle GlassFish Server is an open-source and open community platform for building and deploying next-generation applicati
Glassfish solves garbled characters when receiving requests on the SpringMVC server. glassfishspringmvc
Environment Description
Front-end: jsp
Backend: SpringMVC Controller
Although pageEncoding has been set on the jsp page:
Then, in the controller, if the corresponding read parameter contains Chinese characters, garbled characters appear, for example:
Public ModelAndView search (@ RequestParam ("
1. Add the database driver package to the glassfishv3 \ glassfish \ Domains \ domain1 \ Lib \ ext directory of the existing instance on the server.
2. Create a database connection pool
3. Create data as a connection Resource
4. Publish an application
Note: In earlier versions of glassfish V3, if you did not add a database driver package to glassfishv3,
GlassfishServer is not widely used in China. It is difficult to find a Chinese post on the Internet if you have any questions. You can search for many answers in English. One of my own development projects uses glassfishV3To deploy the EJB application. The client uses wing to call the remote interface service. Many problems were encountered in the process, and finally the project was finally completed.
If you want your glassfish
Welcome to GlassFish OSGI-JAVAEE Special topic! Since the beginning of GlassFish v3, a new feature has been added to the GlassFish, which is GlassFish Osgi-javaee. This topic will be divided into nine sections to introduce GlassFish Osgi-java EE-related knowledge:
Part1: A
############################################################Compiling GlassFish (MAVEN project)############################################################"Configure Maven"Configuring Maven Settings.xml"Configuring the compilation Environment"To set the memory size:Set maven_opts=-xmx1024mCompilerCD \main\nucleusMVN install-dskiptestsCD \main\appserverMVN install-dskiptests-dskiptests means skipping the test session.Product: \main\appserver\distributi
Create a data source (Create a database connection pool) and a glassfish connection pool in glassfish
1. Enter http: // localhost: 4848 in the browser to log on to the glassfish Domain Management Console. The default username and password are amin and adminadmin. (You can also right-click the NetBeans service tab -- server
Change the Glassfish default password and allow remote logon. glassfish remote Logon
Change default password
1. Open the Command Prompt window and enter the glassfish/bin directory;
2. Enter the command
Asadmin
Enter the management mode:
Enter:
Change-admin-password
Note that the default password is blank. Press enter when entering the password.
Allo
Replace Tomcat 5.x with glassfish v2
1. Background
After using Tomcat for many years, no matter whether it is a development environment or a production environment, we should say that everyone is basically satisfied with it.However, there is no problem at all. From the developer's point of view, the main disadvantage of Tomcat is its weak hot deployment.(Hot deploy) capability. modify a Java class. After saving, Tomcat will re-load this class,
-jar filename. jar.After installation, run the command in the glassfish directory.Ant-F setup. xml. JDK 5 and ant 1.6.2 are required to install glassfish (after installation, glassfish includes ant 1.6.2, under the \ glassfish \ ant \ lib directory ). For detailed installation steps, refer to here.
The Eclipse plug-i
https://i.cnblogs.com/EditPosts.aspx?postid=7596859Tomcat Jboss Glassfish Three common web container comparison First, Reason:The new company platform is pure Java architecture, useful to Java Web (JSP), Java Business (EJB), Nginx, Websphere MQ, MySQL. You know that Java is running in a container,The GlassFish container is used for the operation of the EJB.What is EJB? EJB is a
are three methods: Put the war or ear in the glassfish/domain/autodeploy list without any score, and the glassfish will be automatically deployed after it is started. The second is to deploy and use the command asadmin deploy. In addition, asadmin updeploy uninstalls the actual application. Get more help through asadmin deploy -- help and asadmin undeploy -- help.
Third, go to the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.