Hi, I created very simple application (hello.ear) with very simple WebService.
File application.xml (EAR descriptor): | <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd"> | <application> | <display-name>Hello Enterprise Archive</display-name> | <module> | <ejb>Hello-SBI.jar</ejb> | </module> | <module> | <ejb>Hello-SBS.jar</ejb> | </module> | </application> | Interface file HelloRemote.java: | package cz.qds.hello.sbi; | import java.rmi.Remote; | import javax.jws.WebMethod; | import javax.jws.WebService; | @WebService() | //@SOAPBinding(style=Style.RPC) | public interface HelloRemote extends Remote | { | @WebMethod() | public String sayHello(); | } | | Note: there is one difference from Tutorial - I cannot compile it when @SOAPBinding(style=Style.RPC) is in code. Reason of this error ( "org/jboss/lang/Annotation.class not found" ) is in jbossws14.jar which contains SOAPBinding class (my mean). My compile time libraries are jboss-annotation-ejb3.jar, jboss-ejb3x.jar, jboss-ejb3.jar, ejb3-persistence.jar, hibernate3.jar, hibernate-entitymanager.jar and hibernate-annotations.jar Bean file HelloBean: | package cz.qds.hello.sbs; | import cz.qds.hello.sbi.*; | import javax.ejb.*; | import javax.jws.WebService; | import javax.persistence.*; | @Stateless | @WebService(endpointInterface="cz.qds.hello.sbi.HelloRemote") | public class HelloBean | { | public String sayHello() | { | return "Hello!" ; | } | } | Fine. Compile succeed. Deploy succeed. When I test it with "http://localhost:8080/Hello.ear/HelloBean?wsdl" then I obtain error 404 with "The requested resource (/Hello.ear/HelloBean) is not available.". JBOSS 4.0.4.GA with EJB3 RC7 installed. Where is problem? Does someone successfully use Jboss EJB3 WebServices? Thank you very much, Leos View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948856#3948856 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948856 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
