11 Replies Latest reply on Dec 8, 2006 5:37 AM by René Gröschke

    Problem with the Tutorial

    jamari Newbie

      Hi,

      I download the Tutorial for the EclipseIDE with the Project Files. I have copied the Tutorial-Folder to my Workspace. Then I configured the JBoss server in Eclipse. After that I was running the XDoclet and packaging.

      Everything was working. When I start the JBoss server it works without any problem. When I deploy the Fibo.ear File (dploy to Default)
      I get the following error:

      15:15:20,567 INFO [MainDeployer] Deployed package:
      file:/opt/jboss-3.2.3/server/default/conf/jboss-service.xml
      15:15:20,572 INFO [Server] JBoss (MX MicroKernel) [3.2.3 (build:
      CVSTag=JBoss_3_2_3 date=200311301445)] Started in 33s:37ms
      15:15:35,488 INFO [MainDeployer] Starting deployment of package:
      file:/opt/jboss-3.2.3/server/default/deploy/FiboApp.ear
      15:15:35,489 INFO [EARDeployer] Init J2EE application:
      file:/opt/jboss-3.2.3/server/default/deploy/FiboApp.ear
      15:15:36,370 INFO [EjbModule] Deploying Fibo
      15:15:36,742 INFO [StatelessSessionInstancePool] Started
      jboss.j2ee:jndiName=ejb/tutorial/Fibo,plugin=pool,service=EJB
      15:15:36,742 INFO [StatelessSessionContainer] Started
      jboss.j2ee:jndiName=ejb/tutorial/Fibo,service=EJB
      15:15:36,742 INFO [EjbModule] Started
      jboss.j2ee:module=FiboEJB.jar,service=EjbModule
      15:15:36,743 INFO [EJBDeployer] Deployed:
      file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp29745FiboApp.ear-contents/FiboEJB.jar
      15:15:36,979 WARN [NestedThrowable] Duplicate throwable nesting of same
      base type: class org.jboss.deployment.DeploymentException is assignable from:
      class org.jboss.deployment.DeploymentException
      15:15:36,984 WARN [EmbeddedTomcatService] Failed to parse descriptors for
      war(file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp29745FiboApp.ear-contents/FiboWeb.war/)
      org.jboss.deployment.DeploymentException: Failed to parse
      WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref
      ejb/Fibo found in jboss-web.xml but not in web.xml)
      at
      org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:993)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:425)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor35.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$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: org.jboss.deployment.DeploymentException: ejb-ref ejb/Fibo found
      in jboss-web.xml but not in web.xml
      at org.jboss.metadata.WebMetaData.importJBossWebXml(WebMetaData.java:347)
      at org.jboss.metadata.WebMetaData.importXml(WebMetaData.java:223)
      at
      org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:988)
      ... 17 more
      15:15:36,988 INFO [EmbeddedTomcatService] deploy, ctxPath=/fibo,
      warUrl=file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp29745FiboApp.ear-contents/FiboWeb.war/
      15:15:37,049 INFO [EmbeddedTomcatService] ClusteredHTTPSessionService not
      found
      15:15:37,049 ERROR [EmbeddedTomcatService] Failed to setup clustering,
      clustering disabled
      15:15:37,060 ERROR [MainDeployer] could not start deployment:
      file:/opt/jboss-3.2.3/server/default/tmp/deploy/tmp29745FiboApp.ear-contents/FiboWeb.war
      org.jboss.deployment.DeploymentException: Error during deploy; - nested
      throwable: (javax.naming.NamingException: ejb-ref: ejb/tutorial/Fibo, no ejb-link
      in web.xml and no jndi-name in jboss-web.xml)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:440)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor35.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$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: javax.naming.NamingException: ejb-ref: ejb/tutorial/Fibo, no
      ejb-link in web.xml and no jndi-name in jboss-web.xml
      at
      org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:711)
      at
      org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWebContainer.java:595)
      at
      org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescriptors(AbstractWebContainer.java:1051)
      at
      org.jboss.web.tomcat.tc4.EmbeddedTomcatService.initENC(EmbeddedTomcatService.java:579)
      at
      org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:542)
      at
      org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
      ... 16 more
      15:15:37,063 ERROR [MainDeployer] could not start deployment:
      file:/opt/jboss-3.2.3/server/default/deploy/FiboApp.ear
      org.jboss.deployment.DeploymentException: Error during deploy; - nested
      throwable: (javax.naming.NamingException: ejb-ref: ejb/tutorial/Fibo, no ejb-link
      in web.xml and no jndi-name in jboss-web.xml)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:440)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor35.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$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: javax.naming.NamingException: ejb-ref: ejb/tutorial/Fibo, no
      ejb-link in web.xml and no jndi-name in jboss-web.xml
      at
      org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:711)
      at
      org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWebContainer.java:595)
      at
      org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescriptors(AbstractWebContainer.java:1051)
      at
      org.jboss.web.tomcat.tc4.EmbeddedTomcatService.initENC(EmbeddedTomcatService.java:579)
      at
      org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:542)
      at
      org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
      ... 16 more


      What is wrong?