tomcat启动报错

tjzero_sapce 2015-05-31 12:08:46
小弟自己搭建的spring + springmvc + mybatis框架,启动后报错,但是不影响程序执行,不知道错误在哪儿 请教大侠
SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource Unable to process web resource [/WEB-INF/classes/com/thfund/controller/VideoController.class] for annotations
java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:82)
at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1897)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1892)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1892)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1892)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1135)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1071)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1722)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
...全文
1336 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
Balabala_0 2017-06-17
  • 打赏
  • 举报
回复
引用 5 楼 guomeng19910513 的回复:
你加的注解是干什么用的,启动后就操作I/O?
你在controller的处理方法写了一个类?
Hiirhan 2017-01-09
  • 打赏
  • 举报
回复
同样问题,大仙儿们解决了吗?
tjzero_sapce 2015-06-01
  • 打赏
  • 举报
回复
引用 4 楼 tragedyxd 的回复:
Unable to process web resource [/WEB-INF/classes/com/thfund/controller/VideoController.class] for annotations java.io.EOFException 注解的问题?
@Controller @RequestMapping("/videoController") public class VideoController 这是contorller的注解 有问题吗?
麦当酷 2015-06-01
  • 打赏
  • 举报
回复
你加的注解是干什么用的,启动后就操作I/O?
tragedyxd 2015-06-01
  • 打赏
  • 举报
回复
Unable to process web resource [/WEB-INF/classes/com/thfund/controller/VideoController.class] for annotations java.io.EOFException 注解的问题?
tjzero_sapce 2015-06-01
  • 打赏
  • 举报
回复
DEBUG - Looking up JNDI object with name [java:comp/env/spring.profiles.active]
DEBUG - Converted JNDI name [java:comp/env/spring.profiles.active] not found - trying original name [spring.profiles.active]. javax.naming.NameNotFoundException: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].
DEBUG - Looking up JNDI object with name [spring.profiles.active]
DEBUG - JNDI lookup for name [spring.profiles.active] threw NamingException with message: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].. Returning null.
DEBUG - Searching for key 'spring.profiles.active' in [systemProperties]
DEBUG - Searching for key 'spring.profiles.active' in [systemEnvironment]
DEBUG - Could not find key 'spring.profiles.active' in any property source. Returning [null]
DEBUG - Searching for key 'spring.profiles.default' in [servletConfigInitParams]
DEBUG - Searching for key 'spring.profiles.default' in [servletContextInitParams]
DEBUG - Searching for key 'spring.profiles.default' in [jndiProperties]
DEBUG - Looking up JNDI object with name [java:comp/env/spring.profiles.default]
DEBUG - Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
DEBUG - Looking up JNDI object with name [spring.profiles.default]
DEBUG - JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
DEBUG - Searching for key 'spring.profiles.default' in [systemProperties]
DEBUG - Searching for key 'spring.profiles.default' in [systemEnvironment]
DEBUG - Could not find key 'spring.profiles.default' in any property source. Returning [null]
DEBUG - Searching for key 'spring.profiles.default' in [servletConfigInitParams]
DEBUG - Searching for key 'spring.profiles.default' in [servletContextInitParams]
DEBUG - Searching for key 'spring.profiles.default' in [jndiProperties]
DEBUG - Looking up JNDI object with name [java:comp/env/spring.profiles.default]
com.mchange.v2.c3p0.impl.NewPooledConnection@b9d5b7a closed by a client.
java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE
	at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:646)
	at com.mchange.v2.c3p0.impl.NewPooledConnection.closeMaybeCheckedOut(NewPooledConnection.java:259)
	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:619)
	at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:1024)
	at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:648)
DEBUG - Successfully destroyed PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@b9d5b7a
DEBUG - Successfully destroyed resource: com.mchange.v2.c3p0.impl.NewPooledConnection@b9d5b7a
DEBUG - Checking for expired resources - Mon Jun 01 08:51:10 CST 2015 [com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413]
DEBUG - BEGIN check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413]
DEBUG - FINISHED check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413]
DEBUG - Checking for expired resources - Mon Jun 01 08:51:12 CST 2015 [com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413]
DEBUG - BEGIN check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413]
DEBUG - EXPIRED idle resource: com.mchange.v2.c3p0.impl.NewPooledConnection@456a1c11 ---> idle_time: 12099; max_idle_time: 10000 [com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413]
DEBUG - Removing expired resource: com.mchange.v2.c3p0.impl.NewPooledConnection@456a1c11 [com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413]
DEBUG - com.mchange.v2.async.ThreadPoolAsynchronousRunner@3397a6be: Adding task to queue -- com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@53fa67aa
DEBUG - trace com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413 [managed: 1, unused: 1, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@b9d5b7a)
DEBUG - trace com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413 [managed: 1, unused: 1, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@b9d5b7a)
DEBUG - Preparing to destroy resource: com.mchange.v2.c3p0.impl.NewPooledConnection@456a1c11
DEBUG - FINISHED check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@1ab1f413]
DEBUG - Preparing to destroy PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@456a1c11
DEBUG - com.mchange.v2.c3p0.impl.NewPooledConnection@456a1c11 closed by a client.
java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE
	at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:646)
	at com.mchange.v2.c3p0.impl.NewPooledConnection.closeMaybeCheckedOut(NewPooledConnection.java:259)
	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:619)
	at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:1024)
	at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:648)
DEBUG - Successfully destroyed PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@456a1c11
DEBUG - Successfully destroyed resource: com.mchange.v2.c3p0.impl.NewPooledConnection@456a1c11
tjzero_sapce 2015-06-01
  • 打赏
  • 举报
回复
引用 1 楼 quidin 的回复:
不影响程序运行是不影响什么程度的程序运行,是静态网页能运行,还是能访问数据库读取数据。 不描述清楚怎么知道你出了什么问题,在说你的异常中只能看出你的配置出了问题,导致你的输入流报错。 其他的东西就看不出来了
目前访问数据库也是没有问题的
quidin 2015-05-31
  • 打赏
  • 举报
回复
不影响程序运行是不影响什么程度的程序运行,是静态网页能运行,还是能访问数据库读取数据。 不描述清楚怎么知道你出了什么问题,在说你的异常中只能看出你的配置出了问题,导致你的输入流报错。 其他的东西就看不出来了

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