{"id":17148,"date":"2015-06-18T13:59:02","date_gmt":"2015-06-18T18:59:02","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17148"},"modified":"2022-06-03T03:44:19","modified_gmt":"2022-06-03T08:44:19","slug":"install-glassfish-4-1-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/","title":{"rendered":"Install GlassFish 4.1 on Centos 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignleft wp-image-17150\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps.png\" alt=\"install-glassfish-on-a-centos-7-vps\" width=\"155\" height=\"108\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps.png 210w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps-143x100.png 143w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps-50x35.png 50w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps-75x53.png 75w\" sizes=\"(max-width: 155px) 100vw, 155px\" \/>In this tutorial, we will explain how to install GlassFish Server Open Source Edition 4.1 on a Centos 7.1 VPS. GlassFish is an open-source application server project and it&#8217;s Oracle&#8217;s concrete implementation of Java EE. This guide should work on other <a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a> systems as well but was tested and written for a <a title=\"Centos VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Centos 7 VPS<\/a>.<br \/>\n<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e58c339e216\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e58c339e216\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#1-Login-to-your-VPS-via-SSH\" >1. Login to your VPS via SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#2-Update-the-system-and-install-necessary-packages\" >2. Update the system and install necessary packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#3-Create-a-new-system-user\" >3. Create a new system user<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#4-Install-Oracle-JDK-8\" >4. Install Oracle JDK 8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#5-Download-and-extract-the-GlassFish-41-archive\" >5. Download and extract the GlassFish 4.1 archive<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#6-Create-systemd-service\" >6. Create systemd service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#7-Firewall-configuration\" >7. Firewall configuration<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Login-to-your-VPS-via-SSH\"><\/span>1. Login to your VPS via SSH<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>ssh root@vps<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Update-the-system-and-install-necessary-packages\"><\/span>2. Update the system and install necessary packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>[root]$ yum -y update\n[root]$ yum install unzip wget<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Create-a-new-system-user\"><\/span>3. Create a new system user<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create a new user for the Glassfish server:<\/p>\n<pre>[root]$ adduser \\\n   --comment 'Glassfish User' \\\n   --home-dir \/home\/glassfish \\\n   glassfish\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Install-Oracle-JDK-8\"><\/span>4. Install Oracle JDK 8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>GlassFish 4.1 requires JDK 8 u20 or above. Use the command below to download the Oracle JDK 8 from the command line using wget:<\/p>\n<pre>[root]$ wget --no-cookies \\\n    --no-check-certificate \\\n    --header \"Cookie: oraclelicense=accept-securebackup-cookie\" \\\n    \"http:\/\/download.oracle.com\/otn-pub\/java\/jdk\/8u45-b14\/jdk-8u45-linux-x64.rpm\" \\\n    -O jdk-8u45-linux-x64.rpm\n<\/pre>\n<p>Once the rpm package is downloaded, install it with:<\/p>\n<pre>[root]$ yum install jdk-8u45-linux-x64.rpm\n<\/pre>\n<p>To check if JAVA has been properly installed on your CentOS box run <code>java -version<\/code>, and the output should be similar to the following:<\/p>\n<pre>[root]$ java -version\njava version \"1.8.0_45\"\nJava(TM) SE Runtime Environment (build 1.8.0_45-b14)\nJava HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Download-and-extract-the-GlassFish-41-archive\"><\/span>5. Download and extract the GlassFish 4.1 archive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Switch to the glassfish user:<\/p>\n<pre>[root]$ su - glassfish<\/pre>\n<p>As the glassfish user, download and extract the latest GlassFish 4.1 archive<\/p>\n<pre>[glassfish]$ wget http:\/\/download.java.net\/glassfish\/4.1\/release\/glassfish-4.1.zip\n[glassfish]$ unzip glassfish-4.1.zip\n[glassfish]$ rm -f glassfish-4.1.zip\n<\/pre>\n<p>Switch back to the root user:<\/p>\n<pre>[glassfish]$ exit<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"6-Create-systemd-service\"><\/span>6. Create systemd service<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a new systemd service for GlassFish, open your editor of choice and create a new file:<\/p>\n<pre>[root]$ nano \/etc\/systemd\/system\/glassfish.service<\/pre>\n<p>and add the following code lines:<\/p>\n<pre>[Unit]\nDescription = GlassFish Server v4.1\nAfter = syslog.target network.target\n\n[Service]\nUser=glassfish\nExecStart = \/usr\/bin\/java -jar \/home\/glassfish\/glassfish4\/glassfish\/lib\/client\/appserver-cli.jar start-domain\nExecStop = \/usr\/bin\/java -jar \/home\/glassfish\/glassfish4\/glassfish\/lib\/client\/appserver-cli.jar stop-domain\nExecReload = \/usr\/bin\/java -jar \/home\/glassfish\/glassfish4\/glassfish\/lib\/client\/appserver-cli.jar restart-domain\nType = forking\n\n[Install]\nWantedBy = multi-user.target\n<\/pre>\n<p>Start the glassfish server and set it to start automatically on boot:<\/p>\n<pre>systemctl enable glassfish.service\nsystemctl start glassfish.service\n<\/pre>\n<p>To verify the unit started, run <code>journalctl -f -u glassfish.service<\/code> and you should see something like below:<\/p>\n<pre>[root]$ journalctl -f -u glassfish.service\nApr 26 17:36:13 vps systemd[1]: Starting GlassFish Server v4.1...\nApr 26 17:36:19 vps java[2767]: Waiting for domain1 to start .....\nApr 26 17:36:19 vps java[2767]: Successfully started the domain : domain1\nApr 26 17:36:19 vps java[2767]: domain  Location: \/home\/glassfish\/glassfish4\/glassfish\/domains\/domain1\nApr 26 17:36:19 vps java[2767]: Log File: \/home\/glassfish\/glassfish4\/glassfish\/domains\/domain1\/logs\/server.log\nApr 26 17:36:19 vps java[2767]: Admin Port: 4848\nApr 26 17:36:19 vps java[2767]: Command start-domain executed successfully.\nApr 26 17:36:19 vps systemd[1]: Started GlassFish Server v4.1.\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Firewall-configuration\"><\/span>7. Firewall configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The default GlassFish port numbers are:<\/p>\n<ul>\n<li>Administration: 4848<\/li>\n<li>HTTP listener: 8080<\/li>\n<li>HTTPS listener: 8181<\/li>\n<\/ul>\n<p>For example to open port 8080 in the firewall, run:<\/p>\n<pre>firewall-cmd --zone=pubic --add-port=8080\/tcp --permanent  \nfirewall-cmd --reload  \n<\/pre>\n<p>That&#8217;s it. You have successfully installed your GlassFish . For more information about GlassFish , please refer to the Glassfish website.<\/p>\n<hr \/>\n<p>Of course you don\u2019t have to Install GlassFish 4.1 on Centos 7,\u00a0 if you use one of our <a title=\"linux vps hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24&#215;7 and will take care of your request immediately. You might also want to read our guide on <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-glassfish-5-on-centos-7\/\">How to Install GlassFish 5 on CentOS 7<\/a>.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span><\/strong>. If you liked this post, on how to\u00a0Install GlassFish 4.1 on Centos 7,\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will explain how to install GlassFish Server Open Source Edition 4.1 on a Centos 7.1 VPS. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Install GlassFish 4.1 on Centos 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#more-17148\" aria-label=\"Read more about Install GlassFish 4.1 on Centos 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":17150,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13,1707],"tags":[165,77,89],"class_list":["post-17148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-tutorials","category-web-servers","tag-glassfish","tag-java","tag-jdk","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install GlassFish 4.1 on Centos 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Install GlassFish 4.1 on Centos 7 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install GlassFish 4.1 on Centos 7\" \/>\n<meta property=\"og:description\" content=\"Install GlassFish 4.1 on Centos 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2015-06-18T18:59:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:44:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps.png\" \/>\n\t<meta property=\"og:image:width\" content=\"210\" \/>\n\t<meta property=\"og:image:height\" content=\"147\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Install GlassFish 4.1 on Centos 7\",\"datePublished\":\"2015-06-18T18:59:02+00:00\",\"dateModified\":\"2022-06-03T08:44:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/\"},\"wordCount\":362,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/install-glassfish-on-a-centos-7-vps.png\",\"keywords\":[\"glassfish\",\"java\",\"jdk\"],\"articleSection\":[\"CentOS\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/\",\"name\":\"Install GlassFish 4.1 on Centos 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/install-glassfish-on-a-centos-7-vps.png\",\"datePublished\":\"2015-06-18T18:59:02+00:00\",\"dateModified\":\"2022-06-03T08:44:19+00:00\",\"description\":\"Install GlassFish 4.1 on Centos 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/install-glassfish-on-a-centos-7-vps.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/install-glassfish-on-a-centos-7-vps.png\",\"width\":210,\"height\":147},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-4-1-on-a-centos-7-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install GlassFish 4.1 on Centos 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install GlassFish 4.1 on Centos 7 | RoseHosting","description":"Install GlassFish 4.1 on Centos 7 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/","og_locale":"en_US","og_type":"article","og_title":"Install GlassFish 4.1 on Centos 7","og_description":"Install GlassFish 4.1 on Centos 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2015-06-18T18:59:02+00:00","article_modified_time":"2022-06-03T08:44:19+00:00","og_image":[{"width":210,"height":147,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Install GlassFish 4.1 on Centos 7","datePublished":"2015-06-18T18:59:02+00:00","dateModified":"2022-06-03T08:44:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/"},"wordCount":362,"commentCount":7,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps.png","keywords":["glassfish","java","jdk"],"articleSection":["CentOS","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/","name":"Install GlassFish 4.1 on Centos 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps.png","datePublished":"2015-06-18T18:59:02+00:00","dateModified":"2022-06-03T08:44:19+00:00","description":"Install GlassFish 4.1 on Centos 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/04\/install-glassfish-on-a-centos-7-vps.png","width":210,"height":147},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install GlassFish 4.1 on Centos 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/17148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=17148"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/17148\/revisions"}],"predecessor-version":[{"id":36557,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/17148\/revisions\/36557"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/17150"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=17148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=17148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=17148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}