UVAshley / krank

Automatically exported from code.google.com/p/krank
0 stars 0 forks source link

crank-preload-web-test-0.15.war fails /jetty and tomcat #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. deploy to webapps of jetty / tomcat
2. start container ->
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in class path
resource [org/crank/crud/cache/web/test/spring/resource-defs.xml]:
Invocation of init method failed; nested exception is
java.lang.IllegalArgumentException: Instance must not be null
...

3.
http://localhost:8080/crank-preload-web-test-0.15/
-> List Employees 
click on it
->
ype Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet action threw
exception
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:619)

root cause

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionInterceptor' defined in class path resource
[org/crank/crud/cache/web/test/spring/dao-beans.xml]: Cannot resolve
reference to bean 'transactionManager' while setting constructor argument
with index 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager' defined in class path resource
[org/crank/crud/cache/web/test/spring/resource-defs.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 class path resource
[org/crank/crud/cache/web/test/spring/resource-defs.xml]: Invocation of
init method failed; nested exception is java.lang.IllegalArgumentException:
Instance must not be null
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
    org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:373)
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:799)
...

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by hansp...@gmail.com on 22 Jan 2008 at 2:27