0 Replies Latest reply on May 31, 2006 4:19 AM by luca del core

    Jboss doesn't recognize JAR files and send deploy exception

    luca del core Newbie

      Hello people!
      When I deploy my project Jboss send me a strange error


      0:08:39,102 INFO [EJBDeployer] Deployed: file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/AnaClienti.jar
      10:08:39,342 INFO [EJBDeployer] Deployed: file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/CntrlAnaClienti.jar
      10:08:39,482 INFO [EJBDeployer] Deployed: file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/EntBean1.jar
      10:08:39,632 WARN [EjbUtil] DeploymentInfo org.jboss.deployment.DeploymentInfo@93605d70 { url=file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/EntBeanRisorse.jar }
      deployer: org.jboss.deployment.JARDeployer@c09554
      status: Deployed
      state: STARTED
      watch: file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/EntBeanRisorse.jar
      altDD: null
      lastDeployed: 1149062899243
      lastModified: 1149062897500
      mbeans:
      is not an EJB .jar file!
      10:08:39,652 INFO [EJBDeployer] Deployed: file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/SessBeanRisorse.jar
      10:08:39,863 INFO [TomcatDeployer] deploy, ctxPath=/presenze-WebModule, warUrl=file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/presenze-WebModule-exp.war/
      10:08:39,883 WARN [EjbUtil] DeploymentInfo org.jboss.deployment.DeploymentInfo@3c16e4af { url=file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/EntBeanFoglioMese.jar }
      deployer: org.jboss.deployment.JARDeployer@c09554
      status: Deployed
      state: STARTED
      watch: file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/EntBeanFoglioMese.jar
      altDD: null
      lastDeployed: 1149062899223
      lastModified: 1149062897430
      mbeans:
      is not an EJB .jar file!
      10:08:46,943 ERROR [WebModule] Starting failed jboss.web.deployment:war=presenze-WebModule.war,id=1221526974
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/FoglioMeseBean', with web.xml ejb-link: 'EntBeanFoglioMese.jar#FoglioMeseBean' failed to resolve to an ejb with a LocalHome)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:36 at org.jboss.web.WebModule.startModule(WebModule.java:6 at org.jboss.web.WebModule.startService(WebModule.java:4 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:27 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:22 at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:89 at $Proxy0.start(Unknown Sourc at org.jboss.system.ServiceController.start(ServiceController.java:41 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 at $Proxy28.start(Unknown Sourc at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:39 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:96 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:95 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:77 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:73 at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:12 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:12 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 at $Proxy8.deploy(Unknown Sourc at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:32 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:50 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:21 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:19Caused by: javax.naming.NamingException: ejb-local-ref: 'ejb/FoglioMeseBean', with web.xml ejb-link: 'EntBeanFoglioMese.jar#FoglioMeseBean' failed to resolve to an ejb with a LocalHome
      at org.jboss.web.AbstractWebDeployer.linkEjbLocalRefs(AbstractWebDeployer.java:71 at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:50 at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:85 at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:14 at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:9 at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:35 ... 48 mo10:08:46,943 WARN [ServiceController] Problem starting service jboss.web.deployment:war=presenze-WebModule.war,id=1221526974
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/FoglioMeseBean', with web.xml ejb-link: 'EntBeanFoglioMese.jar#FoglioMeseBean' failed to resolve to an ejb with a LocalHome)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:36 at org.jboss.web.WebModule.startModule(WebModule.java:6 at org.jboss.web.WebModule.startService(WebModule.java:4 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:27 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:22 at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:89 at $Proxy0.start(Unknown Sourc at org.jboss.system.ServiceController.start(ServiceController.java:41 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 at $Proxy28.start(Unknown Sourc at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:39 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:96 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:95 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:77 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:73 at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:12 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:12 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 at $Proxy8.deploy(Unknown Sourc at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:32 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:50 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:21 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:19Caused by: javax.naming.NamingException: ejb-local-ref: 'ejb/FoglioMeseBean', with web.xml ejb-link: 'EntBeanFoglioMese.jar#FoglioMeseBean' failed to resolve to an ejb with a LocalHome
      at org.jboss.web.AbstractWebDeployer.linkEjbLocalRefs(AbstractWebDeployer.java:71 at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:50 at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:85 at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:14 at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:9 at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:35 ... 48 mo10:08:46,953 ERROR [MainDeployer] could not start deployment: file:/C:/Server/jboss-4.0.2/server/default/tmp/deploy/tmp47796presenze.ear-contents/presenze-WebModule.war
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/FoglioMeseBean', with web.xml ejb-link: 'EntBeanFoglioMese.jar#FoglioMeseBean' failed to resolve to an ejb with a LocalHome)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:36 at org.jboss.web.WebModule.startModule(WebModule.java:6 at org.jboss.web.WebModule.startService(WebModule.java:4 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:27 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:22 at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:89 at $Proxy0.start(Unknown Sourc at org.jboss.system.ServiceController.start(ServiceController.java:41 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 at $Proxy28.start(Unknown Sourc at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:39 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:96 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:95 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:77 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:73 at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:12 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:12 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 at $Proxy8.deploy(Unknown Sourc at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:32 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:50 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:21 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:19Caused by: javax.naming.NamingException: ejb-local-ref: 'ejb/FoglioMeseBean', with web.xml ejb-link: 'EntBeanFoglioMese.jar#FoglioMeseBean' failed to resolve to an ejb with a LocalHome
      at org.jboss.web.AbstractWebDeployer.linkEjbLocalRefs(AbstractWebDeployer.java:71 at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:50 at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:85 at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:14 at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:9 at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:35 ... 48 mo10:09:43,334 ERROR [MainDeployer] could not start deployment: file:/C:/Server/jboss-4.0.2/server/default/deploy/presenze.ear
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/FoglioMeseBean', with web.xml ejb-link: 'EntBeanFoglioMese.jar#FoglioMeseBean' failed to resolve to an ejb with a LocalHome)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:36 at org.jboss.web.WebModule.startModule(WebModule.java:6 at org.jboss.web.WebModule.startService(WebModule.java:4 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:27 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:22 at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:89 at $Proxy0.start(Unknown Sourc at org.jboss.system.ServiceController.start(ServiceController.java:41 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 at $Proxy28.start(Unknown Sourc at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:39 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:96 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:95 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:77 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:73 at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Sourc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2 at java.lang.reflect.Method.invoke(Method.java:58 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:14 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:8 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:12 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:12 at org.jboss.mx.server.Invocation.invoke(Invocation.java:7 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:24 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:64 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 at $Proxy8.deploy(Unknown Sourc at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:32 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:50 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:21 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:19Caused by: javax.naming.NamingException: ejb-local-ref: 'ejb/FoglioMeseBean', with web.xml ejb-link: 'EntBeanFoglioMese.jar#FoglioMeseBean' failed to resolve to an ejb with a LocalHome
      at org.jboss.web.AbstractWebDeployer.linkEjbLocalRefs(AbstractWebDeployer.java:71 at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:50 at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:85 at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:14 at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:9 at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:35 ... 48 m

      I post the ejb-jar.xml and web.xml

      ejb-jar.xml

      display-name>EntBeanFoglioMese</display-name>
      <enterprise-beans>
      <entity>
      <display-name>FoglioMeseEB</display-name>
      <ejb-name>FoglioMeseBean</ejb-name>
      <local-home>EntBeanFoglioMese.FoglioMeseHomeLocal</local-home>
      <local>EntBeanFoglioMese.FoglioMeseLocal</local>
      <ejb-class>EntBeanFoglioMese.FoglioMeseBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>PK.FoglioMesePK</prim-key-class>
      <reentrant>true</reentrant>
      <resource-ref>
      <res-ref-name>jdbc/prologic</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>
      </entity>
      </enterprise-beans>
      <assembly-descriptor>
      <container-transaction>
      <method>
      <ejb-name>FoglioMeseBean</ejb-name>
      <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>


      web.xml

      <ejb-local-ref>
      <ejb-ref-name>ejb/FoglioMeseBean</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      <local-home>EntBeanFoglioMese.FoglioMeseHomeLocal</local-home>
      <local>EntBeanFoglioMese.FoglioMeseLocal</local>
      <ejb-link>EntBeanFoglioMese.jar#FoglioMeseBean</ejb-link>
      </ejb-local-ref>