[osgi]번들설치시 untitle_0.0.0 오류

이퀴낙스 실행 후, 기본 MANIFEST.MF가 생성 혹은 로드되는 경우
JAR번들 실행시 오류가 나는것을 알 수 있다. 번들 설치후 ss 을 통해 결과를 보면 비 정상적인 경우
osgi> ss
Framework is launched.
id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.7.1.R37x_v20110808-1106
3       INSTALLED   unknown_0.0.0 [3]
unknown_0.0.0 [3] 번들의 경우는 비정상적인 MANIFEST.MF 가 로드되었기 때문이다. POM에 package을 위해 아래 manifestfile 태그를 이용해서 지정해준다.
 
  
   
    org.apache.maven.plugins
    maven-jar-plugin
    
     
      src/main/resources/META-INF/MANIFEST.MF
     
    
   
  
 

정상적인 경우
$>java -jar org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar -console
/**
 * 번들 제거
*/
osgi> uninstall file:your_path\apOrgi-0.0.1-SNAPSHOT.jar
/**
 * 번들 설치
*/
osgi> install file:your_path\apOrgi-0.0.1-SNAPSHOT.jar
Bundle id is 9
/**
 * 번들 상태 확인
*/
osgi> ss

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.7.1.R37x_v20110808-1106
9       INSTALLED   com.orgi.kiyongs.hello.HelloWorld_1.0.0

osgi> start 9
Hello kiyongs

osgi> stop 9
Hello kiyongs


댓글

가장 많이 본 글