Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4034042
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:55:21+00:00 2026-05-20T11:55:21+00:00

I have been having a problem that has troubled me for a while. Searching

  • 0

I have been having a problem that has troubled me for a while. Searching on this site and google hasn’t yielded much help. I have already posted the problem on the spring source forum here but nobody has answered yet so I thought I might try here. You always get an answer on stackoverflow 🙂

I have a custom UserDetailsService with autowired users dao bean. When I run the application in dev mode I get the login page. On login, nothing happens. Strange enough the app doesn’t break or throw an error. I used some println statements to find out the farthest point the login service gets to my UserDaoImpl class on this line,

List<User> temp = getHibernateTemplate().find("select h from users h where username='" + username + "'");

it stops there, any println messages after that don’t show on the console. In brief this are my configurations. If you need more details kindly look at detailed explanation I posted on spring source forum.

<http auto-config="true">
   <intercept-url pattern="/gwtsecurity/**" access="ROLE_USER"/>
   <intercept-url pattern="/gwt/**" access="ROLE_USER"/>
   <intercept-url pattern="/**/*.html" access="ROLE_USER"/>
   <intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
   <intercept-url pattern="/login.jsp*" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
   <form-login login-page="/login.jsp"/>
</http>

<beans:bean id="userDetailsService" class="com.kibyegn.server.auth.UserDetailsServiceImpl">
</beans:bean>

<beans:bean id="daoAuthenticationProvider" class="org.springframework.security.authentication.dao.DaoAuthenticationProvider">
   <beans:property name="userDetailsService" ref="userDetailsService"/>
</beans:bean>

<beans:bean id="authenticationManager" class="org.springframework.security.authentication.ProviderManager">
   <beans:property name="providers">
       <beans:list>
           <beans:ref local="daoAuthenticationProvider" />
       </beans:list>
   </beans:property>
</beans:bean>

<authentication-manager>
   <authentication-provider user-service-ref="userDetailsService">
   </authentication-provider>
</authentication-manager>

and my hibernate config file

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    <property name="driverClassName" value="org.postgresql.Driver" />
    <property name="url" value="jdbc:postgresql://127.0.0.1:5432/GwtApp" />
    <property name="username" value="postgres" />
    <property name="password" value="password" />
</bean>
<!-- HIBERNATE CONFIGURATION -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    <property name="dataSource" ref="dataSource" />
    <property name="annotatedClasses">
        <list>
            <value>com.kibyegn.client.model.User</value>
        </list>
    </property>
    <property name="hibernateProperties">
        <props>
            <prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
            <prop key="hibernate.show_sql">true</prop>
            <prop key="hibernate.hbm2ddl.auto">update</prop>
        </props>
    </property>
</bean>
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
    <property name="sessionFactory" ref="sessionFactory" />
</bean>
<bean id="userDao"
    class="com.kibyegn.client.dao.UserDaoImpl"
    scope="singleton">
    <property name="hibernateTemplate" ref="hibernateTemplate" />
</bean>

<bean id="userDetailsService"
    class="com.kibyegn.server.auth.UserDetailsServiceImpl">
</bean>

Could someone please save me from my misery. Help is highly appreciated.
Kibet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:55:22+00:00Added an answer on May 20, 2026 at 11:55 am

    I fixed it, the problem was that I was importing the Entity and Table class from org.hibernate.annotations instead of javax.persistence. After changing that, I got some errors but I fixed them and it now works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a really weird problem that I have been having. When I download
I have been trying to tackle this problem , but I am having difficulty
This has been a problem that has existed on 3 projects for me. I
I have been creating Unit tests like crazy and find that I'm often having
been having this problem for a few days now and can't seem to find
I have been having some problems trying to get my PHP running. When I
I have been having some issues with LINQ-To-SQL around memory usage. I'm using it
I have to compute at libraries quite often these days, and have been having
I having trouble in dividing the HTML frames. I have been using the following
Have been looking at the MVC storefront and see that IQueryable is returned from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.