Problem in deploying in JBOSS4.0.1 Sp1
arsathish Jun 27, 2006 7:40 AMHi,
We have an application running in JBOSS-4.0.1Sp1 and we want to expose some of the interfaces as Webservice. So I first developed a sample TestBean and deployed it separately as EJB jar. I am able to access the webservice from a client program.
Now if I add the TestBean to my existing EJB jar in the application, I get this error:
16:42:50,528 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C
:/jboss-4.0.1sp1/server/mas/deploy/management/web-console.war/
16:42:51,520 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.1sp1/
server/mas/deploy/mas.ear
16:43:18,198 WARN [verifier] EJB spec violation:
Bean : HelloBean
Section: 7.10.1
Warning: The session bean must implement either a remote home and remote, or a l
ocal home and a local interface.
16:43:20,471 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.
0.1sp1/server/mas/tmp/deploy/tmp2586mas.ear-contents/mas-ejb.jar
I have tried several times but couldnt find the reason why this is failing. Can someone help me out.
I have all the config.xml, mapping.xml webservices.xml and WSDL packaged correctly. I just couldnt get a clue on why its failing. What surprises me is that it works as a standalone EJB jar without any other EJB's. Am I missing something.
This is my CONFIG.xml
----------------------------
This is my WEBSERVICES.XML
----------------------------------
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1\.xsd" version="1.1">
<webservice-description>
<webservice-description-name>HelloService</webservice-description-name>
<wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>Hello</port-component-name>
<wsdl-port>HelloPort</wsdl-port> <service-endpoint-interface>com.ws.Hello</service-endpoint-interface>
<service-impl-bean>
<ejb-link>HelloBean</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
This is my EJB-JAR.XML
-------------------------
<ejb-jar>EJB module that contains the MAS EJBs<enterprise-beans>
<ejb-name>HelloBean</ejb-name>
<service-endpoint>com.ws.Hello</service-endpoint>
<ejb-class>com.ws.HelloBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</enterprise-beans>
<assembly-descriptor>
<security-role>Users
<role-name>users</role-name></security-role>
<container-transaction>
<ejb-name>HelloBean</ejb-name>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor></ejb-jar>
TIA,
Sathish