Wicket integration with Spring ldap

2013-11-04 Thread Selom
(ContextHandler.java:965)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:348)
at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884)
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Thread.java:662)




The 
org.univ.amemet.services.ldap.ILdapComposanteDaoImpl.getUFRs(ILdapComposanteDaoImpl.java:211)
show  me that the bean* ldapTemplate is null.*


Any help will be appreciate.

Thanks.












--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-integration-with-Spring-ldap-tp4662097.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket integration with Spring ldap

2013-11-04 Thread Martin Grigorov
(SessionHandler.java:186)
 at

 org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
 at

 org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
 at

 org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
 at

 org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
 at

 org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
 at org.eclipse.jetty.server.Server.handle(Server.java:348)
 at

 org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
 at

 org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884)
 at

 org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938)
 at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
 at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
 at

 org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
 at

 org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
 at

 org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
 at

 org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
 at

 org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
 at java.lang.Thread.run(Thread.java:662)




 The

 org.univ.amemet.services.ldap.ILdapComposanteDaoImpl.getUFRs(ILdapComposanteDaoImpl.java:211)
 show  me that the bean* ldapTemplate is null.*


 Any help will be appreciate.

 Thanks.












 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-integration-with-Spring-ldap-tp4662097.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Wicket integration with Spring ldap

2013-11-04 Thread Selom
Hi,
I removed the SpringContext filter but still got the same error .

Then I changed  the configuration based on  the  how to setup Wicket+Spring
with annotation based (@Configuration)
https://github.com/jWeekend/LegUp/tree/master/wicket-spring-jpa   of
yours.

@Configuration
@EnableTransactionManagement(proxyTargetClass = true)
public class Config {


 
 @Bean
 public ILdapComposanteDao ldapComposanteDao() {
 ILdapComposanteDaoImpl iLdapComposanteDaoImpl = new
ILdapComposanteDaoImpl();
 iLdapComposanteDaoImpl.setLdapTemplate(ldapTemplate());
 
 return iLdapComposanteDaoImpl;
 }

 @Bean
 public LdapTemplate ldapTemplate(){
 return new LdapTemplate(contextSource());
 }
 
 
 @Bean
 public  DefaultDirContextValidator dirContextValidator (){
 return new DefaultDirContextValidator();
 }
 

 @Bean
 public  PoolingContextSource contextSource(){
 PoolingContextSource pc= new PoolingContextSource();
 pc.setContextSource(contextSourceTarget());
 pc.setDirContextValidator(dirContextValidator());
 pc.setTestOnBorrow(true);
 pc.setTestWhileIdle(true);
 
 return pc;
 }
 
 @Bean
 public  LdapContextSource contextSourceTarget(){
 LdapContextSource ldapContextSource = new LdapContextSource();
 ldapContextSource.setUrl(blablabla);
 ldapContextSource.setBase(dc=xx,dc=xx,dc=fr);
 ldapContextSource.setUserDn(cn=...,ou=,dc=...,dc=...,dc=fr);
 ldapContextSource.setPassword(pwss);
 return ldapContextSource;
 }
 
 
 

}


And I work as expected .

Thanks you very much  .




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-integration-with-Spring-ldap-tp4662097p4662110.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org