Results 1 to 10 of 11

Thread: Unable to start spring dm server using Eclipse 3.5

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Posts
    1

    Default 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. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    Please could you provide the contents of serviceability/logs/log.log so we can take a look? Thanks.
    Glyn Normington
    SpringSource

  3. #3
    Join Date
    Jan 2010
    Posts
    2

    Default 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
    Attached Files Attached Files

  4. #4
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    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.
    Glyn Normington
    SpringSource

  5. #5
    Join Date
    Jan 2010
    Posts
    2

    Default 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"

  6. #6
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    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.
    Glyn Normington
    SpringSource

  7. #7
    Join Date
    Feb 2010
    Posts
    1

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •