LoveskihamePJ 28 de mar. de 2006
So, continuei pesquisando e descobri que a versão do jar é a que eu estou usando mesmo.
Vou colocar a exception que ele está gerando…
Pode ser que alguem possa me ajudar.
Quando tento acessá-lo ele gera:
Onde arquivo.ini contém as informações de conexão como nome da fonte de dados, usr, senha…
& # 91 ; ConnectionPool & # 93 ; nao foi possivel conectar o banco atraves de arquivo . ini
java . lang . NullPointerException
at thate . monitor . web . MonLogin . validaLoginSenha & # 40 ; MonLogin . java & # 58 ; 25 & # 41 ;
at org . apache . jsp . mon_login_jsp . _jspService & # 40 ; mon_login_jsp . java & # 58 ; 68 & # 41 ;
at org . apache . jasper . runtime . HttpJspBase . service & # 40 ; HttpJspBase . java & # 58 ; 92 & # 41 ;
at javax . servlet . http . HttpServlet . service & # 40 ; HttpServlet . java & # 58 ; 809 & # 41 ;
at org . apache . jasper . servlet . JspServletWrapper . service & # 40 ; JspServletWrapper . java & # 58 ; 162 & # 41 ;
at org . apache . jasper . servlet . JspServlet . serviceJspFile & # 40 ; JspServlet . java & # 58 ; 240 & # 41 ;
at org . apache . jasper . servlet . JspServlet . service & # 40 ; JspServlet . java & # 58 ; 187 & # 41 ;
at javax . servlet . http . HttpServlet . service & # 40 ; HttpServlet . java & # 58 ; 809 & # 41 ;
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter & # 40 ; ApplicationFilterChain . java & # 58 ; 200 & # 41 ;
at org . apache . catalina . core . ApplicationFilterChain . doFilter & # 40 ; ApplicationFilterChain . java & # 58 ; 146 & # 41 ;
at org . apache . catalina . core . StandardWrapperValve . invoke & # 40 ; StandardWrapperValve . java & # 58 ; 209 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 596 & # 41 ;
at org . apache . catalina . core . StandardPipeline . invoke & # 40 ; StandardPipeline . java & # 58 ; 433 & # 41 ;
at org . apache . catalina . core . ContainerBase . invoke & # 40 ; ContainerBase . java & # 58 ; 948 & # 41 ;
at org . apache . catalina . core . StandardContextValve . invoke & # 40 ; StandardContextValve . java & # 58 ; 144 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 596 & # 41 ;
at org . apache . catalina . core . StandardPipeline . invoke & # 40 ; StandardPipeline . java & # 58 ; 433 & # 41 ;
at org . apache . catalina . core . ContainerBase . invoke & # 40 ; ContainerBase . java & # 58 ; 948 & # 41 ;
at org . apache . catalina . core . StandardContext . invoke & # 40 ; StandardContext . java & # 58 ; 2358 & # 41 ;
at org . apache . catalina . core . StandardHostValve . invoke & # 40 ; StandardHostValve . java & # 58 ; 133 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 596 & # 41 ;
at org . apache . catalina . valves . ErrorDispatcherValve . invoke & # 40 ; ErrorDispatcherValve . java & # 58 ; 118 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 594 & # 41 ;
at org . apache . catalina . valves . ErrorReportValve . invoke & # 40 ; ErrorReportValve . java & # 58 ; 116 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 594 & # 41 ;
at org . apache . catalina . core . StandardPipeline . invoke & # 40 ; StandardPipeline . java & # 58 ; 433 & # 41 ;
at org . apache . catalina . core . ContainerBase . invoke & # 40 ; ContainerBase . java & # 58 ; 948 & # 41 ;
at org . apache . catalina . core . StandardEngineValve . invoke & # 40 ; StandardEngineValve . java & # 58 ; 127 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 596 & # 41 ;
at org . apache . catalina . core . StandardPipeline . invoke & # 40 ; StandardPipeline . java & # 58 ; 433 & # 41 ;
at org . apache . catalina . core . ContainerBase . invoke & # 40 ; ContainerBase . java & # 58 ; 948 & # 41 ;
at org . apache . coyote . tomcat4 . CoyoteAdapter . service & # 40 ; CoyoteAdapter . java & # 58 ; 152 & # 41 ;
at org . apache . coyote . http11 . Http11Processor . process & # 40 ; Http11Processor . java & # 58 ; 799 & # 41 ;
at org . apache . coyote . http11 . Http11Protocol$Http11ConnectionHandler . processConnection & # 40 ; Http11Protocol . java & # 58 ; 705 & # 41 ;
at org . apache . tomcat . util . net . TcpWorkerThread . runIt & # 40 ; PoolTcpEndpoint . java & # 58 ; 577 & # 41 ;
at org . apache . tomcat . util . threads . ThreadPool$ControlRunnable . run & # 40 ; ThreadPool . java & # 58 ; 683 & # 41 ;
at java . lang . Thread . run & # 40 ; Thread . java & # 58 ; 534 & # 41 ;
LoveskihamePJ 28 de mar. de 2006
Desculpem…
O restante da exceção:
& # 91 ; ConnectionPool & # 93 ; nao foi possivel conectar o banco atraves de monitor . ini
java . sql . SQLException & # 58 ; Server configuration denies access to data source
at com . mysql . jdbc . MysqlIO . doHandshake & # 40 ; MysqlIO . java & # 58 ; 399 & # 41 ;
at com . mysql . jdbc . Connection . createNewIO & # 40 ; Connection . java & # 58 ; 1562 & # 41 ;
at com . mysql . jdbc . Connection . & lt ; init & gt ; & # 40 ; Connection . java & # 58 ; 491 & # 41 ;
at com . mysql . jdbc . NonRegisteringDriver . connect & # 40 ; NonRegisteringDriver . java & # 58 ; 346 & # 41 ;
at java . sql . DriverManager . getConnection & # 40 ; DriverManager . java & # 58 ; 512 & # 41 ;
at java . sql . DriverManager . getConnection & # 40 ; DriverManager . java & # 58 ; 171 & # 41 ;
at thate . monitor . web . MonConexao . getConnection & # 40 ; MonConexao . java & # 58 ; 64 & # 41 ;
at thate . monitor . web . MonConexao . initPool & # 40 ; MonConexao . java & # 58 ; 123 & # 41 ;
at thate . monitor . web . MonConexao . getConnection & # 40 ; MonConexao . java & # 58 ; 46 & # 41 ;
at thate . monitor . web . MonLogin . validaLoginSenha & # 40 ; MonLogin . java & # 58 ; 22 & # 41 ;
at org . apache . jsp . mon_login_jsp . _jspService & # 40 ; mon_login_jsp . java & # 58 ; 68 & # 41 ;
at org . apache . jasper . runtime . HttpJspBase . service & # 40 ; HttpJspBase . java & # 58 ; 92 & # 41 ;
at javax . servlet . http . HttpServlet . service & # 40 ; HttpServlet . java & # 58 ; 809 & # 41 ;
at org . apache . jasper . servlet . JspServletWrapper . service & # 40 ; JspServletWrapper . java & # 58 ; 162 & # 41 ;
at org . apache . jasper . servlet . JspServlet . serviceJspFile & # 40 ; JspServlet . java & # 58 ; 240 & # 41 ;
at org . apache . jasper . servlet . JspServlet . service & # 40 ; JspServlet . java & # 58 ; 187 & # 41 ;
at javax . servlet . http . HttpServlet . service & # 40 ; HttpServlet . java & # 58 ; 809 & # 41 ;
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter & # 40 ; ApplicationFilterChain . java & # 58 ; 200 & # 41 ;
at org . apache . catalina . core . ApplicationFilterChain . doFilter & # 40 ; ApplicationFilterChain . java & # 58 ; 146 & # 41 ;
at org . apache . catalina . core . StandardWrapperValve . invoke & # 40 ; StandardWrapperValve . java & # 58 ; 209 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 596 & # 41 ;
at org . apache . catalina . core . StandardPipeline . invoke & # 40 ; StandardPipeline . java & # 58 ; 433 & # 41 ;
at org . apache . catalina . core . ContainerBase . invoke & # 40 ; ContainerBase . java & # 58 ; 948 & # 41 ;
at org . apache . catalina . core . StandardContextValve . invoke & # 40 ; StandardContextValve . java & # 58 ; 144 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 596 & # 41 ;
at org . apache . catalina . core . StandardPipeline . invoke & # 40 ; StandardPipeline . java & # 58 ; 433 & # 41 ;
at org . apache . catalina . core . ContainerBase . invoke & # 40 ; ContainerBase . java & # 58 ; 948 & # 41 ;
at org . apache . catalina . core . StandardContext . invoke & # 40 ; StandardContext . java & # 58 ; 2358 & # 41 ;
at org . apache . catalina . core . StandardHostValve . invoke & # 40 ; StandardHostValve . java & # 58 ; 133 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 596 & # 41 ;
at org . apache . catalina . valves . ErrorDispatcherValve . invoke & # 40 ; ErrorDispatcherValve . java & # 58 ; 118 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 594 & # 41 ;
at org . apache . catalina . valves . ErrorReportValve . invoke & # 40 ; ErrorReportValve . java & # 58 ; 116 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 594 & # 41 ;
at org . apache . catalina . core . StandardPipeline . invoke & # 40 ; StandardPipeline . java & # 58 ; 433 & # 41 ;
at org . apache . catalina . core . ContainerBase . invoke & # 40 ; ContainerBase . java & # 58 ; 948 & # 41 ;
at org . apache . catalina . core . StandardEngineValve . invoke & # 40 ; StandardEngineValve . java & # 58 ; 127 & # 41 ;
at org . apache . catalina . core . StandardPipeline$StandardPipelineValveContext . invokeNext & # 40 ; StandardPipeline . java & # 58 ; 596 & # 41 ;
at org . apache . catalina . core . StandardPipeline . invoke & # 40 ; StandardPipeline . java & # 58 ; 433 & # 41 ;
at org . apache . catalina . core . ContainerBase . invoke & # 40 ; ContainerBase . java & # 58 ; 948 & # 41 ;
at org . apache . coyote . tomcat4 . CoyoteAdapter . service & # 40 ; CoyoteAdapter . java & # 58 ; 152 & # 41 ;
at org . apache . coyote . http11 . Http11Processor . process & # 40 ; Http11Processor . java & # 58 ; 799 & # 41 ;
at org . apache . coyote . http11 . Http11Protocol$Http11ConnectionHandler . processConnection & # 40 ; Http11Protocol . java & # 58 ; 705 & # 41 ;
at org . apache . tomcat . util . net . TcpWorkerThread . runIt & # 40 ; PoolTcpEndpoint . java & # 58 ; 577 & # 41 ;
at org . apache . tomcat . util . threads . ThreadPool$ControlRunnable . run & # 40 ; ThreadPool . java & # 58 ; 683 & # 41 ;
at java . lang . Thread . run & # 40 ; Thread . java & # 58 ; 534 & # 41 ;