Hello,
I have a problem with deploying two bundles to dm server 2.0.0.RELEASE.
First one contains some exception classes in package com.foo.exception and one aspect in package com.foo.aspect. MANIFEST.MF looks like this:
Second one tries to use one exception from the first bundle. MANIFEST.MF, among other things, contains:Code:Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: iassan Build-Jdk: 1.6.0_15 Export-Package: com.foo.aspect;version="2.0.0";uses:="org.aspectj.lang ,org.aspectj.lang.annotation,org.springframework.stereotype,com.foo.e xception",com.foo.exception;version="2.0.0" Bundle-Vendor: Foo Bundle-Version: 2.0.0 Tool: Bundlor 1.0.0.RELEASE Bundle-Name: FooService Import-Library: org.springframework.spring;version="[3.0.0,3.1.0)" Bundle-ManifestVersion: 2 Bundle-SymbolicName: com.foo Web-ContextPath: FooService Import-Package: org.apache.log4j;version="[1.2.15,1.2.15]",org.aspectj .lang;version="[1.6.6.RELEASE,1.6.6.RELEASE]",org.aspectj.lang.annota tion;version="[1.6.6.RELEASE,1.6.6.RELEASE]",org.springframework.cont ext.config;version="[3.0.0,3.1.0)",org.springframework.stereotype;ver sion="[3.0.0,3.1.0)"
I deploy (copy into pickup directory) first one and it starts OK. But when I deploy second one it gets installed, but cannot be started because I get:Code:Import-Package: com.foo.exception;version="[2.0.0,2.0.0]"
As it is in resolved state I can see in admin console, that the wire between those two bundles exists, versions are OK, but still class cannot be found. I even read part of OSGi R4.2 specification describing class loading, but still have no idea.Code:Caused by: java.lang.ClassNotFoundException: com.foo.exception.FooServiceException
Any clues?
Best regards
Jacek Bilski


