I just made a fairly minor change to a webapp that's been running well for
years. I uploaded it to a new directory on the server, and then modified the
resin.xml to point to the new location. I stopped and restarted resin to be
sure.
resin 4.0.19
I tried loading up /, and it gave me a 404 error. I double-checked the paths,
tried slightly different ways of specifying them (host tag vs web-app tag), no
luck.
Then I loaded my server using the host name specified in the host tag (I
usually use the host alias). Suddenly, things loaded. After that, I was able to
go back to using the host alias.
I bounced the server, and had the same issue.
My host looks like this:
<host regexp="kepler.latencyzero.com[\.]?" root-directory="/lz/var/www/">
<host-alias-regexp>satdb.org[\.]?</host-alias-regexp>
<host-alias-regexp>missiondb.latencyzero.com[\.]?</host-alias-regexp>
I was unable to access it via missiondb.latencyzero.com until I had first
accessed it via kepler.latencyzero.com.
Note that before, when the web-app was configured to point to a different
directory, I never experienced this problem.
The log shows this on the 404:
[10-24 19:44:25.611] {main} INFO (com.caucho.server.resin.Resin)
Resin[id=default] started in 1513ms
[10-24 19:45:36.037] {http://*:80-1} FINE
(com.caucho.network.listen.TcpSocketLink) TcpSocketLink[id=1,default] starting
connection TcpSocketLink[id=http://*:80-1,http://*:80,ACCEPT], total=4
[10-24 19:45:36.107] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] GET / HTTP/1.1
[10-24 19:45:36.108] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] Remote-IP: 24.6.132.52:39388
[10-24 19:45:36.108] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] Host: missiondb.latencyzero.com
[10-24 19:45:36.108] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2)
AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14
[10-24 19:45:36.109] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[10-24 19:45:36.109] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] DNT: 1
[10-24 19:45:36.109] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] Cache-Control: max-age=0
[10-24 19:45:36.109] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] Accept-Language: en-us
[10-24 19:45:36.109] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] Accept-Encoding: gzip, deflate
[10-24 19:45:36.110] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] Cookie: JSESSIONID=aaaWfBTI_5iQ4fiKgLuQt; uid=1;
__utma=268186515.520977954.1346150693.1348185637.1350813288.11;
__utmz=268186515.1346150693.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
[10-24 19:45:36.110] {http://*:80-1} FINE (com.caucho.server.http.HttpRequest)
Http[default, 1] Connection: keep-alive
[10-24 19:45:36.151] {http://*:80-1} FINE
(com.caucho.env.deploy.EnvironmentDeployController) Host[error/host/error]
initializing
[10-24 19:45:36.152] {http://*:80-1} FINE
(com.caucho.env.deploy.EnvironmentDeployController) Host[error/host/error]
root-directory=/error
[10-24 19:45:36.215] {http://*:80-1} FINE
(com.caucho.env.deploy.EnvironmentDeployController)
WebApp[error/webapp//error,NEW] initializing
[10-24 19:45:36.218] {http://*:80-1} FINE
(com.caucho.env.deploy.EnvironmentDeployController)
WebApp[error/webapp//error,NEW] root-directory=/error-root
[10-24 19:45:36.325] {http://*:80-1} CONFIG
(com.caucho.server.dispatch.ServletMapper) servlet-mapping *.jsp -> resin-jsp
[10-24 19:45:36.326] {http://*:80-1} CONFIG
(com.caucho.server.dispatch.ServletMapper) servlet-mapping *.jspf -> resin-jsp
[10-24 19:45:36.327] {http://*:80-1} CONFIG
(com.caucho.server.dispatch.ServletMapper) servlet-mapping *.jspx -> resin-jspx
[10-24 19:45:36.327] {http://*:80-1} CONFIG
(com.caucho.server.dispatch.ServletMapper) servlet-mapping *.php -> resin-php
[10-24 19:45:36.327] {http://*:80-1} CONFIG
(com.caucho.server.dispatch.ServletMapper) servlet-mapping / -> resin-file
[10-24 19:45:36.386] {http://*:80-1} FINE
(com.caucho.server.http.AbstractHttpResponse) Http[default, 1] HTTP/1.1 404 Not
Found
[10-24 19:45:36.386] {http://*:80-1} FINE
(com.caucho.server.http.AbstractHttpResponse) Http[default, 1] Content-Type:
text/html; charset=utf-8
[10-24 19:45:36.387] {http://*:80-1} FINE
(com.caucho.server.http.AbstractHttpResponse) Http[default, 1] Content-Length:
186
[10-24 19:45:36.387] {http://*:80-1} FINE
(com.caucho.server.http.HttpResponseStream) Http[default, 1] finish/keepalive
Any ideas? Thanks.
--
Rick
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest