-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jamez,
On 9/3/2009 11:15 PM, jamez smith wrote: > This is the exception when removing the <context> element from the > server.xml: > > [ERROR] [Cannot create JDBC driver of class '' for connect URL > 'null']org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver > of class '' for connect URL 'null', cause: > java.sql.SQLException: No suitable driver > at java.sql.DriverManager.getDriver(DriverManager.java:243) > at > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743) > at > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518) Okay, now we're back to a simpler problem. I don't believe Tomcat 4.1.x uses META-INF/context.xml files, which is a shame, because you can't define context-specific <Resource> elements anywhere. It looks like you're going to have to have your <Context> in server.xml no matter what. So, either keep your webapp in C:\procurement (which you said works, right?) or turn off autoDeply in your <Host>. >>>>> If you need <Realm> or <Resource> elements inside your <Context>, then >>>>> you have two options: >> >>>>> 1. Set autoDeploy="false" on your <Host> >> > This is the error which is same as the JDBC driver error: The error you posted is really the consequence of another error, not an actual error in itself. Can you post the real error (probably in localhost.log or [yourwebappname].log)? >>>>> 2. Keep your <Context>'s docBase outside of your <Host>'s appBase >> >> I changed <Context docBase="c:\\procurement".... The error is still the > same. I'm sorry... which error? There's a lot going on here. >>>>> I agree with Chuck's and Mark's comments WRT JRE and Tomcat version. > > I am desperate now. Will try Tomcat 5 with JDK1.4 . Note that your existing server.xml will me worthless if you upgrade. Start with a fresh server.xml from the distro and merge-in any elements that you actually need. Don't try to modify your old server.xml to work in Tomcat 5. Oh, and move your <Context> into META-INF/context.xml and simplify your live greatly. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqhI6YACgkQ9CaO5/Lv0PBpAwCcCHbMwhbPuHPJ/GagQ3+bt/LX I58AoJ+PvyEtc+pZu2zDm8ko55UBywwD =pLYs -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org