aspose file tools*
The moose likes JBoss/WildFly and the fly likes Problem while deplying stateful session bean 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 "Problem while deplying stateful session bean" Watch "Problem while deplying stateful session bean" New topic
Author

Problem while deplying stateful session bean

arnav prateek
Greenhorn

Joined: Apr 06, 2006
Posts: 17
I am trying to deploy one stateful session bean in JBOSS, it is giving following error while deployement:
------------------------------
14:15:48,550 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.
2.1/server/default/deploy/bookcart_ejb.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
d, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
-------------------------------------------------------

my deployment descriptor is as follows:
ejb-jar.xml
-------------------
<?xml version="1.0" ?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/dtd/ejb-jar_1_1.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>BookCart</ejb-name>
<home>com.neeraj.statefulbean.BookCartHome</home>
<remote>com.neeraj.statefulbean.BookCart</remote>
<ejb-class>com.neeraj.statefulbean.BookCartBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
---------------------------------------

Any idea where is problem?

Thanks in advance
Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while deplying stateful session bean