1 Reply Latest reply on Oct 13, 2003 12:41 AM by Jon Barnett

    Error Deploying Struts War file in JBoss jboss-3.2.2RC4

    bijayrt Newbie

      Gurus,

      I am trying to deploy a .war file in Jboss 3.2.2.RC4, but it fails all the time with following exception message.
      Can you guide me what I need to do?
      I have already placed all struts libraries under jboss's main lib folder (jbosshome\lib).

      Your help is much appreciated.

      Regards
      Bijay



      11:28:15,352 INFO [MainDeployer] Deployed package: file:/C:/dev/Jboss/jboss-3.2
      .2RC4/server/default/deploy/management/web-console.war
      11:28:15,362 INFO [MainDeployer] Starting deployment of package: file:/C:/dev/J
      boss/jboss-3.2.2RC4/server/default/deploy/struts-resume.war
      11:28:18,957 INFO [EmbeddedTomcatService] deploy, ctxPath=/struts-resume, warUr
      l=file:/C:/dev/Jboss/jboss-3.2.2RC4/server/default/tmp/deploy/tmp16805struts-res
      ume.war/
      11:28:20,550 ERROR [MainDeployer] could not start deployment: file:/C:/dev/Jboss
      /jboss-3.2.2RC4/server/default/deploy/struts-resume.war
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
      e: (javax.naming.NamingException: resource-ref: jdbc/resume has no valid JNDI bi
      nding. Check the jboss-web/resource-ref.)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:44
      0)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor38.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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      92)
      at sun.reflect.GeneratedMethodAccessor9.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:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.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: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:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      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(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: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:388)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: javax.naming.NamingException: resource-ref: jdbc/resume has no valid
      JNDI binding. Check the jboss-web/resource-ref.
      at org.jboss.web.AbstractWebContainer.linkResourceRefs(AbstractWebContai
      ner.java:679)
      at org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWeb
      Container.java:592)
      at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescri
      ptors(AbstractWebContainer.java:1051)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.initENC(EmbeddedTomcat
      Service.java:550)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(Embed
      dedTomcatService.java:513)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(Embedded
      TomcatService.java:301)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:42
      8)
      ... 48 more
      11:28:20,890 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
      .scanner.URLDeploymentScanner$DeployedURL@90dc27e8{ url=file:/C:/dev/Jboss/jboss
      -3.2.2RC4/server/default/deploy/struts-resume.war, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
      e: (javax.naming.NamingException: resource-ref: jdbc/resume has no valid JNDI bi
      nding. Check the jboss-web/resource-ref.)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:44
      0)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor38.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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      92)
      at sun.reflect.GeneratedMethodAccessor9.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:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.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: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:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      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(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: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:388)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: javax.naming.NamingException: resource-ref: jdbc/resume has no valid
      JNDI binding. Check the jboss-web/resource-ref.
      at org.jboss.web.AbstractWebContainer.linkResourceRefs(AbstractWebContai
      ner.java:679)
      at org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWeb
      Container.java:592)
      at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescri
      ptors(AbstractWebContainer.java:1051)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.initENC(EmbeddedTomcat
      Service.java:550)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(Embed
      dedTomcatService.java:513)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(Embedded
      TomcatService.java:301)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:42
      8)
      ... 48 more
      11:28:21,241 INFO [MainDeployer] Starting deployment of package: file:/C:/dev/J
      boss/jboss-3.2.2RC4/server/default/deploy/struts-resume.xml
      11:28:21,381 INFO [MainDeployer] deployment waiting for deployer: file:/C:/dev/
      Jboss/jboss-3.2.2RC4/server/default/deploy/struts-resume.xml
      11:28:21,381 INFO [MainDeployer] Deployment of package: file:/C:/dev/Jboss/jbos
      s-3.2.2RC4/server/default/deploy/struts-resume.xml is waiting for an appropriate
      deployer.
      11:28:21,401 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
      ration 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@90dc2d17 { url=file:/C:/dev/Jboss/jboss-3.2
      .2RC4/server/default/deploy/struts-resume.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/dev/Jboss/jboss-3.2.2RC4/server/default/deploy/struts-resume.x
      ml
      lastDeployed: 1065983301381
      lastModified: 1065983301361
      mbeans:
      ]Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@90dc27e8 { url=file:/C:/dev/Jboss/jboss-3.2
      .2RC4/server/default/deploy/struts-resume.war }
      deployer: org.jboss.web.tomcat.tc4.EmbeddedTomcatService@186dda3
      status: Deployment FAILED reason: Error during deploy; - nested throwable: (ja
      vax.naming.NamingException: resource-ref: jdbc/resume has no valid JNDI binding.
      Check the jboss-web/resource-ref.)
      state: FAILED
      watch: file:/C:/dev/Jboss/jboss-3.2.2RC4/server/default/deploy/struts-resume.w
      ar
      lastDeployed: 1065983298687
      lastModified: 1065983298577
      mbeans:
      , org.jboss.deployment.DeploymentInfo@90dc2d17 { url=file:/C:/dev/Jboss/jboss-3.
      2.2RC4/server/default/deploy/struts-resume.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/dev/Jboss/jboss-3.2.2RC4/server/default/deploy/struts-resume.x
      ml
      lastDeployed: 1065983301381
      lastModified: 1065983301361
      mbeans:
      ]MBeans waiting for classes:

      MBeans waiting for other MBeans:


      11:28:21,561 INFO [URLDeploymentScanner] Started
      11:28:21,701 INFO [MainDeployer] Deployed package: file:/C:/dev/Jboss/jboss-3.2
      .2RC4/server/default/conf/jboss-service.xml
      11:28:21,721 INFO [Server] JBoss (MX MicroKernel) [3.2.2RC4 (build: CVSTag=JBos
      s_3_2_2_RC4 date=200309172341)] Started in 55s:159ms