wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem while deplying stateful session bean
 
Similar Threads
deployment problem in entity beans having bean manage persistence in jboss
How to get the datasource from Bean through deployment descriptor
JBoss 4.0 and MSSQL Server 2000
Getting Error during deployment
Deploying EJB in JBOSS Server, Got Error (Could not create deployment file, Connection refused)