1 Reply Latest reply on Feb 7, 2012 1:17 AM by Jim Ma

    very simple cxf web service not deployed under JBOSS AS7

    Pierre FACON Newbie


      I'm a newbie in Jboss AS7.

      I downloaded the JBOSS AS 7.0.2 to try a CXF simple Web service.

      Here is the interface :


      package com.sample;

      import javax.jws.WebMethod;

      import javax.jws.WebService;


      public interface Math {


      public long sum(long a, long b);



      Here is the class :


      package com.sample;

      import javax.jws.WebService;

      @WebService(endpointInterface = "com.sample.Math", serviceName = "MathWS")

      public class MathWS implements Math 


      public long sum(long a, long b) { 

      System.out.println("Summing "+a+" + "+b); 

      return a+b;




      Here is the web.xml file :


      <?xml version="1.0" encoding="UTF-8"?>

      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"


      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">











      I use Eclipse Indigo with JDK 1.6.

      When i run Jboss from Eclipse and deply it, the Web Service does not appear in the "web service" panel in the administration console, nor is available.


      I use the standalone configuration with :


      <extension module="org.jboss.as.webservices"/>

      which is loaded.

      I thought that CXF was available with that JBOSS AS 7 release

      Did i miss something ?


      Thank you very much for any idea.

      Pierre FACON, Paris