tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From helena rato <helenar...@yahoo.com>
Subject Re: Cannot modify Tomcat Contexts installed at setup
Date Tue, 05 Apr 2005 17:33:18 GMT
Thanks Sven,

I did how you suggested:

First I erased the caches:

[root@portable num]# cd
/usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost
[root@portable localhost]# rm -rf ./*
[root@portable localhost]# ll
total 0

At this point, I renamed with mv
$CATALINA_HOME/webapps/ROOT/index.jsp, to
index.jsp.ok:

[root@portable localhost]# ls
$CATALINA_HOME/webapps/ROOT/
index.jsp.ok  jakarta-banner.gif  RELEASE-NOTES.txt 
tomcat.gif  tomcat-power.gif  WEB-INF

Then I restarted Tomcat, and checked the cache:

[root@portable localhost]# ll
/usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost
total 36
drwxr-xr-x    2 root     root         4096 Apr  5
18:58 _
drwxr-xr-x    3 root     root         4096 Apr  5
18:58 admin
drwxr-xr-x    2 root     root         4096 Apr  5
18:58 cart06
drwxr-xr-x    2 root     root         4096 Apr  5
18:58 DBTest
drwxr-xr-x    2 root     root         4096 Apr  5
18:58 jsp-examples
drwxr-xr-x    2 root     root         4096 Apr  5
18:58 manager
drwxr-xr-x    2 root     root         4096 Apr  5
18:58 paypal
drwxr-xr-x    2 root     root         4096 Apr  5
18:58 servlets-examples
drwxr-xr-x    2 root     root         4096 Apr  5
18:58 tomcat-docs

We can see that the cache was re-created at startup by
Tomcat.

Now I browse to www.myurl.com:8080, and ...

I get the index.jsp file (the one with "If you're
seeing this page via a web browser, it means you've
setup Tomcat successfully. Congratulations!"), as if I
had not deleted it in Tomcat's ROOT context!

I don't get it... All Tomcat Contexts created at
install, like ROOT, behave in this way: modifying the
jsp files, or erasing them, has no effect at all.

Any hint would be highly appreciated.

Helena



--- sven morales <aka_sergio@yahoo.com> wrote:
> Hi,
>    Try clearing the directory tomcat5/work/* and
> restart tomcat.  This should clear up caches.
> 
> aka_sergio
> 
> --- helena rato <helenarato@yahoo.com> wrote:
> > I use Tomcat 5.0.27 with apache Apache 2.0.40 and
> > JK2.
> > 
> > Just for the purpose of a test, I replace the
> > existing
> > index.jsp file in $CATALINA_HOME/webapps/ROOT/
> with
> > another index.jsp file, with following contents:
> > 
> > <html>
> > <h1>Hello World</h1>
> > </html>
> > 
> > I re-boot the server, and start Tomcat and Apache.
> > 
> > I browse to my URL using www.myurl.com:8080.
> > 
> > I still get the 'old' index.jsp!
> > 
> > The same happens with any of the Contexts
> installed
> > during setup, like 'jsp-examples' context (for
> > example, modifying /jsp-examples/num/numguess.jsp
> > seems to have no impact at all, even after
> > rebooting).
> > 
> > On the other hand, with Tomcat Contexts created by
> > me,
> > the behavior is normal.
> > 
> > I'm sure I am missing something, and would
> > appreciate
> > any clue.
> > 
> > Thank-you in advance
> > 
> > Helena
> > 
> > 
> > 
> > 		
> > __________________________________ 
> > Do you Yahoo!? 
> > Yahoo! Small Business - Try our new resources
> site!
> > http://smallbusiness.yahoo.com/resources/ 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message