aspose file tools*
The moose likes JBoss/WildFly and the fly likes Not able to deploy the helloworld ejb in the jboss eap 6.0 server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Not able to deploy the helloworld ejb in the jboss eap 6.0 server" Watch "Not able to deploy the helloworld ejb in the jboss eap 6.0 server" New topic
Author

Not able to deploy the helloworld ejb in the jboss eap 6.0 server

sanjeev kumar mandal
Greenhorn

Joined: Nov 26, 2007
Posts: 23

Hi All,

I was trying to deploy my HelloWorldEJBBean.java class in jboss eap 6.0 server , but i am getting below error. I have checked the ejb code and xml files but not able to figure out the error .


15:53:50,770 INFO [org.jboss.as.server] (HttpManagementService-threads - 5) JBAS015870: Deploy of deployment "30_FinancialClaims.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"30_FinancialClaims.ear\".\"FinancialClaims.jar\".component.HelloWorldEJB.START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.subunit.\"30_FinancialClaims.ear\".\"FinancialClaims.jar\".component.RecatSinglePendingJoiner.START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.subunit.\"30_FinancialClaims.ear\".\"FinancialClaims.jar\".component.SntJokerSN.START Missing[JBAS014861: <one or more transitive dependencies>]",
15:53:50,770 INFO [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011908: Unregister module: Module "deployment.30_FinancialClaims.ear.FinancialClaims.jar:main" from Service Module Loader
15:53:50,770 INFO [org.jboss.as.osgi] (MSC service thread 1-5) JBAS011908: Unregister module: Module "deployment.30_FinancialClaims.ear:main" from Service Module Loader
15:53:50,830 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment FinancialClaims.jar in 65ms
15:53:50,910 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment 30_FinancialClaims.ear in 143ms


My ejb classes and configuration XML files are shown below::

:::::::HelloWorldEJBBean .java :::::::::::::::::::::::::

import java.rmi.RemoteException;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;


/**
* Description:This is the Site Key EJB.
*
* @ejb.bean
* name="HelloWorldEJB"
* type="Stateless"
* local-jndi-name="local/SiteEJB"
* jndi-name="remote/SiteEJB"
* view-type="both"
* transaction-type="Container"
*
* @ejb.transaction type="Required"
*
* @ejb.home extends="javax.ejb.EJBHome"
* @ejb.interface extends="javax.ejb.EJBObject"
*
*
*/



public class HelloWorldEJBBean implements SessionBean {
private static final long serialVersionUID = 1L;

/**
* @ejb.interface-method view-type="both"
*
*/
public String SayhelloWorld() throws RemoteException {


return "Hello world, I am an EJB2 session---- test session bean :::::HelloWorldEJBBean";

}

public void ejbActivate() throws EJBException, RemoteException {}

public void ejbPassivate() throws EJBException, RemoteException {}

public void ejbRemove() throws EJBException, RemoteException {}

public void setSessionContext(SessionContext arg) throws EJBException, RemoteException {}
}


:::::::ejb-jar.xml is:::::::::::::::::::::::::


<session >
<description><![CDATA[Description:This is the Site Key EJB.]]></description>

<ejb-name>HelloWorldEJB</ejb-name>

<home>com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.HelloWorldEJBHome</home>
<remote>com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.HelloWorldEJB</remote>
<local-home>com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.HelloWorldEJBLocalHome</local-home>
<local>com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.HelloWorldEJBLocal</local>
<ejb-class>com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.HelloWorldEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>

</session>

<container-transaction >
<method >
<ejb-name>HelloWorldEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>


:::::::jboss.xml::::::::

<session>
<ejb-name>HelloWorldEJB</ejb-name>
<jndi-name>remote/SiteEJB</jndi-name>
<local-jndi-name>local/SiteEJB</local-jndi-name>

<method-attributes>
</method-attributes>
</session>


Please suggest me whether I have done any mistake in the above files or not.

Regards
Sanjeev Kumar

Francesco Marchioni
author
Ranch Hand

Joined: Sep 22, 2003
Posts: 191
Hi Sanjeev,
from what I can see you are deploying an EJB 2.0 to JBoss EAP 6. After a short look at the XML files what is evident is that you are setting jndi name in jboss's XML file which is not allowed any more since JNDI name is determined by the module name/class name/EJB type. See this tutorial about JBoss 7 EJB client. Besides this, unless you have to port legacy code to JBoss 8/WildFly it is definetly better to start using EJB 3.x and not EJB 2.X
Hope it helps


WildFly 8 Administration Book - JBoss Tutorials
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to deploy the helloworld ejb in the jboss eap 6.0 server