Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 嚴重: Context initialization failed
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in com.web.store.config.RootAppConfig: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.web.store.model.RecipeBean.member_id references an unknown entity: java.lang.Integer
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
- at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4680)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5150)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)
- at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
- at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
- at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
- at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)
- at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
- at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
- at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
- at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
- Caused by: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.web.store.model.RecipeBean.member_id references an unknown entity: java.lang.Integer
- at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:97)
- at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processEndOfQueue(InFlightMetadataCollectorImpl.java:1752)
- at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processFkSecondPassesInOrder(InFlightMetadataCollectorImpl.java:1696)
- at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1583)
- at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:278)
- at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
- at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
- at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
- at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:691)
- at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
- at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:511)
- at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:495)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
- ... 42 more
- 七月 12, 2019 1:25:41 上午 org.apache.catalina.core.StandardContext listenerStart
- 嚴重: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in com.web.store.config.RootAppConfig: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.web.store.model.RecipeBean.member_id references an unknown entity: java.lang.Integer
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
- at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4680)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5150)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)
- at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
- at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
- at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
- at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)
- at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
- at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
- at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
- at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
- Caused by: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.web.store.model.RecipeBean.member_id references an unknown entity: java.lang.Integer
- at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:97)
- at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processEndOfQueue(InFlightMetadataCollectorImpl.java:1752)
- at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processFkSecondPassesInOrder(InFlightMetadataCollectorImpl.java:1696)
- at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1583)
- at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:278)
- at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
- at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
- at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
- at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:691)
- at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
- at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:511)
- at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:495)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
- ... 42 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement