RE: log4j logging and tomcat
Thanks, did that, but still no debuggin information is showing up in my Mac OSX console... Looks like log4j isn't used, however it is in my WEB-INF/lib dir of my webapp... Ilja From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat Date: Fri, 3 Oct 2003 14:37:50 -0400 Howdy, Set JAVA_OPTS='-Dlog4j.debug=true' in $CATALINA_HOME/bin/catalina.sh. RTFM Yoav Shapira Millennium ChemInformatics -Original Message- From: Ilja [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:37 PM To: [EMAIL PROTECTED] Subject: log4j logging and tomcat I have created a webapp and put a log4j.properties in the classpath, but the logging doesn't seem to work. So now I want to enable log4j debugging, but don't know how to set this system property with tomcat: Ie: can I set the system property '-Dlog4j.debug=true' in web.xml, is that possible? If not: how do I set this property? - 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] _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j logging and tomcat
all prerequisites are true I'm affraid :( Directory listing: /Library/Tomcat/webapps/Mathesis/WEB-INF/classes: hibernate.cfg.xml log4j.propertiesorg osuser.xml /Library/Tomcat/webapps/Mathesis/WEB-INF/lib: cglib.jar hibernate2.jar commons-beanutils-1.6.1.jar jdom.jar commons-collections-2.1.jar log4j-1.2.8.jar commons-lang-1.0.1.jar osaccess-2.0.0.jar commons-logging-1.0.2.jar oscore-2.2.2-dev.jar commons-logging-api-1.0.2.jar osuser-1.0-dev.jar dom4j.jar struts.jar log4j.properties: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### # log4j.appender.file=org.apache.log4j.FileAppender # log4j.appender.file.File=hibernate.log # log4j.appender.file.layout=org.apache.log4j.PatternLayout # log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' ## log4j.debug=true log4j.rootLogger=debug, stdout log4j.logger.net.sf.hibernate=debug, file, stdout log4j.logger.com.opensymphony=debug, stdout log4j.logger.org.mathesis=debug, stdout ### enable the following line if you want to track down connection ### ### leakages when using DriverManagerConnectionProvider ### #log4j.logger.net.sf.hibernate.connection.DriverManagerConnectionProvider=trace ### log JDBC bind parameters ### log4j.logger.net.sf.hibernate.type=debug ### log prepared statement cache activity ### log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=debug Ilja From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat Date: Fri, 3 Oct 2003 14:55:44 -0400 Howdy, If log4j.jar is in your WEB-INF/lib, and log4j.properties is in your WEB-INF/classes, and your server is set up correctly (i.e. all examples work), and you set log4j.debug=true as a system property, and nothing shows up, I'm lost. If any of those conditions are false, correct them ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:54 PM To: [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat Thanks, did that, but still no debuggin information is showing up in my Mac OSX console... Looks like log4j isn't used, however it is in my WEB-INF/lib dir of my webapp... Ilja From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat Date: Fri, 3 Oct 2003 14:37:50 -0400 Howdy, Set JAVA_OPTS='-Dlog4j.debug=true' in $CATALINA_HOME/bin/catalina.sh. RTFM Yoav Shapira Millennium ChemInformatics -Original Message- From: Ilja [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:37 PM To: [EMAIL PROTECTED] Subject: log4j logging and tomcat I have created a webapp and put a log4j.properties in the classpath, but the logging doesn't seem to work. So now I want to enable log4j debugging, but don't know how to set this system property with tomcat: Ie: can I set the system property '-Dlog4j.debug=true' in web.xml, is that possible? If not: how do I set this property? - 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] _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl - 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
RE: log4j logging and tomcat
Nothing changed :( I'm outa luck... Does log4j.jar also needs to be placed in $catalina_home/common/lib? From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat Date: Fri, 3 Oct 2003 15:10:31 -0400 Howdy, Ahh, I should've known commons-logging was in the mix... Let's try temporarily to remove commons-logging*.jar from your WEB-INF/lib. See what happens... Yoav Shapira Millennium ChemInformatics -Original Message- From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat all prerequisites are true I'm affraid :( Directory listing: /Library/Tomcat/webapps/Mathesis/WEB-INF/classes: hibernate.cfg.xml log4j.propertiesorg osuser.xml /Library/Tomcat/webapps/Mathesis/WEB-INF/lib: cglib.jar hibernate2.jar commons-beanutils-1.6.1.jar jdom.jar commons-collections-2.1.jar log4j-1.2.8.jar commons-lang-1.0.1.jar osaccess-2.0.0.jar commons-logging-1.0.2.jar oscore-2.2.2-dev.jar commons-logging-api-1.0.2.jar osuser-1.0-dev.jar dom4j.jar struts.jar log4j.properties: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### # log4j.appender.file=org.apache.log4j.FileAppender # log4j.appender.file.File=hibernate.log # log4j.appender.file.layout=org.apache.log4j.PatternLayout # log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' ## log4j.debug=true log4j.rootLogger=debug, stdout log4j.logger.net.sf.hibernate=debug, file, stdout log4j.logger.com.opensymphony=debug, stdout log4j.logger.org.mathesis=debug, stdout ### enable the following line if you want to track down connection ### ### leakages when using DriverManagerConnectionProvider ### #log4j.logger.net.sf.hibernate.connection.DriverManagerConnectionProvid er=t race ### log JDBC bind parameters ### log4j.logger.net.sf.hibernate.type=debug ### log prepared statement cache activity ### log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=debug Ilja From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat Date: Fri, 3 Oct 2003 14:55:44 -0400 Howdy, If log4j.jar is in your WEB-INF/lib, and log4j.properties is in your WEB-INF/classes, and your server is set up correctly (i.e. all examples work), and you set log4j.debug=true as a system property, and nothing shows up, I'm lost. If any of those conditions are false, correct them ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:54 PM To: [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat Thanks, did that, but still no debuggin information is showing up in my Mac OSX console... Looks like log4j isn't used, however it is in my WEB-INF/lib dir of my webapp... Ilja From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: log4j logging and tomcat Date: Fri, 3 Oct 2003 14:37:50 -0400 Howdy, Set JAVA_OPTS='-Dlog4j.debug=true' in $CATALINA_HOME/bin/catalina.sh. RTFM Yoav Shapira Millennium ChemInformatics -Original Message- From: Ilja [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:37 PM To: [EMAIL PROTECTED] Subject: log4j logging and tomcat I have created a webapp and put a log4j.properties in the classpath, but the logging doesn't seem to work. So now I want to enable log4j debugging, but don't know how to set this system property with tomcat: Ie: can I set the system property '-Dlog4j.debug=true' in web.xml, is that possible? If not: how do I set this property? - 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
Re: Deployer Package and JNDI-resource: solved
Ok, solved the issue myself: Instead of using the InstallTask, I worked by using the DeployTask instead... I'm happy :) On Mon, 29 Sep 2003 15:40:54 +0200, Ilja [EMAIL PROTECTED] said: Why does my webapp work when I manually put the .war file in the webapps directory and why doesn't it work when I deploy it with the Client Deployer Package and Ant? Note that it does work when I do it manually, so there's no flaw in my setup or code (I suppose), but when I use the Client Deployer Package I get the following error: net.sf.hibernate.JDBCException: Cannot open connection: Cannot load JDBC driver class 'null' net.sf.hibernate.impl.SessionFactoryImpl.openConnection(SessionFactoryImpl.java:405) net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:2751) net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:38) net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:21) net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1955) org.mathesis.test.HibernateTest.beginTransaction(HibernateTest.java:103) org.mathesis.test.HibernateTest.doGet(HibernateTest.java:51) javax.servlet.http.HttpServlet.service(HttpServlet.java:740) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) It's not a Hibernate thingy also, since when I try to load the JNDI resource with my own java code the same thing happens... Some resources: initial problem: http://www.mail-archive.com/[EMAIL PROTECTED]/msg104212.html Suggestions to use Client Deployer Package from Remy Maucherat: - http://www.mail-archive.com/[EMAIL PROTECTED]/msg104240.html - http://www.mail-archive.com/[EMAIL PROTECTED]/msg104236.html So it still doesn't help. Somehow when you deploy your application with the Client Deployer Package, it can't find the appropiate context... - 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: Catalina.stop: java.net.ConnectException: Connection refused
Anyone? It's quite urgent and I'm stuck now... On Sun, 21 Sep 2003 21:53:30 +0200, Ilja [EMAIL PROTECTED] said: Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused 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:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Anyone? - 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: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'
Remy Maucherat, can you elobarate on this deployer client? You talked about it, but it can nowhere be found. I'm still very stuck on this matter and don't have a way of fixing it... Deploying is a pain in the ass now compared to the convenient way of building with ant... From: Ilja Hehenkamp [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null' Date: Fri, 19 Sep 2003 19:37:46 +0200 Sorry, I don't really understand what you mean? Do you mean I shouldn't use the build file anymore? If so: that's too bad, since I like the way of automated updating the tomcat manager... I'm sure you do. You seem to be stuck on that particular page of the docs, however, which happens to be out of date, and doesn't actually mention what is important. Read the deployer page instead (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html ). But still: I don't know how to fix the problem: why doesn't the jndi datasource work with the through ant deployed application? Because I don't think your stuff in server.xml is used at all. That's much better. I recommend you use the deployer package instead. The instructions from appdev are going to be updated or removed. I think I know where lies the problem, however I still don't know how to fix it... I use the sample build.xml file from Tomcat: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/ build.xml.txt to install, reload and distribute my sample application. When I do an ant -install it apparantly installs the application in the Tomcat manager, however the application doesn't show up in the webapps directory. That's 1. So maybe there's a conflict with either the context path, which I don't think so, since my build file has explicitly set the context path to /DBTest: property name=app.name value=DBTest/ property name=app.path value=/${app.name}/ property name=app.version value=/ property name=build.homevalue=${basedir}/build/ property name=catalina.home value=/Library/Tomcat/ !-- UPDATE THIS! -- property name=dist.home value=${basedir}/dist/ property name=docs.home value=${basedir}/docs/ property name=manager.url value= http://localhost:8080/manager / property name=src.home value=${basedir}/src/ property name=web.home value=${basedir}/web/ Or there's a conflict with the docbase, which I suspect... However I'm not sure why and how to fix it Because when I put the generated war file (when doing an ant -dist) in the webapps directory the connection works! Although this works, it's not very convenient, since it defeats the purpose of the automated installing through ant... Hope I made myself clear? Ok, first some configuration information: Tomcat 5.09 MySQL Driver 3.08 stable OS: Mac OSX 10.2.6 J2SE 1.4.2 all commons libraries reside in $CATALINA_HOME/common/lib MySQL Driver resides in $CATALINA_HOME/common/lib as well I tried setting up a simple JNDI datasource connection but get the following error message: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataS ource .java:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSour ce.ja va:312) at foo.DBTest.init(DBTest.java:24) at foo.TestServlet.doGet(TestServlet.java:34) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) The code and examples are taken from http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource- examples-howto.html I have searched through tons of archives and websites and mostly this error could be resolved by placing the driver and commons in the common/lib directory. However in my case they are there, so I cannot figure out what's the problem... server.xml: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameusername/name valuexxx/value /parameter parameter namepassword/name valuexxx/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/javatest?autoReconnect=true/ value /parameter /ResourceParams /Context web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd web-app descriptionMySQL Test App/description
Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'
I think I know where lies the problem, however I still don't know how to fix it... I use the sample build.xml file from Tomcat: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to install, reload and distribute my sample application. When I do an ant -install it apparantly installs the application in the Tomcat manager, however the application doesn't show up in the webapps directory. That's 1. So maybe there's a conflict with either the context path, which I don't think so, since my build file has explicitly set the context path to /DBTest: property name=app.name value=DBTest/ property name=app.path value=/${app.name}/ property name=app.version value=/ property name=build.homevalue=${basedir}/build/ property name=catalina.home value=/Library/Tomcat/ !-- UPDATE THIS! -- property name=dist.home value=${basedir}/dist/ property name=docs.home value=${basedir}/docs/ property name=manager.url value=http://localhost:8080/manager/ property name=src.home value=${basedir}/src/ property name=web.home value=${basedir}/web/ Or there's a conflict with the docbase, which I suspect... However I'm not sure why and how to fix it Because when I put the generated war file (when doing an ant -dist) in the webapps directory the connection works! Although this works, it's not very convenient, since it defeats the purpose of the automated installing through ant... Hope I made myself clear? From: Martin Jacobson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null' Date: Mon, 15 Sep 2003 14:00:52 +0200 Ilja wrote: Ok, first some configuration information: Tomcat 5.09 MySQL Driver 3.08 stable OS: Mac OSX 10.2.6 J2SE 1.4.2 My config is not the same (TC 4.1.24, OSX 10.2.6, MySQL 3.07), and my parameters are different: ResourceParams name=jdbc/EuratomDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value3/value /parameter parameter namemaxWait/name value100/value /parameter parameter nameusername/name valuexxx/value /parameter parameter namepassword/name valuexxx/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/euratom?autoReconnect=true/value /parameter /ResourceParams This works for me! The main diffs are (i) I specify the factory, and (ii), the driverClassName is com.mysql.jdbc.Driver However, the exception seems to suggest that the correct factory is being used by default. Your driverClassName is the old name, and might not be in the jar file any more. HTH Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'
Sorry, I don't really understand what you mean? Do you mean I shouldn't use the build file anymore? If so: that's too bad, since I like the way of automated updating the tomcat manager... But still: I don't know how to fix the problem: why doesn't the jndi datasource work with the through ant deployed application? From: Remy Maucherat [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null' Date: Mon, 15 Sep 2003 15:17:53 +0200 Ilja Hehenkamp wrote: I think I know where lies the problem, however I still don't know how to fix it... I use the sample build.xml file from Tomcat: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to install, reload and distribute my sample application. When I do an ant -install it apparantly installs the application in the Tomcat manager, however the application doesn't show up in the webapps directory. That's 1. So maybe there's a conflict with either the context path, which I don't think so, since my build file has explicitly set the context path to /DBTest: property name=app.name value=DBTest/ property name=app.path value=/${app.name}/ property name=app.version value=/ property name=build.homevalue=${basedir}/build/ property name=catalina.home value=/Library/Tomcat/ !-- UPDATE THIS! -- property name=dist.home value=${basedir}/dist/ property name=docs.home value=${basedir}/docs/ property name=manager.url value=http://localhost:8080/manager/ property name=src.home value=${basedir}/src/ property name=web.home value=${basedir}/web/ Or there's a conflict with the docbase, which I suspect... However I'm not sure why and how to fix it Because when I put the generated war file (when doing an ant -dist) in the webapps directory the connection works! Although this works, it's not very convenient, since it defeats the purpose of the automated installing through ant... Hope I made myself clear? That's much better. I recommend you use the deployer package instead. The instructions from appdev are going to be updated or removed. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'
Sorry for being such a pain in the ass, but It's still not really clear to me: What do you actually suggest? Are you talking about this client deployer that's listed on that page? Where can I find it? (I cannot find it, neither the build file that's mentioned there) Will this fix my problem? So for confirmation: I shouldn't use the old ant buildfile anymore? Ilja From: Remy Maucherat [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null' Date: Mon, 15 Sep 2003 15:33:13 +0200 Ilja Hehenkamp wrote: Sorry, I don't really understand what you mean? Do you mean I shouldn't use the build file anymore? If so: that's too bad, since I like the way of automated updating the tomcat manager... I'm sure you do. You seem to be stuck on that particular page of the docs, however, which happens to be out of date, and doesn't actually mention what is important. Read the deployer page instead (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html). But still: I don't know how to fix the problem: why doesn't the jndi datasource work with the through ant deployed application? Because I don't think your stuff in server.xml is used at all. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'
It could be related, but I'm not sure. I think the problem lies in the way the application gets deployed with this ant build file. Probably the docbase doesn't match (however that's just a wild guess) Still waiting for some confirmation from Remy Maucherat. He was talking about the client deployer package, however I cannot find it... Ilja _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]