Announcement Announcement Module
Collapse
No announcement yet.
problem when use dm server 2.0 RC1.share service Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem when use dm server 2.0 RC1.share service

    I use dm server 2.0,deploy two application.
    one is publisher of service another one use the service.
    but when I starting the dm server ,the bundle not started sucessfule who use the service !the error message like this:
    [2010-01-08 11:24:48.312] start-signalling-1 org.springframework.web.servlet.DispatcherServlet Context initialization failed org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'controller' defined in ServletContext resource [/WEB-INF/hostedrepo-servlet.xml]: Cannot create inner bean 'com.springsource.server.repository.hosted.web.Rep ositoryManagerFactoryBean#ffe383' of type [com.springsource.server.repository.hosted.web.Repo sitoryManagerFactoryBean] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'com.springsource.server.repository.hosted.web.Rep ositoryManagerFactoryBean#ffe383': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: RepositoryManager must be available in the service registry
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveInnerBean(BeanDefinitio nValueResolver.java:281)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:120)
    at org.springframework.beans.factory.support.Construc torResolver.resolveConstructorArguments(Constructo rResolver.java:600)
    at org.springframework.beans.factory.support.Construc torResolver.autowireConstructor(ConstructorResolve r.java:140)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:984)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:886)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:479)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:450)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 90)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:287 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:189)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:557)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:842)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:416)
    at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:4 43)
    at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:4 59)
    at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:340 )
    at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:307)
    at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:127)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4198)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4512)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:526)
    at com.springsource.osgi.webcontainer.tomcat.internal .TomcatServletContainer.startWebApplication(Tomcat ServletContainer.java:119)
    at com.springsource.osgi.webcontainer.internal.Standa rdWebContainer$StandardWebApplication.start(Standa rdWebContainer.java:116)
    at com.springsource.server.web.core.internal.WebBundl eLifecycleListener.onStarted(WebBundleLifecycleLis tener.java:130)
    at com.springsource.kernel.install.artifact.internal. ArtifactStateMonitor.onStarted(ArtifactStateMonito r.java:215)
    at com.springsource.kernel.install.artifact.internal. AbstractInstallArtifact.asyncStartSucceeded(Abstra ctInstallArtifact.java:281)
    at com.springsource.kernel.install.artifact.internal. AbstractInstallArtifact.access$0(AbstractInstallAr tifact.java:278)
    at com.springsource.kernel.install.artifact.internal. AbstractInstallArtifact$StateMonitorSignal.signalS uccessfulCompletion(AbstractInstallArtifact.java:2 31)
    at com.springsource.kernel.core.internal.BundleStartT racker$1.run(BundleStartTracker.java:150)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'com.springsource.server.repository.hosted.web.Rep ositoryManagerFactoryBean#ffe383': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: RepositoryManager must be available in the service registry
    at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.doGetObjectFromFactoryBean(Fact oryBeanRegistrySupport.java:150)
    at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.getObjectFromFactoryBean(Factor yBeanRegistrySupport.java:109)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveInnerBean(BeanDefinitio nValueResolver.java:274)
    ... 38 common frames omitted
    Caused by: java.lang.IllegalStateException: RepositoryManager must be available in the service registry
    at com.springsource.server.repository.hosted.web.Repo sitoryManagerFactoryBean.getObject(RepositoryManag erFactoryBean.java:17)
    at com.springsource.server.repository.hosted.web.Repo sitoryManagerFactoryBean.getObject(RepositoryManag erFactoryBean.java:1)
    at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.doGetObjectFromFactoryBean(Fact oryBeanRegistrySupport.java:143)
    ... 40 common frames omitted

    the publisher spring xml :
    <osgi:service id="securityManagerOsgi" ref="securityManager"
    interface="com.centfor.rwadmin.security.manager.RW AdminSecurityManager"></osgi:service>

    the consumer spring xml:
    <osgi:reference id="rwAdminSecurityManager"
    interface="com.centfor.rwadmin.security.manager.RW AdminSecurityManager" ></osgi:reference>

    <bean id="myService" class="com.centfor.serviceuse.impl.MyServiceImpl" lazy-init="false">
    <property name="rwAdminSecurityManager"><!--use the service -->
    <ref bean="rwAdminSecurityManager"/>
    </property>
    </bean>

    <osgi:service ref="hmUsersService" interface="com.centfor.email.business.services.hmu sers.IHmUsersService"></osgi:service>

    who can tell me why ?
    thank you!
    announcement:
    I am a chinese software enginner,English not very well

  • #2
    This is a bug in dm Server's hosted repository application. I've opened DMS-2305 to track the problem.

    As a workaround, if you're not using dm Server's hosted repository support, you can delete the com.springsource.server.repository.hosted PAR file from the pickup directory.

    Comment


    • #3
      Andy is right, but I got the impression you were modifying the hosted repository application. Did you modify it?

      If you did modify it, please could you tell me where the publisher Spring xml file is located? Unless it is located inside its bundle's META-INF/spring directory, you may be hitting a known problem (DMS-2261) in RC1.
      Last edited by Glyn Normington; Jan 8th, 2010, 06:00 AM.

      Comment


      • #4
        The spring xml file is located inside its bundle's WEB-INF/classes directory!
        I use class "com.springsource.server.web.dm.ServerOsgiBundleXm lWebApplicationContext" to create the ApplicationContext

        Comment

        Working...
        X