Unable to deploy JBoss Web Service in separate EJB project
pomcompot.pomme_compote-seamframework.yahoo.fr May 21, 2010 3:36 PMHi,
I have succeeded in making a Mavenized configuration with Seam which is deployed as an EAR with the following structure:
EAR
- IHM project (odma-ihm) (WAR packaging)
- Business project (odma-ejb) (EJB packaging)
- Web Services project (odma-ws) (EJB packaging)
- some common JAR packaged projects
All works well. Unfortunately, I don’t succeed in deploying the Web Service. Hereunder, the structure of my Web Services project:
JAR
com/some/package/hierarchy/
- ODMAWebService.class
- IODMAWebService.class
META-INF
- ejb-jar.xml
- MANIFEST.MF
- seam.properties
- standard-jaxws-endpoint-config.xml
component.properties
Hereunder, the content of some of this files:
ODMAWebService:
@Stateless @WebService(name = "ODMA-WS", serviceName = "ODMA-WS", targetNamespace="urn:odma:web-service") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) public class ODMAWebService implements IODMAWebService { @WebMethod(operationName = "InscriptionLivraisonRequest") @WebResult(name = "InscriptionLivraisonResponse") public InscriptionLivraisonResponse inscriptionLivraisonRequest(InscriptionLivraisonRequest request) throws Exception { … } }
IODMAWebService:
@WebService @Remote public interface IODMAWebService { … }
ejb-jar.xml:
<?xml version="1.0" encoding="ASCII"?> <ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0"> <display-name>odma-ws</display-name> </ejb-jar>
standard-jaxws-endpoint-config.xml:
<jaxws-config xmlns="urn:jboss:jaxws-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd"> <endpoint-config> <config-name>Seam WebService Endpoint</config-name> <pre-handler-chains> <javaee:handler-chain> <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings> <javaee:handler> <javaee:handler-name>SOAP Request Handler</javaee:handler-name> <javaee:handler-class>org.jboss.seam.webservice.SOAPRequestHandler</javaee:handler-class> </javaee:handler> </javaee:handler-chain> </pre-handler-chains> </endpoint-config> </jaxws-config>
And my application.xml:
<?xml version="1.0" encoding="UTF-8"?> <application 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/application_5.xsd" version="5"> <display-name>ODMA</display-name> <module> <ejb>odma-ejb.jar</ejb> </module> <module> <ejb>jboss-seam-2.2.0.GA.jar</ejb> </module> <module> <web> <web-uri>odma-ihm.war</web-uri> <context-root>odma</context-root> </web> </module> <module> <ejb>odma-ws.jar</ejb> </module> <module> <java>odma-common-ws-objects.jar</java> </module> <module> <java>odma-core.jar</java> </module> <module> <java>odma-common-errors.jar</java> </module> <library-directory>lib</library-directory> </application>
Any idea would be appreciated.
Thanks for taking time for looking at.