tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vaneet Sharma" <Vaneet.Sha...@mcast.edu.mt>
Subject Tomcat 4.1.29 Configuration Problem
Date Tue, 18 Nov 2003 15:06:01 GMT
Hi all,
       I am having a problem in configurating tomcat.
    
  1) I made a web application under webapps called hSolutions.
2) In conf , directory , there are three - four server.xml files. I put the context (hSolutions)
in server-noexamples.xml.config
 3) I copied my servlet to webapps/hSolutions/WEB-INF/classes/hLibManagSolutions/Hello.class
 4) In web.xml file i put :
     <web-app>
 <servlet> 
<servlet-name> Hello </servlet-name>
<servlet-class> hLibManagSystem.Hello </servlet-class>
 </servlet>
<servlet-mapping>
  <servlet-name>Hello</servlet-name>
   <url-pattern>/Hello</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>
 html/Registration.html
</welcome-file>
</welcome-file-list>
     Tomcat is finding the Registration.html but not the classes .
 It is giving 404 error.
            I have had problems with tomcat before, but i think this new version TOMCAT 4.1.29
(with a ROOT folder) has some different configuration settings.
 Why doesnt jakarta, give a proper configuration example.
   Please let me know. i have wasted a lot of time on configuration today
 Will appreciate your feedback
 Thankx
 Vaneet
 
 
 
     

	-----Original Message----- 
	From: Tom Lyle [mailto:toml@limehouse.co.uk] 
	Sent: Tue 18/11/2003 14:44 
	To: Tomcat Users List 
	Cc: 
	Subject: RE: Tomcat version
	
	

	Assuming that tomcat 4.0.3 s web.xml layout is the same as as 4.1.24 try
	adding
	    <mime-mapping>
	        <extension>xls</extension>
	        <mime-type>application/vnd.ms-excel</mime-type>
	    </mime-mapping>
	to conf/web.xml and restart Tomcat
	
	> -----Original Message-----
	> From: Aggarwal, Gautam (IE03) [mailto:GautamA@tatahoneywell.co.in]
	> Sent: 18 November 2003 13:48
	> To: Tomcat Users List
	> Subject: RE: Tomcat version
	>
	>
	> Please tell me how to set the mime type.
	>
	> -----Original Message-----
	> From: Tom Lyle [mailto:toml@limehouse.co.uk]
	> Sent: Tuesday, November 18, 2003 6:56 PM
	> To: Tomcat Users List
	> Subject: RE: Tomcat version
	>
	>
	> At a guess the excel mime type is not set in Tomcat 4.0.3 conf/web.xml
	>
	> > -----Original Message-----
	> > From: Aggarwal, Gautam (IE03) [mailto:GautamA@tatahoneywell.co.in]
	> > Sent: 18 November 2003 13:36
	> > To: tomcat-user@jakarta.apache.org
	> > Subject: Tomcat version
	> >
	> >
	> > I have a link on a page in my JSP application that is supposed
	> to open an
	> > Excel file. The link is <a href="taxCalc.xls" target="_blank">Tax
	> > Calculator</a>.
	> >
	> > If the application runs on Tomcat 4.1.24, it works fine. A new browser
	> > window opens, the excel file gets downloaded and opens up in
	> the browser.
	> > But, if I run the application on another instance of Tomcat which
	> > is 4.0.3,
	> > the excel file does not open, instead it shows a lot of junk
	> characters in
	> > the browser.
	> >
	> > What could be the reason for this?
	> >
	> > Thanks,
	> > Gautam
	> >
	> > ---------------------------------------------------------------------
	> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
	> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
	> >
	> >
	>
	>
	> ---------------------------------------------------------------------
	> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
	> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
	>
	> ---------------------------------------------------------------------
	> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
	> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
	>
	>
	
	
	---------------------------------------------------------------------
	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