users@glassfish.java.net

GF2 Virtual Server stopped working and is showing wrong content.

From: <glassfish_at_javadesktop.org>
Date: Tue, 12 Jun 2007 22:09:18 PDT

I'm running Sun Java System Application Server 9.1 (build b41-beta2) ...

I have a virtual server set up. It's a simple VS that serves just static HTML files. No WARs or anything else.

This was working just fine, but now it's not.

Rather than show the static content, it shows the pages from myotherhost, also mapped as a VS.

myotherhost is running a standard EAR.

This was working fine before. The only thing I can think of was that I redeployed the EAR via the console last week, but I just discovered that the problem with the static site was happening.

I've restarted the server (several times). I even tried disabling the VS via the admin console (to serve both 404s and 403s), and it "stops working" (tho the browser (Firefox) doesn't give me any specific error message, i.e. the 404 or 403 that I expected, I don't get my content either). When I reenable it, the content comes back, but it's the wrong VS. I turned the access log on, and the myhost.log is being populated, it's just pulling stuff from the wrong VS.

Below is my http-service entry from the domain.xml. This is really puzzling, and badly timed. I know, beta code in production, but, it's been working just fine for weeks.

Any hints appreciated.

[code]
      <http-service>
        <access-log format="%client.name% %auth-user-name% %datetime% %request% %status% %response.length%" rotation-enabled="true" rotation-interval-in-minutes="15" rotation-policy="time" rotation-suffix="yyyy-MM-dd"/>
        <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-1" port="80" security-enabled="false" server-name="" xpowered-by="true">
          <property name="proxiedProtocols" value="ws/tcp"/>
        </http-listener>
        <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="8181" security-enabled="true" server-name="" xpowered-by="true"/>
        <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="__asadmin" enabled="true" family="inet" id="admin-listener" port="4848" security-enabled="false" server-name="" xpowered-by="true"/>
        <virtual-server hosts="${com.sun.aas.hostName}" http-listeners="http-listener-1,http-listener-2" id="server" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
          <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
          <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
          <property name="sso-enabled" value="false"/>
        </virtual-server>
        <virtual-server hosts="${com.sun.aas.hostName}" http-listeners="admin-listener" id="__asadmin" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
          <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
          <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
          <property name="sso-enabled" value="false"/>
        </virtual-server>
        <virtual-server hosts="myhost.com,www.myhost.com" http-listeners="http-listener-1" id="myhost" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
          <property name="sso-enabled" value="false"/>
          <property name="docroot" value="/home/myhost"/>
          <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
        </virtual-server>
        <virtual-server hosts="www.myotherhost.com,myotherhost.com" http-listeners="http-listener-1" id="myotherhost" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
          <property name="sso-enabled" value="false"/>
          <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
          <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
        </virtual-server>
        <request-processing header-buffer-length-in-bytes="8192" initial-thread-count="2" request-timeout-in-seconds="30" thread-count="20" thread-increment="1"/>
        <keep-alive max-connections="250" thread-count="1" timeout-in-seconds="30"/>
        <connection-pool max-pending-count="4096" queue-size-in-bytes="4096" receive-buffer-size-in-bytes="4096" send-buffer-size-in-bytes="8192"/>
        <http-protocol default-response-type="text/plain; charset=iso-8859-1" dns-lookup-enabled="false" forced-response-type="text/plain; charset=iso-8859-1" ssl-enabled="true" version="HTTP/1.1"/>
        <http-file-cache file-caching-enabled="false" file-transmission-enabled="false" globally-enabled="false" hash-init-size="0" max-age-in-seconds="30" max-files-count="1024" medium-file-size-limit-in-bytes="537600" medium-file-space-in-bytes="10485760" small-file-size-limit-in-bytes="2048" small-file-space-in-bytes="1048576"/>
        <property name="accessLoggingEnabled" value="true"/>
      </http-service>
[/code]
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=221886