[FIELDSET][LEGEND]引自:1楼[/LEGEND]
你好:只GroupServlet。java正常且存在有什么用,要把GroupServlet。java编译才行
[/FIELDSET]
回复:
真的很抱歉,我是菜鸟。
我现在遇到的就是一个问题:
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
还是没有完成。