<?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>Kommentare zu: How-to set up Glassfish 2 on Debian or Ubuntu</title>
	<atom:link href="http://jars.de/english/how-to-set-up-glassfish-2-on-debian-or-ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://jars.de/english/how-to-set-up-glassfish-2-on-debian-or-ubuntu</link>
	<description>Blog über Java, JEE, JSF, EJB 3.0, Tools, Ubuntu, Windows, Technologie</description>
	<lastBuildDate>Mon, 30 Jan 2012 12:15:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Von: neozerosv</title>
		<link>http://jars.de/english/how-to-set-up-glassfish-2-on-debian-or-ubuntu/comment-page-1#comment-2325</link>
		<dc:creator>neozerosv</dc:creator>
		<pubDate>Mon, 03 May 2010 20:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://jars.de/?p=171#comment-2325</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=&quot;/usr/lib/jvm/java-6-sun&quot;
export PATH=&quot;$PATH:/opt/glassfish/bin:/opt/glassfish/lib/ant/bin&quot; 


SOLUTION:

The problem was IPv4 and IPv6 Socket listeners, so an change the values:
Edir /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 uit 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=&#8221;/usr/lib/jvm/java-6-sun&#8221;<br />
export PATH=&#8221;$PATH:/opt/glassfish/bin:/opt/glassfish/lib/ant/bin&#8221; </p>
<p>SOLUTION:</p>
<p>The problem was IPv4 and IPv6 Socket listeners, so an change the values:<br />
Edir /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 uit here <a href="http://forums.debian.net/viewtopic.php?f=5&#038;t=47502" rel="nofollow">http://forums.debian.net/viewtopic.php?f=5&#038;t=47502</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Franta</title>
		<link>http://jars.de/english/how-to-set-up-glassfish-2-on-debian-or-ubuntu/comment-page-1#comment-2090</link>
		<dc:creator>Franta</dc:creator>
		<pubDate>Tue, 03 Mar 2009 21:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://jars.de/?p=171#comment-2090</guid>
		<description>Thanks for this howto. But there is problem with IPv6 support in authbind – do not work: this is not Java issue, just authbind.
As you can test with command: &quot;authbind nc6 -l -p23&quot;
Netcat is allowed to listen on IPv4 but not IPv6. With Java it is same → Glassfish is unable to start.

„Workaround“ is java option -Djava.net.preferIPv4Stack=true, but it disables IPv6 listening, so it is quite useless (you can use iptables forwarding instead).</description>
		<content:encoded><![CDATA[<p>Thanks for this howto. But there is problem with IPv6 support in authbind – do not work: this is not Java issue, just authbind.<br />
As you can test with command: &#8220;authbind nc6 -l -p23&#8243;<br />
Netcat is allowed to listen on IPv4 but not IPv6. With Java it is same → Glassfish is unable to start.</p>
<p>„Workaround“ is java option -Djava.net.preferIPv4Stack=true, but it disables IPv6 listening, so it is quite useless (you can use iptables forwarding instead).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: habersham808</title>
		<link>http://jars.de/english/how-to-set-up-glassfish-2-on-debian-or-ubuntu/comment-page-1#comment-1768</link>
		<dc:creator>habersham808</dc:creator>
		<pubDate>Wed, 30 Jul 2008 20:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://jars.de/?p=171#comment-1768</guid>
		<description>Yo. 
&lt;a href=&quot;http://habersham.freehostia.com/index.html&quot; rel=&quot;nofollow&quot;&gt;h3po4&lt;/a&gt; &lt;a href=&quot;http://habersham.freehostia.com/index.html&quot; rel=&quot;nofollow&quot;&gt;h3po4&lt;/a&gt;
&lt;a href=&quot;http://habersham.freehostia.com/hafuzcoil.html&quot; rel=&quot;nofollow&quot;&gt;hafuz.co.il&lt;/a&gt; &lt;a href=&quot;http://habersham.freehostia.com/hafuzcoil.html&quot; rel=&quot;nofollow&quot;&gt;hafuz.co.il&lt;/a&gt;
Yeah, thats a good idea, what you are doing here. 
Good day.</description>
		<content:encoded><![CDATA[<p>Yo.<br />
<a href="http://habersham.freehostia.com/index.html" rel="nofollow">h3po4</a> <a href="http://habersham.freehostia.com/index.html" rel="nofollow">h3po4</a><br />
<a href="http://habersham.freehostia.com/hafuzcoil.html" rel="nofollow">hafuz.co.il</a> <a href="http://habersham.freehostia.com/hafuzcoil.html" rel="nofollow">hafuz.co.il</a><br />
Yeah, thats a good idea, what you are doing here.<br />
Good day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Johgoe&#8217;s Blog&#187; Blogarchiv &#187; Glassfish Installation</title>
		<link>http://jars.de/english/how-to-set-up-glassfish-2-on-debian-or-ubuntu/comment-page-1#comment-1723</link>
		<dc:creator>Johgoe&#8217;s Blog&#187; Blogarchiv &#187; Glassfish Installation</dc:creator>
		<pubDate>Sun, 20 Jul 2008 21:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://jars.de/?p=171#comment-1723</guid>
		<description>[...] Glassfish Installation möchte ich auf den englischsprachigen Artikel von Markus Junginger How-to set up Glassfish 2 on Debian or Ubuntu [...]</description>
		<content:encoded><![CDATA[<p>[...] Glassfish Installation möchte ich auf den englischsprachigen Artikel von Markus Junginger How-to set up Glassfish 2 on Debian or Ubuntu [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

