The container can't see your mysql dirver if you put it in
WEB-INF/lib...Anything you specifiy in the server.xml for the container to
manage needs to be in either server/lib or common/lib. If you also want
your webapp to see it also, then the only place for it is common/lib.
Jake
At 10:09 AM 5/1/2002 +0200, you wrote:
>Hi,
>
>I am trying to get my IIS with Tomcat to work with a JDBCRealm security.
>For some reason I can't get it working. When I try to start the tomcat
>server I get all 404 errors in my browser.
>Does anybody have a sugestion for me?
>
>This is the Log I get when I try to start Tomcat.
>
>2002-05-01 10:01:47 WebappLoader[/provitel]: Deploying class repositories to
>work directory C:\Tomcat4\work\localhost\provitel
>2002-05-01 10:01:47 WebappLoader[/provitel]: Deploy JAR
>/WEB-INF/lib/mm.mysql-2.0.13-bin.jar to
>C:\Tomcat4\webapps\provitel\WEB-INF\lib\mm.mysql-2.0.13-bin.jar
>2002-05-01 10:01:47 WebappLoader[/provitel]: Reloading checks are enabled
>for this Context
>2002-05-01 10:01:47 StandardManager[/provitel]: Seeding random number
>generator class java.security.SecureRandom
>2002-05-01 10:01:47 StandardManager[/provitel]: Seeding of random number
>generator has been completed
>2002-05-01 10:01:48 ContextConfig[/provitel]: No Realm has been configured
>to authenticate against
>2002-05-01 10:01:48 ContextConfig[/provitel]: Marking this application
>unavailable due to previous error(s)
>2002-05-01 10:01:48 StandardContext[/provitel]: Error initializing naming
>context for context /provitel
>2002-05-01 10:01:48 StandardContext[/provitel]: Context startup failed due
>to previous errors
>2002-05-01 10:01:48 StandardContext[/provitel]: Error initializing naming
>context for context /provitel
>2002-05-01 10:03:46 WebappLoader[/provitel]: Deploying class repositories to
>work directory C:\Tomcat4\work\localhost\provitel
>2002-05-01 10:03:46 WebappLoader[/provitel]: Deploy JAR
>/WEB-INF/lib/mm.mysql-2.0.13-bin.jar to
>C:\Tomcat4\webapps\provitel\WEB-INF\lib\mm.mysql-2.0.13-bin.jar
>2002-05-01 10:03:46 WebappLoader[/provitel]: Reloading checks are enabled
>for this Context
>2002-05-01 10:03:46 StandardManager[/provitel]: Seeding random number
>generator class java.security.SecureRandom
>2002-05-01 10:03:46 StandardManager[/provitel]: Seeding of random number
>generator has been completed
>2002-05-01 10:03:46 ContextConfig[/provitel]: No Realm has been configured
>to authenticate against
>2002-05-01 10:03:46 ContextConfig[/provitel]: Marking this application
>unavailable due to previous error(s)
>2002-05-01 10:03:46 StandardContext[/provitel]: Error initializing naming
>context for context /provitel
>2002-05-01 10:03:46 StandardContext[/provitel]: Context startup failed due
>to previous errors
>2002-05-01 10:03:46 StandardContext[/provitel]: Error initializing naming
>context for context /provitel
>This is my server.xml file
>
><realm classname="org.apache.catalina.realm.JDBCRealm" debug="99"
> drivername="org.gjt.mm.mysql.Driver"
>
>connectionurl="jdbc:mysql://localhost/tomcatusers?user=heinin_m;password=zer
>o4u"
> usertable="users" usernamecol="user_name" usercredcol="user_pass"
> userroletable="user_roles" rolenamecol="role_name"/>
>
>I have an mysql windows server installed on my pc with in it the tomcatusers
>database as discribed in serveral how-to documents.
>
>This is my wb.xml file :
>
> <security-constraint>
> <display-name>Security Constraint</display-name>
> <web-resource-collection>
> <web-resource-name>Protected Area</web-resource-name>
> <!-- Define the context-relative URL(s) to be protected -->
> <url-pattern>/jsp/security/*</url-pattern>
> <!-- If you list http methods, only those methods are protected -->
> <http-method>DELETE</http-method>
> <http-method>GET</http-method>
> <http-method>POST</http-method>
> <http-method>PUT</http-method>
> </web-resource-collection>
> <auth-constraint>
> <!-- Anyone with one of the listed roles may access this area -->
> <role-name>heinin_m</role-name>
> <role-name>tomcat</role-name>
> <role-name>role1</role-name>
> </auth-constraint>
> </security-constraint>
>
> <!-- Default login configuration uses form-based authentication -->
> <login-config>
> <auth-method>BASIC</auth-method>
> <realm-name>Tomcat Supported Realm</realm-name>
> <form-login-config>
> <form-login-page>/jsp/security/protected/login.jsp</form-login-page>
> <form-error-page>/jsp/security/protected/error.jsp</form-error-page>
> </form-login-config>
> </login-config>
>
>
>Regards,
>
>Maarten
>
>
>
>Disclaimer
>
>This communication together with any attachments transmitted with it
>('this E-mail') is intended only for the use of the addressee and may
>contain information which is privileged and confidential. If the reader of
>this E-mail is not the intended recipient or the employee or agent
>responsible for delivering it to the intended recipient you are notified
>that any use of this E-mail is prohibited. Addressees should ensure this
>E-mail is checked for viruses. The Carphone Warehouse Group PLC makes no
>representations as regards the absence of viruses in this E-mail. If you
>have received this E-mail in error please notify our ISe Response Team
>immediately by telephone on + 44 (0)20 8896 5828 or via E-mail at
>[EMAIL PROTECTED] Please then immediately destroy this E-mail and any
>copies of it.
>
>Please feel free to visit our website:
>
>UK
>http://www.carphonewarehouse.com
>
>Group
>http://www.phonehouse.com