原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://gaochaojs.blog.51cto.com/812546/163660
1.严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
2.严重: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080
3.[framework] 2008-05-04 08:46:05,921 - org.springframework.web.struts.ContextLoaderPlugIn -31 [main] ERROR org.springframework.web.struts.ContextLoaderPlugIn - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
Caused by:
java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)
4.[framework] 2008-05-04 08:46:05,984 - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/MyHello] -94 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/MyHello] - action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
Caused by:
java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)
5.[framework] 2008-05-04 08:46:05,984 - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/MyHello] -94 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/MyHello] - Servlet /MyHello threw load() exception
javax.servlet.UnavailableException
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)
解决方法:
1.在任务管理器中关闭tomcat进程或sqlserver进程,然后在eclipse中启动tomcat
2.转到tomcat安装目录下,打开bin文件夹,双击shutdown.bat
本文出自 “南湖矿工技术空间” 博客,请务必保留此出处http://gaochaojs.blog.51cto.com/812546/163660