Fault-; Nested exception Is:java.io.filenotfoundexception:d:\tomcat7\webapps\axis\web-inf\jwsc__web

Source: Internet
Author: User

WebService immediately issued an error saying that the class file could not be found


http://127.0.0.1:8080/axis/HelloWS.jws?wsdl


Sorry, something seems to have gone wrong ... here are the details:

Fault-; Nested exception is: 
	Java.io.filenotfoundexception:d:\tomcat7\webapps\axis\web-inf\jwsclasses\hellows.class ( The system could not find the specified file. )

Axisfault
 faultcode: {http://schemas.xmlsoap.org/soap/envelope/}server.userexception
 FaultSubcode : 
 Faultstring:java.io.filenotfoundexception:d:\tomcat7\webapps\axis\web-inf\jwsclasses\hellows.class ( The system could not find the specified file. )
 Faultactor: 
 faultnode: 
 faultdetail: 
	{http://xml.apache.org/axis/}hostname:admin-pc



The reason is that HELLOWS.JWS is directly renamed by the Hellows.java file, which contains the package path, and in the axis of the timely release is not allowed to remove it.


of the wrong

Package com.demo.action; Wrong is in this line


public class Hellows {
public string Firstwsmethod (string a,string b) {
String result= "a=" +a+ "b=" +B;
Return ' You are gteat,the ' +result;
}
}


Right to


public class Hellows {
public string Firstwsmethod (string a,string b) {
String result= "a=" +a+ "b=" +B;
Return ' You are gteat,the ' +result;
}
}


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.