<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>dobesland &#187; glassfish</title>
	<atom:link href="http://dobesland.wordpress.com/category/java-ee/glassfish/feed/" rel="self" type="application/rss+xml" />
	<link>http://dobesland.wordpress.com</link>
	<description>Dobes Vandermeer - Software Engineer, Aspiring Buddha</description>
	<lastBuildDate>Tue, 23 Sep 2008 23:14:45 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dobesland.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/2f5bf36adbb1e894e8095a168a3bde04?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>dobesland &#187; glassfish</title>
		<link>http://dobesland.wordpress.com</link>
	</image>
			<item>
		<title>GWT to lighttpd/apache to glassfish 502 proxy or 500 internal errors fix</title>
		<link>http://dobesland.wordpress.com/2008/08/22/gwt-to-lighttpdapache-to-glassfish-502-proxy-or-500-internal-errors-fix/</link>
		<comments>http://dobesland.wordpress.com/2008/08/22/gwt-to-lighttpdapache-to-glassfish-502-proxy-or-500-internal-errors-fix/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 17:07:35 +0000</pubDate>
		<dc:creator>dobes</dc:creator>
				<category><![CDATA[GWT]]></category>
		<category><![CDATA[glassfish]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[server administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://dobesland.wordpress.com/?p=54</guid>
		<description><![CDATA[I&#8217;ve been dealing with this for a while now trying to figure out why, when using my online accounting software, users sporadically get a StatusCodeException when sending requests to the server.  I finally this week figured out what was going on; glassfish was dropping the connection or sending bad responses occasionally because it doesn&#8217;t behave [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dobesland.wordpress.com&blog=1315191&post=54&subd=dobesland&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve been dealing with this for a while now trying to figure out why, when using my <a title="Online accounting software for small business" href="http://www.clarityaccounting.com">online accounting software</a>, users sporadically get a StatusCodeException when sending requests to the server.  I finally this week figured out what was going on; glassfish was dropping the connection or sending bad responses occasionally because it doesn&#8217;t behave in the was that the mod_proxy modules of these webservers expect it to.</p>
<p>Originally I was running lighttpd and I was thinking this might be a bug in lighttpd, so I eventually switched to apache.  Once I was running apache I got a much more verbose error &#8211; instead of just a plan 500 or 502 status code I got a message.  I googled that error message plus glassfish and found the solution.</p>
<p>I thought I&#8217;d share it here so that future searchers who are using lighttpd or apache will have more places to find the answer.</p>
<p>To fix the issue, add:</p>
<p>SetEnv force-proxy-request-1.0 1</p>
<p>SetEnv proxy-nokeepalive 1</p>
<p>To your apache httpd.conf.  I don&#8217;t know what the equivalent fix for lighttpd is, if there is any.</p>
<p>From this fix, it appears that glassfish is misbehaving in some way in relation to being behind a proxy, but I don&#8217;t what way that is and I&#8217;m just glad I fixed this mysterious problem!</p>
<p>If any of you readers have more information about this issue, please comment!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dobesland.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dobesland.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dobesland.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dobesland.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dobesland.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dobesland.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dobesland.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dobesland.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dobesland.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dobesland.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dobesland.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dobesland.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dobesland.wordpress.com&blog=1315191&post=54&subd=dobesland&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dobesland.wordpress.com/2008/08/22/gwt-to-lighttpdapache-to-glassfish-502-proxy-or-500-internal-errors-fix/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c88b43c635ed013bf4101c33d0f0667?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">dobes</media:title>
		</media:content>
	</item>
	</channel>
</rss>