database connection pool in server.xml -- conf/Catalina/localhost/app.xml
Hi, I've tried to put the database connection details in a separate file in CATALINA_HOME/conf/Catalina/localhost/. That didn't work however, so I've had to revert back to putting that same stuff in the conf/server.xml file to get it working again this is the app specific code that I have in server.xml (and it works), the same code that I put in an app.xml file in the CATALINA_HOME/conf/Catalina/localhost/ directory (and it doesn't work), what do I need to add or change? !-- ~~~ -- !-- ~~ MEGABOARD APPLICATION ADDED 1 September 2004 ~~~ -- !-- ~ megaboard application ~~~ -- !-- ~~~ -- Context path=/megaboard docBase=megaboard debug=0 reloadable=true Valve className=org.apache.catalina.valves.AccessLogValve directory=webapps/megaboard/logs prefix=mbAccessLog. suffix=.log pattern=common resolveHosts=false/ Logger className=org.apache.catalina.logger.FileLogger prefix=mblog. suffix=.txt timestamp=true/ Resource name=jdbc/mb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/mb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameusername/name valueluke/value /parameter parameter namepassword/name value/value /parameter parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter nameurl/name valuejdbc:postgresql:megaboard/value /parameter /ResourceParams /Context !-- ~~~ -- !-- END MEGABOARD APPLICATION -- !-- ~~~ -- ~~~ -- Luke (Terry) Vanderfluit Mobile: 0421 276 282 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Quick guide to a virtual host in Tomcat (Was: server.xml and Catalina)
--- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: I sure am having trouble getting an example of server.xml. I bathed! Is the 4.0 server.xml structured about like the 3.2 was? I have looked at the documentation, but I am practically oriented. If someone would show me one copy of a working server.xml with virtual hosting, I would be off and running. But --- no! ;-) Come on, someone, help me out. I just a simple thing. 1. Open server.xml 2. Copy the Host section and paste if again below the original Host section. 3. Change the default values to something like Host name=shrek debug=0 appBase=e:/shrek unpackWARs=true Where my comp is also called shrek, and the web apps for this shrek server will be kept in e:/shrek sub-directory. 4. Copy the ROOT folder from the actual Tomcat/webapps folder to this new folder. So I now have e:/shrek/ROOT. 5. Change the text in index.html in e:/shrek/ROOT to say something else e.g This is my shrek server 6. Update my hosts file to include an entry for this new name for my computer e.g. 192.168.1.219 shrek 7. Test this new entry by trying out ping shrek in the command line 8. Start Tomcat and point my browser to http://localhost:8080/ to see the default Tomcat Welcome page. 9. Next, point my browser to http://shrek:8080/ to see another index page that says, This is my Shrek server. I don't know if this is what you're looking for though. I do not have any DNS and such stuff. -- micael Sriram __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
server.xml and Catalina
I sure am having trouble getting an example of server.xml. I bathed! Is the 4.0 server.xml structured about like the 3.2 was? I have looked at the documentation, but I am practically oriented. If someone would show me one copy of a working server.xml with virtual hosting, I would be off and running. But --- no! ;-) Come on, someone, help me out. -- micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]