Tomcat 4.1.29 Configuration Problem

2003-11-18 Thread Vaneet Sharma
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-nameHello/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:[EMAIL PROTECTED] 
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
extensionxls/extension
mime-typeapplication/vnd.ms-excel/mime-type
/mime-mapping
to conf/web.xml and restart Tomcat

 -Original Message-
 From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED]
 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:[EMAIL PROTECTED]
 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:[EMAIL PROTECTED]
  Sent: 18 November 2003 13:36
  To: [EMAIL PROTECTED]
  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=_blankTax
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 4.1.29 Configuration Problem

2003-11-18 Thread Harry Mantheakis
Hello

 3) I copied my servlet to
 webapps/hSolutions/WEB-INF/classes/hLibManagSolutions/Hello.class

 servlet 
 servlet-name Hello /servlet-name
 servlet-class hLibManagSystem.Hello /servlet-class
 /servlet

Looks like either 'hLibManagSolutions' should be 'hLibManagSystem' or the
other way round.

Avoid blank spaces in your element values just to be safe. Instead of this:

servlet-name Hello /servlet-name

Type this:

servlet-nameHello/servlet-name

Regards

Harry Mantheakis
London, UK


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]