Click to See Complete Forum and Search --> : java with the tomcat


ndy40
11-05-2006, 11:06 AM
Hi i got a little problem with configuring the tomcat jdbc realm to help authenticate users.. u c am developing a webapp and there are different users with different roles.. i intend to use this feature with mysql database... now i have followed all instructions,search the web but still no hope... i placed the mysql-connector.jar file in the common/lib folder, i have edited the server.xml file by adding the <realm> tag, i have commented the userDatabaseRealm,memoryRealm,set u p the necessary tables as instructed but still no result .. please can someone direct me on how to go about this.. the class for mysq driver is "com.mysql.jdbc.Driver" atleast this is what i use in my regular application... the default that comes with tomcat is "or.git......something".. please help i need this quick thanks..

Khalid Ali
11-05-2006, 07:52 PM
do u get any error? if so can you post that....

ndy40
11-08-2006, 07:51 AM
well i finally got htis done... i edited my context.xml file in my metaFile folder .. and it worked like magic.. talking on errors no /well i dont know if to call it that now... but anyway its done its done.. i learnt u dont use the <context> tag directly in server.xml to configure tomcat... and oh! i love netbeans .. that ide is super...thanks anyway