You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by satish viswanatham <sa...@gmail.com> on 2007/08/20 22:59:31 UTC

Running MINA inside Tomcat causing problems.

Hi

I have a Servlet- which start TCP and UDP MINA servers. After receiving few
packets on the server - the servlet gets un-deployed. Not java stack trace
or details were available in the logs. Is there is a way to debug this? The
code runs fine outside Tomcat.  I think MINA uses Sl4J and I made sure I
have commons-logging.jar, log4j.jar and sl4j-log4j12-1.3.1.jar. I am using
Tomcat 5.5.12. Which version of log4j does Tomcat 5.5.12 use? I tried with
both Apache MINA 1.1 and 1.0. It has the same issue. I have just this web
app deployed on tomcat.

Please let me know, if you have suggestions.

thanks

Aug 20, 2007 1:24:54 PM org.apache.catalina.startup.HostConfigcheckResources
INFO: Undeploying context [/tester]


Aug 20, 2007 1:26:41 PM org.apache.catalina.loader.WebappClassLoaderloadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load
org.apache.mina.transport.socket.nio.support.DatagramConnectorDelegate.  The
eventual following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
Aug 20, 2007 1:26:41 PM org.apache.catalina.loader.WebappClassLoaderloadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load org.apache.log4j.spi.ThrowableInformation.  The
eventual following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
Aug 20, 2007 1:26:41 PM org.apache.catalina.loader.WebappClassLoaderloadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load org.apache.log4j.spi.ThrowableInformation.  The
eventual following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.

Re: Running MINA inside Tomcat causing problems.

Posted by Trustin Lee <tr...@gmail.com>.
On 8/21/07, satish viswanatham <sa...@gmail.com> wrote:
> Hi
>
> I have a Servlet- which start TCP and UDP MINA servers. After receiving few
> packets on the server - the servlet gets un-deployed. Not java stack trace
> or details were available in the logs. Is there is a way to debug this? The
> code runs fine outside Tomcat.  I think MINA uses Sl4J and I made sure I
> have commons-logging.jar, log4j.jar and sl4j-log4j12-1.3.1.jar. I am using
> Tomcat 5.5.12. Which version of log4j does Tomcat 5.5.12 use? I tried with
> both Apache MINA 1.1 and 1.0. It has the same issue. I have just this web
> app deployed on tomcat.
>
> Please let me know, if you have suggestions.

I think it's a SLF4J problem.  Why don't you contact SLF4J mailing list?

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Re: Running MINA inside Tomcat causing problems.

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
then modify HostConfig.java to spit out that info, I looked at the code, 
it doesn't tell you why its reloading even with debug enabled

Filip

