you need to be a little more specific with the exceptions you get; however I guess,
looking at the code,
that the file "matrix.ra" is not found. So try an absolute path or better, configure
the file location
in your servlet engine.
regards
janco
Robert Ziel wrote:
> HI,
>
> im very stuck on the following problem
> a have Servlet which invokes a class this class invokes another class which reads
>from a binary file
> the timedistance between two postalcodes...
> when i replace this by a mainfunction it works perfectly...
>
> my config is as follows:
>
> javawebserver 1.1.3
> java 1.22 on server and client
> classpath not set because uses the working dir.
>
> my function uses the following to access the file...
> public int ReadIndex(int travelValue)
> throws IOException
>
> {
>
> int travel;
> //travelValue = Index[travelValue];
> LogTD record;
>
> record = new LogTD();
> leraf = new LERandomAccessFile("matrix.ra", "r");
>
> leraf.seek( (travelValue) * record.size() );
> record.read(leraf);
> travelValue = record.getTime();
>
> return travelValue;
>
> }
>
> thanks a lot...
> robert
>
--
Janco Tanis
------------------------------------------------------------
COAS, Your partner in computer aided services
Nijverheidsweg 34 Tel: +31 (0) 187 49 3222
Postbus 44 Fax: +31 (0) 187 49 2912
3250 AA Stellendam Email: [EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html