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
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
.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.
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
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
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)
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
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
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
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
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
11 matches
Mail list logo