You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Trond G. Ziarkowski" <tr...@gep-as.com> on 2004/12/03 12:01:55 UTC

Migrating from Apache2/JK2 to Tomcat standalone

Hi all!

I'm migrating from Apache2/JK2/Tomcat 5.0.28 to Tomcat standalone (don't 
need php anymore), and have some questions regarding the matter.

1) Since Tomcat now will be serving all the static content as well, will 
it require more threads than when only serving dynamic content?

2) In Apache I'm using mod_rewrite to rewrite requests to mydomain.com/ 
to mydomain.com/myapp. I've implemented this behaviour by using 
response.sendRedirect in a scriptlet in the index.jsp of my ROOT app. Is 
this the preferred way of doing this?

3) In Apache I'm using some aliases to serve images stored outside my 
appbase from insisde my webapp (Alias /myapp/alias 
"/path/outside/appbase"). I've implemented this by creating context xml 
files for all my aliases with appBase="/path/outside/appbase" 
path="/myapp/alias". Again, is this the preferred way of doing this?

4) I've compiled jsvc and adapted the Tomcat5.sh to start the server. If 
I do "Tomcat5.sh stop ; Tomcat5.sh start" to do a restart of the server 
my machine hangs. If I allow a pause between stop and start then the 
server starts with no problem. Is this a known issue?

Any other hints and tips to complete the setup of my server is also much 
appreciated.


Trond

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


Re: Migrating from Apache2/JK2 to Tomcat standalone

Posted by "Trond G. Ziarkowski" <tr...@gep-as.com>.
Hi!

> 3) In Apache I'm using some aliases to serve images stored outside my 
> appbase from inside my webapp (Alias /myapp/alias 
> "/path/outside/appbase"). I've implemented this by creating context 
> xml files for all my aliases with appBase="/path/outside/appbase" 
> path="/myapp/alias". Again, is this the preferred way of doing this?

I have found that I cannot forward to these "aliases" that I have 
created. I was writing a servlet that would forward the client to the 
correct image in /myapp/images using a RequestDispatcher. When I changed 
the "alias" to /images and it works.

Not a cry for help this time :) Just telling about my experience since I 
found it to be a bit strange.


Trond

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