satish viswanatham wrote:
> Hi
>
> This undeploy does not happen during startup. It happens after receiving few
> TCP and UDP messages.
>
> Now the app gets un-deployed and does not get re-deployed. No additional
> information was provided why the app got un-deployed.
>
> I want to know the root cause of why the app being un-deployed?
>
> thanks
> Satish
>
> On 8/20/07, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>   
>> does the undeploy happen during startup? or after running for a while?
>>
>> if it is during runtime, you can disable the host autoDeploy
>>
>> <Host deployOnStartup="true" autoDeploy="false".....>
>>
>> Filip
>>
>> satish viswanatham wrote:
>>     
>>> Is there way to log more details about  why HostConfig checkResources
>>>       
>> was
>>     
>>> called? On an exception or some other problem?
>>>
>>> Aug 20, 2007 1:24:54 PM
>>>       
>> org.apache.catalina.startup.HostConfigcheckResources
>>     
>>>> INFO: Undeploying context [/tester]
>>>>
>>>>         
>>> thanks
>>> Satish
>>>
>>> On 8/20/07, satish viswanatham <sa...@gmail.com> wrote:
>>>
>>>       
>>>> Hi Filip,
>>>>
>>>> Thank you for a quick response.  I do have reloadable="false" in my
>>>> context.
>>>>
>>>> I do not see web.xml's time stamp changing.
>>>>
>>>> thanks
>>>> Satish
>>>>
>>>> On 8/20/07, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>>>>
>>>>         
>>>>> make sure your turn reloadable="false" for your context,
>>>>> and make sure nothing modifies the timestamp of WEB-INF/web.xml
>>>>>
>>>>> Filip
>>>>>
>>>>> satish viswanatham wrote:
>>>>>
>>>>>           
>>>>>> Hi
>>>>>>
>>>>>> I have a Servlet- which start TCP and UDP MINA servers. After
>>>>>>
>>>>>>             
>>>>> receiving few
>>>>>
>>>>>           
>>>>>> packets on the server - the servlet gets un-deployed. Not java stack
>>>>>>
>>>>>>             
>>>>> trace
>>>>>
>>>>>           
>>>>>> or details were available in the logs. Is there is a way to debug
>>>>>>
>>>>>>             
>>>>> this? The
>>>>>
>>>>>           
>>>>>> code runs fine outside Tomcat.  I think MINA uses Sl4J and I made
>>>>>>             
>> sure
>>     
>>>>> I
>>>>>
>>>>>           
>>>>>> have commons-logging.jar, log4j.jar and sl4j-log4j12-1.3.1.jar. I am
>>>>>>
>>>>>>             
>>>>> using
>>>>>
>>>>>           
>>>>>> Tomcat 5.5.12. Which version of log4j does Tomcat 5.5.12 use? I tried
>>>>>>
>>>>>>             
>>>>> with
>>>>>
>>>>>           
>>>>>> both Apache MINA 1.1 and 1.0. It has the same issue. I have just this
>>>>>>
>>>>>>             
>>>>> web
>>>>>
>>>>>           
>>>>>> app deployed on tomcat.
>>>>>>
>>>>>> Please let me know, if you have suggestions.
>>>>>>
>>>>>> thanks
>>>>>>
>>>>>> Aug 20, 2007 1:24:54 PM
>>>>>>
>>>>>>             
>>>>> org.apache.catalina.startup.HostConfigcheckResources
>>>>>
>>>>>           
>>>>>> INFO: Undeploying context [/tester]
>>>>>>
>>>>>>
>>>>>> Aug 20, 2007 1:26:41 PM
>>>>>>
>>>>>>             
>>>>> org.apache.catalina.loader.WebappClassLoaderloadClass
>>>>>
>>>>>           
>>>>>> INFO: Illegal access: this web application instance has been stopped
>>>>>> already.  Could not load
>>>>>>
>>>>>>             
>> org.apache.mina.transport.socket.nio.support.DatagramConnectorDelegate
>>     
>>>>> .  The
>>>>>
>>>>>           
>>>>>> eventual following stack trace is caused by an error thrown for
>>>>>>
>>>>>>             
>>>>> debugging
>>>>>
>>>>>           
>>>>>> purposes as well as to attempt to terminate the thread which caused
>>>>>>
>>>>>>             
>>>>> the
>>>>>
>>>>>           
>>>>>> illegal access, and has no functional impact.
>>>>>> Aug 20, 2007 1:26:41 PM
>>>>>>
>>>>>>             
>>>>> org.apache.catalina.loader.WebappClassLoaderloadClass
>>>>>
>>>>>           
>>>>>> INFO: Illegal access: this web application instance has been stopped
>>>>>> already.  Could not load org.apache.log4j.spi.ThrowableInformation
>>>>>>
>>>>>>             
>>>>> .  The
>>>>>
>>>>>           
>>>>>> eventual following stack trace is caused by an error thrown for
>>>>>>
>>>>>>             
>>>>> debugging
>>>>>
>>>>>           
>>>>>> purposes as well as to attempt to terminate the thread which caused
>>>>>>
>>>>>>             
>>>>> the
>>>>>
>>>>>           
>>>>>> illegal access, and has no functional impact.
>>>>>> Aug 20, 2007 1:26:41 PM
>>>>>>
>>>>>>             
>>>>> org.apache.catalina.loader.WebappClassLoaderloadClass
>>>>>
>>>>>           
>>>>>> INFO: Illegal access: this web application instance has been stopped
>>>>>> already.  Could not load org.apache.log4j.spi.ThrowableInformation
>>>>>>
>>>>>>             
>>>>> .  The
>>>>>
>>>>>           
>>>>>> eventual following stack trace is caused by an error thrown for
>>>>>>
>>>>>>             
>>>>> debugging
>>>>>
>>>>>           
>>>>>> purposes as well as to attempt to terminate the thread which caused
>>>>>>
>>>>>>             
>>>>> the
>>>>>
>>>>>           
>>>>>> illegal access, and has no functional impact.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>> ------------------------------------------------------------------------
>>     
>>>>>> No virus found in this incoming message.
>>>>>> Checked by AVG Free Edition.
>>>>>> Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
>>>>>>
>>>>>>             
>>>>> 8/19/2007 7:27 AM
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>           
>>> ------------------------------------------------------------------------
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG Free Edition.
>>> Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
>>>       
>> 8/19/2007 7:27 AM
>>     
>> ---------------------------------------------------------------------
>> 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
>>
>>
>>     
>
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 8/19/2007 7:27 AM
>   


