6 Replies Latest reply on Mar 12, 2009 6:00 AM by jcw_at_mjc

    Re-deploying

    jcw_at_mjc

      I've just started trying 3.0.0CR2 on Ganymede (from 2.1.2 on Europa) so am probably doing something stupid, or the wrong way, but I can't find an easy way to re-deploy my WAR to my JBoss server.

      When I've changed my code, I generate the WAR by running an Ant script. I used to then just right-click on the WAR and select 'Deploy to server'. Now that's changed to 'Make undeployable', and I can't find a way to get my new code on to the JBoss server. Things I've tried are:
      Making the WAR undeployable then making it deployable again.
      Selecting 'Publish' from the JBoss server context menu.
      Cleaning (& hence rebuilding) the project.
      Refreshing the WAR file.

      Some of these lead to the server displaying undeploy and deploy messages, but I still get the old behaviour.

      Can anyone offer me some suggestions?

      Thanks

      James

        • 1. Re: Re-deploying
          maxandersen

          publish or clean/full publish should definitly redeploy it for you.

          • 2. Re: Re-deploying
            jcw_at_mjc

            I know a publish or clean/full publish should redeploy it, the problem is it doesn't!

            Does it matter that my WAR is on a samba share?

            • 3. Re: Re-deploying
              maxandersen

              Possible - but only for incremental updates. Forced build should.

              Any errors in Server log view or Error Log ?

              • 4. Re: Re-deploying
                jcw_at_mjc

                Ah, we could be on to something here. There's nothing in the console, but in the Eclipse log there are a lot of entries like this:

                !ENTRY org.eclipse.core.resources 4 1 2009-03-04 17:17:29.328
                !MESSAGE Core exception while retrieving the content description
                !STACK 1
                org.eclipse.core.internal.resources.ResourceException: Resource is out of sync with the file system: '/Project/deploy/project.war'.
                at org.eclipse.core.internal.resources.File.checkSynchronized(File.java:99)
                at org.eclipse.core.internal.resources.File.getContentDescription(File.java:278)
                at org.eclipse.core.internal.propertytester.FilePropertyTester.testContentType(FilePropertyTester.java:67)
                at org.eclipse.core.internal.propertytester.FilePropertyTester.test(FilePropertyTester.java:43)
                at org.eclipse.core.internal.expressions.Property.test(Property.java:58)
                at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99)
                at org.eclipse.core.internal.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
                at org.eclipse.core.internal.expressions.OrExpression.evaluate(OrExpression.java:21)
                at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
                at org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:91)
                at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
                at org.eclipse.core.internal.expressions.AndExpression.evaluate(AndExpression.java:29)
                at org.eclipse.ui.internal.dialogs.RegistryPageContributor.failsEnablement(RegistryPageContributor.java:260)
                at org.eclipse.ui.internal.dialogs.RegistryPageContributor.isApplicableTo(RegistryPageContributor.java:209)
                at org.eclipse.ui.internal.dialogs.PropertyPageContributorManager.contribute(PropertyPageContributorManager.java:115)
                at org.eclipse.ui.internal.dialogs.PropertyDialog.createDialogOn(PropertyDialog.java:61)
                at org.eclipse.ui.dialogs.PropertyDialogAction.createDialog(PropertyDialogAction.java:176)
                at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:155)
                at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
                at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
                at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
                at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
                at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
                at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
                !SUBENTRY 1 org.eclipse.core.resources 4 274 2009-03-04 17:17:29.328
                !MESSAGE Resource is out of sync with the file system: '/Project/deploy/project.war'.

                • 5. Re: Re-deploying
                  maxandersen

                  so something changed that file without refresh.

                  Try refresh the files and run again...

                  ...hmm..on second thought that bug is an old one in eclipse 3.4.0 or wtp (not sure) ...are you sure you are on the latest version ?

                  • 6. Re: Re-deploying
                    jcw_at_mjc

                    Sorry Max, I've been very busy and unable to do any tests over the last few days (I've been working round this by bypassing the AS tools and using the Ant script to deploy my WAR). Hopefully I'll get a chance to do some more playing today or tomorrow.

                    I believe I'm on the latest Eclipse (3.4.2, M20090211-1700).

                    James