Hi, Ive been trying to get a
servlet working on
tomcat 4.1.18. (basically trying desperatley to upgrade from 3.2.1 to see if any perfomrnace gain)
My problem is that tomcat will now startup itself and display
jsp pages and htm pages in the examples folder.
I need to add another folder.
In tomcat 3.2.1, I edited the server.xml to include an additional context like:
<!--derrick added this line
<Context
path="/intranettv"
docBase="D:\intranettv\admin\public_site"
debug="0"
reloadable="true"
crossContext="false">
</Context>-->
Then all i had to do was go to localhost:8888/intranettv/+class¶ms
When i try to add this context to tomcat 4.1.18 server.xml it goes a bit mental and complains about parser errors in web.xml
Do i also have to change web.xml somewhere else??
What do I have to do from this point to get the tomcat to recognise where the servlet is stored and where to put a pointer to the initial servlet class!!
Help please!
ps the old Web.inf for tomcat 3.2.1 looked like this. Does this need to be changed for tomcat 4.1.18
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>IntranetTV</display-name>
<description>
Guide
</description>
<servlet>
<servlet-name>IntranetTV</servlet-name>
<servlet-class>com.bt.intranettv.view.IntranetTV</servlet-class>
<init-param>
<param-name>root</param-name>
<param-value>D:\intranettv\admin\public_site\</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>IntranetTV</servlet-name>
<url-pattern>/IntranetTV</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ManageContent</servlet-name>
<servlet-class>com.bt.intranettv.admin.ManageContent</servlet-class>
<init-param>
<param-name>root</param-name>
<param-value>D:\intranettv\admin\public_site\</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ManageContent</servlet-name>
<url-pattern>/ManageContent</url-pattern>
</servlet-mapping>
</web-app>
[ February 10, 2003: Message edited by: tradester amagio ]