I try to figure out how to build a webservice from a EJB2.1 component on JBoss 5.0.1. I tried jsprovide tools and their descriptions but run into several errors even when i use the WebService annotation (only). I'm not sure whether this is the right way or not. In a JBoss 4.x doc I found a way to simply adjust ejb-jar.xml and use wscompile tool to generate WSDL and mapping.xml. As wscompile doesn't seems to be part of JBoss 5.0.1 can anyone explain how to make this a(RCP style webservice out of an EJB2.1 (stateless)) in JBoss 5.0.1 without major changes in existing code?