A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Error during Spring JUnit test
Joined: Sep 26, 2006
Dec 11, 2011 10:40:33
I have a
class controlled using Spring. When I tried to run that, I got the following Error:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in class path resource [config/common/applicationContext-common.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [config/common/applicationContext-common.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [sun.misc.Launcher$AppClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
I do not want to specify the -javaagent to my run time. Is there any other alternative?
SCWCD 1.4 - Hints for you
, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Error during Spring JUnit test
Spring Tomcat Application - Startup Problems
Error book Hibernate Recipes a problemsolution approach(@OneToMany bidirectional Using a Join Table)
BeanCreationException in an standalone application using Spring
AspectJ LTW using Spring
spring AOP aspect4j logger on the spring mvc application
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015