I have two applications generated by AndroMDA - struts, ejb, hibernate When i deploy both the applications get the error while login ::::::::::: Caused by: java.lang.Exception: org.hibernate.HibernateException: could not locate named parameter [password] 2009-06-05 17:44:08,812 ERROR [STDERR] ... 68 more 2009-06-05 17:44:08,812 ERROR [STDERR] Caused by: org.hibernate.HibernateException: could not locate named parameter [password] 2009-06-05 17:44:08,812 ERROR [STDERR] at org.hibernate.engine.query.ParameterMetadata.getNamedParameterDescriptor(ParameterMetadata.java:75) 2009-06-05 17:44:08,812 ERROR [STDERR] at org.hibernate.engine.query.ParameterMetadata.getNamedParameterExpectedType(ParameterMetadata.java:81) 2009-06-05 17:44:08,812 ERROR [STDERR] at org.hibernate.impl.AbstractQueryImpl.determineType(AbstractQueryImpl.java:390) 2009-06-05 17:44:08,812 ERROR [STDERR] at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:376) 2009-06-05 17:44:08,812 ERROR [STDERR] at com.tcs.lms.entity.lmsUserInfoFactory.validateUser(lmsUserInfoFactory.java:72) 2009-06-05 17:44:08,812 ERROR [STDERR] at com.tcs.lms.services.LoyaltyManagementServiceBeanImpl.handleValidateUser(LoyaltyManagementServiceBeanImpl.java:19) 2009-06-05 17:44:08,812 ERROR [STDERR] at com.tcs.lms.services.LoyaltyManagementServiceBean.validateUser(LoyaltyManagementServiceBean.java:37)
When i deploy one and run the other, it works fine. the hibernate config file generated is:
<property name="connection.datasource">java:/jdbc/LMS</property> <property name="jta.UserTransaction">UserTransaction</property> <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property> <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> <property name="show_sql">true</property> <property name="session_factory_name">java:/hibernate/SessionFactory</property> <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property> <property name="jdbc.batch_size">0</property> <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property> <property name="hibernate.cache.use_query_cache">false</property> <property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property> <property name="hibernate.cache.query_cache_factory">org.hibernate.cache.StandardQueryCacheFactory</property>
Please suggest a solution. Thanks.
|