[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: No matching credentials in Subject Exception!
kks_krishna
do-not-reply at jboss.com
Thu May 15 23:03:33 EDT 2008
The following are the changes I have made. Please help me at the earliest.
Chamges on Hibernate Configuration file
<hibernate-configuration>
| <session-factory>
| <property name="dialect">
| org.hibernate.dialect.MySQLDialect
| </property>
| <property name="connection.datasource">java:MySqlDS1</property>
| <mapping
| resource="Offlinetelephone.hbm.xml" />
|
|
| </hibernate-configuration>
Changes in mysql-ds.xml
<datasources>
| <local-tx-datasource>
| <jndi-name>MySqlDS</jndi-name>
| <connection-url>jdbc:mysql://192.168.48.227:3306/systemdatabase</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <min-pool-size>1</min-pool-size>
| <max-pool-size>20</max-pool-size>
| <security-domain>EncryptDBPassword</security-domain>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| <local-tx-datasource>
| <jndi-name>MySqlDS1</jndi-name>
| <connection-url>jdbc:mysql://192.168.48.227:3306/telephone_element1</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <min-pool-size>1</min-pool-size>
| <max-pool-size>20</max-pool-size>
| <security-domain>EncryptDBPassword</security-domain>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
|
| </datasources>
Changes in login-config.xml
<application-policy name="EncryptDBPassword">
| <authentication>
| <login-module code="org.jboss.resource.security.SecureIdentityLoginModule" flag="required">
|
| <module-option name="username">root</module-option>
| <module-option name="password">6f8e652f571678f2</module-option>
| <module-option name="managedConnectionFactoryName">jboss.jca:name=MySqlDS,service=LocalTxCM</module-option>
| </login-module>
| </authentication>
| </application-policy>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151231#4151231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151231
More information about the jboss-user
mailing list