tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@tyranz.com
Subject Re: tomcat crash with application when doesn't found file
Date Tue, 13 Feb 2007 12:18:53 GMT
Well of course but when you have many people using the server, such
problem could be very bad , as an admin of the server you can't just
verify each one code and can only touch the server :)
> If your code is badly constructed you can cause the server to fail to
> start properly.  Fix your code, not the server.
>
>
>
>>> 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@tyranz.com wrote:
>>>> 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@tomcat.apache.org
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message