Re: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N
Hi, wen i checked the log file, i think the error might be in the line of the code. root = propFile.getProperty("app.directory"); This code should be able to download the files from the server. so i m using application.properties where app.directory="D:\\temp\\files\\" I doubt b

Re: Re: was 404 - now 500

2006-01-31 Thread DEEPA M N
Hi, I jus tried this. I created another folder under webapps and the tree structure is as below. Download1-- --WEB-INF/web.xml --WEB-INF/classes/com/deepa/servlet/DownloadFiles.class --WEB-INF/lib Download1 is under webapps folder. But after trying this too i am getting the same

Re: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N
.If u > are having much time u can try reconfiguring everything > regards > vineesh > > On 1/31/06, DEEPA M N wrote: > > > > Here r few lines of codes; > > > > package com.deepa.servlet; > > import java.io.*; > > import java.util.*; > > import java.

Re: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N
Here r few lines of codes; package com.deepa.servlet; import java.io.*; import java.util.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.zip.GZIPOutputStream; public class DownloadFiles extends HttpServlet { private static final String DIR = "d

Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi, I hav set the classpath in the environment variables as below D:\Tomcat5.0\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar Let me know is this correct? regards Deepa vineesh kumar <[EMAIL PROTECTED]> wrote: Deepa this error comes bcos the classpath of urs is not set correctly.p

Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi I did as u said. This is wat the error i m getting. D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classes>java com.deepa.servlet.DownloadFiles Exception in thread "main" java.lang.NoClassDefFoundError: com/deepa/servlet/DownloadFiles (wrong name: DownloadFiles)

Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi, Here is a log file. Pls let me know how can i correct it. 2006-01-31 10:30:54 StandardWrapperValve[DownloadFiles]: Allocate exception for servlet DownloadFiles javax.servlet.ServletException: Error allocating a servlet instance at org.apache.catalina.core.StandardWrapper.allocate

Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi Vineesh, The class name is DownloadFiles.class Pls let me know wat is access permissions of the class and tomcat. I m posting my web.xml after including package. http://java.sun.com/dtd/web-app_2_3.dtd";> Tomcat Documentation Tomcat Documentation. D

Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi Anto Paul, Ya I extended HttpServlet method and also service() method. I also tried wit packages, but also i m getting some sort of error. Pls help me. I greatly welcome ur help. Thank u Deepa - Jiyo cricket

Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi Thank u, I did as u mentioned. But wen i run the appln now, i m getting this error. Http status 500: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.Se

Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi I m using Jdk1.5 and Tomcat 5.0.28 for my proj. I have written a code which can download a file from the server. The code is compiling properly. I pasted the .class file in the webapps/DownloadFile/WEB-INF/classes/ Also i hav written web.xml in the WEB-INF folder. After running a a