首页上一页 1 下一页尾页 1 条记录 1/1页
java web中register中项目又出现问题
发表在JavaWeb图书答疑
2011-01-11
是否精华
是
否
版块置顶:
是
否
我现在遇到的就是一个问题:
javax.servlet
javax.servlet.http不存在。
要么就是
Allocate exception for servlet User
java.lang.Error: Unresolved compilation problems:
The import org.dom4j cannot be resolved
The import org.dom4j cannot be resolved
The import org.dom4j cannot be resolved
The import org.dom4j cannot be resolved
The import org.dom4j cannot be resolved
Document cannot be resolved to a type
DocumentHelper cannot be resolved
Element cannot be resolved to a type
Element cannot be resolved to a type
Element cannot be resolved to a type
Element cannot be resolved to a type
XMLWriter cannot be resolved to a type
OutputFormat cannot be resolved to a type
OutputFormat cannot be resolved
XMLWriter cannot be resolved to a type
at com.wgh.servlet.User.<init>(User.java:17)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:619)
2011-1-10 16:12:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
2011-1-10 16:13:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
2011-1-10 16:13:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
2011-1-10 16:14:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
2011-1-10 16:19:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
我试过用编译,且把
sevlet.jar
dom4j.jar包在,我上网查过,有人说把相关JAR包放到WEB-INF\lib
目录下就行,我把jar包放进去
且Tomcat 6.0\lib下的servlet-api.jar复制导入jdk包下的jre\lib\ext
还是没有完成,dom4j.这个包是找到了,还是有问题,我无法解决办法
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:23: 软件包 com.wgh.model 不存在
import com.wgh.model.CityMap;
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:24: 软件包 com.wgh.tools 不存在
import com.wgh.tools.ConnDB;
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:72: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:72: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:110: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:110: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:137: 找不到符号
符号: 类 CityMap
位置: 类 com.wgh.servlet.User
CityMap cityMap=new CityMap();//实例化保存省份信息的CityMap类的实例
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:137: 找不到符号
符号: 类 CityMap
位置: 类 com.wgh.servlet.User
CityMap cityMap=new CityMap();//实例化保存省份信息的CityMap类的实例
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:165: 找不到符号
符号: 类 CityMap
位置: 类 com.wgh.servlet.User
CityMap cityMap=new CityMap(); //实例化保存省份信息的CityMap类的实例
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:165: 找不到符号
符号: 类 CityMap
位置: 类 com.wgh.servlet.User
CityMap cityMap=new CityMap(); //实例化保存省份信息的CityMap类的实例
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:191: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:191: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
12 错误
Process completed.
javax.servlet
javax.servlet.http不存在。
要么就是
Allocate exception for servlet User
java.lang.Error: Unresolved compilation problems:
The import org.dom4j cannot be resolved
The import org.dom4j cannot be resolved
The import org.dom4j cannot be resolved
The import org.dom4j cannot be resolved
The import org.dom4j cannot be resolved
Document cannot be resolved to a type
DocumentHelper cannot be resolved
Element cannot be resolved to a type
Element cannot be resolved to a type
Element cannot be resolved to a type
Element cannot be resolved to a type
XMLWriter cannot be resolved to a type
OutputFormat cannot be resolved to a type
OutputFormat cannot be resolved
XMLWriter cannot be resolved to a type
at com.wgh.servlet.User.<init>(User.java:17)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:619)
2011-1-10 16:12:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
2011-1-10 16:13:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
2011-1-10 16:13:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
2011-1-10 16:14:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
2011-1-10 16:19:22 org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet User is currently unavailable
我试过用编译,且把
sevlet.jar
dom4j.jar包在,我上网查过,有人说把相关JAR包放到WEB-INF\lib
目录下就行,我把jar包放进去
且Tomcat 6.0\lib下的servlet-api.jar复制导入jdk包下的jre\lib\ext
还是没有完成,dom4j.这个包是找到了,还是有问题,我无法解决办法
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:23: 软件包 com.wgh.model 不存在
import com.wgh.model.CityMap;
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:24: 软件包 com.wgh.tools 不存在
import com.wgh.tools.ConnDB;
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:72: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:72: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:110: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:110: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:137: 找不到符号
符号: 类 CityMap
位置: 类 com.wgh.servlet.User
CityMap cityMap=new CityMap();//实例化保存省份信息的CityMap类的实例
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:137: 找不到符号
符号: 类 CityMap
位置: 类 com.wgh.servlet.User
CityMap cityMap=new CityMap();//实例化保存省份信息的CityMap类的实例
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:165: 找不到符号
符号: 类 CityMap
位置: 类 com.wgh.servlet.User
CityMap cityMap=new CityMap(); //实例化保存省份信息的CityMap类的实例
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:165: 找不到符号
符号: 类 CityMap
位置: 类 com.wgh.servlet.User
CityMap cityMap=new CityMap(); //实例化保存省份信息的CityMap类的实例
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:191: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
E:\java web\我的光盘 (G)\TM\Instances\register\src\com\wgh\servlet\User.java:191: 找不到符号
符号: 类 ConnDB
位置: 类 com.wgh.servlet.User
ConnDB conn=new ConnDB();
^
12 错误
Process completed.