Results 1 to 4 of 4
Thread: Could not locate named parameter
- 06-05-2009, 03:12 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 4
- Rep Power
- 0
Could not locate named parameter
I' ve two applciations developed using AndroMDA - struts, ejb, hibernate
When i deploy them in jboss 4.2.3, one gives following error:
Caused by: org.hibernate.HibernateException: could not locate named parameter [password]
at org.hibernate.engine.query.ParameterMetadata.getNa medParameterDescriptor(ParameterMetadata.java:75)
at org.hibernate.engine.query.ParameterMetadata.getNa medParameterExpectedType(ParameterMetadata.java:81 )
at org.hibernate.impl.AbstractQueryImpl.determineType (AbstractQueryImpl.java:390)
at org.hibernate.impl.AbstractQueryImpl.setParameter( AbstractQueryImpl.java:376)
at com.tcs.lms.entity.lmsUserInfoFactory.validateUser (lmsUserInfoFactory.java:72)
at com.tcs.lms.services.LoyaltyManagementServiceBeanI mpl.handleValidateUser(LoyaltyManagementServiceBea nImpl.java:19)
Hibernate cfg file generated by AndroMDA is :
property name="connection.datasource">java:/jdbc/LMS</property>
<property name="jta.UserTransaction">UserTransaction</property>
<property name="transaction.factory_class">org.hibernate.tra nsaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">org.hibern ate.transaction.JBossTransactionManagerLookup</property>
<property name="show_sql">true</property>
<property name="session_factory_name">java:/hibernate/SessionFactory</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialec t</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.hibernat e.cache.EhCacheProvider</property>
<property name="hibernate.cache.query_cache_factory">org.hib ernate.cache.StandardQueryCacheFactory</property>
with property mappings.
When i undeploy one and run the other, all work fine.
Please suggest me what is wrong.
Thanks
- 06-05-2009, 03:50 PM #2
There's no parameter called password?
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 06-05-2009, 03:58 PM #3
Member
- Join Date
- Jun 2008
- Posts
- 4
- Rep Power
- 0
There is a password parameter.
As i mentioned earlier, the application does work when deployed separately
- 06-06-2009, 12:46 AM #4
Well then there's probably something different about the classpath setup
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
Similar Threads
-
To create sip japenese named files using java
By bngkrish in forum New To JavaReplies: 0Last Post: 04-20-2009, 06:20 PM -
Pls HeLp Me (Design a class named Fan)
By faw in forum Advanced JavaReplies: 5Last Post: 04-21-2008, 07:25 PM -
arugment/parameter
By ravian in forum New To JavaReplies: 5Last Post: 01-04-2008, 09:43 AM -
MappingException: Named query not known :
By abhibh_1 in forum Web FrameworksReplies: 0Last Post: 08-14-2007, 12:59 PM -
named pipes
By samson in forum NetworkingReplies: 1Last Post: 04-04-2007, 06:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks