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