---------------------------------------------------------------------
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


Re: Running MINA inside Tomcat causing problems.

Posted by satish viswanatham <sa...@gmail.com>.
Hi

This undeploy does not happen during startup. It happens after receiving few
TCP and UDP messages.

Now the app gets un-deployed and does not get re-deployed. No additional
information was provided why the app got un-deployed.

I want to know the root cause of why the app being un-deployed?

thanks
Satish

On 8/20/07, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>
> does the undeploy happen during startup? or after running for a while?
>
> if it is during runtime, you can disable the host autoDeploy
>
> <Host deployOnStartup="true" autoDeploy="false".....>
>
> Filip
>
> satish viswanatham wrote:
> > Is there way to log more details about  why HostConfig checkResources
> was
> > called? On an exception or some other problem?
> >
> > Aug 20, 2007 1:24:54 PM
> org.apache.catalina.startup.HostConfigcheckResources
> >
> >> INFO: Undeploying context [/tester]
> >>
> >
> > thanks
> > Satish
> >
> > On 8/20/07, satish viswanatham <sa...@gmail.com> wrote:
> >
> >> Hi Filip,
> >>
> >> Thank you for a quick response.  I do have reloadable="false" in my
> >> context.
> >>
> >> I do not see web.xml's time stamp changing.
> >>
> >> thanks
> >> Satish
> >>
> >> On 8/20/07, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> >>
> >>> make sure your turn reloadable="false" for your context,
> >>> and make sure nothing modifies the timestamp of WEB-INF/web.xml
> >>>
> >>> Filip
> >>>
> >>> satish viswanatham wrote:
> >>>
> >>>> Hi
> >>>>
> >>>> I have a Servlet- which start TCP and UDP MINA servers. After
> >>>>
> >>> receiving few
> >>>
> >>>> packets on the server - the servlet gets un-deployed. Not java stack
> >>>>
> >>> trace
> >>>
> >>>> or details were available in the logs. Is there is a way to debug
> >>>>
> >>> this? The
> >>>
> >>>> code runs fine outside Tomcat.  I think MINA uses Sl4J and I made
> sure
> >>>>
> >>> I
> >>>
> >>>> have commons-logging.jar, log4j.jar and sl4j-log4j12-1.3.1.jar. I am
> >>>>
> >>> using
> >>>
> >>>> Tomcat 5.5.12. Which version of log4j does Tomcat 5.5.12 use? I tried
> >>>>
> >>> with
> >>>
> >>>> both Apache MINA 1.1 and 1.0. It has the same issue. I have just this
> >>>>
> >>> web
> >>>
> >>>> app deployed on tomcat.
> >>>>
> >>>> Please let me know, if you have suggestions.
> >>>>
> >>>> thanks
> >>>>
> >>>> Aug 20, 2007 1:24:54 PM
> >>>>
> >>> org.apache.catalina.startup.HostConfigcheckResources
> >>>
> >>>> INFO: Undeploying context [/tester]
> >>>>
> >>>>
> >>>> Aug 20, 2007 1:26:41 PM
> >>>>
> >>> org.apache.catalina.loader.WebappClassLoaderloadClass
> >>>
> >>>> INFO: Illegal access: this web application instance has been stopped
> >>>> already.  Could not load
> >>>>
> org.apache.mina.transport.socket.nio.support.DatagramConnectorDelegate
> >>>>
> >>> .  The
> >>>
> >>>> eventual following stack trace is caused by an error thrown for
> >>>>
> >>> debugging
> >>>
> >>>> purposes as well as to attempt to terminate the thread which caused
> >>>>
> >>> the
> >>>
> >>>> illegal access, and has no functional impact.
> >>>> Aug 20, 2007 1:26:41 PM
> >>>>
> >>> org.apache.catalina.loader.WebappClassLoaderloadClass
> >>>
> >>>> INFO: Illegal access: this web application instance has been stopped
> >>>> already.  Could not load org.apache.log4j.spi.ThrowableInformation
> >>>>
> >>> .  The
> >>>
> >>>> eventual following stack trace is caused by an error thrown for
> >>>>
> >>> debugging
> >>>
> >>>> purposes as well as to attempt to terminate the thread which caused
> >>>>
> >>> the
> >>>
> >>>> illegal access, and has no functional impact.
> >>>> Aug 20, 2007 1:26:41 PM
> >>>>
> >>> org.apache.catalina.loader.WebappClassLoaderloadClass
> >>>
> >>>> INFO: Illegal access: this web application instance has been stopped
> >>>> already.  Could not load org.apache.log4j.spi.ThrowableInformation
> >>>>
> >>> .  The
> >>>
> >>>> eventual following stack trace is caused by an error thrown for
> >>>>
> >>> debugging
> >>>
> >>>> purposes as well as to attempt to terminate the thread which caused
> >>>>
> >>> the
> >>>
> >>>> illegal access, and has no functional impact.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> ------------------------------------------------------------------------
> >>>
> >>>> No virus found in this incoming message.
> >>>> Checked by AVG Free Edition.
> >>>> Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
> >>>>
> >>> 8/19/2007 7:27 AM
> >>>
> >>> ---------------------------------------------------------------------
> >>> 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
> >>>
> >>>
> >>>
> >
> >
> > ------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
> 8/19/2007 7:27 AM
> >
>
>
> ---------------------------------------------------------------------
> 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
>
>

