Announcement Announcement Module
Collapse
No announcement yet.
Problem with DM server 2.0 M5 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with DM server 2.0 M5

    Hi I am Using DM Server 2.0 M5 , while deploying my application I am getting the following execpetion

    Code:
    [2009-10-22 14:12:08.314]  TCP Connection(4)-127.0.0.1 <DE0056I> Installing bundle 'com.ocimum.btree.mw.util' version '5.0.1.0'. 
    [2009-10-22 14:12:44.247]  TCP Connection(4)-127.0.0.1 <ME0003I> Dump 'serviceability\dump\200910221412466' generated 
    [2009-10-22 14:12:44.278]  TCP Connection(4)-127.0.0.1 <DE0058E> Install failed for bundle 'com.ocimum.btree.mw.util' version '5.0.1.0'. 
    [2009-10-22 14:12:44.278]  TCP Connection(4)-127.0.0.1 <DE0018E> Unable to install application from location 'file:/E:/springsource-dm-server-2.0.0.M5/stage/com.ocimum.btree.mw.util.jar'. Could not satisfy constraints for bundle 'com.ocimum.btree.mw.util' at version '5.0.1.0'. Cannot resolve: com.ocimum.btree.mw.util
        Resolver report:
            Uses violation: <Import-Package: org.springframework.web.servlet.tags; version="0.0.0"> in bundle <com.ocimum.btree.mw.util_5.0.1.0>
                Possible matches:
                    	<Export-Package: org.springframework.web.servlet.tags; version="3.0.0.RC1"> from <org.springframework.web.servlet_3.0.0.RC1>
                        No dependent constraint mismatch. Try refreshing the <org.springframework.web.servlet_3.0.0.RC1> bundle.
    .
    and DM server log is here
    Code:
    [2009-10-22 14:10:50.499] SpringOsgiExtenderThread-8   c.s.repository.internal.external.ExternalStorageRepository        Duplicate artifact 'E:\springsource-dm-server-2.0.0.M5\repository\ext\org.springframework.osgi.io-1.2.1.jar' discovered in external repository 'ext'. 
    [2009-10-22 14:10:50.906] SpringOsgiExtenderThread-8   c.s.repository.internal.external.ExternalStorageRepository        Duplicate artifact 'E:\springsource-dm-server-2.0.0.M5\repository\ext\org.springframework.osgi.extender-1.2.1.jar' discovered in external repository 'ext'. 
    [2009-10-22 14:10:52.389] SpringOsgiExtenderThread-8   c.s.repository.internal.external.ExternalStorageRepository        Duplicate artifact 'E:\springsource-dm-server-2.0.0.M5\repository\ext\org.springframework.osgi.core-1.2.1.jar' discovered in external repository 'ext'. 
    [2009-10-22 14:12:07.564]  TCP Connection(4)-127.0.0.1 c.s.k.install.artifact.internal.StandardArtifactTypeDeterminer    Error occurend while determining the type of an Artifact 'E:\springsource-dm-server-2.0.0.M5\stage\com.ocimum.btree.mw.util.jar' wite the bridge '$Proxy88'. com.springsource.repository.ArtifactGenerationException: Error occured while parsing the manifest.
    	at com.springsource.kernel.artifact.bundle.BundleBridge.generateArtifactDescriptor(BundleBridge.java:99)
    	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.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
    	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
    	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 $Proxy88.generateArtifactDescriptor(Unknown Source)
    	at com.springsource.kernel.install.artifact.internal.StandardArtifactTypeDeterminer.determineType(StandardArtifactTypeDeterminer.java:87)
    	at com.springsource.kernel.install.artifact.internal.StandardInstallArtifactTreeInclosure.determineType(StandardInstallArtifactTreeInclosure.java:155)
    	at com.springsource.kernel.install.artifact.internal.StandardInstallArtifactTreeInclosure.createInstallTree(StandardInstallArtifactTreeInclosure.java:120)
    	at com.springsource.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:165)
    	at com.springsource.kernel.deployer.management.StandardDeployer.deploy(StandardDeployer.java:60)
    	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 com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:167)
    	at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:96)
    	at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:33)
    	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
    	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
    	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
    	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
    	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
    	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
    	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1359)
    	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    	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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
    	at sun.rmi.transport.Transport$1.run(Transport.java:159)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    	at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.IOException: Failed to read manifest from file 'com.ocimum.btree.mw.util.jar'.
    	at com.springsource.kernel.artifact.bundle.BundleBridge.manifestReaderFromJar(BundleBridge.java:305)
    	at com.springsource.kernel.artifact.bundle.BundleBridge.getManifestReader(BundleBridge.java:282)
    	at com.springsource.kernel.artifact.bundle.BundleBridge.generateArtifactDescriptor(BundleBridge.java:93)
    	... 57 common frames omitted
    Caused by: java.io.FileNotFoundException: E:\springsource-dm-server-2.0.0.M5\stage\com.ocimum.btree.mw.util.jar (Access is denied)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:114)
    	at java.util.jar.JarFile.<init>(JarFile.java:133)
    	at java.util.jar.JarFile.<init>(JarFile.java:97)
    	at com.springsource.kernel.artifact.bundle.BundleBridge.manifestReaderFromJar(BundleBridge.java:295)
    	... 59 common frames omitted
    
    [2009-10-22 14:12:44.278]  TCP Connection(4)-127.0.0.1 com.springsource.osgi.medic.eventlog.default                     DE0058E Install failed for bundle 'com.ocimum.btree.mw.util' version '5.0.1.0'. 
    [2009-10-22 14:12:44.278]  TCP Connection(4)-127.0.0.1 com.springsource.osgi.medic.eventlog.default                     DE0018E Unable to install application from location 'file:/E:/springsource-dm-server-2.0.0.M5/stage/com.ocimum.btree.mw.util.jar'. Could not satisfy constraints for bundle 'com.ocimum.btree.mw.util' at version '5.0.1.0'. Cannot resolve: com.ocimum.btree.mw.util
        Resolver report:
            Uses violation: <Import-Package: org.springframework.web.servlet.tags; version="0.0.0"> in bundle <com.ocimum.btree.mw.util_5.0.1.0>
                Possible matches:
                    	<Export-Package: org.springframework.web.servlet.tags; version="3.0.0.RC1"> from <org.springframework.web.servlet_3.0.0.RC1>
                        No dependent constraint mismatch. Try refreshing the <org.springframework.web.servlet_3.0.0.RC1> bundle.
    .
    I am able to deploy the same bundle in 2.0 m4 succesfully.

  • #2
    And the Manifest for dependencies is

    Code:
    Import-Package: 
     com.springsource.kernel.osgi.framework;version="[2.0.0.M5,2.0.0.M5]",
     org.apache.commons.dbcp;version="[1.2.2.osgi,1.2.2.osgi]",
     org.apache.commons.lang.exception;version="[2.4.0,2.4.0]",
     org.apache.commons.logging;version="[1.1.1,1.1.1]",
     org.hibernate;version="[3.4.0.GA,3.4.0.GA]",
     org.hibernate.cfg;version="[3.4.0.GA,3.4.0.GA]",
     org.hibernate.dialect;version="[3.3.1.GA,3.3.1.GA]",
     org.hibernate.ejb;version="[3.4.0.GA,3.4.0.GA]",
     org.hibernate.exception;version="[3.3.1.GA,3.3.1.GA]",
     org.hibernate.hql.ast;version="[3.3.1.GA,3.3.1.GA]",
     org.hibernate.hql.classic;version="[3.3.1.GA,3.3.1.GA]",
     org.hibernate.jdbc;version="[3.3.1.GA,3.3.1.GA]",
     org.hibernate.jdbc.util;version="[3.3.1.GA,3.3.1.GA]",
     org.hibernate.mapping;version="[3.3.1.GA,3.3.1.GA]",
     org.hibernate.proxy;version="[3.3.1.GA,3.3.1.GA]",
     org.hibernate.search.annotations;version="[3.0.1.GA,3.0.1.GA]",
     org.hibernate.tool.hbm2ddl;version="[3.3.1.GA,3.3.1.GA]",
     org.osgi.framework;version="[0.0.0,1.6.0]",
     org.slf4j;version="[1.5.6,1.5.6]",
     org.springframework.mail;version="[3.0.0.M4,3.1.0]",
     org.springframework.osgi.util;version="[1.2.1,1.2.1]"
    Import-Library: 
     org.springframework.spring;version="[3.0,3.1)"
    Import-Bundle: com.springsource.net.sf.json;version="[2.2.2,2.2.2]",
     com.springsource.javax.persistence;version="[1.0.0,1.0.0]",
     com.springsource.javax.servlet;version="[2.5.0,2.5.0]",
     com.springsource.javax.mail;version="[1.4.0,1.4.0]",
     com.springsource.org.jasypt.encryption;version="[1.5.0,1.5.0]",
     com.springsource.org.aspectj.weaver;version="[1.6.5.RELEASE,1.6.5.RELEASE]",
     com.springsource.org.apache.commons.dbcp;version="1.2.2.osgi",
     com.springsource.org.apache.commons.lang;version="2.4.0",
     com.springsource.org.hibernate;version="3.3.1.GA",
     com.springsource.org.apache.commons.dbcp;version="1.2.2.osgi"

    Comment


    • #3
      Mahesh, looking at the stack trace you posted, this line is interesting:

      Code:
      Caused by: java.io.FileNotFoundException: E:\springsource-dm-server-2.0.0.M5\stage\com.ocimum.btree.mw.util.jar (Access is denied)
      Do you have any read restrictions set on that directory?

      Comment


      • #4
        Andy,

        I solved that issue, I dont know why the dm server log showing access denied, but I solved the dependency problem by taking proper springframework jars, it is working fine.

        Now I got a different issue with the AspectJ

        Here is My Manifest

        Code:
        Import-Package: com.mysql.jdbc;version="[5.1.6,5.1.6]",
         javassist;version="[3.9.0.GA,3.9.0.GA]",
         javassist.util.proxy;version="[3.9.0.GA,3.9.0.GA]",
         javax.persistence;version="[1.0.0,1.0.0]",
         javax.persistence.spi;version="[1.0.0,1.0.0]",
         javax.resource;version="[1.5.0,1.5.0]",
         javax.servlet;version="[2.5.0,2.5.0]",
         javax.servlet.http;version="[2.5.0,2.5.0]",
         javax.sql,
         net.sf.json;version="[2.2.2,2.2.2]",
         oracle.jdbc.driver;version="[10.2.0.2,10.2.0.2]",
         org.apache.commons.logging;version="[1.1.1,1.1.1]",
         org.apache.commons.pool;version="[1.3.0,1.3.0]",
         org.apache.commons.pool.impl;version="[1.3.0,1.3.0]",
         org.hibernate.jdbc;version="[3.3.1.GA,3.3.1.GA]",
         org.hibernate.proxy;version="[3.3.1.GA,3.3.1.GA]",
         org.osgi.framework;version="[0.0.0,1.6.0]",
         org.postgresql;version="[8.3.603,8.3.603]",
         org.slf4j;version="[1.5.6,1.5.6]",
         org.springframework.jca.support;version="[3.0.0.0,3.1.0]"
        Import-Bundle: com.springsource.org.apache.commons.dbcp;version="[1.2.2.osgi,1.2.2.osgi]",
         com.springsource.antlr;version="[2.7.6,2.7.6]",
         com.springsource.net.sf.cglib;version="[2.1.3,2.1.3]",
         com.springsource.org.apache.xalan;version="[2.7.0,2.7.0]",
         com.springsource.junit;version="[3.8.2,3.8.2]",
         com.springsource.org.aspectj.weaver;version="[1.6.5.RELEASE,1.6.5.RELEASE]"
        Import-Library: org.springframework.spring;version="[3.0.0.0,3.1.0)"
        and the problem that I am getting is

        Code:
        Resolver report:
                Uses violation: <Import-Package: org.springframework.beans.factory.aspectj; version="0.0.0"> in bundle <com.mum.be.mw.core_5.0.1.0>
                    Possible matches:
                        	<Export-Package: org.springframework.beans.factory.aspectj; version="3.0.0.CI-395"> from <org.springframework.aspects_3.0.0.CI-395>
                            No dependent constraint mismatch. Try refreshing the <org.springframework.aspects_3.0.0.CI-395> bundle.
        .
        the same thing working properly in DM Server M4

        Comment


        • #5
          Glad to hear you solved your initial problem.

          It looks like the new problem is a transitive uses constraint violation. We've done some work in the current sprint to improve the diagnostics in such cases DMS-126. Would it be possible for you to upload the bundle(s) that are causing the problem so that we can try out the new diagnostics?

          Comment


          • #6
            Andy,

            I updated the bundle with DMS126

            Comment


            • #7
              Thank you for the sharing of your ideas and thoughts to all of us. http://www.sunrent.de

              Comment

              Working...
              X