Não consigo fazer login na minha aplicação. Usando Mysql funciona perfeitamente. Segue os arquivos d configuração:
hibernate
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Configuração da conexão com o banco MySQL e dialeto -->
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
<property name="connection.url">jdbc:jtds:sqlserver://localhost:1433/auttec_monitora</property>
<property name="connection.username">sa</property>
<property name="connection.password">1234</property>
<!-- Usando as configurações do C3PO para pool de conexões -->
<property name="c3po.min_size">5</property>
<property name="c3po.max_size">20</property>
<property name="c3po.timeout">300</property>
<property name="c3po.max_statements">50</property>
<property name="c3po.idle_test_period">3000</property>
<!--
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<property name="generate_statistics">true</property>
<property name="use_sql_comments">true</property> -->
<!-- Mapeando as classes -->
<mapping class="br.com.auttec.monitora.regraNegocio.Exaustor"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Usuario"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Permissao"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Placa"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Porta"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Tipo"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Bomba"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Historico"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Reservatorio"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Bomba_Reservatorio"/>
<mapping class="br.com.auttec.monitora.regraNegocio.Grafico"/>
</session-factory>
</hibernate-configuration>
context:
<?xml version="1.0" encoding="UTF-8"?>
<Context reloadable="true">
<Resource name="jdbc/auttec_monitora"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="1000"
username="sa"
password="1234"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:sqlserver://localhost:1433/auttec_monitora?autoReconnect=true"/>
</Context>
Configurei o servidor para permitir autentificação pelo Sql Server e Windows. Alguma dica?