Re: Running MINA inside Tomcat causing problems.

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
does the undeploy happen during startup? or after running for a while?

if it is during runtime, you can disable the host autoDeploy

<Host deployOnStartup="true" autoDeploy="false".....>

Filip

satish viswanatham wrote:
> Is there way to log more details about  why HostConfig checkResources was
> called? On an exception or some other problem?
>
> Aug 20, 2007 1:24:54 PM org.apache.catalina.startup.HostConfigcheckResources
>   
>> INFO: Undeploying context [/tester]
>>     
>
> thanks
> Satish
>
> On 8/20/07, satish viswanatham <sa...@gmail.com> wrote:
>   
>> Hi Filip,
>>
>> Thank you for a quick response.  I do have reloadable="false" in my
>> context.
>>
>> I do not see web.xml's time stamp changing.
>>
>> thanks
>> Satish
>>
>> On 8/20/07, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>>     
>>> make sure your turn reloadable="false" for your context,
>>> and make sure nothing modifies the timestamp of WEB-INF/web.xml
>>>
>>> Filip
>>>
>>> satish viswanatham wrote:
>>>       
>>>> Hi
>>>>
>>>> I have a Servlet- which start TCP and UDP MINA servers. After
>>>>         
>>> receiving few
>>>       
>>>> packets on the server - the servlet gets un-deployed. Not java stack
>>>>         
>>> trace
>>>       
>>>> or details were available in the logs. Is there is a way to debug
>>>>         
>>> this? The
>>>       
>>>> code runs fine outside Tomcat.  I think MINA uses Sl4J and I made sure
>>>>         
>>> I
>>>       
>>>> have commons-logging.jar, log4j.jar and sl4j-log4j12-1.3.1.jar. I am
>>>>         
>>> using
>>>       
>>>> Tomcat 5.5.12. Which version of log4j does Tomcat 5.5.12 use? I tried
>>>>         
>>> with
>>>       
>>>> both Apache MINA 1.1 and 1.0. It has the same issue. I have just this
>>>>         
>>> web
>>>       
>>>> app deployed on tomcat.
>>>>
>>>> Please let me know, if you have suggestions.
>>>>
>>>> thanks
>>>>
>>>> Aug 20, 2007 1:24:54 PM
>>>>         
>>> org.apache.catalina.startup.HostConfigcheckResources
>>>       
>>>> INFO: Undeploying context [/tester]
>>>>
>>>>
>>>> Aug 20, 2007 1:26:41 PM
>>>>         
>>> org.apache.catalina.loader.WebappClassLoaderloadClass
>>>       
>>>> INFO: Illegal access: this web application instance has been stopped
>>>> already.  Could not load
>>>> org.apache.mina.transport.socket.nio.support.DatagramConnectorDelegate
>>>>         
>>> .  The
>>>       
>>>> eventual following stack trace is caused by an error thrown for
>>>>         
>>> debugging
>>>       
>>>> purposes as well as to attempt to terminate the thread which caused
>>>>         
>>> the
>>>       
>>>> illegal access, and has no functional impact.
>>>> Aug 20, 2007 1:26:41 PM
>>>>         
>>> org.apache.catalina.loader.WebappClassLoaderloadClass
>>>       
>>>> INFO: Illegal access: this web application instance has been stopped
>>>> already.  Could not load org.apache.log4j.spi.ThrowableInformation
>>>>         
>>> .  The
>>>       
>>>> eventual following stack trace is caused by an error thrown for
>>>>         
>>> debugging
>>>       
>>>> purposes as well as to attempt to terminate the thread which caused
>>>>         
>>> the
>>>       
>>>> illegal access, and has no functional impact.
>>>> Aug 20, 2007 1:26:41 PM
>>>>         
>>> org.apache.catalina.loader.WebappClassLoaderloadClass
>>>       
>>>> INFO: Illegal access: this web application instance has been stopped
>>>> already.  Could not load org.apache.log4j.spi.ThrowableInformation
>>>>         
>>> .  The
>>>       
>>>> eventual following stack trace is caused by an error thrown for
>>>>         
>>> debugging
>>>       
>>>> purposes as well as to attempt to terminate the thread which caused
>>>>         
>>> the
>>>       
>>>> illegal access, and has no functional impact.
>>>>
>>>>
>>>>
>>>>         
>>> ------------------------------------------------------------------------
>>>       
>>>> No virus found in this incoming message.
>>>> Checked by AVG Free Edition.
>>>> Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
>>>>         
>>> 8/19/2007 7:27 AM
>>>       
>>> ---------------------------------------------------------------------
>>> 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
>>>
>>>
>>>       
>
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 8/19/2007 7:27 AM
>   


