Issues with deploying WebService in Jboss7.1-1

Source: Internet
Author: User
Tags jboss

(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

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.