Re: dsn config issues
I am not saying you are wrong, i am simply asking of you have tried a different location. On 6 Feb 2018 9:11 pm, "Rob Turner"wrote: Sorry, I don’t understand the question. I’m a noob at tomcat. I assume the jar file should load since it’s in the same location as all of the other jar files. > On Feb 6, 2018, at 2:57 PM, M. Manna wrote: > > How r u bootstrapping the application? As installed service or invoking > main() usimg bootstrap.jar? > > Also, I would try loading the jar from -classpath location. Typically, it > should be placed into WEB-INF/lib folder. But may be you want to try > loading it from classpath and see how it goes. > > Regards, > > > > > On 6 Feb 2018 8:46 pm, "Rob Turner" wrote: > > Yes. CATAKINA_HOME = /usr/tomcat8. I don’t see any errors during > startup. The only message I see that looks unusual is: > 'org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned > for TLDs yet contained no TLDs.' > >> On Feb 6, 2018, at 1:27 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Rob, >> >> On 2/6/18 1:28 PM, Rob Turner wrote: >>> My jdbc jar file is located in /usr/tomcat8/lib. >> >> Is CATALINA_HOME == /usr/tomcat8? >> >>> I see the same error in my log files as on my web page. Our >>> application traps the errors and displays them on the page. I >>> tried to remove the error trapping mechanism and now receive the >>> following when accessing a page containing database access: >>> >>> org.apache.jasper.JasperException: An exception occurred processing >>> JSP page /fbc/../common/client_configuration.inc at line 286 >>> >>> 283: throws NoSuchMethodException, InstantiationException, 284: >>> IllegalAccessException, java.lang.reflect.InvocationTargetException >>> { 285: return (Exception) e.getClass().getConstructor(new >>> Class[]{(new String()).getClass()}) 286: .newInstance(new >>> String[]{additionalMessage + ". " + e.getMessage()}); 287: } 288: >>> 289: >>> >>> >>> Stacktrace: >>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServ >> letWrapper.java:588) >>> >>> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja >> va:466) >>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:38 >> 5) >>> >>> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:729) >>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) >>> >>> >> root cause >>> >>> javax.servlet.ServletException: javax.naming.NameNotFoundException: >>> Invalid or unavailable DSN in Fort Bend County. Opening database >>> connection. Name [jdbc/test] is not bound in this Context. Unable >>> to find [jdbc]. >> >> >> Any errors during startup? Usually, Tomcat would attempt to connect to >> the database in order to pool at least one connection. >> >> - -chris >> -BEGIN PGP SIGNATURE- >> Comment: GPGTools - http://gpgtools.org >> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ >> >> iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlp6AaQdHGNocmlzQGNo >> cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFh6MA/+P5LR+JTSKQGBkTyb >> o6haKEV5wpQm1JZiZmlkFniTgi1OBebPnAbXVlBeYjZYrEf8Fn7KgFyKWYxdodI3 >> RH+6AJAfHob8A6hn2DsOcP6c2tOx4Xrz9BYpt235OQlmWiSfwDvBvhq/Ao+8z8s1 >> cCerzeWVzdiiHppv01/tGcbHgEuJPzh++yN6b6guOFM9U4WDPrdifTyKYhyLqOfV >> fXU00KG6m3t8qyTEBfmMVJao4DXmI02uiwNZebRoWlvJaWrJfdnoj3TY5nI45ptm >> 4BM0Z7PvAWsmAvZTjA/yNFtyhMHDZejmcpAKHyObJUUgYMKDjR4BJ0rQ7TWE2uXd >> Xf9Df6znWHDiC2mnhQqy1APiNif8BgGdlW8NbrbN8acvFRIlUdKEO0b+Nhl22lkN >> xnqJ/1WwogPRI8YVcpXR+3eIESRNDX/sxbY5rraoTJVK53V4OqBAByv0+ZCRVaVI >> g0TOu9fsS1m47TVTFzHGOQBW6UGmQUdWe9rDn7l0FM/4Q3dlBmW0S7WqOsAKlQOf >> iB0YwNAQRhPdgnMGk4eYGhxByay2LsCdLvBy18Vj5zp9H7/G5iTYUR/111cxDR69 >> swH+LtOQ1VDzuesRX+YxpBNUAp82pO2t/TeYqDAs+VuYjpjkcSkWXE/M2lSfOhlj >> kSVnzxNc7aY7VBrXiLR1KXl8VZQ= >> =7qS/ >> -END PGP SIGNATURE- >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: dsn config issues
Sorry, I don’t understand the question. I’m a noob at tomcat. I assume the jar file should load since it’s in the same location as all of the other jar files. > On Feb 6, 2018, at 2:57 PM, M. Mannawrote: > > How r u bootstrapping the application? As installed service or invoking > main() usimg bootstrap.jar? > > Also, I would try loading the jar from -classpath location. Typically, it > should be placed into WEB-INF/lib folder. But may be you want to try > loading it from classpath and see how it goes. > > Regards, > > > > > On 6 Feb 2018 8:46 pm, "Rob Turner" wrote: > > Yes. CATAKINA_HOME = /usr/tomcat8. I don’t see any errors during > startup. The only message I see that looks unusual is: > 'org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned > for TLDs yet contained no TLDs.' > >> On Feb 6, 2018, at 1:27 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Rob, >> >> On 2/6/18 1:28 PM, Rob Turner wrote: >>> My jdbc jar file is located in /usr/tomcat8/lib. >> >> Is CATALINA_HOME == /usr/tomcat8? >> >>> I see the same error in my log files as on my web page. Our >>> application traps the errors and displays them on the page. I >>> tried to remove the error trapping mechanism and now receive the >>> following when accessing a page containing database access: >>> >>> org.apache.jasper.JasperException: An exception occurred processing >>> JSP page /fbc/../common/client_configuration.inc at line 286 >>> >>> 283: throws NoSuchMethodException, InstantiationException, 284: >>> IllegalAccessException, java.lang.reflect.InvocationTargetException >>> { 285: return (Exception) e.getClass().getConstructor(new >>> Class[]{(new String()).getClass()}) 286: .newInstance(new >>> String[]{additionalMessage + ". " + e.getMessage()}); 287: } 288: >>> 289: >>> >>> >>> Stacktrace: >>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServ >> letWrapper.java:588) >>> >>> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja >> va:466) >>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:38 >> 5) >>> >>> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:729) >>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) >>> >>> >> root cause >>> >>> javax.servlet.ServletException: javax.naming.NameNotFoundException: >>> Invalid or unavailable DSN in Fort Bend County. Opening database >>> connection. Name [jdbc/test] is not bound in this Context. Unable >>> to find [jdbc]. >> >> >> Any errors during startup? Usually, Tomcat would attempt to connect to >> the database in order to pool at least one connection. >> >> - -chris >> -BEGIN PGP SIGNATURE- >> Comment: GPGTools - http://gpgtools.org >> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ >> >> iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlp6AaQdHGNocmlzQGNo >> cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFh6MA/+P5LR+JTSKQGBkTyb >> o6haKEV5wpQm1JZiZmlkFniTgi1OBebPnAbXVlBeYjZYrEf8Fn7KgFyKWYxdodI3 >> RH+6AJAfHob8A6hn2DsOcP6c2tOx4Xrz9BYpt235OQlmWiSfwDvBvhq/Ao+8z8s1 >> cCerzeWVzdiiHppv01/tGcbHgEuJPzh++yN6b6guOFM9U4WDPrdifTyKYhyLqOfV >> fXU00KG6m3t8qyTEBfmMVJao4DXmI02uiwNZebRoWlvJaWrJfdnoj3TY5nI45ptm >> 4BM0Z7PvAWsmAvZTjA/yNFtyhMHDZejmcpAKHyObJUUgYMKDjR4BJ0rQ7TWE2uXd >> Xf9Df6znWHDiC2mnhQqy1APiNif8BgGdlW8NbrbN8acvFRIlUdKEO0b+Nhl22lkN >> xnqJ/1WwogPRI8YVcpXR+3eIESRNDX/sxbY5rraoTJVK53V4OqBAByv0+ZCRVaVI >> g0TOu9fsS1m47TVTFzHGOQBW6UGmQUdWe9rDn7l0FM/4Q3dlBmW0S7WqOsAKlQOf >> iB0YwNAQRhPdgnMGk4eYGhxByay2LsCdLvBy18Vj5zp9H7/G5iTYUR/111cxDR69 >> swH+LtOQ1VDzuesRX+YxpBNUAp82pO2t/TeYqDAs+VuYjpjkcSkWXE/M2lSfOhlj >> kSVnzxNc7aY7VBrXiLR1KXl8VZQ= >> =7qS/ >> -END PGP SIGNATURE- >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: dsn config issues
How r u bootstrapping the application? As installed service or invoking main() usimg bootstrap.jar? Also, I would try loading the jar from -classpath location. Typically, it should be placed into WEB-INF/lib folder. But may be you want to try loading it from classpath and see how it goes. Regards, On 6 Feb 2018 8:46 pm, "Rob Turner"wrote: Yes. CATAKINA_HOME = /usr/tomcat8. I don’t see any errors during startup. The only message I see that looks unusual is: 'org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs.' > On Feb 6, 2018, at 1:27 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Rob, > > On 2/6/18 1:28 PM, Rob Turner wrote: >> My jdbc jar file is located in /usr/tomcat8/lib. > > Is CATALINA_HOME == /usr/tomcat8? > >> I see the same error in my log files as on my web page. Our >> application traps the errors and displays them on the page. I >> tried to remove the error trapping mechanism and now receive the >> following when accessing a page containing database access: >> >> org.apache.jasper.JasperException: An exception occurred processing >> JSP page /fbc/../common/client_configuration.inc at line 286 >> >> 283: throws NoSuchMethodException, InstantiationException, 284: >> IllegalAccessException, java.lang.reflect.InvocationTargetException >> { 285: return (Exception) e.getClass().getConstructor(new >> Class[]{(new String()).getClass()}) 286: .newInstance(new >> String[]{additionalMessage + ". " + e.getMessage()}); 287: } 288: >> 289: >> >> >> Stacktrace: >> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServ > letWrapper.java:588) >> >> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja > va:466) >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:38 > 5) >> >> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:729) >> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) >> >> > root cause >> >> javax.servlet.ServletException: javax.naming.NameNotFoundException: >> Invalid or unavailable DSN in Fort Bend County. Opening database >> connection. Name [jdbc/test] is not bound in this Context. Unable >> to find [jdbc]. > > > Any errors during startup? Usually, Tomcat would attempt to connect to > the database in order to pool at least one connection. > > - -chris > -BEGIN PGP SIGNATURE- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlp6AaQdHGNocmlzQGNo > cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFh6MA/+P5LR+JTSKQGBkTyb > o6haKEV5wpQm1JZiZmlkFniTgi1OBebPnAbXVlBeYjZYrEf8Fn7KgFyKWYxdodI3 > RH+6AJAfHob8A6hn2DsOcP6c2tOx4Xrz9BYpt235OQlmWiSfwDvBvhq/Ao+8z8s1 > cCerzeWVzdiiHppv01/tGcbHgEuJPzh++yN6b6guOFM9U4WDPrdifTyKYhyLqOfV > fXU00KG6m3t8qyTEBfmMVJao4DXmI02uiwNZebRoWlvJaWrJfdnoj3TY5nI45ptm > 4BM0Z7PvAWsmAvZTjA/yNFtyhMHDZejmcpAKHyObJUUgYMKDjR4BJ0rQ7TWE2uXd > Xf9Df6znWHDiC2mnhQqy1APiNif8BgGdlW8NbrbN8acvFRIlUdKEO0b+Nhl22lkN > xnqJ/1WwogPRI8YVcpXR+3eIESRNDX/sxbY5rraoTJVK53V4OqBAByv0+ZCRVaVI > g0TOu9fsS1m47TVTFzHGOQBW6UGmQUdWe9rDn7l0FM/4Q3dlBmW0S7WqOsAKlQOf > iB0YwNAQRhPdgnMGk4eYGhxByay2LsCdLvBy18Vj5zp9H7/G5iTYUR/111cxDR69 > swH+LtOQ1VDzuesRX+YxpBNUAp82pO2t/TeYqDAs+VuYjpjkcSkWXE/M2lSfOhlj > kSVnzxNc7aY7VBrXiLR1KXl8VZQ= > =7qS/ > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: dsn config issues
Yes. CATAKINA_HOME = /usr/tomcat8. I don’t see any errors during startup. The only message I see that looks unusual is: 'org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs.' > On Feb 6, 2018, at 1:27 PM, Christopher Schultz >wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Rob, > > On 2/6/18 1:28 PM, Rob Turner wrote: >> My jdbc jar file is located in /usr/tomcat8/lib. > > Is CATALINA_HOME == /usr/tomcat8? > >> I see the same error in my log files as on my web page. Our >> application traps the errors and displays them on the page. I >> tried to remove the error trapping mechanism and now receive the >> following when accessing a page containing database access: >> >> org.apache.jasper.JasperException: An exception occurred processing >> JSP page /fbc/../common/client_configuration.inc at line 286 >> >> 283: throws NoSuchMethodException, InstantiationException, 284: >> IllegalAccessException, java.lang.reflect.InvocationTargetException >> { 285: return (Exception) e.getClass().getConstructor(new >> Class[]{(new String()).getClass()}) 286: .newInstance(new >> String[]{additionalMessage + ". " + e.getMessage()}); 287: } 288: >> 289: >> >> >> Stacktrace: >> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServ > letWrapper.java:588) >> >> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja > va:466) >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:38 > 5) >> >> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:729) >> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) >> >> > root cause >> >> javax.servlet.ServletException: javax.naming.NameNotFoundException: >> Invalid or unavailable DSN in Fort Bend County. Opening database >> connection. Name [jdbc/test] is not bound in this Context. Unable >> to find [jdbc]. > > > Any errors during startup? Usually, Tomcat would attempt to connect to > the database in order to pool at least one connection. > > - -chris > -BEGIN PGP SIGNATURE- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlp6AaQdHGNocmlzQGNo > cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFh6MA/+P5LR+JTSKQGBkTyb > o6haKEV5wpQm1JZiZmlkFniTgi1OBebPnAbXVlBeYjZYrEf8Fn7KgFyKWYxdodI3 > RH+6AJAfHob8A6hn2DsOcP6c2tOx4Xrz9BYpt235OQlmWiSfwDvBvhq/Ao+8z8s1 > cCerzeWVzdiiHppv01/tGcbHgEuJPzh++yN6b6guOFM9U4WDPrdifTyKYhyLqOfV > fXU00KG6m3t8qyTEBfmMVJao4DXmI02uiwNZebRoWlvJaWrJfdnoj3TY5nI45ptm > 4BM0Z7PvAWsmAvZTjA/yNFtyhMHDZejmcpAKHyObJUUgYMKDjR4BJ0rQ7TWE2uXd > Xf9Df6znWHDiC2mnhQqy1APiNif8BgGdlW8NbrbN8acvFRIlUdKEO0b+Nhl22lkN > xnqJ/1WwogPRI8YVcpXR+3eIESRNDX/sxbY5rraoTJVK53V4OqBAByv0+ZCRVaVI > g0TOu9fsS1m47TVTFzHGOQBW6UGmQUdWe9rDn7l0FM/4Q3dlBmW0S7WqOsAKlQOf > iB0YwNAQRhPdgnMGk4eYGhxByay2LsCdLvBy18Vj5zp9H7/G5iTYUR/111cxDR69 > swH+LtOQ1VDzuesRX+YxpBNUAp82pO2t/TeYqDAs+VuYjpjkcSkWXE/M2lSfOhlj > kSVnzxNc7aY7VBrXiLR1KXl8VZQ= > =7qS/ > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: dsn config issues
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rob, On 2/6/18 1:28 PM, Rob Turner wrote: > My jdbc jar file is located in /usr/tomcat8/lib. Is CATALINA_HOME == /usr/tomcat8? > I see the same error in my log files as on my web page. Our > application traps the errors and displays them on the page. I > tried to remove the error trapping mechanism and now receive the > following when accessing a page containing database access: > > org.apache.jasper.JasperException: An exception occurred processing > JSP page /fbc/../common/client_configuration.inc at line 286 > > 283: throws NoSuchMethodException, InstantiationException, 284: > IllegalAccessException, java.lang.reflect.InvocationTargetException > { 285: return (Exception) e.getClass().getConstructor(new > Class[]{(new String()).getClass()}) 286: .newInstance(new > String[]{additionalMessage + ". " + e.getMessage()}); 287: } 288: > 289: > > > Stacktrace: > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServ letWrapper.java:588) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:466) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:38 5) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) > javax.servlet.http.HttpServlet.service(HttpServlet.java:729) > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > > root cause > > javax.servlet.ServletException: javax.naming.NameNotFoundException: > Invalid or unavailable DSN in Fort Bend County. Opening database > connection. Name [jdbc/test] is not bound in this Context. Unable > to find [jdbc]. Any errors during startup? Usually, Tomcat would attempt to connect to the database in order to pool at least one connection. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlp6AaQdHGNocmlzQGNo cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFh6MA/+P5LR+JTSKQGBkTyb o6haKEV5wpQm1JZiZmlkFniTgi1OBebPnAbXVlBeYjZYrEf8Fn7KgFyKWYxdodI3 RH+6AJAfHob8A6hn2DsOcP6c2tOx4Xrz9BYpt235OQlmWiSfwDvBvhq/Ao+8z8s1 cCerzeWVzdiiHppv01/tGcbHgEuJPzh++yN6b6guOFM9U4WDPrdifTyKYhyLqOfV fXU00KG6m3t8qyTEBfmMVJao4DXmI02uiwNZebRoWlvJaWrJfdnoj3TY5nI45ptm 4BM0Z7PvAWsmAvZTjA/yNFtyhMHDZejmcpAKHyObJUUgYMKDjR4BJ0rQ7TWE2uXd Xf9Df6znWHDiC2mnhQqy1APiNif8BgGdlW8NbrbN8acvFRIlUdKEO0b+Nhl22lkN xnqJ/1WwogPRI8YVcpXR+3eIESRNDX/sxbY5rraoTJVK53V4OqBAByv0+ZCRVaVI g0TOu9fsS1m47TVTFzHGOQBW6UGmQUdWe9rDn7l0FM/4Q3dlBmW0S7WqOsAKlQOf iB0YwNAQRhPdgnMGk4eYGhxByay2LsCdLvBy18Vj5zp9H7/G5iTYUR/111cxDR69 swH+LtOQ1VDzuesRX+YxpBNUAp82pO2t/TeYqDAs+VuYjpjkcSkWXE/M2lSfOhlj kSVnzxNc7aY7VBrXiLR1KXl8VZQ= =7qS/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: dsn config issues
My jdbc jar file is located in /usr/tomcat8/lib. I see the same error in my log files as on my web page. Our application traps the errors and displays them on the page. I tried to remove the error trapping mechanism and now receive the following when accessing a page containing database access: org.apache.jasper.JasperException: An exception occurred processing JSP page /fbc/../common/client_configuration.inc at line 286 283: throws NoSuchMethodException, InstantiationException, 284: IllegalAccessException, java.lang.reflect.InvocationTargetException { 285: return (Exception) e.getClass().getConstructor(new Class[]{(new String()).getClass()}) 286: .newInstance(new String[]{additionalMessage + ". " + e.getMessage()}); 287: } 288: 289: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:588) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) root cause javax.servlet.ServletException: javax.naming.NameNotFoundException: Invalid or unavailable DSN in Fort Bend County. Opening database connection. Name [jdbc/test] is not bound in this Context. Unable to find [jdbc]. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:909) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:838) org.apache.jsp.fbc.index_jsp._jspService(index_jsp.java:1581) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) Rob Turner Vice President, Technical Services Appraisal & Collection Technologies, LLC r...@lgbs.com Main: (210) 403-8670 Fax: (210) 403-8905 http://www.acttax.com CONFIDENTIALITY STATEMENT This email, including any attachments, is confidential. If you are not the intended recipient please notify the sender (only) immediately, and please delete it; you should not copy it or use it for any purpose or disclose its contents to any other person. Appraisal & Collection Technologies, LLC entities reserve the right to monitor all email communications through their networks. Appraisal & Collection Technologies, LLC is wholly-owned by Linebarger Goggan Blair & Sampson, LLP, Attorneys at Law, but does not itself provide legal services to clients. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, February 05, 2018 12:31 PM To: users@tomcat.apache.org Subject: Re: dsn config issues -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rob, On 2/5/18 10:28 AM, Rob Turner wrote: > I'm trying to port a jsp application from web logic over to tomcat. > I'm running tomcat 8.5.9.0. However, I cannot get my dsn to work. I'm > receiving the following error when I access the dsn: > > Exception: javax.naming.NameNotFoundException: Invalid or unavailable > DSN in Fort Bend County. Opening > database connection. > Name [jdbc/test] is not bound in this Context. Unable to find [jdbc]. > > I've placed my context.xml in the META-INF directory. Here is the > config from context.xml > > type="javax.sql.DataSource" > driverClassName="oracle.jdbc.OracleDriver" > url="jdbc:oracle:thin:@xx::sid" username="xx" > password="xxx" maxTotal="20" maxIdle="10" maxWaitMillis="-1"/> > > This is my web.xml config: > > Test Datasource > jdbc/test > javax.sql.DataSource > Container If you have a in your META-INF/context.xml, you shouldn't need the in your WEB-INF/web.xml file. The is for mapping globally-defined resources into an individual web application, but WEB-INF/context.xml is already local to the application. Where is your JDBC driver's JAR file located? Are there any errors in any log files in CATALINA_BASE/logs/*? - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlp4ossdHGNocmlzQGNo cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFhsog//TMpKFrwcIbSmPQgt AA8D+0UYEAH2qhnQPxDHBoWRoT/iWOeE/Pbe+TnYtzTtZzzJgs9VLeGApo+f7KMU yVZ8OXSQq4hnaC1AQ5BbJfecuddmA2Q6Y4scqlXDdzSP2jGJ2xYceDb01XdOB/2x Zb8yfLIfLXVaiWJH/W6/ee5pwsaByxZ6wXzWRNkfs3/hnLJ7M78qB4v+pOZUO1D7 JLZ3nAwSGJImRXQqZvJQidhP4xAMimUZX6lGEIZnh1Q9EcjC2H0mWADUB5Bg0Fe2 gLT+eAC8d2aHP4avl53176OTjT2jh6MQ6UrmKHC5JB01Zf6swf/pUNvBns4lp6VV
Re: Tool to analyze the core/heap dump
On Tue, Feb 6, 2018 at 2:12 AM, Coty Sutherlandwrote: > On Mon, Feb 5, 2018 at 3:16 PM, Igal @ Lucee.org wrote: >> On 2/5/2018 11:15 AM, Johan Compagner wrote: >>> >>> Jvisualvm that ships with java8 or yourkit (you can evaluate for some >>> time) >>> >>> Op 5 feb. 2018 19:43 schreef "D, Dwarakesh (External)" < >>> dwarakes...@xerox.com>: >>> We have core and heap dump files generated from tomcat in our Solaris server. Is there any best tool to analyze those logs, please suggest on this. Thanks, Dwarakesh >> >> Try Eclipse MAT: >> https://www.eclipse.org/mat/ > > +1 for MAT, though it's a bit difficult if you're using IBM's JDK. For > core dumps, ADB on Solaris works well. > MAT is great for heap dump analysis. For core dumps you need to use gdb. Sometimes jstack and jmap helps too. Thanks! Suvendu - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org