-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Could not locate named parameter
PostPosted: Fri Jun 05, 2009 9:02 am 
Newbie

Joined: Fri Jun 20, 2008 3:49 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.