On 01/04/2014 13:15, Francesco Viscomi wrote:
> I'm unable to understand what's wrong with this configuration:

You need to read the Realm documentation more carefully.

> context.xml file
> ===============================================================================
> <?xml version="1.0" encoding="UTF-8"?>
> <Context antiJARLocking="true" path="/SitoAziendale">
> 
> 
>     <Resource name="jdbc/PoolConnessioni" auth="Container"
> type="javax.sql.DataSource"
>         maxActive="100" maxIdle="30" maxWait="10000"
>         username="utentedb" password="utentedb"
> driverClassName="com.mysql.jdbc.Driver"
> 
> url="jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNull"/>
> 
> 
> 
>     <Realm className="org.apache.catalina.realm.DataSourceRealm"
>         dataSourceName="jdbc/PoolConnessioni"
>         userTable="Dipendente" userNameCol="username" userCredCol="password"
>         userRoleTable="ruoliUtente" roleNameCol="nomeRuolo"/>
> 
> 
> </Context>

Take a look at the localDataSource attribute of the DataSourceRealm.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to