Results 1 to 4 of 4
  1. #1
    nc_newie is offline Member
    Join Date
    Jun 2008
    Posts
    4
    Rep Power
    0

    Default 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

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    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

  3. #3
    nc_newie is offline Member
    Join Date
    Jun 2008
    Posts
    4
    Rep Power
    0

    Default

    There is a password parameter.
    As i mentioned earlier, the application does work when deployed separately

  4. #4
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    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

  1. To create sip japenese named files using java
    By bngkrish in forum New To Java
    Replies: 0
    Last Post: 04-20-2009, 06:20 PM
  2. Pls HeLp Me (Design a class named Fan)
    By faw in forum Advanced Java
    Replies: 5
    Last Post: 04-21-2008, 07:25 PM
  3. arugment/parameter
    By ravian in forum New To Java
    Replies: 5
    Last Post: 01-04-2008, 09:43 AM
  4. MappingException: Named query not known :
    By abhibh_1 in forum Web Frameworks
    Replies: 0
    Last Post: 08-14-2007, 12:59 PM
  5. named pipes
    By samson in forum Networking
    Replies: 1
    Last Post: 04-04-2007, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •