Hi Costin,
I am trying to make struts and xwork bundles as boot classpath bundles. I am trying to use the fragment bundle approach for this since the bootclasspath approach didn't work for me. I think this was also discussed in another post at http://forum.springsource.org/showthread.php?t=68479.
I have converted the struts and xwork bundle as fragments by adding the header
Code:
Fragment-Host: system.bundle; extension: framework
to the manifests of these bundles. However when I start the OSGi framework within eclipse I see the bundles get into the 'Installed' state and not 'Resolved' state.
Also they showed no host bundles when I ran the bundle command.
HTML Code:
osgi> bundle 83
getService[System Bundle [0]]({org.eclipse.osgi.framework.console.CommandProvider}={service.ranking=2147483647, service.id=21})
getService[System Bundle [0]]({org.eclipse.osgi.framework.console.CommandProvider}={service.ranking=2147483647, service.pid=0.org.eclipse.core.runtime.internal.adaptor.EclipseCommandProvider, service.vendor=Eclipse.org, service.id=17})
initial@reference:file:xwork-core-2.1.4.jar/ [83]
Id=83, Status=INSTALLED Data Root=C:\osgi\.metadata\.plugins\org.eclipse.pde.core\Spring-DM-TP\org.eclipse.osgi\bundles\83\data
No registered services.
No services in use.
getServiceReference(org.osgi.service.packageadmin.PackageAdmin)
Exported packages
com.opensymphony.xwork2.spring; version="2.1.4"[exported]
com.opensymphony.xwork2.conversion.metadata; version="2.1.4"[exported]
....
....
....
No imported packages
getService[System Bundle [0]]({org.osgi.service.packageadmin.PackageAdmin}={service.ranking=2147483647, service.pid=0.org.eclipse.osgi.framework.internal.core.PackageAdminImpl, service.vendor=Eclipse.org, service.id=2})
No host bundles
No named class spaces
No required bundles
ungetService[System Bundle [0]]({org.osgi.service.packageadmin.PackageAdmin}={service.ranking=2147483647, service.pid=0.org.eclipse.osgi.framework.internal.core.PackageAdminImpl, service.vendor=Eclipse.org, service.id=2})
Could you see any problem here?
Please let me know your comments.
Thanks,
Shashi