Hi I have tomcat 4.1.27 installed on Red Hat Linux 9 with JDK 1.4.1_02 and all the examples included with tomcat works fine. But when I copy the servlet examples from SCWCD study Kit to webapps/ directory and go to http://localhost:8080/chapter01/servlet/HelloWorldServlet I get the source of the html file rather than just showing "Hello World!" The same thing works fine under Win XP, could someone help me? Thanks in advance Alexan [ August 27, 2003: Message edited by: Alexan Kahkejian ]
couple of quick things I think you want JDK 1.4.2 - I read somewhere recently that it's much better (how bad it was before I'm not sure) seehere the other thing, obvious one - you mention copying stuff to the webapps directory, but have you made any changes to the contexts in server.xml?
while I'm on... can I ask where have you installed Tomcat? what is your CATALINA_HOME ?? some people talk about putting it under /var/tomcat.x.x.x/ or /usr/local/tomcat.. I'd put mine under /usr/java/tomcat - but i think I'm asking for trouble using root accounts here and will now move it thing is I'd like it to run all the time and have write access to the webapps and conf folders via samba, maybe it should go in /home/<myaccount>/tomcat ?? thanks in advance
Hi Marcus Yes I've already made the required changes to server.xml and it works fine when running example servlets of tomcat and it works in win xp completely but the problem is in Linux and with new servlets. PS : My $CATALINA_HOME is /usr/local/tomcat