当前位置:编程学习 > JAVA >>

急急急,大侠们快帮帮忙啊tomcat报错(在线等)求解决方法

2011-12-7 10:11:36 org.apache.catalina.core.ApplicationContext log
信息: Marking servlet InitServlet as unavailable
2011-12-7 10:11:36 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /pctest threw load() exception
java.lang.Error: Unresolved compilation problems:  
The import java.io cannot be resolved
The import java.io cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
HttpServlet cannot be resolved to a type
The constructor Object() is undefined
The method destroy() is undefined for the type Object
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletException cannot be resolved to a type
IOException cannot be resolved to a type
PrintWriter cannot be resolved to a type
The method getClass() is undefined for the type InitServlet
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletException cannot be resolved to a type
IOException cannot be resolved to a type
PrintWriter cannot be resolved to a type
The method getClass() is undefined for the type InitServlet
ServletException cannot be resolved to a type
ServletConfig cannot be resolved to a type
The method getServletConfig() is undefined for the type InitServlet
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
JinghuaConn.USERNAME cannot be resolved
JinghuaConn.PASSWORD cannot be resolved
JinghuaConn.PHYPATH cannot be resolved
JinghuaConn.rootpath cannot be resolved
JinghuaConn.chartPath cannot be resolved

at sys.InitServlet.<init>(InitServlet.java:3)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2011-12-7 10:21:07 org.apache.catalina.core.ApplicationContext log
信息: Marking servlet InitServlet as unavailable
2011-12-7 10:21:07 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /pctest threw load() exception
java.lang.Error: Unresolved compilation problems:  
The import java.io cannot be resolved
The import java.io cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
HttpServlet cannot be resolved to a type
The constructor Object() is undefined
The method destroy() is undefined for the type Object
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletException cannot be resolved to a type
IOException cannot be resolved to a type
PrintWriter cannot be resolved to a type
The method getClass() is undefined for the type InitServlet
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletException cannot be resolved to a type
IOException cannot be resolved to a type
PrintWriter cannot be resolved to a type
The method getClass() is undefined for the type InitServlet
ServletException cannot be resolved to a type
ServletConfig cannot be resolved to a type
The method getServletConfig() is undefined for the type InitServlet
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
JinghuaConn.USERNAME cannot be resolved
JinghuaConn.PASSWORD cannot be resolved
JinghuaConn.PHYPATH cannot be resolved
JinghuaConn.rootpath cannot be resolved
JinghuaConn.chartPath cannot be resolved

at sys.InitServlet.<init>(InitServlet.java:3)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) --------------------编程问答-------------------- java.lang.Error: Unresolved compilation problems:  
The import java.io cannot be resolved
The import java.io cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved
The import javax cannot be resolved

? --------------------编程问答--------------------
引用 1 楼 cai5 的回复:
java.lang.Error: Unresolved compilation problems:  
The import java.io cannot be resolved
The import java.io cannot be resolved
The import javax cannot be resolved
The import javax cannot be reso……

没导包?真的很纳闷的错误 --------------------编程问答-------------------- The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpSession cannot be resolved
The import javax.servlet.http.HttpSessionEvent cannot be resolved
The import javax.servlet.http.HttpSessionListener cannot be resolved

没有引入 servlet 包,从 Tomcat容器上拷一个放进工程里面吧 --------------------编程问答-------------------- 你的基本包都没有! --------------------编程问答-------------------- 可以说详细的嘛 --------------------编程问答-------------------- 找不到包~ --------------------编程问答--------------------
引用 3 楼 chenqi1988126 的回复:
The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpSession cannot be resolved
The import javax.servlet.http.HttpSessionEvent cannot be resolved
The import……

++ --------------------编程问答--------------------    鬼 估计 是从其它地方 附加的项目 依赖环境太强了 。。  哈哈哈 或者版本不对 ,,   --------------------编程问答-------------------- 应该是缺少包, --------------------编程问答-------------------- 我是來接分的
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,