help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Adam Gibbons
Hi there, For some time now I have been trying to put together a simple project to get me off the ground with a Wicket/Spring/Hibernate setup. I've had lots of ups and downs, and found this guide really useful: http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ However, I still

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
@SpringBean isn't for use inside your Spring services, just Wicket stuff. Just use the native Spring injection mechanisms. Try @Autowired. On Wed, Dec 15, 2010 at 5:43 AM, Adam Gibbons wrote: > Hi there, > > For some time now I have been trying to put together a simple project to get > me off t

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
; > > my UserServiceImpl.java: > > > > @Service > > public class UserServiceImpl extends _AbstractService implements > > UserService{ > > > >final private TestUserService testUserService = new TestUserService(); > > > > >@SpringBean

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
e){ >> >        this.userService = userService; >> >    } >> > >> >    transient private String currentUser = null; >> > >> >    public CustomAuthenticatedWebSession(final Request request){ >> >        super(request); >> >      

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
> > > >> > my WicketApplication.java: > >> > > >> > public class WicketApplication extends AuthenticatedWebApplication{ > >> > > >> >public WicketApplication(){ > >> > super(); > >> > } > >> > > >> >

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Matthias Gasser
2 >>>>> >>>>> pojo >>>>> true >>>>> true >>>>> > key="hibernate.use_identifier_rollback">true >>>>> >>>> key="hibernate.curr

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
What's the code for UserServiceImpl? On Wed, Dec 15, 2010 at 9:02 AM, adam.gibbons wrote: > > New log: > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'userServiceImpl' defined in file > [C:\tomcat6\webapps\ZenTemplate-0\WEB-INF\classes\uk\co\company\pro

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
> >>>>>>>>> name="username">${jdbc.username} > >>>>>>>>> name="password">${jdbc.password} > >>>>> > >>>>> > >>>>> > >>>>> > >>>&

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
nticatedWebApplication{ > >> > > >> >public WicketApplication(){ > >> >super(); > >> > } > >> > > >> >@Override > >> >final public Class getHomePage(){ > >> >return HomePage.

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
uot;*Service,*DAO,*Bean" >> >>>>>   default-autowire="byType" >> >>>>>   default-lazy-init="false" >> >>>>>> >> >>>>>   >> >>>>> >> >>>>>   > >>&

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
gt; >                 >> >> >                > >> > key="hibernate.jdbc.use_streams_for_binary">true >> >> >                > >> > key="hibernate.jdbc.use_get_generated_keys">true >> >> >                 >> >> >                8 >

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
k.org/schema/beans"; > >> >>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >> >>>>> xmlns:aop="http://www.springframework.org/schema/aop"; > >> >>>>> xmlns:tx="http://www.springframew

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
> > >> >> > >> > class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> > > >> > >> >> > >> >> > > >> >> > > >> >> > > >> >> &

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
gt; >> >>>>>       >> >> >>>>>           applicationFactoryClassName >> >> >>>>> >> >> >>>>> >> >> >>>> >> >> >> >> >> >> org.apache.wicket.spring.Sp

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
Put a log statement in your DAO's constructor to see if it's getting instantiated (it's probably not). Then turn on component scanning as suggested by someone else. On Wed, Dec 15, 2010 at 10:01 AM, adam.gibbons wrote: > > There is definitely only 1 implementation. I read the error as it finds

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
} @Autowired public void init(final SessionFactory factory) { setSessionFactory(factory); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/help-me-please-Wicket-Spring-Hibernate-configuration-woes-tp3088768p3089284.html Sent from the Users for

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread jcgarciam
); > //InjectorHolder.getInjector().inject(this);//<-- VERY IMPORTANT to > get Spring DI to work. > } > > /* (non-Javadoc) > * @see > uk.co.company.product.business.spring.UserService#authenticate(java.lang.String, > java.lang.String) > */ > @Override >

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Hielke Hoeve
Hey Adam, This is still a spring error, you need a sessionfactory and transactionfactory and link them together. The opensessioninview filter only opens a transaction if you get this right. The spring forums are filled with examples. Hielke On 15 Dec 2010 16:58, "adam.gibbons" wrote: > > > Ok, I

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
rname; >> return userService.authenticate(username, password); >> } >> >> @Override >> public Roles getRoles(){ >> return userService.getRoles(currentUser, isSignedIn()); >> } >> } >> >> >> UserServiceImpl.ja

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread adam.gibbons
name="driverClassName">${jdbc.driver} > >${jdbc.url} > > name="username">${jdbc.username} > > name="password">${jdbc.password} > > > > > > > > > > > > class=&q

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread James Carman
t;; >> >    xmlns:context="http://www.springframework.org/schema/context"; >> >    xsi:schemaLocation=" >> >        http://www.springframework.org/schema/beans >> > http://www.springframework.org/schema/beans/spring-beans-2.5.xsd >> >  

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-15 Thread Michael O'Cleirigh
true hibernate.format_sql zen_template 2 pojo true true true thread true

Re: help me please!!! Wicket/Spring/Hibernate configuration woes

2010-12-16 Thread adam.gibbons
> > uk.co.company.product.presentation.wicket.app.WicketApplication > > >> > >> > >> > > >> > > >> > > >> >opensessioninview > >> > /* > >> > > >> > > >> >wicket-