Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)
I am sort of stuck with configuring the server.xml file under the $TOMCAT\conf directory for JNDI. For the Tomcat 4.x, I put the following block of code; i.e. DefaultContext right after the ending /context element and before the ending /host element in the server.xml file. However, I do not see the context element in the Tomcat 5.0.27. There is the host element, though. [code] DefaultContext Resource name=jdbc/McKoiDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/McKoiDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name value/value /parameter parameter nameurl/name valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/value /parameter parameter nameusername/name valuejavauser/value /parameter parameter namepassword/name valuejavadude/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /DefaultContext [/code] 1. Where should I put the DefaultContext in the server.xml file? 2. What is the value I should give to the driverClassName parameter? 3. What is the port number I should give to the url parameter? i.e. jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)
I am sort of stuck with configuring the server.xml file under the $TOMCAT\conf directory for JNDI. For the Tomcat 4.x, I put the following block of code; i.e. DefaultContext right after the ending /context element and before the ending /host element in the server.xml file. However, I do not see the context element in the Tomcat 5.0.27. There is the host element, though. [code] DefaultContext Resource name=jdbc/McKoiDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/McKoiDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.mckoi.JDBCDriver/value /parameter parameter nameurl/name valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/value /parameter parameter nameusername/name valuejavauser/value /parameter parameter namepassword/name valuejavadude/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /DefaultContext [/code] 1. Where should I put the DefaultContext in the server.xml file? 2. What is the port number I should give to the url parameter? i.e. jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)
Hi, You should put DefaultContext inside a Host. But if you only have one webapp, create a proper Context element for it instead of DefaultContext. The JDBC driver class name is supplied in your vendor documentation (in this case McKoi). A common one is com.mckoi.JDBCDriver. The port number is whatever port your database is listening on. Ask your DBA if you're not sure. Yoav Shapira Millennium Research Informatics -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 3:09 PM To: [EMAIL PROTECTED] Subject: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database) I am sort of stuck with configuring the server.xml file under the $TOMCAT\conf directory for JNDI. For the Tomcat 4.x, I put the following block of code; i.e. DefaultContext right after the ending /context element and before the ending /host element in the server.xml file. However, I do not see the context element in the Tomcat 5.0.27. There is the host element, though. [code] DefaultContext Resource name=jdbc/McKoiDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/McKoiDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name value/value /parameter parameter nameurl/name valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/val ue /parameter parameter nameusername/name valuejavauser/value /parameter parameter namepassword/name valuejavadude/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /DefaultContext [/code] 1. Where should I put the DefaultContext in the server.xml file? 2. What is the value I should give to the driverClassName parameter? 3. What is the port number I should give to the url parameter? i.e. jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush - 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] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)
Thanks for replying. I am building only one webapp. What does create a proper Context element instead of DefaultContext mean? Thanks --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, You should put DefaultContext inside a Host. But if you only have one webapp, create a proper Context element for it instead of DefaultContext. The JDBC driver class name is supplied in your vendor documentation (in this case McKoi). A common one is com.mckoi.JDBCDriver. The port number is whatever port your database is listening on. Ask your DBA if you're not sure. Yoav Shapira Millennium Research Informatics -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 3:09 PM To: [EMAIL PROTECTED] Subject: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database) I am sort of stuck with configuring the server.xml file under the $TOMCAT\conf directory for JNDI. For the Tomcat 4.x, I put the following block of code; i.e. DefaultContext right after the ending /context element and before the ending /host element in the server.xml file. However, I do not see the context element in the Tomcat 5.0.27. There is the host element, though. [code] DefaultContext Resource name=jdbc/McKoiDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/McKoiDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name value/value /parameter parameter nameurl/name valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/val ue /parameter parameter nameusername/name valuejavauser/value /parameter parameter namepassword/name valuejavadude/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /DefaultContext [/code] 1. Where should I put the DefaultContext in the server.xml file? 2. What is the value I should give to the driverClassName parameter? 3. What is the port number I should give to the url parameter? i.e. jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush - 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] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)
Perhaps you could also read this here http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html to get more details. On Fri, 3 Sep 2004 13:07:59 -0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: Thanks for replying. I am building only one webapp. What does create a proper Context element instead of DefaultContext mean? Thanks --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, You should put DefaultContext inside a Host. But if you only have one webapp, create a proper Context element for it instead of DefaultContext. The JDBC driver class name is supplied in your vendor documentation (in this case McKoi). A common one is com.mckoi.JDBCDriver. The port number is whatever port your database is listening on. Ask your DBA if you're not sure. Yoav Shapira Millennium Research Informatics -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 3:09 PM To: [EMAIL PROTECTED] Subject: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database) I am sort of stuck with configuring the server.xml file under the $TOMCAT\conf directory for JNDI. For the Tomcat 4.x, I put the following block of code; i.e. DefaultContext right after the ending /context element and before the ending /host element in the server.xml file. However, I do not see the context element in the Tomcat 5.0.27. There is the host element, though. [code] DefaultContext Resource name=jdbc/McKoiDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/McKoiDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name value/value /parameter parameter nameurl/name valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/val ue /parameter parameter nameusername/name valuejavauser/value /parameter parameter namepassword/name valuejavadude/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /DefaultContext [/code] 1. Where should I put the DefaultContext in the server.xml file? 2. What is the value I should give to the driverClassName parameter? 3. What is the port number I should give to the url parameter? i.e. jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush - 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] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED