I would like to give the client the possibility to choose to login to my application either using google, facebook or my own implemented user data.
What I have so far is, I created my own...
Type: Posts; User: TomBlank; Keyword(s):
I would like to give the client the possibility to choose to login to my application either using google, facebook or my own implemented user data.
What I have so far is, I created my own...
I would say so. I found it out actually by looking up the issues in Spring Security and came across some bugs in the setup of Spring Security. I also thought, it's all fixed but couldn't resist to...
I spent 4 days of trying to fix this injection of my Repository in CustomUserDetailsService and at the end, it turned out to be a bug in Spring Security debug namespace!! I don't know why it's...
Thanks for your hint! I tried to follow your advice and looked up the spring reference guide, but I'm stuck. I tried to look again at the log files, but I can't see why it's not working.
If you...
Oh gosh! :(
It's driving me nuts... especially since it was working with the previous version of SpringFramework and SpringSecurity... I can't believe this is so difficult to solve it... It should...
Alright, now I attach the whole log of the spring.framework level.
Now, as a zip. ;)
4861
OK, I attached my log files to this message now.
4857
4858
OK, Here is the first part of the SpringSecurity:
2012-04-16 15:53:55,012 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Creating shared instance of singleton...
Oh ok! I didn't dare to post such a long debug list in here...
Shall I really post the debug output in here?
Well, I changed already my AppConfig.java, so it looks like this now:
@Configuration
@EnableWebMvc
@EnableTransactionManagement
@EnableScheduling
@ComponentScan(basePackages =...
Oh dear! :( Now you lost me...
I turned on the log level of SpringSecurity to Debug and this is what I'm getting:
2012-04-16 15:35:59,963 INFO...
I'm getting really desparate, although I feel like I'm close to fix this issue... :(
Because I wanted to have as less xml configuration as possible I followed your first suggestion by using the...
OK, got it, but why is the Injection inside my PersonDaoImpl not working? It fails here:
Session session = sessionFactory.getCurrentSession();
I can't figure out, what I'm doing wrong. I...
But this means, that now I have to setup my sessionFactory inside the xml configuration and not inside my Java config (DataConfig.java), right? I was hoping that the xml configuration is being loaded...
Here is my PersonDaoImpl:
@Repository
public class PersonDaoImpl implements PersonDAO {
private Log logger = LogFactory.getLog( getClass() );
@Autowired
Alright, it's (somehow) working now. I'm getting some test outputs coming from my PersonDaoImpl, but now if I want to look up for the user in the database, of course I'm using the sessionFactory...
Hi!
I actually found out another post, where somebody has exactly the same problem and maybe I described my problem not in detail enough.
I realized that you (Marten) replied to it.
...
Hi!
Well, I want to get a rid of all my xml configuration and use only Java config. The only thing what is left, is this part so instead of defining LocaleChangeInterceptor inside the...
Thanks for the hint. It's a pitty that Java config is not supported yet.
Can anyone tell me how to convert this xml configuration into Java Configuration?
<mvc:interceptors>
<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" />
...
If you are using Spring 3.1, you can actually do it via Annotation.
This is how I did it:
// Annotated as Service
@Service
public class OverNightGenerator {
...
// Here you can set...
I have a configuration xml file of my spring security, but would love to convert my xml configuration to Java, since my other Spring related configuration is in Java too.
Can anyone give me a hint...
Hi Marten,
Thanks for your reply. Please, find attached all related configuration files together with the domain Object. As I said, The only problem is the CustomeUserDetailsService, which fails...
Thanks for the hint! I changed it to TilesViewResolver.
Speaking of the DispatcherServlet and ContextLoaderListener. To be honest, I never understood it 100%. If you could take a look on my...
Sorry, you are right. I should point out other definitions as well.
I have a another applicationContext.xml file where my
<context:component-scan base-package="com.company" />
is already...