报java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory的解决办法
Myeclipse在配置tomcat的时候没有tomcat7的选项,所以就报了错误信息
在调用的时候需要加入juli这个包,具体操作步骤是:首选项--tomcat--tomtca6.x--path 第一个选项中加入这个包,
此包位于tomcat根目录的bin下
严重: End event threw exception java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
项目报错
End event threw exception java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
发现是包冲突,将项目lib下的catalina.jar包删除即可。
页面报错
HTTP Status 500 – Internal Server Error
Type Exception Report
Message java.lang.ClassCastException: org.apache.catalina.core.DefaultInstanceManager cannot be cast to org.apache.tomcat.InstanceManager
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.core.DefaultInstanceManager cannot be cast to org.apache.tomcat.InstanceManager
控制台报错
严重: Servlet.service() for servlet [jsp] in context with path [/Shop] threw exception [java.lang.ClassCastException: org.apache.catalina.core.DefaultInstanceManager cannot be cast to org.apache.tomcat.InstanceManager] with root cause
java.lang.ClassCastException: org.apache.catalina.core.DefaultInstanceManager cannot be cast to org.apache.tomcat.InstanceManager
控制台报错
严重: Error starting endpoint
java.lang.IllegalStateException: Unable to initialise endpoint. A previous call to init() failed. See previous log messages for details.
无法初始化终结点。上一次调用init()失败
--结束被占用端口
ORACLE DATABASE 10g EXPRESS EDITION LICENSE AGREEMENT
解决方法:
cmd输入:输入 netstat -ano
输出命令:netstat -ano|findstr 8080 记下PID
任务管理器找到任务并结束该任务