Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: tomcat crash with application when doesn't found file

Pid

2007-02-13

Replies:

whereabouts, in the init method?

can you post the servlet code?

have you properly enclosed it in a try { ... } catch(IOException ioe) {}?

it sounds like your code is causing the servlet to stop tomcat starting
up by throwing an uncaught exception.


p



master@(protected):
> the line of the code is in a servlet i call mysite.com/myservlet
>
> (but i don t have the exact line on me ) i will search it
>>> the code i use is :
>>> Source myfiletxt = new StreamSource(new File("/home/mast/myfile.txt"));
>> And where is this line of code, in a servlet, a listener, where?
>>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.