0 Replies Latest reply on Sep 27, 2010 5:52 AM by sreeg88

    Issues while deploying application to farm directory

    sreeg88

      Hi,

      Iam working on jboss-eap5.0.1GA.

      I am facing some issues while deploying application to farm directory . Please let me know how to resolve them .

       

      Issue1: whenever I deploy application to farm directory from admin console (when I select Deploy Farmed), the application is getting deployed to all the cluster members with  the timestamp is being shown as 1st Jan 1970. It is not showing correct time and date.

       

      /Jboss1/jboss-eap/jboss-as/server/node4/farm
      /Jboss1>ll
      total 636
      -rw-rw-r-- 1 jboss1 jboss   6830 Sep 21 16:21 cluster-examples-service.xml
      -rw-rw-r-- 1 jboss1 jboss 630462 Jan  1  1970 JBossDukesBank.ear
      -rw-rw-r-- 1 jboss1 jboss   5852 Jan  1  1970 sample.war

       

       

      Issue 2: whenever I try to update the existing application in farm directoy from admin console, it is throwing following exception:

      The application that Iam trying to deploy is a simple war file namely  - sample.war . my JBOSS_HOME  is '/Jboss1/jboss-eap/jboss-as.

       

       

      The exception message is as follows:

       

      2010-09-27 14:52:35,768 WARN [org.rhq.core.pc.content.ContentDiscoveryRunner] (Content.discovery-4) Exception received from component while attempting content retrieval

      java.lang.IllegalStateException: Deployment file '/Jboss1/jboss-eap/jboss-as/server/node3/farm/sample.war' for ResourceType[id

      =0, category=Service, name=Web Application (WAR), plugin=JBossAS5] Resource with key [vfszip:/Jboss1/jboss-eap/jboss-as/server

      /node3/farm/sample.war/] does not exist.

      at org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent.discoverDeployedPackages(StandaloneManagedDeploymentC

      omponent.java:135)

      at sun.reflect.GeneratedMethodAccessor807.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

      at java.lang.Thread.run(Thread.java:619)

      2010-09-27 14:52:38,140 WARN [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemo

      n-14) JavaEEWebApplication deployment 'vfszip:/Jboss1/jboss-eap/jboss-as/server/node3/farm/sample.war/' not found. Cause: Mana

      ged deployment: vfszip:/Jboss1/jboss-eap/jboss-as/server/node3/farm/sample.war/ not found.

      2010-09-27 14:52:38,168 ERROR [org.rhq.core.pc.inventory.InventoryManager] (InventoryManager.discovery-1) Error while invoking

      resources added event on listener

      java.lang.NullPointerException

      at org.jboss.on.embedded.ui.NavigationContent.findNodeByResourceTypeAndParent(NavigationContent.java:124)

      at org.jboss.on.embedded.ui.NavigationContent.updateNavWithNewResource(NavigationContent.java:76)

      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:597)

      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)

      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

      at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)

      at org.jboss.on.embedded.EmbeddedInventoryEventListener_$$_javassist_7.resourcesAdded(EmbeddedInventoryEventListener_$

      $_javassist_7.java)

      at org.rhq.core.pc.inventory.InventoryManager.fireResourcesAdded(InventoryManager.java:1755)

      at org.rhq.core.pc.inventory.InventoryManager.mergeResourceFromDiscovery(InventoryManager.java:1078)

      at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:248)

      at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:255)

      at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.runtimeDiscover(RuntimeDiscoveryExecutor.java:141)

      at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:98)

      at org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:55)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

      at java.lang.Thread.run(Thread.java:619)

      2010-09-27 14:52:38,296 ERROR [org.jboss.on.embedded.ui.content.UpdateBackingContentAction] (http-10.136.229.104-8380-1) ResourceType[id=0, category=Platform, name=Linux, plugin=Platforms] has no associated creation package type.

      :

      .

       

      Thanks,

      Sree