thanks Mark, with localDataSource="true" it works; for Daniel, thanks to you too; I'm using tomcat 7; I was able to log to tomcat manager, but i wasn't able to log to my application (adding localDataSource="true") it works right;
thanks again 2014-04-01 18:01 GMT+02:00 Mark Thomas <ma...@apache.org>: > 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 > > -- Ing. Viscomi Francesco