tomcat启动时初始化失败,求解决

在启动Tomcat时遇到了一个严重错误,导致上下文初始化失败。具体错误信息指出,Spring尝试创建名为'framework-page'的bean时,由于在com.surfilter.framework.orm.support.MySqlPage类中存在未解决的编译问题,如必须实现的抽象方法、未定义的构造函数、Logger接口引用的类型缺失以及多个String类型的未解析问题。这个问题导致了Bean的实例化失败和应用程序无法正常启动。
摘要由CSDN通过智能技术生成
ERROR [ContextLoader.java:204] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'framework-page' defined in class path resource [framework-common.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.surfilter.framework.orm.support.MySqlPage]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The type MySqlPage must implement the inherited abstract method IPage.getLimitString(String, int, int)
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
The method getLogger(String) from the type Logger refers to the missing type String
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
The method debug(Object) from the type Category refers to the missing type Object

Caused by:
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.surfilter.framework.orm.support.MySqlPage]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The type MySqlPage must implement the inherited abstract method IPage.getLimitString(String, int, int)
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
The method getLogger(String) from the type Logger refers to the missing type String
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
The method debug(Object) from the type Category refers to the missing type Object

Caused by:
java.lang.Error: Unresolved compilation problems:
The type MySqlPage must implement the inherited abstract method IPage.getLimitString(String, int, int)
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
The method getLogger(String) from the type Logger refers to the missing type String
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
The method debug(Object) from the type Category refers to the missing type Object

at com.surfilter.framework.orm.support.MySqlPage.<init>(MySqlPage.java:30)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:757)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:722)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
三月 10, 2015 11:01:34 上午 org.apache.catalina.core.StandardContext listenerStart
SEVERE: 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 'framework-page' defined in class path resource [framework-common.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.surfilter.framework.orm.support.MySqlPage]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The type MySqlPage must implement the inherited abstract method IPage.getLimitString(String, int, int)
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
The method getLogger(String) from the type Logger refers to the missing type String
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
The method debug(Object) from the type Category refers to the missing type Object

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.surfilter.framework.orm.support.MySqlPage]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The type MySqlPage must implement the inherited abstract method IPage.getLimitString(String, int, int)
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
The method getLogger(String) from the type Logger refers to the missing type String
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
The method debug(Object) from the type Category refers to the missing type Object

Caused by: java.lang.Error: Unresolved compilation problems:
The type MySqlPage must implement the inherited abstract method IPage.getLimitString(String, int, int)
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
The method getLogger(String) from the type Logger refers to the missing type String
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
The method debug(Object) from the type Category refers to the missing type Object

at com.surfilter.framework.orm.support.MySqlPage.<init>(MySqlPage.java:30)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:757)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:722)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值