Jax-ws from netbeans 8.1 to WildFly 8
<p>I have done a simple webservice with two methods. I'am using WildFly 8 App server. From Netbeans I try to deploy the webservice on the server but get this kind of error:</p>

<p>Deploying C:\wildfly-8.1.0.Final\standalone\deployments\WebservisTestPeter.war
{"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WebservisTestPeter.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WebservisTestPeter.war\".PARSE: JBAS018733: Failed to process phase PARSE of deployment \"WebservisTestPeter.war\"
    Caused by: java.lang.RuntimeException: JBAS017312: com.in2.in2ws has the wrong component type, it cannot be used as a web component"}}
C:\Users\peterv.IN2KOPER\Documents\NetBeansProjects\WebservisTestPeter\nbproject\build-impl.xml:1046: The module has not been deployed.</p>

<p>The source code is:</p>

<pre><code>package com.in2; 
import javax.jws.WebService; 
import javax.jws.WebMethod; 
import javax.jws.WebParam; 
import javax.ejb.Stateless;

@WebService(serviceName = "in2ws") 
@Stateless() 
public class in2ws {         

@WebMethod(operationName = "hello")
public String hello(@WebParam(name = "name") String txt) {
    return "Hello " + txt + " !";
}

@WebMethod
public int add(@WebParam(name = "i") int i, @WebParam(name = "j") int j) {
    int k = i + j;
    return k;
  }
}
</code></pre>

<p>thank you for any info.
regards
Peter</p>