Announcement Announcement Module
Collapse
No announcement yet.
Unable to start spring dm server using Eclipse 3.5 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to start spring dm server using Eclipse 3.5

    Hi,

    I'd like to start working with spring dm server so I m currently learning.
    I succefully installed and run the version 1.0 and 2.0 of the server without eclipse but I ve only managed to run the version 1.0 using eclipse.

    I got the following errors with the version 2:

    What did I do wrong?
    I use Win 7 x64. Eclipse 3.5, STS 2.3 and Spring dm server 2.0.0 RC1

    Code:
    [2009-12-29 09:10:47.222] startup-tracker              <KE0001I> Kernel starting. 
    [2009-12-29 09:10:54.683] kernel-dm-11                 <SH0001I> dm Kernel ssh shell available on port 2401. 
    
    
    ...
    
     bundle 'org.springframework.osgi.core' version '1.2.1'. 
    [2009-12-29 09:11:00.695] system-artifacts             <DE0004I> Starting bundle 'org.springframework.osgi.extender' version '1.2.1'. 
    [2009-12-29 09:11:00.741] system-artifacts             <DE0010I> Stopping bundle 'org.springframework.osgi.extender' version '1.2.1'. 
    [2009-12-29 09:11:00.762] system-artifacts             <DE0011I> Stopped bundle 'org.springframework.osgi.extender' version '1.2.1'. 
    [2009-12-29 09:11:00.775] start-signalling-1           <DE0006E> Start failed for bundle 'org.springframework.osgi.extender' version '1.2.1'. java.lang.RuntimeException: bundle stopped
    	at com.springsource.kernel.core.internal.BundleStartTracker$StartupTrackerBundleListener.bundleChanged(BundleStartTracker.java:256)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:919)
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
    	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350)
    	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301)
    	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:377)
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
    	at com.springsource.kernel.core.internal.StandardBundleStarter.start(StandardBundleStarter.java:68)
    	at com.springsource.kernel.core.internal.StandardBundleStarter.start(StandardBundleStarter.java:56)
    	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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
    	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    	at $Proxy61.start(Unknown Source)
    	at com.springsource.kernel.install.artifact.internal.bundle.StandardBundleDriver.startBundle(StandardBundleDriver.java:177)
    	at com.springsource.kernel.install.artifact.internal.bundle.StandardBundleDriver.start(StandardBundleDriver.java:158)
    	at com.springsource.kernel.install.artifact.internal.bundle.StandardBundleInstallArtifact.doStart(StandardBundleInstallArtifact.java:262)
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.driveDoStart(AbstractInstallArtifact.java:211)
    	at com.springsource.kernel.install.artifact.internal.bundle.StandardBundleInstallArtifact.start(StandardBundleInstallArtifact.java:251)
    	at com.springsource.kernel.install.artifact.internal.StandardPlanInstallArtifact.doStart(StandardPlanInstallArtifact.java:130)
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.driveDoStart(AbstractInstallArtifact.java:211)
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.start(AbstractInstallArtifact.java:202)
    	at com.springsource.kernel.deployer.core.internal.PipelinedApplicationDeployer.start(PipelinedApplicationDeployer.java:291)
    	at com.springsource.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:201)
    	at com.springsource.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.deployArtifacts(InitialArtifactDeployer.java:164)
    	at com.springsource.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.run(InitialArtifactDeployer.java:154)
    	at java.lang.Thread.run(Thread.java:619)
    
    [2009-12-29 09:11:00.791] system-artifacts             <DE0006E> Start failed for bundle 'org.springframework.osgi.extender' version '1.2.1'. com.springsource.kernel.deployer.core.DeploymentException: BundleException
    	at com.springsource.kernel.install.artifact.internal.bundle.StandardBundleDriver.startBundle(StandardBundleDriver.java:179)
    	at com.springsource.kernel.install.artifact.internal.bundle.StandardBundleDriver.start(StandardBundleDriver.java:158)
    	at com.springsource.kernel.install.artifact.internal.bundle.StandardBundleInstallArtifact.doStart(StandardBundleInstallArtifact.java:262)
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.driveDoStart(AbstractInstallArtifact.java:211)
    	at com.springsource.kernel.install.artifact.internal.bundle.StandardBundleInstallArtifact.start(StandardBundleInstallArtifact.java:251)
    	at com.springsource.kernel.install.artifact.internal.StandardPlanInstallArtifact.doStart(StandardPlanInstallArtifact.java:130)
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.driveDoStart(AbstractInstallArtifact.java:211)
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.start(AbstractInstallArtifact.java:202)
    	at com.springsource.kernel.deployer.core.internal.PipelinedApplicationDeployer.start(PipelinedApplicationDeployer.java:291)
    	at com.springsource.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:201)
    	at com.springsource.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.deployArtifacts(InitialArtifactDeployer.java:164)
    	at com.springsource.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.run(InitialArtifactDeployer.java:154)
    	at java.lang.Thread.run(Thread.java:619)
    Caused by: org.osgi.framework.BundleException: The activator org.springframework.osgi.extender.internal.activator.ContextLoaderListener for bundle org.springframework.osgi.extender is invalid
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
    	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
    	at com.springsource.kernel.core.internal.StandardBundleStarter.start(StandardBundleStarter.java:68)
    	at com.springsource.kernel.core.internal.StandardBundleStarter.start(StandardBundleStarter.java:56)
    	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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
    	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    	at 
    
    ...
    
    
    [2009-12-29 09:11:01.447] system-artifacts             <DE0014I> Uninstalled bundle 'com.springsource.kernel.deployer.dm' version '2.0.0.RC1'. 
    [2009-12-29 09:11:01.487] system-artifacts             <DE0014I> Uninstalled plan 'com.springsource.kernel.userregion.springdm' version '2.0.0'. 
    [2009-12-29 09:11:01.503] system-artifacts             <UR0002E> User region failed while deploying initial artifacts. Shutting down. 
    [2009-12-29 09:11:01.509] System Bundle Shutdown       <KE0010I> Shutdown initiated.
    Thanks !

  • #2
    Please could you provide the contents of serviceability/logs/log.log so we can take a look? Thanks.

    Comment


    • #3
      spring dm start is failed

      I got the same problem while starting springdm 2.0 server from STS tool Version: 2.3.1.CI-R4501-B104 Build Id: 201001280801, although I could start it through startup.bat.
      Complete log file is attached

      Comment


      • #4
        We have not tested dm Server on Windows 7, so that's one possible source of problems.

        The following line of the log file looks like a clue:
        Code:
        java.lang.ClassNotFoundException: org.springframework.osgi.extender.internal.activator.ContextLoaderListener
        but it's hard to see how this could go wrong since ContextLoaderListener.class is contained within the extender bundle and so should load.

        So I would delve into the Equinox code and try to get the debugger to stop where the problem is being detected, in BundleLoader. The findClassInternal method should, for this class, successfully load it via the findLocalClass method. Debugging into that should provide better information. Please post back here if you would like help interpreting your findings.

        You might also try turning on verbose out for class loading in the JVM as findLocalClass delegates to the class loader. Use the JVM option -verbose:class to do this.

        Apologies if the approach above seems a bit low-level, but it's the best approach for such an apparently basic issue.

        Comment


        • #5
          Eclipse + SpringDM + Windows Environment problem

          Hi
          I figured that usually such kind of problems are related to incorrect path specification or relative path specifications. So anyway I moved server directory into the root folder and it worked fine under C: \springsource-dm-server-2.0.0.RELEASE.
          I guess there is a problem with launch configurations in windows environment. When you are using bin\sratup.bat you it uses relative %SERVER_HOME% location. In eclipse it is different.
          BTW. I am using standard Windows NT development box. Attached are configuration options used by eclipse STS
          -config "C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/lib/com.springsource.kernel.launch.properties" -Fcom.springsource.kernel.home="C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE" -Fcom.springsource.kernel.config="C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/config,C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/stage" -Fosgi.configuration.area="C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/work/osgi/configuration" -Fosgi.java.profile="file:C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/lib/java6-server.profile" -Fosgi.clean=true

          -XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile="C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/serviceability/error.log" -XX:HeapDumpPath="C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/serviceability/heap_dump.hprof" -Djava.rmi.server.hostname=127.0.0.1 -Dcom.springsource.kernel.home="C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE" -Djava.io.tmpdir="C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/work/tmp/" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9756 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.springsource.kernel.authentication.file="C:\D evelopment Center\Spring\springsource-dm-server-2.0.0.RELEASE/config/com.springsource.kernel.users.properties" -Djava.security.auth.login.config="C:\Development Center\Spring\springsource-dm-server-2.0.0.RELEASE/config/com.springsource.kernel.authentication.config"

          Comment


          • #6
            We have seen problems in the past where the path length was too long for Windows and we recommend installing dm Server into the root directory of a drive to avoid this. Looks like this may be the same problem.

            Comment


            • #7
              i got the same problem.
              when working with STS this path (and version) worked fine:
              C:\Program Files\SpringSource\dm-server-1.0.2.SR02

              version 2.0.0 didn't work (same errors as in initial post)
              C:\Program Files\SpringSource\dm-server-2.0.0.RELEASE

              moving the whole dir to the root worked fine:
              C:\dm-server-2.0.0.RELEASE

              Comment


              • #8
                Hi guys,

                I don't know if this issue is already solved or not but I had similar problems with another piece of code (not spring related). The problem was a white space in the path. As soon as I moved the application to a folder with no spaces in the absolute path everything worked fine when starting the app from within eclipse.

                fkh

                Comment


                • #9
                  Thanks for the tip. I have to keep reminding myself how backwards Windows sometimes is...

                  Comment


                  • #10
                    How to fix this without moving your install

                    I have installed the DMS server under "Program Files" because I like to keep all binaries under there. However, the above problem occurs during the setup of a Server Runtime Environment when the path contains a space.

                    It can be easily fixed by going to "Preferences" -> "Server" -> "Runtime Environments". Select the server in question and choose "Edit". In the "SpringSource dm Server installation directory" field, change "Program Files" to "Progra~1". E.g., my path now reads: "C:\Progra~1\springsource-dm-server-2.0.1.RELEASE". This will work on any windows installation.

                    If you have a different path that contains additional or other spaces, you will need to substitute the corresponding DOS path names. You can find them out by using "dir /x" at the windows command prompt.

                    FYI, this path setting is stored in the following workspace files:

                    %WORKSPACE%\.metadata\.plugins\org.eclipse.core.ru ntime\.settings\com.springsource.server.ide.runtim e.core.prefs
                    %WORKSPACE%\.metadata\.plugins\org.eclipse.core.ru ntime\.settings\org.eclipse.wst.server.core.prefs
                    %WORKSPACE%\.metadata\.plugins\org.eclipse.debug.c ore\.launches\<YOUR_SERVER_NAME>.launch
                    Last edited by blahb; Apr 15th, 2010, 12:20 PM. Reason: whitespace

                    Comment


                    • #11
                      Thanks for posting your solution. Very helpful.

                      Comment

                      Working...
                      X