16. atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
17. atorg.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
18. atorg.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
19. atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
20. atjava.util.concurrent.FutureTask.run(FutureTask.java:166)
21. atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
22. atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
23. atjava.lang.Thread.run(Thread.java:722)
24. Causedby:java.lang.NullPointerException
25. atorg.springframework.orm.hibernate4.LocalSessionFactoryBuilder.scanPackages(LocalSessionFactoryBuilder.java:138)
26. atorg.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:294)
27. atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1504)
28. atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1442)
29. ...20more
30.
31. 七月13,20136:48:44下午org.apache.catalina.core.StandardContextlistenerStart
32. SEVERE:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListener
33. org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sessionFactory'definedinServletContextresource[/WEB
INF/applicationContext.xml]:Invocationofinitmethodfailed;nestedexceptionisjava.lang.NullPointerException
34. atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1445)
35. atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
36. atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:459)
37. atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
38. atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
39. atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
40. atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
41. atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
42. atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
43. atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
44. atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)
45. atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
46. atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
47. atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
48. atorg.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
49. atorg.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
50. atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
51. atjava.util.concurrent.FutureTask.run(FutureTask.java:166)
52. atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
53. atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
54. atjava.lang.Thread.run(Thread.java:722)
55. Causedby:java.lang.NullPointerException
56. atorg.springframework.orm.hibernate4.LocalSessionFactoryBuilder.scanPackages(LocalSessionFactoryBuilder.java:138)
57. atorg.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:294)
58. atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1504)
59. atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1442)
60. ...20more
6. 整合Spring时候,使用Hibernate时点击注册报错信息。
[plain]viewplaincopyprint?
1. java.lang.reflect.InvocationTargetException
2. sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
3. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
4. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
5. java.lang.reflect.Method.invoke(Method.java:601)
6. com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
7. com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
8. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
9. com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
10. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
11. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
12. com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
13. org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
14. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
15. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
16. com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
17. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)