Josh,
Thanks for your kind advice. That got me out of the "503 Service
Temporarily Unavailable" into the
"404 not found error". So i guess that it's the mapping problem, must
be some error i made some where.
Here are my httpd.conf and resin.conf. Could you help me take a look
and see where i went wrong?
<VirtualHost *>
ServerName sms.teamx2.net
DirectoryIndex index.html index.htm
DocumentRoot "D:/web/teamx2/sms"
ResinConfigServer localhost 6802
<Location /caucho-status>
SetHandler caucho-status
</Location>
<Directory "D:/web/teamx2/sms">
Options Indexes FollowSymLinks Multiviews Includes
</Directory>
</VirtualHost>
<resin xmlns="
http://caucho.com/ns/resin"
xmlns:resin="
http://caucho.com/ns/resin/core">
<server>
<cluster>
<srun id="" host="localhost" port="6802" index="1"/>
</cluster>
<host id='sms.teamx2.net'>
<web-app id='/'>
<document-directory>d:\web\teamx2\sms</document-directory>
</web-app>
</host>
</server>
</resin>
Thank you so much :)
Eric
On 04-Mar-04, at 11:37 PM, Josh Kropf wrote:
Eric,
Just a guess, make sure srun in your resin.conf is configured to
listen on
port 6802 and localhost. If you used the default resin.conf this is
likely
already there.
Try setting up the caucho-status handler in your apache conf for
debugging.
Add the following to your apache conf.
<Location /caucho-status>
SetHandler caucho-status
</Location>
restart apache then try to navigate to that url
(yourdomain/caucho-status)
and see if it goes through. This will tell you what mapping the module
sees
by reading your resin conf.
I was unable to get mod_caucho to recognize servlet-mapping setup in
webapps
of my virtual host (jsps where always forwarded to resin though). I
had to
make the webapps load with a url prefix then I had to tell apache to
pass
all requests to that prefix directly to resin. That seemed to do it...
Just an FYI for anyone who cares, my config is based on defaults for
both
servers and looks like so...
<VirtualHost *>
ServerName slashdev.ca
ServerAlias www.slashdev.ca
...
DocumentRoot "/home/web/slashdev.ca/htdocs"
ResinConfigServer localhost 6802
<LocationMatch "/webapps/.*">
SetHandler caucho-request
</LocationMatch>
<Directory "/home/web/slashdev.ca/htdocs">
Options Indexes FollowSymLinks MultiViews Includes
</Directory>
...
</VirtualHost>
<host id='slashdev.ca'>
<host-alias>www.slashdev.ca</host-alias>
<host-alias>integra.slashdev.ca</host-alias>
<root-directory>/home</root-directory>
<document-directory>web/slashdev.ca/htdocs</document-directory>
<web-app-deploy path='webapps' url-prefix='webapps'/>
<web-app id='/'/>
</host>
----- Original Message -----
From: Eric
To: resin-interest@xxxxxxxxxx
Sent: Wednesday, March 03, 2004 3:40 PM
Subject: Re: mod_caucho servlet dispatch
Hello all,
I'm using Apache 2 and Resin 3.0.6 on a windows server
I'm trying to setup the 2 app to work together, so far with no luck
When I try to serve a jsp, or test a jsp, Apache reports
"503 Service Temporarily Unavailable
Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
Apache/2.0.48 (Win32) Resin/3.0.6 Server at sms.teamx2.net Port 80"
I'm using Josh's EXACT configuration below. with the necessary other
lines to make the conf rite.
Anyone can advise me on what i'm doing wrong?
resin.conf
<host id='sms.teamx2.net'>
<document-directory>d:/web/teamx2/sms</document-directory>
<web-app id='/'/>
</host>
The apache config looks like this...
LoadModule caucho_module
c:/resin-3.0.6/libexec/apache-2.0/mod_caucho.dll
...
<VirtualHost *>
ServerName sms.teamx2.net
DocumentRoot "d:/web/teamx2/sms"
ResinConfigServer localhost 6802
<Directory "d:/web/teamx2/sms">
Options Indexes FollowSymLinks MultiViews Includes
</Directory>
</VirtualHost>
Cheers
Eric Chia
On 27-Feb-04, at 1:13 AM, Josh Kropf wrote:
I have played around furthur and this is what I have come up with.
First of all some background info. My virtual host in resin looks like
this...
<host id='slashdev.ca'>
<host-alias>www.slashdev.ca</host-alias>
<document-directory>/home/web/slashdev.ca/htdocs</document-directory>
<web-app id='/'/>
</host>
The apache config looks like this...
LoadModule caucho_module libexec/mod_caucho.so
...
<VirtualHost *>
ServerName slashdev.ca
ServerAlias www.slashdev.ca
DocumentRoot "/home/web/slashdev.ca/htdocs"
ResinConfigServer localhost 6802
<Directory "/home/web/slashdev.ca/htdocs">
Options Indexes FollowSymLinks MultiViews Includes
</Directory>
</VirtualHost>
the web app for this site has a trivial hello world servlet mapped to
"/hello" and when I navigate to http://slashdev.ca:8080/hello it works
as
expected. However if I navigate to http://slashdev.ca/hello apache
sais the
path is not found. However if I navigate to
http://slashdev.ca/index.jsp it
works which means mod_caucho is passing off *.jsp to resin.
Has anyone else experienced anything like this or maybe have some
insight
into what I have done wrong?
Thanks,
Josh
----- Original Message -----
From: Josh Kropf
To: resin-interest@xxxxxxxxxx
Sent: Wednesday, February 25, 2004 11:48 PM
Subject: Re: mod_caucho servlet dispatch
Sorry, I should also add that the webapp for the virtual host works
fine,
all JSP and servlets are served up as expected. Also when attempting
to
access one of the "sub webapps" JSP's DO server up, it's is only the
servlet
mapping that is missing.
Hit the send button too quickly :)
----- Original Message -----
From: "Josh Kropf" <josh@xxxxxxxxxxx>
To: <resin-interest@xxxxxxxxxx>
Sent: Wednesday, February 25, 2004 11:41 PM
Subject: mod_caucho servlet dispatch
Hello all,
I have resin 3.0.6 and apache 1.3.27 setup to play together. I have
several
virtual hosts, however, only a few need to be parsed bye the servlet
engine.
One virtual host in particular needs to have web-apps generated from
a dir
of war files. I have added the <web-app-deploy> tag to this virtual
host
and
when I browes to one of the webapps directly to the servlet runner
(port
8080) it works fine (as expected static content and servlets/jsp
serve up
just fine). However, when I try to browse to the webapp going through
a
virtual host on apache that has the ResinConfigServer tag declared,
resin
does not serve up any of the static content in the webapp (*.html,
*.gif,
etc.) and resin does not process mapped servlets (eg:
http://slashdev.ca/mywebapp/LoginServlet does not exist).
Is this a limitation of the mod_caucho plugin or am I just
configuring
something wrong.
Thanks in advance,
Josh