This puts an appfuse.xml file in $CATALINA_HOME/webapps (on Tomcat 4) and in $CATALINA_HOME/conf/Catalina/localhost on Tomcat 5.
HTH,
Matt
On Feb 24, 2004, at 8:50 AM, Thomas Lockney wrote:
I'm trying to work through the AppFuse tutorials and ran into a problem once I started trying to deploy the PersonAction under Tomcat. For some reason, the configuration isn't picking up the MySQL driver. I keep seeing this in the log (whether I run start.tomcat or use try running the cactus test):
[java] [Bookmarker] DEBUG [main] StartupListener.contextInitialized(36) | contextInitialized...
[java] [Bookmarker] DEBUG [main] StartupListener.contextInitialized(54) | daoType: hibernate
[java] [Bookmarker] WARN [main] SettingsFactory.buildSettings(82) | Could not obtain connection metadata
[java] org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause:
[java] java.sql.SQLException: No suitable driver
[java] at java.sql.DriverManager.getDriver(DriverManager.java:243)
[java] at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc e.java:743)
[java] at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j ava:518)
...
In web.xml, I see this:
<resource-ref> <description>DB Connection</description> <res-ref-name>jdbc/Bookmarker</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
(Bookmarker is the name of the application I created).
And the hibernate.cfg.xml has:
<property name="connection.datasource">java:comp/env/jdbc/Bookmarker</property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
Everything seems to be in order, the mysql driver is in Tomcats common/lib directory. Is there anything obvious I should be looking for?
Thanks, Thomas
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Struts-apps mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-apps
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Struts-apps mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-apps