Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Resin

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2010, 10:34 PM
ak4life ak4life is offline
Junior Member
 
Join Date: Mar 2010
Posts: 2
Default /index.jsp was not found on this server.

Hello,

Firstly, below is not very readable, but when I tried to wrap quotes below in [CODE] or[INDENT], http://forum.caucho.com/newthread.php?do=postthread&f=4 would return:

--------------------------
500 Servlet Exception

[show] java.lang.IllegalStateException

Resin/4.0.s100214 Server: ''
--------------------------





Now onto my problem.

When I go to my VirtualHost URL, I get a 404 not found.

--------------------------
404 Not Found
/index.jsp was not found on this server.

Resin/4.0.5
--------------------------


mod_caucho is loaded as per /server-info:

--------------------------
Module Name: mod_caucho.c
Content handlers: yes
Configuration Phase Participation: Create Directory Config, Merge Directory Configs, Create Server Config, Merge Server Configs
Request Phase Participation: Content Handlers
Module Directives:
ResinConfigServer - Adds a configuration server.
ResinHost - Configures a cluster host for manual configuration.
ResinBackup - Configures a cluster host for manual configuration.
ResinConfigCacheDirectory - Configures the saved configuration file.
ResinSessionCookie - Configures the session cookie.
ResinSessionSticky - Configures the session sticky.
ResinSessionUrlPrefix - Configures the session url.
CauchoStatus - Adds a configuration server.
CauchoHost - Configures a cluster host for manual configuration.
CauchoBackup - Configures a cluster host for manual configuration.
CauchoConfigCacheDirectory - Configures the saved configuration file.
Current Configuration:
In file: /etc/apache2/conf.d/mod_caucho
7: ResinConfigServer localhost 6800
8: CauchoConfigCacheDirectory /tmp
9: CauchoStatus yes
--------------------------


No problems according to /caucho-status

--------------------------
Virtual Host: myvhost.mydomain

Source: Resin-ETag (Wed Mar 24 14:52:21 2010 )
Last-Update: Wed Mar 24 14:52:21 2010

Host Active Pooled Connect
Timeout Idle
Time Recover
Time Socket
Timeout
1. 127.0.0.1:6800 (ok) 0 0 5 60 15 600

web-app url-pattern
/ *.jsp
/ *.php
/ *.jspx
/ *.jspf
--------------------------


Resin watchdog also not complaining:

--------------------------
# java -jar /opt/resin/lib/resin.jar status
Resin/4.0.5 status for watchdog at 127.0.0.1:6600

watchdog:
watchdog-pid: 14173

server '' : active
password: missing
user: root(www-data)
root: /opt/resin
conf: /etc/resin/resin.xml
pid: 4295
--------------------------


Here's the vhost section of resin.xml:

--------------------------
<host id='myvhost.mydomain'>
<root-directory>/var/www/myvhost</root-directory>
<web-app id='/' document-directory='/'>
<servlet-mapping url-pattern="*.jsp" servlet-name="resin-jsp"/>
</web-app>
</host>

Got the same error when I tried putting the index.jsp and WEB-INF in resin-roo/webapps/MYVHOST and adjusting resin.xml accordingly:

<host id='myvhost.mydomain'>
<root-directory>webapps/MYVHOST</root-directory>
<web-app id='/' document-directory='/'>
<servlet-mapping url-pattern="*.jsp" servlet-name="resin-jsp"/>
</web-app>
</host>

Also experimented with a different web-app document-directory:

<host id='myvhost.mydomai'>
<root-directory>webapps/MYVHOST</root-directory>
<web-app id='/' document-directory='/var/www/myvhost'>
<servlet-mapping url-pattern="*.jsp" servlet-name="resin-jsp"/>
</web-app>
</host>
--------------------------


With the above, /caucho-status doesn't show anything in url-pattern:

--------------------------
Virtual Host: myvhost.mydomain

Source: Resin-ETag (Wed Mar 24 15:17:26 2010 )
Last-Update: Wed Mar 24 15:17:26 2010

Host Active Pooled Connect
Timeout Idle
Time Recover
Time Socket
Timeout
1. 127.0.0.1:6800 (ok) 0 1 5 60 15 600

web-app url-pattern
--------------------------


And Apache serves up the contents of index.jsp as plain text.


I installed Resin with the following options:

--------------------------
./configure --prefix=/opt/resin \
--with-resin-root=/opt/resin \
--with-resin-log=/var/log/resin \
--with-resin-conf=/etc/resin \
--with-apxs=/usr/bin/apxs2 \
--with-apache-src=/usr/lib/apache2 \
--with-apache-conf=/etc/apache2/conf.d/mod_caucho
--------------------------
Reply With Quote
  #2  
Old 03-25-2010, 05:05 PM
emil emil is offline
Administrator
 
Join Date: Aug 2009
Posts: 203
Default

Can you try enabling Resin's HTTP server (if you haven't already)? Then you can try to access Resin itself to see if the problem is with it or the Apache plugin. One thing sticks out: you're using a different directory layout than we usually recommend. For virtual hosts, we suggest:

${resin.root}/hosts/your.host/webapps/your-app-name

The "ROOT" app name is reserved for the "/" app.

Emil
Reply With Quote
  #3  
Old 03-25-2010, 07:12 PM
ak4life ak4life is offline
Junior Member
 
Join Date: Mar 2010
Posts: 2
Default

Thank you, Emil.

I should probably mention that I'm trying to replicate an existing and working setup done about 6 years ago by my predecessor. The host runs outdated software (Fedora 2, etc) on EOL hardware. Until we figure out what to do with this content, I gotta move it to a new host, ideally with as little change as possible.

One issue that the Resin version on the old host is 3.0.8, since it looks like the options/syntax have changed, I can't reuse the old config, so I'm trying to replicate the old setup with newer software.

I've now trying 3.1.10, in the hopes the options/syntax would match 3.0.8 more closely.

I'll try enabling the Resin's HTTP server and see what happens. If you've got any other pointers, that'd be great, too.

Best regards,
Alain
Reply With Quote
  #4  
Old 03-25-2010, 09:35 PM
emil emil is offline
Administrator
 
Join Date: Aug 2009
Posts: 203
Default

Hi Alain,

We have some documentation on migrating from 3.0 to 4.0, but none for 3.1. It still might help though, as the structure of the 4.0 configuration is much more similar to 3.1 than 3.0:

http://wiki.caucho.com/Migrating_fro...0_to_Resin_4.0

Emil
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.