tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Viscomi <fvisc...@gmail.com>
Subject Re: configuring a combined realm
Date Tue, 01 Apr 2014 21:28:09 GMT
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 <markt@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Ing. Viscomi Francesco

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message