Hello,
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;
@WebService
public interface Math {
@WebMethod
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"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
<servlet-name>MathWS</servlet-name>
<servlet-class>com.sample.MathWS</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MathWS</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
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
Did you try with the latest http://download.jboss.org/jbossas/7.1/jboss-as-7.1.0.CR1b/jboss-as-7.1.0.CR1b.zip ?