---------------------------------------------------------------------
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


Re: Running MINA inside Tomcat causing problems.

Posted by satish viswanatham <sa...@gmail.com>.
Is there way to log more details about  why HostConfig checkResources was
called? On an exception or some other problem?

Aug 20, 2007 1:24:54 PM org.apache.catalina.startup.HostConfigcheckResources
> INFO: Undeploying context [/tester]

thanks
Satish

On 8/20/07, satish viswanatham <sa...@gmail.com> wrote:
>
> Hi Filip,
>
> Thank you for a quick response.  I do have reloadable="false" in my
> context.
>
> I do not see web.xml's time stamp changing.
>
> thanks
> Satish
>
> On 8/20/07, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> >
> > make sure your turn reloadable="false" for your context,
> > and make sure nothing modifies the timestamp of WEB-INF/web.xml
> >
> > Filip
> >
> > satish viswanatham wrote:
> > > Hi
> > >
> > > I have a Servlet- which start TCP and UDP MINA servers. After
> > receiving few
> > > packets on the server - the servlet gets un-deployed. Not java stack
> > trace
> > > or details were available in the logs. Is there is a way to debug
> > this? The
> > > code runs fine outside Tomcat.  I think MINA uses Sl4J and I made sure
> > I
> > > have commons-logging.jar, log4j.jar and sl4j-log4j12-1.3.1.jar. I am
> > using
> > > Tomcat 5.5.12. Which version of log4j does Tomcat 5.5.12 use? I tried
> > with
> > > both Apache MINA 1.1 and 1.0. It has the same issue. I have just this
> > web
> > > app deployed on tomcat.
> > >
> > > Please let me know, if you have suggestions.
> > >
> > > thanks
> > >
> > > Aug 20, 2007 1:24:54 PM
> > org.apache.catalina.startup.HostConfigcheckResources
> > > INFO: Undeploying context [/tester]
> > >
> > >
> > > Aug 20, 2007 1:26:41 PM
> > org.apache.catalina.loader.WebappClassLoaderloadClass
> > > INFO: Illegal access: this web application instance has been stopped
> > > already.  Could not load
> > > org.apache.mina.transport.socket.nio.support.DatagramConnectorDelegate
> > .  The
> > > eventual following stack trace is caused by an error thrown for
> > debugging
> > > purposes as well as to attempt to terminate the thread which caused
> > the
> > > illegal access, and has no functional impact.
> > > Aug 20, 2007 1:26:41 PM
> > org.apache.catalina.loader.WebappClassLoaderloadClass
> > > INFO: Illegal access: this web application instance has been stopped
> > > already.  Could not load org.apache.log4j.spi.ThrowableInformation
> > .  The
> > > eventual following stack trace is caused by an error thrown for
> > debugging
> > > purposes as well as to attempt to terminate the thread which caused
> > the
> > > illegal access, and has no functional impact.
> > > Aug 20, 2007 1:26:41 PM
> > org.apache.catalina.loader.WebappClassLoaderloadClass
> > > INFO: Illegal access: this web application instance has been stopped
> > > already.  Could not load org.apache.log4j.spi.ThrowableInformation
> > .  The
> > > eventual following stack trace is caused by an error thrown for
> > debugging
> > > purposes as well as to attempt to terminate the thread which caused
> > the
> > > illegal access, and has no functional impact.
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
> > 8/19/2007 7:27 AM
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
>

