[jboss-user] [Installation, Configuration & Deployment] - Re: problem trying to deploy a simple helloworldejb.jar

jaikiran do-not-reply at jboss.com
Mon Jul 31 10:54:55 EDT 2006


Tried deploying the jar that you sent and got the following exception while deploying:

2006-07-31 20:19:37,842 [] WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
  | Bean   : Hello
  | Section: 7.10.3
  | Warning: A Session bean must define at least one ejbCreate method.
  | 
  | 2006-07-31 20:19:37,889 [] ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/E:/puthere/NewFolder/jboss-3.2.3/server/default/deploy/HelloWorldEJB.jar
  | org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
  |         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:491)
  |         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
  |         at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  |         at $Proxy6.deploy(Unknown Source)
  |         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
  |         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
  |         at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
  |         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  |         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
  |         at $Proxy0.start(Unknown Source)
  |         at org.jboss.system.ServiceController.start(ServiceController.java:394)
  |         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  |         at $Proxy4.start(Unknown Source)
  |         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  |         at $Proxy5.deploy(Unknown Source)
  |         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
  |         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
  |         at org.jboss.Main.boot(Main.java:150)
  |         at org.jboss.Main$1.run(Main.java:395)
  |         at java.lang.Thread.run(Thread.java:534)

which means that you have not defined the ejbCreate method in your HelloBean class. Provide a blank implementation for the same, in your HelloBean class and deploy it:

public void ejbCreate()
  |     {
  |     }

 That should work.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961899#3961899

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961899



More information about the jboss-user mailing list