<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Installing GlassFish on Debian Etch or Ubuntu</title>
	<atom:link href="http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/</link>
	<description>Not a blog, more a log.</description>
	<lastBuildDate>Sat, 07 Aug 2010 04:37:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: neozerosv</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-6291</link>
		<dc:creator>neozerosv</dc:creator>
		<pubDate>Mon, 03 May 2010 20:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-6291</guid>
		<description>I had the next problem (Solution at end):

glassfish@localhost:~$asadmin start-domain
Starting Domain domain1, please wait.
Default Log location is /opt/glassfish/domains/domain1/logs/server.log.
Redirecting output to /opt/glassfish/domains/domain1/logs/server.log
Timeout waiting for domain domain1 to go to starting state.
CLI156 Could not start the domain domain1.

Error detail:
java.rmi.server.ExportException: Listen failed on port: 0; nested exception is: java.net.SocketException: Invalid argument
..
Exception :
java.lang.RuntimeException: Admin Server Channel is not initialized

Information:
debian Squeeze AMD64 2.6.32
sun-java6-jdk 6.20-dlj-1

export JAVA_HOME=”/usr/lib/jvm/java-6-sun”
export PATH=”$PATH:/opt/glassfish/bin:/opt/glassfish/lib/ant/bin”

SOLUTION:

The problem was IPv4 and IPv6 Socket listeners, so an change the values:
Edit /etc/sysctl.d/bindv6only.conf
Change net.ipv6.bindv6only = 1 to net.ipv6.bindv6only = 0
Restart service
/etc/init.d/procps restart

Run: asadmin start-domain domain1

And VOILA!!

