logo       

Urgent: JSP source showing: msg#00004

text.xml.resin.user

Subject: Urgent: JSP source showing

Hello,
 
I have set up resin (2.1.11) successfully many times. But this time, jsp source code keeps showing up. Currently, we don't have a DNS name set up for the site/server yet, so I am using the IP address to test the site. I have used the IP like this before and it worked. I have tried everything I can think of, but no lucky. Apache finds the virtual host fine. html files are displayed correctly. Resin starts without any problem. Just the jsp file are not handled by resin. Neither is the servlet mapping taking effect. Below are segments of the invovled conf files. IP address are substituted.
 
Thanks very much.
Qiao
 
======= apache conf: httpd.conf ============
#
# mod_caucho Resin Configuration
#
LoadModule caucho_module /usr/local/apache2/modules/mod_caucho.so
Include /usr/local/apache2/conf/vhosts.conf
 
======= vhosts.conf ==============
NameVirtualHost xx.yy.qqq.zz:80
<VirtualHostxx.yy.qqq.zz:80>
        ServerName xx.yy.qqq.zz
        DocumentRoot /home/sl/www/htdocs
        CauchoConfigFile /usr/local/resin/test.conf
</VirtualHost>

======= test.conf ===
.....
        <srun host=localhost port='6802'/>
                <host id="xx.yy.qqq.zz'>
                <war-dir>webapps</war-dir>
                              <web-app id='/' app-dir='/home/sl/www/htdocs'>
 
                                        <classpath id='../web-inf/classes'/>
 
                                        <servlet-mapping>
                                                <url-pattern>/servlet/*</url-pattern>
                                                <servlet-name>invoker</servlet-name>
                                        </servlet-mapping>
 
                                        <servlet>
                                                <servlet-name>jsp</servlet-name>
                                                <servlet-class>com.caucho.jsp.JspServlet</servlet-class>
                                        </servlet>
 
                                        <servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
                                        <servlet-mapping url-pattern='*.xtp' servlet-name='xtp'/>
.......
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise