logo       

Re: Urgent: JSP source showing: msg#00005

text.xml.resin.user

Subject: Re: Urgent: JSP source showing

If you don't have DNS set up yet, but want to test, try modifying your
'hosts' file, which is in effect local machine DNS. YOu can add a line
that will resolve a name to an IP address

In Linux you can find it at:
/etc/hosts

On WinNT/2000 it's at:
\WINNT\system32\drivers\etc\hosts

To be sure you got it right... ping yourself by typing the name at a
command prompt and observing the results.

This should help you set up virtual / name based hosting ahead of the
actual DNS

hth


On Mon, 2004-03-01 at 12:19, Qiao Jin wrote:
> 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