Re: Running MINA inside Tomcat causing problems.

Posted by satish viswanatham <sa...@gmail.com>.
Hi Filip,

Thank you for a quick response.  I do have reloadable="false" in my context.


I do not see web.xml's time stamp changing.

thanks
Satish

On 8/20/07, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>
> make sure your turn reloadable="false" for your context,
> and make sure nothing modifies the timestamp of WEB-INF/web.xml
>
> Filip
>
> satish viswanatham wrote:
> > Hi
> >
> > I have a Servlet- which start TCP and UDP MINA servers. After receiving
> few
> > packets on the server - the servlet gets un-deployed. Not java stack
> trace
> > or details were available in the logs. Is there is a way to debug this?
> The
> > code runs fine outside Tomcat.  I think MINA uses Sl4J and I made sure I
> > have commons-logging.jar, log4j.jar and sl4j-log4j12-1.3.1.jar. I am
> using
> > Tomcat 5.5.12. Which version of log4j does Tomcat 5.5.12 use? I tried
> with
> > both Apache MINA 1.1 and 1.0. It has the same issue. I have just this
> web
> > app deployed on tomcat.
> >
> > Please let me know, if you have suggestions.
> >
> > thanks
> >
> > Aug 20, 2007 1:24:54 PM
> org.apache.catalina.startup.HostConfigcheckResources
> > INFO: Undeploying context [/tester]
> >
> >
> > Aug 20, 2007 1:26:41 PM
> org.apache.catalina.loader.WebappClassLoaderloadClass
> > INFO: Illegal access: this web application instance has been stopped
> > already.  Could not load
> > org.apache.mina.transport.socket.nio.support.DatagramConnectorDelegate
> .  The
> > eventual following stack trace is caused by an error thrown for
> debugging
> > purposes as well as to attempt to terminate the thread which caused the
> > illegal access, and has no functional impact.
> > Aug 20, 2007 1:26:41 PM
> org.apache.catalina.loader.WebappClassLoaderloadClass
> > INFO: Illegal access: this web application instance has been stopped
> > already.  Could not load org.apache.log4j.spi.ThrowableInformation.  The
> > eventual following stack trace is caused by an error thrown for
> debugging
> > purposes as well as to attempt to terminate the thread which caused the
> > illegal access, and has no functional impact.
> > Aug 20, 2007 1:26:41 PM
> org.apache.catalina.loader.WebappClassLoaderloadClass
> > INFO: Illegal access: this web application instance has been stopped
> > already.  Could not load org.apache.log4j.spi.ThrowableInformation.  The
> > eventual following stack trace is caused by an error thrown for
> debugging
> > purposes as well as to attempt to terminate the thread which caused the
> > illegal access, and has no functional impact.
> >
> >
> > ------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
> 8/19/2007 7:27 AM
> >
>
>
> ---------------------------------------------------------------------
> 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
>
>

