(1) deploying Web Service in JBoss using Web container mode usually reports that the corresponding class could not be found, (there is no way to deploy without the XML, and the following error will not occur)
Not installing optional component Org.jboss.as.quickstarts.wshelloworld.OrderServiceImpl due to exception: Java.lang.ClassNotFoundException:org.jboss.as.quickstarts.wshelloworld.OrderServiceImpl from [Module] deployment. WebServiceTest.war:main "from Service Module Loader]
WebService class into a jar package, put into the webcontent/web-inf/lib, then restart the server, you will see the following services, will still error, and then delete the jar again, restart the server, the problem is resolved (the problem is that the server could not find the class)
Web. XML can not, but if there must be a guarantee that it is correct
(2) Deploying a Web service in JBoss using the EJB container pattern requires that the EJB be called into a jar package and then added to the build path libraries