struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ajax <min_brevl...@yahoo.se>
Subject Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial
Date Tue, 14 Aug 2007 10:59:57 GMT

Hi!

I've been following this tutorial too, and think it serves as a great
starting point.
However, like some other users, I have encountered the problem with

<code>

org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor':
Cannot create inner bean '(inner bean)' of type
[org.springframework.transaction.interceptor.TransactionInterceptor] while
setting bean property 'transactionInterceptor'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)': Cannot resolve reference to bean
'transactionManager' while setting bean property 'transactionManager';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'transactionManager' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'entityManagerFactory' while setting bean property 'entityManagerFactory';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'entityManagerFactory' defined in
ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of
init method failed; nested exception is java.lang.NoClassDefFoundError:
org/hibernate/annotations/common/reflection/ReflectionManager
</code>

LucaLuca got it solved by adding "hibernate-all.jar" to the lib, but that
file was nowhere to be found in my distributions (struts, spring, hibernate
packs). I had to download 89 megs of jboss-seam stuff and grab it from
there. It helped matters for me as well.
For the time being, I am a mere follower of instructions in this matter, and
it would be great if someone could take the time to explain what was
happening, and what this fix was all about.

Thanks for a great roadmap, and for the contributions to the discussion so
far!

Kind regards
/A




LucaLuca wrote:
> 
> Hi,
> 
> It was in the right place, but didn't work. So, i've tried to put the
> "hilbernate-all.jar" in the build path, and it worked. I don't know the
> reason, but probably i was using the latest version of the requested 
> libraries and it need something older..
> 
> Thank you everybody for the time you spent with me.
> 
> LucaLuca
> 
> 

-- 
View this message in context: http://www.nabble.com/Struts-2-%2B-Spring-2-%2B-JPA-%2B-AJAX--Tutorial-tf3542150.html#a12142394
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message