Re: Need help - Data Source problem
Hi! Mathew wrote: For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated. If sure looks that way, but without further information one can't be sure. It would really help matters if you could post the relevant parts of your server.xml. Perhaps there's just a typo or something. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help - Data Source problem
Supply more information. What does your server.xml and web.xml look like? (don't post the whole file, just relevant parts). Where is your driver jar located? (it should be common/lib) That class of error (class '' for URL 'null') is fairly common, and normally it's mis-configuration. -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 9:42 AM To: [EMAIL PROTECTED] Subject: Need help - Data Source problem I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null - 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: Need help - Data Source problem
Thak you for your response.. I appreciate your time .. This is my server.xml --- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=sunil docBase=sunil debug=0 crossContext=true reloadable=true Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value /parameter parameter nameusername/name valuewebuser/value /parameter parameter namepassword/name valueoralin/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context My Web.xml is -- web-app servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app Supply more information. What does your server.xml and web.xml look like? (don't post the whole file, just relevant parts). Where is your driver jar located? (it should be common/lib) That class of error (class '' for URL 'null') is fairly common, and normally it's mis-configuration. -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 9:42 AM To: [EMAIL PROTECTED] Subject: Need help - Data Source problem I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null - 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: Need help - Data Source problem
I am still trying to fix this problem. I looked at TOMCAT_HOME/commons/lib dircory and found out that I have commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too. I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . my set up is like this :- This is my server.xml --- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=sunil docBase=sunil debug=0 crossContext=true reloadable=true Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value /parameter parameter nameusername/name valuewebuser/value /parameter parameter namepassword/name valueoralin/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context My Web.xml is -- web-app servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help - Data Source problem
where is the oracle connection driver jar file ? It needs to be in common/lib as well -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: RE: Need help - Data Source problem I am still trying to fix this problem. I looked at TOMCAT_HOME/commons/lib dircory and found out that I have commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too. I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . my set up is like this :- This is my server.xml --- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=sunil docBase=sunil debug=0 crossContext=true reloadable=true Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value /parameter parameter nameusername/name valuewebuser/value /parameter parameter namepassword/name valueoralin/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context My Web.xml is -- web-app servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app - 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: Need help - Data Source problem
As for naming, you could name that jar file dirty_laundry.jar and it wouldn't matter. It's the classes that are found inside of it that matter. the -1.1 is merely a help for you to know what version of commons-dbcp you are using, which is, I understand, a matter of some religious debate around here. ;) -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: RE: Need help - Data Source problem I am still trying to fix this problem. I looked at TOMCAT_HOME/commons/lib dircory and found out that I have commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help - Data Source problem
Hi guys, I'm pretty much a newbie when it comes to configuring Tomcat, and also with building JSPs, although thanks to the useful examples and documentation, I've been able to pick it up pretty quickly. Anyways, I am interested in using the utilties provided in the commons-fileupload-1.0.jar file. I downloaded it to the $CATALINA_HOME/common/lib folder. When I tried to import org.apache.commons.fileupload.*, I get an error stating that the package doesn't exist. For the hell of it, I made a standalone java program with the same import statement, and it worked fine. Does anyone have any thoughts as to what else I can do to troubleshoot this problem further? I am running Tomcat-4.1.27. Thanks, Arun -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 3:31 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Need help - Data Source problem As for naming, you could name that jar file dirty_laundry.jar and it wouldn't matter. It's the classes that are found inside of it that matter. the -1.1 is merely a help for you to know what version of commons-dbcp you are using, which is, I understand, a matter of some religious debate around here. ;) -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: RE: Need help - Data Source problem I am still trying to fix this problem. I looked at TOMCAT_HOME/commons/lib dircory and found out that I have commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too. - 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: Need help - Data Source problem
Hi, same import statement, and it worked fine. Does anyone have any thoughts as to what else I can do to troubleshoot this problem further? I am running Tomcat-4.1.27. I have a thought: start your own thread for your question and don't hijack other peoples' ;) Yoav Shapira 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: Need help - Data Source problem
My apologies. I forgot to change the subject before posting. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 4:04 PM To: Tomcat Users List Subject: RE: Need help - Data Source problem Hi, same import statement, and it worked fine. Does anyone have any thoughts as to what else I can do to troubleshoot this problem further? I am running Tomcat-4.1.27. I have a thought: start your own thread for your question and don't hijack other peoples' ;) Yoav Shapira 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: Need help - Data Source problem
I have a classes111.jar file common/lib . Any other suggestion where is the oracle connection driver jar file ? It needs to be in common/lib as well -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: RE: Need help - Data Source problem I am still trying to fix this problem. I looked at TOMCAT_HOME/commons/lib dircory and found out that I have commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too. I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . my set up is like this :- This is my server.xml --- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=sunil docBase=sunil debug=0 crossContext=true reloadable=true Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value /parameter parameter nameusername/name valuewebuser/value /parameter parameter namepassword/name valueoralin/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context My Web.xml is -- web-app servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app - 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]