>
> uk.co.company.product.presentation.wicket.app.WicketApplication
>
> >>
> >>
> >> >
> >> >
> >> >
> >> >opensessioninview
> >> > /*
> >> >
> >> >
> >> >wicket-
true
hibernate.format_sql
zen_template
2
pojo
true
true
true
thread
true
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
>> >
name="driverClassName">${jdbc.driver}
> >${jdbc.url}
> > name="username">${jdbc.username}
> > name="password">${jdbc.password}
>
> >
> >
> >
> >
> > > class=&q
rname;
>> return userService.authenticate(username, password);
>> }
>>
>> @Override
>> public Roles getRoles(){
>> return userService.getRoles(currentUser, isSignedIn());
>> }
>> }
>>
>>
>> UserServiceImpl.ja
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
);
> //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
>
}
@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
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
gt; >> >>>>>
>> >> >>>>> applicationFactoryClassName
>> >> >>>>>
>> >> >>>>>
>> >> >>>>
>> >> >>
>> >>
>> org.apache.wicket.spring.Sp
>
> >> >>
> >>
> class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
>
> >>
> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> &
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
gt; >
>> >> > > >> > key="hibernate.jdbc.use_streams_for_binary">true
>> >> > > >> > key="hibernate.jdbc.use_get_generated_keys">true
>> >> >
>> >> > 8
>
uot;*Service,*DAO,*Bean"
>> >>>>> default-autowire="byType"
>> >>>>> default-lazy-init="false"
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>> > >>&
nticatedWebApplication{
> >> >
> >> >public WicketApplication(){
> >> >super();
> >> > }
> >> >
> >> >@Override
> >> >final public Class getHomePage(){
> >> >return HomePage.
> >>>>>>>>> name="username">${jdbc.username}
> >>>>>>>>> name="password">${jdbc.password}
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>&
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
2
>>>>>
>>>>> pojo
>>>>> true
>>>>> true
>>>>> > key="hibernate.use_identifier_rollback">true
>>>>> >>>> key="hibernate.curr
> >
> >> > my WicketApplication.java:
> >> >
> >> > public class WicketApplication extends AuthenticatedWebApplication{
> >> >
> >> >public WicketApplication(){
> >> > super();
> >> > }
> >> >
> >> >
e){
>> > this.userService = userService;
>> > }
>> >
>> > transient private String currentUser = null;
>> >
>> > public CustomAuthenticatedWebSession(final Request request){
>> > super(request);
>> >
;
> > my UserServiceImpl.java:
> >
> > @Service
> > public class UserServiceImpl extends _AbstractService implements
> > UserService{
> >
> >final private TestUserService testUserService = new TestUserService();
>
> >
> >@SpringBean
@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
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
23 matches
Mail list logo