You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rajeev Singh <ra...@synechron.com> on 2014/10/14 06:52:29 UTC
javax.naming.NamingException: Resource DTMManager not found on
Tomcat 6.0
Hi,
Environment: Redhat Linux
Tomcat: Version 6.0
I'm getting exception like
javax.naming.NamingException: Resource /WEB-INF/classes/META-INF/services/com.sun.org.apache.xml.internal.dtm.DTMManager not found
javax.naming.NamingException: Resource /WEB-INF/classes/net/sourceforge/jtds/jdbc/Driver.class not found
in lookup method of org.apache.naming.resources.ProxyDirContext.
In my application this isn't causing a logic issue, but this bug is manifesting as a notable performance problem. Every time a bad path is passed into the ProxyDirContext it's actually causing quite a lot of NamingExceptions to be thrown as it tries alternative paths (see BaseDirContext.lookup). All of these exceptions are swallowed but what I'm seeing is that this is happening many times over the course of a request as my application is looking up different resources, and the time it takes to build all of these swallowed NamingExceptions has become significant.
The path where the tomcat tries to search the resource doesn't exists. I tried searching the configuration files in conf folder of Tomcat but nowhere this type of path is mentioned.
Any help/pointer on how tomcat figures out resource path will be of great help.
Thanks,
Rajeev.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: javax.naming.NamingException: Resource DTMManager not found on
Tomcat 6.0
Posted by Mark Thomas <ma...@apache.org>.
On 14/10/2014 05:52, Rajeev Singh wrote:
> Hi,
> Environment: Redhat Linux
> Tomcat: Version 6.0
>
> I'm getting exception like
> javax.naming.NamingException: Resource /WEB-INF/classes/META-INF/services/com.sun.org.apache.xml.internal.dtm.DTMManager not found
>
> javax.naming.NamingException: Resource /WEB-INF/classes/net/sourceforge/jtds/jdbc/Driver.class not found
>
> in lookup method of org.apache.naming.resources.ProxyDirContext.
>
> In my application this isn't causing a logic issue, but this bug is manifesting as a notable performance problem. Every time a bad path is passed into the ProxyDirContext it's actually causing quite a lot of NamingExceptions to be thrown as it tries alternative paths (see BaseDirContext.lookup). All of these exceptions are swallowed but what I'm seeing is that this is happening many times over the course of a request as my application is looking up different resources, and the time it takes to build all of these swallowed NamingExceptions has become significant.
>
> The path where the tomcat tries to search the resource doesn't exists. I tried searching the configuration files in conf folder of Tomcat but nowhere this type of path is mentioned.
> Any help/pointer on how tomcat figures out resource path will be of great help.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56771
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org