users@glassfish.java.net

Re: Default Web Module not working on live server, wget returns 500?

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Wed, 17 Mar 2010 11:38:58 +0100

301 response should be expected, pls try to wget not "/WarTest", but "/
WarTest/".
As for the situation, where you receive 500 error - not sure. Can you
pls. share the domain.xml?

WBR,
Alexey.


On Mar 17, 2010, at 4:32 , glassfish_at_javadesktop.org wrote:

> I have a local development server, glassfish b74b. I have a live
> server the same, glassfish b74b. The 'Default Web Module' option on
> the live server is not working.
>
> I've created a super simple web app called WarTest with a single
> index.jsp, named as the welcome-file in web.xml. If I deploy this
> locally to the default 'server' virtual server, and select WarTest
> as the Default Web Module for that server using the Admin Console, I
> can access both expected URLs to see the index.jsp:
>
> http://my-local-server:8080/WarTest - works fine
> http://my-local-server:8080/ - works fine
>
> When I deploy to my live server, the Default Web Module doesn't seem
> to work:
>
> http://nickfenwick.com:8080/WarTest - works fine
> http://nickfenwick.com:8080/ - returns no content
>
> There is nothing logged in server.log for the attempt on /. If I
> try with wget, I see a strange '500: Internal Server Error' report.
>
> [neek_at_uberneek tt]$ wget nickfenwick.com:8080/
> --2010-03-17 10:14:31-- http://nickfenwick.com:8080/
> Resolving nickfenwick.com... 109.75.168.182
> Connecting to nickfenwick.com|109.75.168.182|:8080... connected.
> HTTP request sent, awaiting response... 500 Internal Server Error
> 2010-03-17 10:14:32 ERROR 500: Internal Server Error.
>
> I do not see any exception trace, or any logging at all, in
> server.log for the server. Other logging for other web apps appears
> there just fine.
>
> If I wget the /WarTest app specifically, I see a strange 301 response:
>
> [neek_at_uberneek tt]$ wget nickfenwick.com:8080/WarTest
> --2010-03-17 10:21:43-- http://nickfenwick.com:8080/WarTest
> Resolving nickfenwick.com... 109.75.168.182
> Connecting to nickfenwick.com|109.75.168.182|:8080... connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location: http://nickfenwick.com:8080/WarTest/ [following]
> --2010-03-17 10:21:45-- http://nickfenwick.com:8080/WarTest/
> Connecting to nickfenwick.com|109.75.168.182|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
>
> I don't see that 301 response for my local development server, just
> my live server. It's hosted on a VPS, with webhosting.uk.com, with
> a dedicated IP set up, nothing too out of the ordinary.
>
> This glassfish install is pretty much out-of-the-box default config
> for the Virtual Server. My hostname resolves correctly, so I think
> the "Hosts: ${com.sun.aas.hostName}" setting makes it respond to
> nickfenwick.com correctly.
>
> If I deploy my more complex web app and access it as http://nickfenwick.com:8080/MyComplexApp
> it all works fine, with lots of content, JDBC action, and access to
> other deployed contexts working fine.
>
> Why would the server be responding in this strange way for resources
> matching the Default Web Module?
> [Message sent by forum member 'neekfenwick' (java_at_nickfenwick.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=392288
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>