Re: DataSource problem
This sounds as anything but a DataSource problem. What are you using NetBeans web monitor module for? Antonio Fiol Nathan Maves wrote: Hey guys just joined the alias today! I am getting the following error from my web app. NotifyUtil::java.net.ConnectException: Connection refused Means server not responding (refusing the connection). at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at sun.net.NetworkClient.doConnect(NetworkClient.java:139) at sun.net.www.http.HttpClient.openServer(HttpClient.java:402) Clearly protocol is HTTP. at sun.net.www.http.HttpClient.openServer(HttpClient.java:618) at sun.net.www.http.HttpClient.init(HttpClient.java:306) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:320) at sun.net.www.http.HttpClient.New(HttpClient.java:315) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:560) And finally something that may tell you something... at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237) What does this mean. Well... no idea :-( What are you trying? Antonio Fiol smime.p7s Description: S/MIME Cryptographic Signature
Re: DataSource problem
I was not aware that I was :) I have turned this off in net beans. I just use this for my development and create a war file with it. I just drop this war in the webapps dir of tomcat. Now I can't seem to get rid of it! Nathan On Feb 20, 2004, at 1:55 PM, Antonio Fiol Bonnín wrote: This sounds as anything but a DataSource problem. What are you using NetBeans web monitor module for? Antonio Fiol Nathan Maves wrote: Hey guys just joined the alias today! I am getting the following error from my web app. NotifyUtil::java.net.ConnectException: Connection refused Means server not responding (refusing the connection). at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at sun.net.NetworkClient.doConnect(NetworkClient.java:139) at sun.net.www.http.HttpClient.openServer(HttpClient.java:402) Clearly protocol is HTTP. at sun.net.www.http.HttpClient.openServer(HttpClient.java:618) at sun.net.www.http.HttpClient.init(HttpClient.java:306) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:320) at sun.net.www.http.HttpClient.New(HttpClient.java:315) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnec tion.java:512) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection. java:489) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLCon nection.java:560) And finally something that may tell you something... at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(No tifyUtil.java:237) What does this mean. Well... no idea :-( What are you trying? Antonio Fiol - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Datasource problem upgrading from 4.06
Howdy, You need a ResourceParam for the DB URL. It looks like your driver name me be the URL? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:30 PM To: Tomcat Users List Subject: Datasource problem upgrading from 4.06 Below is a little bit of the trace I'm seeing. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com. microsoft.jdbc.sqlserver.SQLServerDriver' for connect URL 'null', cause: java.lang.NullPointerException at java.lang.String.regionMatches(String.java:967) at com.microsoft.jdbc.base.BaseURLParser.parse(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.acceptsURL(Unknown Source) at java.sql.DriverManager.getDriver(DriverManager.java:232) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc e. java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j av a:518) . I just upgraded from Tomcat 4.06 to 4.1.29. I've made no changes to code or web.xml. Just a straight copy of my app over to the new server. Here's a snippet of my server.xml. The below config for the context is the same (which worked on 4.06). I'm having problems with the jdbc/eaglepro datasource. Context path=/cds docBase=D:\serverapps\Tomcat 4.1\webapps-noauto\cds reloadable=true debug=0 crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cds_log. suffix=.log timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/eaglepro auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/eaglepro parameternameuser/name valueeflowuser_t/value /parameter parameternamepassword/name value#$%^*/value /parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameternamedriverName/name valuejdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseName=jtest; Sele ctMethod=cursor/value /parameter /ResourceParams Resource name=mail/bay4 auth=Container type=javax.mail.Session/ ResourceParams name=mail/bay4 parameter namemail.smtp.host/name valuesmtp.algx.net/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseNam e=ef low_dev;User=eflowadmin;Password=#$%^*;SelectMethod=cursor userTable=ef_users userNameCol=user_name userCredCol=user_password userRoleTable=j2ee_user_roles roleNameCol=role_name/ /Context This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Datasource problem upgrading from 4.06
How do I define host and database name with this version? Need a good example to look at. Thanks Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:41 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, You need a ResourceParam for the DB URL. It looks like your driver name me be the URL? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:30 PM To: Tomcat Users List Subject: Datasource problem upgrading from 4.06 Below is a little bit of the trace I'm seeing. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com. microsoft.jdbc.sqlserver.SQLServerDriver' for connect URL 'null', cause: java.lang.NullPointerException at java.lang.String.regionMatches(String.java:967) at com.microsoft.jdbc.base.BaseURLParser.parse(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.acceptsURL(Unknown Source) at java.sql.DriverManager.getDriver(DriverManager.java:232) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc e. java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j av a:518) . I just upgraded from Tomcat 4.06 to 4.1.29. I've made no changes to code or web.xml. Just a straight copy of my app over to the new server. Here's a snippet of my server.xml. The below config for the context is the same (which worked on 4.06). I'm having problems with the jdbc/eaglepro datasource. Context path=/cds docBase=D:\serverapps\Tomcat 4.1\webapps-noauto\cds reloadable=true debug=0 crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cds_log. suffix=.log timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/eaglepro auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/eaglepro parameternameuser/name valueeflowuser_t/value /parameter parameternamepassword/name value#$%^*/value /parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameternamedriverName/name valuejdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseName=jtest; Sele ctMethod=cursor/value /parameter /ResourceParams Resource name=mail/bay4 auth=Container type=javax.mail.Session/ ResourceParams name=mail/bay4 parameter namemail.smtp.host/name valuesmtp.algx.net/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseNam e=ef low_dev;User=eflowadmin;Password=#$%^*;SelectMethod=cursor userTable=ef_users userNameCol=user_name userCredCol=user_password userRoleTable=j2ee_user_roles roleNameCol=role_name/ /Context This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Datasource problem upgrading from 4.06
Howdy, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:47 PM To: Tomcat Users List Subject: Re: Datasource problem upgrading from 4.06 How do I define host and database name with this version? Need a good example to look at. Thanks Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:41 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, You need a ResourceParam for the DB URL. It looks like your driver name me be the URL? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:30 PM To: Tomcat Users List Subject: Datasource problem upgrading from 4.06 Below is a little bit of the trace I'm seeing. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com. microsoft.jdbc.sqlserver.SQLServerDriver' for connect URL 'null', cause: java.lang.NullPointerException at java.lang.String.regionMatches(String.java:967) at com.microsoft.jdbc.base.BaseURLParser.parse(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.acceptsURL(Unknown Source) at java.sql.DriverManager.getDriver(DriverManager.java:232) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSour c e. java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource. j av a:518) . I just upgraded from Tomcat 4.06 to 4.1.29. I've made no changes to code or web.xml. Just a straight copy of my app over to the new server. Here's a snippet of my server.xml. The below config for the context is the same (which worked on 4.06). I'm having problems with the jdbc/eaglepro datasource. Context path=/cds docBase=D:\serverapps\Tomcat 4.1\webapps-noauto\cds reloadable=true debug=0 crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cds_log. suffix=.log timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/eaglepro auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/eaglepro parameternameuser/name valueeflowuser_t/value /parameter parameternamepassword/name value#$%^*/value /parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameternamedriverName/name valuejdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseName=jtest ; Sele ctMethod=cursor/value /parameter /ResourceParams Resource name=mail/bay4 auth=Container type=javax.mail.Session/ ResourceParams name=mail/bay4 parameter namemail.smtp.host/name valuesmtp.algx.net/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseNa m e=ef low_dev;User=eflowadmin;Password=#$%^*;SelectMethod=cursor userTable=ef_users userNameCol=user_name userCredCol=user_password userRoleTable=j2ee_user_roles roleNameCol=role_name/ /Context This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: Datasource problem upgrading from 4.06
Much thanks, I can figure it out from here. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html Actual link above. Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:57 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:47 PM To: Tomcat Users List Subject: Re: Datasource problem upgrading from 4.06 How do I define host and database name with this version? Need a good example to look at. Thanks Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:41 PM Subject: RE: Datasource problem upgrading from 4.06 Howdy, You need a ResourceParam for the DB URL. It looks like your driver name me be the URL? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 12:30 PM To: Tomcat Users List Subject: Datasource problem upgrading from 4.06 Below is a little bit of the trace I'm seeing. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com. microsoft.jdbc.sqlserver.SQLServerDriver' for connect URL 'null', cause: java.lang.NullPointerException at java.lang.String.regionMatches(String.java:967) at com.microsoft.jdbc.base.BaseURLParser.parse(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.acceptsURL(Unknown Source) at java.sql.DriverManager.getDriver(DriverManager.java:232) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSour c e. java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource. j av a:518) . I just upgraded from Tomcat 4.06 to 4.1.29. I've made no changes to code or web.xml. Just a straight copy of my app over to the new server. Here's a snippet of my server.xml. The below config for the context is the same (which worked on 4.06). I'm having problems with the jdbc/eaglepro datasource. Context path=/cds docBase=D:\serverapps\Tomcat 4.1\webapps-noauto\cds reloadable=true debug=0 crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cds_log. suffix=.log timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/eaglepro auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/eaglepro parameternameuser/name valueeflowuser_t/value /parameter parameternamepassword/name value#$%^*/value /parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameternamedriverName/name valuejdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseName=jtest ; Sele ctMethod=cursor/value /parameter /ResourceParams Resource name=mail/bay4 auth=Container type=javax.mail.Session/ ResourceParams name=mail/bay4 parameter namemail.smtp.host/name valuesmtp.algx.net/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://192.168.2.14:1433;DatabaseNa m e=ef low_dev;User=eflowadmin;Password=#$%^*;SelectMethod=cursor userTable=ef_users userNameCol=user_name userCredCol=user_password userRoleTable=j2ee_user_roles roleNameCol=role_name/ /Context This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information
RE: DataSource problem.
What does your configuration look like? Have you read the docs? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Jake At 01:21 PM 12/7/2002 +0530, you wrote: *deep breath. I'm lost about this... would anyone take a shot at helping me? Thanks Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 9:19 PM To: Tomcat Users List Subject: RE: DataSource problem. I haven't been able to solve this yet... but was wondering if tomcat logs somewhere that the Resource Manager added a new resource (a DataSource)? Thanks, Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 3:46 PM To: Tomcat Users List Subject: RE: DataSource problem. Tried the same with a simplistic jsp page: %@ page import=java.sql.*, javax.sql.*, javax.naming.* % % out.println(hello); Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/rtidb); Connection con = ds.getConnection(); //DB access code here % And this is what i get: java.lang.NullPointerException at org.apache.jsp.test$jsp._jspService(test$jsp.java:66) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail:
RE: DataSource problem.
Tried the same with a simplistic jsp page: %@ page import=java.sql.*, javax.sql.*, javax.naming.* % HTML BODY % out.println(hello); Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/rtidb); Connection con = ds.getConnection(); //DB access code here % And this is what i get: java.lang.NullPointerException at org.apache.jsp.test$jsp._jspService(test$jsp.java:66) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DataSource problem.
I haven't been able to solve this yet... but was wondering if tomcat logs somewhere that the Resource Manager added a new resource (a DataSource)? Thanks, Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 3:46 PM To: Tomcat Users List Subject: RE: DataSource problem. Tried the same with a simplistic jsp page: %@ page import=java.sql.*, javax.sql.*, javax.naming.* % HTML BODY % out.println(hello); Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/rtidb); Connection con = ds.getConnection(); //DB access code here % And this is what i get: java.lang.NullPointerException at org.apache.jsp.test$jsp._jspService(test$jsp.java:66) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DataSource problem.
*deep breath. I'm lost about this... would anyone take a shot at helping me? Thanks Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 9:19 PM To: Tomcat Users List Subject: RE: DataSource problem. I haven't been able to solve this yet... but was wondering if tomcat logs somewhere that the Resource Manager added a new resource (a DataSource)? Thanks, Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 3:46 PM To: Tomcat Users List Subject: RE: DataSource problem. Tried the same with a simplistic jsp page: %@ page import=java.sql.*, javax.sql.*, javax.naming.* % HTML BODY % out.println(hello); Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/rtidb); Connection con = ds.getConnection(); //DB access code here % And this is what i get: java.lang.NullPointerException at org.apache.jsp.test$jsp._jspService(test$jsp.java:66) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DataSource problem
Remove the sql validation parameter in your datasource definition or give it a table to select from. Daniel Tamborelli Alvarenga wrote: I've installed Tomcat 4.1 on Windows 2000 and MySQL I've configured the Data Source in the server.xml and that's ok... but when I try to get the connection from my source code Tomcat seems to enter in an infinite loop. Does anybody know what may be wrong? Thanks ___ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fáceis de usar, espaço de sobra e acessórios. http://br.geocities.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DataSource problem
Ok... now it's working fine... Thank you very much... :) Daniel Tamborelli Alvarenga - Original Message - From: Kwok Peng Tuck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, November 24, 2002 9:08 PM Subject: Re: DataSource problem Remove the sql validation parameter in your datasource definition or give it a table to select from. Daniel Tamborelli Alvarenga wrote: I've installed Tomcat 4.1 on Windows 2000 and MySQL I've configured the Data Source in the server.xml and that's ok... but when I try to get the connection from my source code Tomcat seems to enter in an infinite loop. Does anybody know what may be wrong? Thanks ___ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fáceis de usar, espaço de sobra e acessórios. http://br.geocities.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ___ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fáceis de usar, espaço de sobra e acessórios. http://br.geocities.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]