8 Replies Latest reply on Apr 14, 2009 2:49 AM by rob.stryker

    2.0.0.CR2 doesn't publish to jboss as

    j.hendr

      Actually a few issues:

      Have uninstalled and reinstalled three times to no avail...maybe someone can decipher this.

      problem 1:
      1. create a new seam project, ear deployment.
      3. Publish to server says it works (synchronized) but none of the components are delivered to the deploy directory.

      problem 2:
      1. try to start jboss as server in studio, and get NoClassDefFound exception immediately. However, I can start this jboss as just fine by invoking run.bat outside of studio.

      I can perform #1 and #2 using studio 1.1, targeting the same jboss as.

      e
      The error log shows the following errors:


      eclipse.buildId=M20090107-0800
      java.version=1.5.0_17
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86

      Error
      Fri Mar 13 20:45:23 PDT 2009
      Exception saving preferences to: C:/jbds2/eclipse/configuration/.settings/org.eclipse.equinox.p2.metadata.repository.prefs.

      java.io.FileNotFoundException: C:\jbds2\eclipse\configuration\.settings\org.eclipse.equinox.p2.metadata.repository.prefs (The requested operation cannot be performed on a file with a user-mapped section open)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.(FileOutputStream.java:179)
      at java.io.FileOutputStream.(FileOutputStream.java:102)
      at org.eclipse.core.internal.preferences.EclipsePreferences.save(EclipsePreferences.java:983)
      at org.eclipse.core.internal.preferences.EclipsePreferences.save(EclipsePreferences.java:953)
      at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:352)
      at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:340)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.saveToPreferences(MetadataRepositoryManager.java:747)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.remember(MetadataRepositoryManager.java:614)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.addRepository(MetadataRepositoryManager.java:116)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.addRepository(MetadataRepositoryManager.java:88)
      at org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository.setProperty(LocalMetadataRepository.java:223)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.setListRepositoryProperty(DropinsRepositoryListener.java:290)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.synchronizeDropinMetadataRepositories(DropinsRepositoryListener.java:216)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.stopPoll(DropinsRepositoryListener.java:198)
      at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.stopPoll(DirectoryWatcher.java:172)
      at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.poll(DirectoryWatcher.java:109)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Activator.java:468)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:157)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
      at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
      at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
      at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)


      ----------------------------------------------------------------------
      eclipse.buildId=M20090107-0800
      java.version=1.5.0_17
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86


      Error
      Fri Mar 13 20:45:24 PDT 2009
      Error while saving repositories in preferences

      org.osgi.service.prefs.BackingStoreException: Exception saving preferences to: C:/jbds2/eclipse/configuration/.settings/org.eclipse.equinox.p2.metadata.repository.prefs.
      at org.eclipse.core.internal.preferences.EclipsePreferences.save(EclipsePreferences.java:991)
      at org.eclipse.core.internal.preferences.EclipsePreferences.save(EclipsePreferences.java:953)
      at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:352)
      at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:340)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.saveToPreferences(MetadataRepositoryManager.java:747)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.remember(MetadataRepositoryManager.java:614)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.addRepository(MetadataRepositoryManager.java:116)
      at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.addRepository(MetadataRepositoryManager.java:88)
      at org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository.setProperty(LocalMetadataRepository.java:223)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.setListRepositoryProperty(DropinsRepositoryListener.java:290)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.synchronizeDropinMetadataRepositories(DropinsRepositoryListener.java:216)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.stopPoll(DropinsRepositoryListener.java:198)
      at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.stopPoll(DirectoryWatcher.java:172)
      at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.poll(DirectoryWatcher.java:109)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Activator.java:468)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:157)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
      at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
      at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
      at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)


      ------------------------------------------------------------------------------
      eclipse.buildId=M20090107-0800
      java.version=1.5.0_17
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86


      Error
      Fri Mar 13 20:45:24 PDT 2009
      Error while saving repositories in preferences

      org.osgi.service.prefs.BackingStoreException: Exception saving preferences to: C:/jbds2/eclipse/configuration/.settings/org.eclipse.equinox.p2.artifact.repository.prefs.
      at org.eclipse.core.internal.preferences.EclipsePreferences.save(EclipsePreferences.java:991)
      at org.eclipse.core.internal.preferences.EclipsePreferences.save(EclipsePreferences.java:953)
      at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:352)
      at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:340)
      at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.saveToPreferences(ArtifactRepositoryManager.java:667)
      at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.removeRepository(ArtifactRepositoryManager.java:569)
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.setProperty(SimpleArtifactRepository.java:897)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.setListRepositoryProperty(DropinsRepositoryListener.java:290)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.synchronizeDropinArtifactRepositories(DropinsRepositoryListener.java:249)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.stopPoll(DropinsRepositoryListener.java:199)
      at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.stopPoll(DirectoryWatcher.java:172)
      at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.poll(DirectoryWatcher.java:109)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Activator.java:468)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:157)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
      at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
      at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
      at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)


      -------------------------------------------------------------------------------
      eclipse.buildId=M20090107-0800
      java.version=1.5.0_17
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86


      Error
      Fri Mar 13 20:45:24 PDT 2009
      Exception saving preferences to: C:/jbds2/eclipse/configuration/.settings/org.eclipse.equinox.p2.artifact.repository.prefs.

      java.io.FileNotFoundException: C:\jbds2\eclipse\configuration\.settings\org.eclipse.equinox.p2.artifact.repository.prefs (The requested operation cannot be performed on a file with a user-mapped section open)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.(FileOutputStream.java:179)
      at java.io.FileOutputStream.(FileOutputStream.java:102)
      at org.eclipse.core.internal.preferences.EclipsePreferences.save(EclipsePreferences.java:983)
      at org.eclipse.core.internal.preferences.EclipsePreferences.save(EclipsePreferences.java:953)
      at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:352)
      at org.eclipse.core.internal.preferences.EclipsePreferences.flush(EclipsePreferences.java:340)
      at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.saveToPreferences(ArtifactRepositoryManager.java:667)
      at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.removeRepository(ArtifactRepositoryManager.java:569)
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.setProperty(SimpleArtifactRepository.java:897)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.setListRepositoryProperty(DropinsRepositoryListener.java:290)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.synchronizeDropinArtifactRepositories(DropinsRepositoryListener.java:249)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.stopPoll(DropinsRepositoryListener.java:199)
      at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.stopPoll(DirectoryWatcher.java:172)
      at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.poll(DirectoryWatcher.java:109)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Activator.java:468)
      at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:157)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
      at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
      at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
      at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)


      -------------------------------------------------------------------------
      eclipse.buildId=M20090107-0800
      java.version=1.5.0_17
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86


      Error
      Fri Mar 13 20:45:46 PDT 2009


      org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/org.eclipse.equinox.p2.reconciler.dropins_1.0.4.v20081027-2115.jar" by thread "Start Level Event Dispatcher".
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1144)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:529)
      at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1104)
      at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.suspendBundle(PackageAdminImpl.java:281)
      at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:416)
      at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:224)
      at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:162)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
      ... 8 more
      Root exception:
      org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1144)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:529)
      at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1104)
      at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.suspendBundle(PackageAdminImpl.java:281)
      at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:416)
      at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:224)
      at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:162)
      at java.lang.Thread.run(Thread.java:595)


      --------------------------------------------------------------------------
      eclipse.buildId=M20090107-0800
      java.version=1.5.0_17
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86


      Error
      Fri Mar 13 20:45:48 PDT 2009
      ProvisioningEventBus could not be obtained. Metadata caches may not be cleaned up properly.
      --------------------------------------------------------------------------------
      eclipse.buildId=M20090107-0800
      java.version=1.5.0_17
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86


      Error
      Fri Mar 13 20:45:48 PDT 2009
      ProvisioningEventBus service could not be obtained, CoreGarbageCollector will not function properly.

        • 1. Re: 2.0.0.CR2 doesn't publish to jboss as
          maxandersen

          Are you running Eclipse or its workspace from a network mapped drive or a linked folder or something ? Looks like eclipse is having problems saving files in it sworkspace!

          btw. open the server to see where the deploy location actually is defined! in JBDS2 we stopped polluting the default deploy directory to keep your AS install clean. We now default deploy into your workspace - this can of course be changed if you wish to!

          • 2. Re: 2.0.0.CR2 doesn't publish to jboss as
            j.hendr

            Thanks for the reply.

            OK, I see where the components are getting deployed now. Everything is on local drives. I don't understand why eclipse sometimes has problems saving, but maybe that's not really an issue here.

            What does appear to be an issue is handling bin\native, which I overlooked pointing out in my first email. That's where the NoClassDefFoundError occurs. For example:

            java.lang.NoClassDefFoundError: C:/jboss-4/2/3/GA/bin/native

            So I'm wondering is this a 2.0 problem? It can't handling the native library loading?

            • 3. Re: 2.0.0.CR2 doesn't publish to jboss as
              j.hendr

              I installed jbds2 CR1 release. Oddly enough it can run the jboss as instance that has native libraries.

              However (on a side note) it is unable to resolve any imports from jboss-seam.jar.

              • 4. Re: 2.0.0.CR2 doesn't publish to jboss as
                nickboldt

                If you google for "The requested operation cannot be performed on a file with a user-mapped section open" you'll find some suggestions for how to fix that issue, which appears to be a Windows-only snafu involving file locks:

                http://forums.techarena.in/server-migration/64116.htm#post294043
                http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/d2ab2c33-7c22-4167-9dec-67a78aa7f6ae/ (series80user)
                http://support4.scriptlogic.com/kb/article.aspx?id=13738
                http://malaysia.answers.yahoo.com/question/index?qid=20080227113904AAHhVie

                And then there's some super-duper-useless documentation, which I'm providing here for comic relief:

                http://technet.microsoft.com/en-us/library/cc939425.aspx

                • 5. Re: 2.0.0.CR2 doesn't publish to jboss as
                  maxandersen

                  first you were talking about deployments being incomplete ( or at least not delivered ) - is that still a problem or now solved ?

                  With respect to NoClassDefFoundError then please give some more details ?

                  What is in the console window ?

                  Did you do any changes to the default ?

                  What is the full command used etc. etc. ?

                  • 6. Re: 2.0.0.CR2 doesn't publish to jboss as
                    j.hendr

                    Yes, the deployment issue is resolved. I wasn't aware that jbds2 deployed to the workspace and not the target server. (for another topic perhaps I do have another deployment issue but I won't talk about that here).

                    As for the inability to launch the server when a native directory containing native libraries is in the bin directory...

                    The debug perspective launches immediately after starting the server in debug mode, and this is the stack I see:

                    org.jboss.Main at localhost:4798
                    Thread [main] (Suspended (exception ClassNotFoundException))
                    URLClassLoader$1.run() line: 200 [local variables unavailable]
                    AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) line: not available [native method]
                    Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 188
                    Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 306
                    Launcher$AppClassLoader.loadClass(String, boolean) line: 268
                    Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 251
                    Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 319


                    This error message appears in the console. Nothing else is output to the console:
                    java.lang.NoClassDefFoundError: C:/jboss-4/2/3/GA/bin/native

                    Then I "stop" the server by clicking the red square. Sometimes an error message dialog appears that the main class def wasn't found. The last time i tried though I didn't get an error dialog.

                    Nothing appears in the eclipse error log.

                    In the log file for the server located in the workspace metadata is this content:

                    !SESSION 2009-03-14 10:59:57.372 -----------------------------------------------
                    eclipse.buildId=M20090107-0800
                    java.version=1.5.0_17
                    java.vendor=Sun Microsystems Inc.
                    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
                    Command-line arguments: -os win32 -ws win32 -arch x86

                    !ENTRY org.jboss.ide.eclipse.as.core 0 33751041 2009-03-14 18:24:13.629
                    !MESSAGE Module /saa-ear/resources/saa-ds.xml copied.

                    !ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2009-03-14 18:24:16.254
                    !MESSAGE 9 files modified in module saa-ear

                    !ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2009-03-14 18:24:16.348
                    !MESSAGE 8 files modified in module saa-ejb

                    !ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2009-03-14 18:24:21.395
                    !MESSAGE 48 files modified in module saa

                    !ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2009-03-14 18:24:21.535
                    !MESSAGE 1 files modified in module lib/saa-ear/EarContent/flamingo-service-1.7.1.jar

                    !ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2009-03-14 18:24:21.754
                    !MESSAGE 1 files modified in module lib/saa-ear/EarContent/jboss-seam.jar

                    !ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2009-03-14 18:24:21.926
                    !MESSAGE 1 files modified in module lib/saa-ear/EarContent/mvel14.jar

                    !ENTRY org.jboss.ide.eclipse.as.core 1 16842760 2009-03-14 18:24:22.051
                    !MESSAGE Server Starting

                    !ENTRY org.jboss.ide.eclipse.as.core 2 16908288 2009-03-14 18:24:23.176
                    !MESSAGE Could not obtain connection to any of these urls: localhost:1099
                    !STACK 0
                    javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
                    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                    at javax.naming.InitialContext.lookup(InitialContext.java:351)
                    at org.jboss.ide.eclipse.as.core.extensions.jmx.JMXSafeRunner.run(JMXSafeRunner.java:56)
                    at org.jboss.ide.eclipse.as.core.extensions.jmx.JMXSafeRunner.run(JMXSafeRunner.java:35)
                    at org.jboss.ide.eclipse.as.core.extensions.polling.JMXPoller$PollerRunnable.run(JMXPoller.java:110)
                    at java.lang.Thread.run(Thread.java:595)
                    Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
                    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
                    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
                    ... 7 more
                    Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
                    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
                    ... 8 more
                    Caused by: java.net.ConnectException: Connection refused: connect
                    at java.net.PlainSocketImpl.socketConnect(Native Method)
                    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
                    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
                    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
                    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
                    at java.net.Socket.connect(Socket.java:520)
                    at java.net.Socket.connect(Socket.java:470)
                    at java.net.Socket.(Socket.java:367)
                    at java.net.Socket.(Socket.java:267)
                    at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
                    at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
                    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
                    ... 8 more

                    !ENTRY org.jboss.ide.eclipse.as.core 1 16973825 2009-03-14 18:30:26.774
                    !MESSAGE Server processes have been terminated.


                    I suspect that the server connect error is simply the result of the server never starting.


                    As for changing the default, I'm not sure I know what you mean.

                    Thanks for all your help. I'm working around the issue for now by removing the native directory from the bin directory.

                    • 7. Re: 2.0.0.CR2 doesn't publish to jboss as
                      maxandersen

                      Please report the native issue in jira so we can look at it.

                      steps to reproduce and if removing native from the directory makes it work fine.

                      i.e. we added native support earlier this year thus i'm a bit surprised to see it suddenly failing ;(

                      • 8. Re: 2.0.0.CR2 doesn't publish to jboss as
                        rob.stryker

                        This is a duplicate of https://jira.jboss.org/jira/browse/JBIDE-3622 and was fixed in 2.0.0.GA.