|
Re: Urgent: JSP source showing: msg#00011text.xml.resin.user
Hello, Thanks for your response. Apart from the DNS thing, I need to figure out why resin isn't working. For testing, I purposely introduced some typos into the conf files and found that mod_caucho.so didn't even complain. For example: "CauchoConfigFile /bogus/path/to/conf/file" Does this mean that the module was not even loaded? Apache is checking to make sure the module is there. I must have missed something obvious, but I cann't see what. I compiled resin 2.1.11 with --with-apache=/usr/local/apache2. The module "mod_caucho.so" was created and placed in the apache's moduels directory. I also searched the archives on caucho.com but didn't find anything that would fix the problem. I have done this very same configuration many times before. I always worked. I realized that I should probably upgrade to resin 3. I just haven't had enough time to test our code yet. Please help. I am stuck. Thanks. Qiao ----- Original Message ----- From: "Angus Berry" <angus.berry@xxxxxxxxx> To: <resin-interest@xxxxxxxxxx> Sent: Monday, March 01, 2004 10:31 AM 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> |
|---|---|---|
| Previous by Date: | Re: 3.0.7 release: 00011, Scott Ferguson |
|---|---|
| Next by Date: | Re: Urgent: JSP source showing: 00011, Joseph Dane |
| Previous by Thread: | Re: Urgent: JSP source showingi: 00011, Angus Berry |
| Next by Thread: | Re: Urgent: JSP source showing: 00011, Joseph Dane |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |