[jboss-user] [Beginner's Corner] - Expected 404 got a blank page.

Nathan Tribble do-not-reply at jboss.com
Thu Apr 1 16:33:00 EDT 2010


Nathan Tribble [http://community.jboss.org/people/ntribble] created the discussion

"Expected 404 got a blank page."

To view the discussion, visit: http://community.jboss.org/message/535275#535275

--------------------------------------------------------------
Hi all,

I'm setting up a virtual host everything seems to be working, except, only the default host in the jbossweb.sar/server.xml

<Engine name="jboss.web" defaultHost="host1">

<Host name="host1" autoDeploy="false" deployOnStartup="false" deployXML="false">
           <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="host1-" suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log"/>
         </Host>

setup thusly is showing any HTTP status pages.

I have another host set up

<Host name="host2" autoDeploy="false" deployOnStartup="false" deployXML="false">
           <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="host2-" suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log"/>
         </Host>

and when I navigate to a path that doesn't exist on this host all I get is a blank page, no 404 like I get if I navigate to a non existant path on the defaultHost.

I'm running Ubuntu 9.10 in my /etc/hosts file I have

192.168.1.213    host1 host2

I'm using Jboss AS 5.1.0.GA

started with

./run.sh -c dev-web -b 192.168.1.213

keep in mind that applications I have deployed to the two virtual hosts are working fine, just when I navigate to a non existant app on host2 I just get a blank page, where if I navigate to a non existant app on host1 I get the Jboss HTTP Status 404 page.

Did I miss setting something up that would let the non defaultHost display Status Pages? Or is what I'm expecting not possible? Any help would be greatly appreciated. Thanks

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/535275#535275]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100401/ebdbc3d4/attachment.html 


More information about the jboss-user mailing list