我刚刚开始学习webservice,测试axis的测试页面都是可以看的!但是我按照网上写的那个hello.jws在axis中访问的时候却出现如下错误:
AXIS error
Sorry, something seems to have gone wrong... here are the details:Fault - Error while compiling:  H:\Tomcat 5.5\webapps\axis\WEB-INF\jwsClasses\Hello.java
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  H:\Tomcat 5.5\webapps\axis\WEB-INF\jwsClasses\Hello.java
 faultActor: 
 faultNode: 
 faultDetail: 
 {}Errors:Error compiling H:\Tomcat 5.5\webapps\axis\WEB-INF\jwsClasses\Hello.java:
Line 1, column 0:  需要 "class" 或 "interface"
Line 0, column 0: 
1 错误我在访问axis的那个测试页面(http://localhost:8080/axis/EchoHeaders.jws?method=list)时是正确的:
  <?xml version="1.0" encoding="UTF-8" ?> 
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <listResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <listReturn soapenc:arrayType="xsd:string[7]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  <listReturn xsi:type="xsd:string">accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*</listReturn> 
  <listReturn xsi:type="xsd:string">accept-language:zh-cn</listReturn> 
  <listReturn xsi:type="xsd:string">accept-encoding:gzip, deflate</listReturn> 
  <listReturn xsi:type="xsd:string">user-agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)</listReturn> 
  <listReturn xsi:type="xsd:string">host:localhost:8080</listReturn> 
  <listReturn xsi:type="xsd:string">connection:Keep-Alive</listReturn> 
  <listReturn xsi:type="xsd:string">cookie:JSESSIONID=3EC979CF35D4E1A415E7B59F6C4A5896</listReturn> 
  </listReturn>
  </listResponse>
  </soapenv:Body>
  </soapenv:Envelope>请各位高手帮忙看看啊!我的classpath:.;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis-ant.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\jaxrpc.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\saaj.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\xercesImpl-2.6.2.jar;H:\Tomcat 5.5\webapps\axis\WEB-INF\lib\xml-apis-2.6.2.jar