大家好,我正在尝试开发基于SOAP的Web服务。在尝试启动Tomcat.bat时,我收到以下错误:
ERROR reading C:\SOAP\jakarta-tomcat-3.2.4\webapps\axis\WEB-INF\web.xml
At org.apache.crimson.parser/P-082 http://java.sun.com/dtd/web-app_2_3.dtd
ERROR reading C:\SOAP\jakarta-tomcat-3.2.4\webapps\axis\WEB-INF\web.xml
java.net.UnknownHostException: java.sun.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
这是mystartup.bat的内容:
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_25
set TOMCAT_HOME=C:\SOAP\jakarta-tomcat-3.2.4
set CLASSPATH=C:\SOAP\axis-1_4\lib\axis.jar
set CLASSPATH=%CLASSPATH%;C:\SOAP\javamail-1.2\mail.jar
set CLASSPATH=%CLASSPATH%;C:\SOAP\javafx-sdk2.0.3\activation.jar
set CLASSPATH=%CLASSPATH%;C:\SOAP\xerces-1_2_3\xerces.jar
set CLASSPATH=%CLASSPATH%;C:\SOAP\mysql-connector-java-5.1.18\C:\mysql-connector-java-5.1.18-bin.jar
%TOMCAT_HOME%\bin\startup.bat
任何想法我在这里做错了什么?提前谢谢!
答案 0 :(得分:0)
问题在于文件C:\SOAP\jakarta-tomcat-3.2.4\webapps\axis\WEB-INF\web.xml
检查文件是否存在,检查其上设置的权限,检查它是否为有效的XML