Я пишу проект для Windows (IntelliJIdea), и все в порядке.Он компилируется и запускается.Но когда я пытаюсь запустить Debian (GNU / Linux 5.0), у меня есть
SEVERE: Access denied for user 'root'@'localhost' (using password: YES)<br>
[java] 30.11.2010 15:39:04 org.hibernate.cfg.SettingsFactory buildSettings<br>
[java] WARNING: Could not obtain connection to query metadata<br>
[java] java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)<br>
[java] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)<br>
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566)<br>
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498)<br>
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:919)<br>
Я использую такой конфигурационный файл Spring:
<bean id="mySqlDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://127.0.0.1:3306/mydb"/>
<property name="username" value="mydb"/>
<property name="password" value="Fallout_3"/>
</bean>
<bean id="mySqlSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="mySqlDataSource"/>
<property name="mappingResources">
<list>
<value>entities/ClientPrices.hbm.xml</value>
<value>entities/User.hbm.xml</value>
<value>entities/Provider.hbm.xml</value>
<value>entities/MessageQueue.hbm.xml</value>
<value> hibernate/SimpleEntity.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.show_sql=true
hibernate.hbm2ddl.auto=create
hibernate.current_session_context_class=thread
</value>
</property>
</bean>