A found it here http://forums.debian.net/viewtopic.php?f=5&amp;t=47502</description>
		<content:encoded><![CDATA[<p>I had the next problem (Solution at end):</p>
<p>glassfish@localhost:~$asadmin start-domain<br />
Starting Domain domain1, please wait.<br />
Default Log location is /opt/glassfish/domains/domain1/logs/server.log.<br />
Redirecting output to /opt/glassfish/domains/domain1/logs/server.log<br />
Timeout waiting for domain domain1 to go to starting state.<br />
CLI156 Could not start the domain domain1.</p>
<p>Error detail:<br />
java.rmi.server.ExportException: Listen failed on port: 0; nested exception is: java.net.SocketException: Invalid argument<br />
..<br />
Exception :<br />
java.lang.RuntimeException: Admin Server Channel is not initialized</p>
<p>Information:<br />
debian Squeeze AMD64 2.6.32<br />
sun-java6-jdk 6.20-dlj-1</p>
<p>export JAVA_HOME=”/usr/lib/jvm/java-6-sun”<br />
export PATH=”$PATH:/opt/glassfish/bin:/opt/glassfish/lib/ant/bin”</p>
<p>SOLUTION:</p>
<p>The problem was IPv4 and IPv6 Socket listeners, so an change the values:<br />
Edit /etc/sysctl.d/bindv6only.conf<br />
Change net.ipv6.bindv6only = 1 to net.ipv6.bindv6only = 0<br />
Restart service<br />
/etc/init.d/procps restart</p>
<p>Run: asadmin start-domain domain1</p>
<p>And VOILA!!</p>
<p>A found it here <a href="http://forums.debian.net/viewtopic.php?f=5&amp;t=47502" rel="nofollow">http://forums.debian.net/viewtopic.php?f=5&amp;t=47502</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arimus</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-6244</link>
		<dc:creator>arimus</dc:creator>
		<pubDate>Wed, 24 Mar 2010 01:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-6244</guid>
		<description>I have tweaked the above init file to add a &quot;runas&quot; user.  This way you can create a user (i.e. glassfish) and have your glassfish instance running as that user.

You can find the modified file here:  http://entwash.org/glassfish</description>
		<content:encoded><![CDATA[<p>I have tweaked the above init file to add a &#8220;runas&#8221; user.  This way you can create a user (i.e. glassfish) and have your glassfish instance running as that user.</p>
<p>You can find the modified file here:  <a href="http://entwash.org/glassfish" rel="nofollow">http://entwash.org/glassfish</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-5876</link>
		<dc:creator>Benjamin</dc:creator>
		<pubDate>Fri, 04 Dec 2009 16:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-5876</guid>
		<description>Hi there.
Nice tut. How do you run it as non-root user? If I start the server as non-root I can find a warning in the logs after an otherwise successful start. During domain creation for the non-root there is a &quot;jks&quot; permission error. 
Any ideas?
Kind regards - Benjamin.
(i read the glassfish faq on this, but it was no use)</description>
		<content:encoded><![CDATA[<p>Hi there.<br />
Nice tut. How do you run it as non-root user? If I start the server as non-root I can find a warning in the logs after an otherwise successful start. During domain creation for the non-root there is a &#8220;jks&#8221; permission error.<br />
Any ideas?<br />
Kind regards &#8211; Benjamin.<br />
(i read the glassfish faq on this, but it was no use)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaime Andrés Dávila</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-5344</link>
		<dc:creator>Jaime Andrés Dávila</dc:creator>
		<pubDate>Tue, 13 Oct 2009 01:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-5344</guid>
		<description>thx for the post! it&#039;s was really helpfull</description>
		<content:encoded><![CDATA[<p>thx for the post! it&#8217;s was really helpfull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrice Bourqui</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-2851</link>
		<dc:creator>Fabrice Bourqui</dc:creator>
		<pubDate>Fri, 05 Jun 2009 08:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-2851</guid>
		<description>Hi, thanks for your tutorial but I have an error :

/etc/init.d/glassfish: 87: ¦¦: not found</description>
		<content:encoded><![CDATA[<p>Hi, thanks for your tutorial but I have an error :</p>
<p>/etc/init.d/glassfish: 87: ¦¦: not found</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo N. Fortes</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-2314</link>
		<dc:creator>Eduardo N. Fortes</dc:creator>
		<pubDate>Mon, 18 May 2009 13:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-2314</guid>
		<description>Very useful tutorial, and I think that with the new release of glassfish server v3 prelude the installation shoul be a lot easier :)</description>
		<content:encoded><![CDATA[<p>Very useful tutorial, and I think that with the new release of glassfish server v3 prelude the installation shoul be a lot easier <img src='http://www.stpe.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jboadas</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-1393</link>
		<dc:creator>jboadas</dc:creator>
		<pubDate>Thu, 19 Mar 2009 18:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-1393</guid>
		<description>Thanks very usefull tutorial</description>
		<content:encoded><![CDATA[<p>Thanks very usefull tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vibhu</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-1048</link>
		<dc:creator>vibhu</dc:creator>
		<pubDate>Wed, 10 Dec 2008 16:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-1048</guid>
		<description>Thanks a lot it was very useful.</description>
		<content:encoded><![CDATA[<p>Thanks a lot it was very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar Riquelme</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-1045</link>
		<dc:creator>Oscar Riquelme</dc:creator>
		<pubDate>Sun, 07 Dec 2008 22:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-1045</guid>
		<description>thanks , it was very usefull</description>
		<content:encoded><![CDATA[<p>thanks , it was very usefull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond de Bernis</title>
		<link>http://www.stpe.se/2008/07/installing-glassfish-on-debian-etch-ubunt/comment-page-1/#comment-1044</link>
		<dc:creator>Raymond de Bernis</dc:creator>
		<pubDate>Fri, 05 Dec 2008 14:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=41#comment-1044</guid>
		<description>bright, clear, 5 minutes to properly installation, 
thanks,
only detail I need explanations on what for le &quot;:&quot; on line 89 of your script</description>
		<content:encoded><![CDATA[<p>bright, clear, 5 minutes to properly installation,<br />
thanks,<br />
only detail I need explanations on what for le &#8220;:&#8221; on line 89 of your script</p>
]]></content:encoded>
	</item>
</channel>
</rss>
