<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silveira Neto &#187; Server</title>
	<atom:link href="http://silveiraneto.net/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net</link>
	<description>the world is a pixel</description>
	<lastBuildDate>Sun, 08 Jan 2012 05:17:57 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Glassfish on Linux</title>
		<link>http://silveiraneto.net/2008/09/07/glassfish-on-linux/</link>
		<comments>http://silveiraneto.net/2008/09/07/glassfish-on-linux/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 17:24:14 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[GlassFish]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java EE]]></category>
		<category><![CDATA[JEE]]></category>
		<category><![CDATA[Load Balance]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1239</guid>
		<description><![CDATA[First, check if you have Java installed: $ java -version java version &#8220;1.6.0_10-rc&#8221; Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28) Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing) Now download the last version of Glassfish application server, I&#8217;m using Glassfish V2 for Linux. It&#8217;s a jar package. Execute it. $ java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux.jar You [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-full wp-image-1241" title="Glassfish logo" src="http://silveiraneto.net/wp-content/uploads/2008/09/glassfish_logo_large.gif" alt="" width="212" height="94" /></p>
<p>First, check if you have Java installed:</p>
<blockquote><p>$ java -version<br />
java version &#8220;1.6.0_10-rc&#8221;<br />
Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28)<br />
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)</p></blockquote>
<p>Now download the last version of <a title="Download glassfish" href="https://glassfish.dev.java.net/downloads">Glassfish application server</a>, I&#8217;m using <a title="Glassfish v2 download" href="https://glassfish.dev.java.net/downloads/v2ur2-b04.html">Glassfish V2</a> for Linux. It&#8217;s a jar package. Execute it.</p>
<blockquote><p>$ java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux.jar</p></blockquote>
<p>You be asked about the license agreement (<a href="https://glassfish.dev.java.net/public/CDDL+GPL.html">CDDL+GPL</a>).</p>
<p style="text-align: center;"><img class="size-full wp-image-1243 aligncenter" title="license" src="http://silveiraneto.net/wp-content/uploads/2008/09/license.png" alt="" width="300" height="249" /></p>
<p>Files will be decompressed in a directory named glassfish.</p>
<blockquote><p>$ cd glassfish</p></blockquote>
<p>Now we need to continue the installation. You can have <a href="http://ant.apache.org/">Ant</a> installed in your system or, like I&#8217;m doing, use a version that comes the Glassfish package.</p>
<blockquote><p>$ chmod +x -R lib/ant/bin<br />
$ lib/ant/bin/ant -f setup.xml</p></blockquote>
<p><strong>Tip:</strong> if you have more servers and want to create a cluster for load balancing, see <a title="Glassfish Cluster" href="https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html">this documentation</a>. After ajust the setup-cluster.xml file you just need to run ant on it.</p>
<p>Let&#8217;s execute the server:</p>
<blockquote><p>$ bin/asadmin start-domain</p></blockquote>
<p>The default instance port is 8080. Try it on <a href="http://localhost:8080/">http://localhost:8080</a>.</p>
<p style="text-align: center;"><img class="size-medium wp-image-1246 aligncenter" title="glassfish_on_8080" src="http://silveiraneto.net/wp-content/uploads/2008/09/glassfish_on_8080.png" alt="" width="400" height="256" /></p>
<p>The default administrator port is 4848. Try it on <a href="http://localhost:4848">http://localhost:4848</a>.</p>
<p style="text-align: center;"><img class="size-full wp-image-1247 aligncenter" title="glassfish_login" src="http://silveiraneto.net/wp-content/uploads/2008/09/glassfish_login.png" alt="" width="400" height="240" /></p>
<p>The default user is <strong>admin</strong> and password is <strong>adminadmin</strong>. Log in.</p>
<p><strong>Tip:</strong> you be asked for register your version. This register is not mandatory and not doing it will not limit the features of your Glassfish. It&#8217;s just a way they use to track the number of users. Aditionaly can have acess to newsletters, tutorials, screencasts, services and support. If you already have a SDN (<em>Sun Developer Network</em>) or <em>Sun Online</em> account you can use it for registration. If you simply doesn&#8217;t want to, you can skip this step.</p>
<p>For security reassons, click in the <em>Application Server</em> icon on the left sidebar and so in the <em>Adminstrator Password</em> tab. Chose a new password and click <em>Save</em>.</p>
<p style="text-align: center;"><img class="size-full wp-image-1248 aligncenter" title="glassfish_password" src="http://silveiraneto.net/wp-content/uploads/2008/09/glassfish_password.png" alt="" width="500" height="359" /></p>
<p>Let&#8217;s deploy a application. Download the file <a title="WAR file" href="http://glassfish.dev.java.net/downloads/quickstart/hello.war">http://glassfish.dev.java.net/downloads/quickstart/hello.war</a>.</p>
<p>Go to <em>Applications</em> → <em>Web Applications</em> on the sidebar.</p>
<p style="text-align: center;"><img class="size-full wp-image-1249 aligncenter" title="glassfish_web_apps" src="http://silveiraneto.net/wp-content/uploads/2008/09/glassfish_web_apps.png" alt="" width="400" height="283" /></p>
<p>No application will be there. Click on the Deploy button.</p>
<p>In the next screen, on <em>Location</em> select the .war that you downloaded. Click <em>Ok</em>.</p>
<p style="text-align: center;"><img class="size-full wp-image-1250 aligncenter" title="glassfish_deploy" src="http://silveiraneto.net/wp-content/uploads/2008/09/glassfish_deploy.png" alt="" width="400" height="284" /></p>
<p>Your application is now deployed.</p>
<p style="text-align: center;"><img class="size-full wp-image-1251 aligncenter" title="glassfish_deployed" src="http://silveiraneto.net/wp-content/uploads/2008/09/glassfish_deployed.png" alt="" width="400" height="287" /></p>
<p>Try the application on <a title="Hello Glassfish" href="http://localhost:8080/hello/">http://localhost:8080/hello</a>.</p>
<p style="text-align: center;"><img class="size-full wp-image-1252 aligncenter" title="glassfish_hello" src="http://silveiraneto.net/wp-content/uploads/2008/09/glassfish_hello.png" alt="" width="400" height="293" /></p>
<p>There other ways  less easy but more flexible) to deploy your application, you can take a look on this and others topics on <a title="Glassfish Quick Start" href="https://glassfish.dev.java.net/downloads/quickstart/index.html">Glassfish Quick Start Guide</a>.</p>
<p>Try to explore the Glassfish admin interface. It&#8217;s very easy and intuitive.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/09/07/glassfish-on-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

