现在有这样一个情况:
一个web工程里有一个接口,打成一个war包。
一个java工程里有一个类,继承上面的接口,打成一个jar包。
在OSGI环境下,先放入war包,可以被启动,再放入jar包,无法启动该jar包。
错误信息
org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.oms.exa' at version '2.0.0.SNAPSHOT': Cannot resolve: com.oms.exa Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <com.oms.exa_2.0.0.SNAPSHOT>
constraint: <Import-Package: com.whw.ftp; version="0.0.0">
是否web工程无法被依赖?
回帖给分
------解决方案--------------------------------------------------------
war好像是不能依赖的,如果需要依赖还得打个jar出来
------解决方案--------------------------------------------------------
------解决方案--------------------------------------------------------
------解决方案--------------------------------------------------------