Re: Running MINA inside Tomcat causing problems.

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
make sure your turn reloadable="false" for your context,
and make sure nothing modifies the timestamp of WEB-INF/web.xml

Filip

satish viswanatham wrote:
> Hi
>
> I have a Servlet- which start TCP and UDP MINA servers. After receiving few
> packets on the server - the servlet gets un-deployed. Not java stack trace
> or details were available in the logs. Is there is a way to debug this? The
> code runs fine outside Tomcat.  I think MINA uses Sl4J and I made sure I
> have commons-logging.jar, log4j.jar and sl4j-log4j12-1.3.1.jar. I am using
> Tomcat 5.5.12. Which version of log4j does Tomcat 5.5.12 use? I tried with
> both Apache MINA 1.1 and 1.0. It has the same issue. I have just this web
> app deployed on tomcat.
>
> Please let me know, if you have suggestions.
>
> thanks
>
> Aug 20, 2007 1:24:54 PM org.apache.catalina.startup.HostConfigcheckResources
> INFO: Undeploying context [/tester]
>
>
> Aug 20, 2007 1:26:41 PM org.apache.catalina.loader.WebappClassLoaderloadClass
> INFO: Illegal access: this web application instance has been stopped
> already.  Could not load
> org.apache.mina.transport.socket.nio.support.DatagramConnectorDelegate.  The
> eventual following stack trace is caused by an error thrown for debugging
> purposes as well as to attempt to terminate the thread which caused the
> illegal access, and has no functional impact.
> Aug 20, 2007 1:26:41 PM org.apache.catalina.loader.WebappClassLoaderloadClass
> INFO: Illegal access: this web application instance has been stopped
> already.  Could not load org.apache.log4j.spi.ThrowableInformation.  The
> eventual following stack trace is caused by an error thrown for debugging
> purposes as well as to attempt to terminate the thread which caused the
> illegal access, and has no functional impact.
> Aug 20, 2007 1:26:41 PM org.apache.catalina.loader.WebappClassLoaderloadClass
> INFO: Illegal access: this web application instance has been stopped
> already.  Could not load org.apache.log4j.spi.ThrowableInformation.  The
> eventual following stack trace is caused by an error thrown for debugging
> purposes as well as to attempt to terminate the thread which caused the
> illegal access, and has no functional impact.
>
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 8/19/2007 7:27 AM
>   


---------------------------------------------------------------------
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