当前位置: 技术问答>java相关
我在win2000professional上装了Apache Tomcat 4.0, 我想装Apache Soap,可是不行
来源: 互联网 发布时间:2015-05-16
本文导语: 我总共装了这些: Apache Tomcat 4.0在D:Program FilesApache Tomcat 4.0 J2se 1.4.0在D:j2sdk1.4.0 Xerces java 2.0.1解压在D:Program FilesApache Miscxerces-2_0_1 Apache Soap 2.2解压在D:Program FilesApache Miscsoap-2_2 还有一些都解压在D:Program FilesApache Misc下...
我总共装了这些:
Apache Tomcat 4.0在D:Program FilesApache Tomcat 4.0
J2se 1.4.0在D:j2sdk1.4.0
Xerces java 2.0.1解压在D:Program FilesApache Miscxerces-2_0_1
Apache Soap 2.2解压在D:Program FilesApache Miscsoap-2_2
还有一些都解压在D:Program FilesApache Misc下,比如mail.jar, activation.jar, bsf.jar, js.jar等等。
我设置了CLASSPATH为如下:
.;D:Program FilesApache Miscxerces-2_0_1xerces.jar;D:Program FilesApache Miscsoap-2_2libsoap.jar;D:Program FilesApache Miscjavamail-1.2mail.jar;D:Program FilesApache Miscjaf-1.0.1activation.jar;D:Program FilesApache Miscbsf-2_2libbsf.jar;D:Program FilesApache Miscrhino1_5R3js.jar
可是我不能用SOAP,提示信息:
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
--------------------------------------------------------------------------------
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
D:Program FilesApache Tomcat 4.0worklocalhostsoapadminlist$jsp.java:4: Package org.apache.soap.server not found in import.
import org.apache.soap.server.*;
^
1 error, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)
为什么?是我的classpath设置的不对吗?谢谢!
|
应该是classpath的问题,我把那些需要的jar包都拷贝到了%JAVA_HOME%jrelibext下了,使用没什么问题。
|
你换成 Tomcat 3.x,试试
4.x的TOMCAT和SOAP弄在一起确实总是出错
我的就是在3。X下跑着的,没问题,但一换成4。X就一堆问题
4.x的TOMCAT和SOAP弄在一起确实总是出错
我的就是在3。X下跑着的,没问题,但一换成4。X就一堆问题