Re: Tomcat installation blues
On Sun, 27 May 2007 11:53:31 +0200
"Joachim Smit" <joachimsmit@gmail.com> wrote:
> OK
>
> I installed mod_jk.so and JDK now. Thanks!
>
> But now a JSP-file in /var/www is not recognized as a JSP-file. My
> browser shows me the plain java-code.
>
> What is the next step?
>
> Regards,
>
> Joachim
>
>
You have to make a web.xml file in $APP_DIR/WEB-INF. If you don't plan
to use servlets (only jsp and static html), it may be as simple as:
<?xml version="1.0"?>
<web-app>
</web-app>
Just for info, I also have installed both Apache and Tomcat, but I did
the trick without mod_jk. I simply put a .htaccess file in my jsp
directory which redirects all requests to Tomcat. If your installation
is non-productive (e.g. for learning purposes), I recommend this simple
and easy solution.
--
Szia:
Nyizsa.
----------------------------------------------------------------------
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com
Reply to: