Witam pisze sobie mała aplikację w spring i wykonuje logowanie, poprawność użytkowników ma być sprawdzana przy pomocy bazy danych mysql. Serwer Tomcat. Wykonalem konfiguracje pliku context w katalogu Servers:
<Resource name="jdbc/e-sport" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000" username="root"
password="password" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/e-sport" />
W dao-context.xml dodałem:
<jee:jndi-lookup jndi-name="jdbc/e-sport" id="dataSource"
expected-type="javax.sql.DataSource">
</jee:jndi-lookup>
W security-context.xml dodałem:
<security:authentication-manager>
<security:authentication-provider>
<security:jdbc-user-service data-source-ref="dataSource" />
</security:authentication-provider>
</security:authentication-manager>
I w warningu wyżej wyświetla mi że: Referenced bean 'dataSource' not found
Logowanie z użyciem bazy danych mi nie działa :/ Co jest z nie tak. Z góry dziękuję za odpowiedz.