私はOSGiフレームを使ってeclipse(Equinox)を使っていくつかのアプリケーションを開発しています。実際にはOSGi framework.iamには新しいものがありますが、Eclipseをstart commant(osgi> start) (osgi> ss)を使用してフレームワークがインストールされているかどうかをチェックしているときに 'Framework is shutdown'というメッセージが表示されます。また、Equinoxのjarファイル(org.eclipse.osgi_3.4.2.R34x_v20080826-1230 .jar).followingは、私はあなたがEclipseのプラグイン/バンドルを作成し、「として日食アプリケーションを実行している」ときにそれをテストしていると仮定しているすべてのコードバンドルが指定されていません
package testosgi;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
public class Activator implements BundleActivator {
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
System.out.println("Hello java World!!");
}
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
System.out.println("Goodbye java World!!");
}
}
アクティベータは正常です。何が重要なのは、あなたが使っている起動設定ですか? OSGi?その起動設定にはどのようなバンドルを含めますか?あなたは '-Dosgi.noShutdown = true'で走っていますか?あなたの質問を更新してください。 –