- Program arguments
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console -clean
- VM arguments
-Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dosgi.clean=true -Dorg.osgi.service.http.port=7777
Showing posts with label osgi. Show all posts
Showing posts with label osgi. Show all posts
Sunday, 31 January 2010
Tuesday, 20 October 2009
[osgi] TargetPlatform
1. Create "TargetPlatform" project
2. Create some bundle folder which has all bundle jar files.
3. Create "TargetPlatformDefinition" folder
4. Create "test-prop.target" file
5. use below part
===============================
[?xml version="1.0" encoding="UTF-8"?]
[?pde version="3.2"?]
[target name="test-proto"]
[location path="${test-Prototype}"/]
[content useAllPlugins="true"]
[plugins]
[/plugins]
[features]
[/features]
[extraLocations]
[location path="${test-Prototype}\OSGi"/]
[location path="${test-Prototype}\target"/]
[/extraLocations]
[/content]
[/target]
========================
6. change setup Eclipse part
1) Window -> preference -> Run/Debug -> String/Substitution -> Click "New" button
2) Variable : test-Prototype || Value : TargetPlatform folder
2. Create some bundle folder which has all bundle jar files.
3. Create "TargetPlatformDefinition" folder
4. Create "test-prop.target" file
5. use below part
===============================
[?xml version="1.0" encoding="UTF-8"?]
[?pde version="3.2"?]
[target name="test-proto"]
[location path="${test-Prototype}"/]
[content useAllPlugins="true"]
[plugins]
[/plugins]
[features]
[/features]
[extraLocations]
[location path="${test-Prototype}\OSGi"/]
[location path="${test-Prototype}\target"/]
[/extraLocations]
[/content]
[/target]
========================
6. change setup Eclipse part
1) Window -> preference -> Run/Debug -> String/Substitution -> Click "New" button
2) Variable : test-Prototype || Value : TargetPlatform folder
Thursday, 1 January 2009
[Eclipse] (Plugin)- Java Code Coverage for Eclipse
* This plugin for Code Coverage - especially for Junit
1. Install
http://www.eclemma.org/installation.html
2. Launching (or setting) in Coverage Mode
http://www.eclemma.org/userdoc/launching.html
3. Create "Test" run configuration
4. You should select what kind of project can be generate code coverage report
from "Coverage" tab. (Coverage Run > Converage configurations)
5. When "running" is over , Do not terminate manually !
Type : osgi> exit
Then you will see Coverage report
* error message "No coverage data file has been written"
check "http://www.eclemma.org/faq.html#usage03"
Check all step from this web site
* After running code coverage you should re-compile
the project which is checked for Code Coverage
1. Install
http://www.eclemma.org/installation.html
2. Launching (or setting) in Coverage Mode
http://www.eclemma.org/userdoc/launching.html
3. Create "Test" run configuration
4. You should select what kind of project can be generate code coverage report
from "Coverage" tab. (Coverage Run > Converage configurations)
5. When "running" is over , Do not terminate manually !
Type : osgi> exit
Then you will see Coverage report
* error message "No coverage data file has been written"
check "http://www.eclemma.org/faq.html#usage03"
Check all step from this web site
* After running code coverage you should re-compile
the project which is checked for Code Coverage
[Eclipse] - Run (Arguments- Clean)
Eclipse Run configuration option
- Arguments Tab -
* Program arguments
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console --clean
* VM arguements
-Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dosgi.clean=true
- Arguments Tab -
* Program arguments
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console --clean
* VM arguements
-Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dosgi.clean=true
Sunday, 5 October 2008
Create OSGI bundle from library jar file
* Create OSGI bundle from library jar file
http://blog.springsource.com/2008/02/18/creating-osgi-bundles/
you need bnd.jar file
this is working with command line
- java -jar bnd.jar wrapprint "library name(such as json-lib-2.2.2-jdk1.5.jar)"
ex) java -jar bnd.jar print json-lib-2.2.2-jdk1.5.jar
ex) java -jar bnd.jar wrap json-lib-2.2.2-jdk1.5.jar
http://blog.springsource.com/2008/02/18/creating-osgi-bundles/
you need bnd.jar file
this is working with command line
- java -jar bnd.jar wrapprint "library name(such as json-lib-2.2.2-jdk1.5.jar)"
ex) java -jar bnd.jar print json-lib-2.2.2-jdk1.5.jar
ex) java -jar bnd.jar wrap json-lib-2.2.2-jdk1.5.jar
Thursday, 28 August 2008
Error : interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
Error Message : interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
Full Error Message
Caused by: java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at org.hibernate.jdbc.BorrowedConnectionProxy.generateProxy(BorrowedConnectionProxy.java:67)
at org.hibernate.jdbc.ConnectionManager.borrowConnection(ConnectionManager.java:163)
at org.hibernate.jdbc.JDBCContext.borrowConnection(JDBCContext.java:111)
at org.hibernate.impl.SessionImpl.connection(SessionImpl.java:359)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:510)
... 31 more
In this case, your manifest file is not correctly.
Please check it, you might miss "org.hibernate.jdbc;version="3.2.6.ga" bundle
or check with below example mainifest file bundle list
org.aopalliance.aop;version="1.0.0",
org.apache.commons.dbcp;version="1.2.2.osgi",
org.apache.log4j;version="1.2.15",
org.hibernate;version="3.2.6.ga",
org.hibernate.classic;version="3.2.6.ga",
org.hibernate.criterion;version="3.2.6.ga",
org.hibernate.hql.ast;version="3.2.6.ga",
org.hibernate.jdbc;version="3.2.6.ga",
org.hibernate.proxy;version="3.2.6.ga",
org.hibernate.usertype;version="3.2.6.ga",
org.springframework.aop;version="2.5.4",
org.springframework.aop.framework;version="2.5.4",
org.springframework.beans;version="2.5.4",
org.springframework.beans.factory.config;version="2.5.4",
org.springframework.core;version="2.5.4",
org.springframework.jmx.export;version="2.5.4",
org.springframework.orm.hibernate3;version="2.5.4",
org.springframework.orm.hibernate3.support;version="2.5.4",
org.springframework.transaction;version="2.5.4",
org.springframework.transaction.annotation;version="2.5.4",
org.springframework.transaction.interceptor;version="2.5.4",
org.springframework.transaction.support;version="2.5.4"
Full Error Message
Caused by: java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at org.hibernate.jdbc.BorrowedConnectionProxy.generateProxy(BorrowedConnectionProxy.java:67)
at org.hibernate.jdbc.ConnectionManager.borrowConnection(ConnectionManager.java:163)
at org.hibernate.jdbc.JDBCContext.borrowConnection(JDBCContext.java:111)
at org.hibernate.impl.SessionImpl.connection(SessionImpl.java:359)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:510)
... 31 more
In this case, your manifest file is not correctly.
Please check it, you might miss "org.hibernate.jdbc;version="3.2.6.ga" bundle
or check with below example mainifest file bundle list
org.aopalliance.aop;version="1.0.0",
org.apache.commons.dbcp;version="1.2.2.osgi",
org.apache.log4j;version="1.2.15",
org.hibernate;version="3.2.6.ga",
org.hibernate.classic;version="3.2.6.ga",
org.hibernate.criterion;version="3.2.6.ga",
org.hibernate.hql.ast;version="3.2.6.ga",
org.hibernate.jdbc;version="3.2.6.ga",
org.hibernate.proxy;version="3.2.6.ga",
org.hibernate.usertype;version="3.2.6.ga",
org.springframework.aop;version="2.5.4",
org.springframework.aop.framework;version="2.5.4",
org.springframework.beans;version="2.5.4",
org.springframework.beans.factory.config;version="2.5.4",
org.springframework.core;version="2.5.4",
org.springframework.jmx.export;version="2.5.4",
org.springframework.orm.hibernate3;version="2.5.4",
org.springframework.orm.hibernate3.support;version="2.5.4",
org.springframework.transaction;version="2.5.4",
org.springframework.transaction.annotation;version="2.5.4",
org.springframework.transaction.interceptor;version="2.5.4",
org.springframework.transaction.support;version="2.5.4"
Tuesday, 22 July 2008
Spring osgi - good tutorial
http://springosgi.googlepages.com/
If you have the problem while you are following the example from the site, please
use different pom.xml file.
When you progress the sample from the tutorial site, please use another pom.xml file.
updated pom.xml file
If you have the problem while you are following the example from the site, please
use different pom.xml file.
When you progress the sample from the tutorial site, please use another pom.xml file.
updated pom.xml file
Thursday, 21 February 2008
Tuesday, 19 February 2008
OSGI Reference web site
- Starting Point (Neil Barlett's Getting Started with OSGI)
http://neilbartlett.name/blog/osgi-articles/
- OSGi and Gravity Service Binder Tutorial
http://oscar-osgi.sourceforge.net/tutorial/
- Creating OSGi Bundles of Costin Leau : SpringDM(OSGi)
http://blog.springsource.com/main/2008/02/18/creating-osgi-bundles/
- Advanced : Apache Felix OSGi Tutorial
http://felix.apache.org/site/apache-felix-osgi-tutorial.html
http://neilbartlett.name/blog/osgi-articles/
- OSGi and Gravity Service Binder Tutorial
http://oscar-osgi.sourceforge.net/tutorial/
- Creating OSGi Bundles of Costin Leau : SpringDM(OSGi)
http://blog.springsource.com/main/2008/02/18/creating-osgi-bundles/
- Advanced : Apache Felix OSGi Tutorial
http://felix.apache.org/site/apache-felix-osgi-tutorial.html
Thursday, 27 September 2007
* Basic Example-Web service with Axis2,Eclipse plugins and OSGI Under one project
* Basic Example-Web service with Axis2,Eclipse plugins and OSGI Under one project
- This example shows how Web serice is working with OSGI under one project in eclipse.
It will create "aar" file for Web Service and "jar" file for osgi
"aar" file will work under Tomcat web server.
see here
- This example shows how Web serice is working with OSGI under one project in eclipse.
It will create "aar" file for Web Service and "jar" file for osgi
"aar" file will work under Tomcat web server.
see here
Basic Example-Web service with Axis2,Eclipse plugins and OSGI (Part 3)
* Basic Example-Web service with Axis2,Eclipse plugins and OSGI (Part 3)
- This part discribe how created jar file can work with osgi console system
- This example shows how we can create osgi bundle and working with Web Service from
previous example(Basic Example-Web service with Axis2,Eclipse plugins and OSGI (Part 2)).
Each program communicate data via stub that is automatically generated using
Axis2 plugin.
see here
- This part discribe how created jar file can work with osgi console system
- This example shows how we can create osgi bundle and working with Web Service from
previous example(Basic Example-Web service with Axis2,Eclipse plugins and OSGI (Part 2)).
Each program communicate data via stub that is automatically generated using
Axis2 plugin.
see here
Thursday, 20 September 2007
Basic Example-Web service with Axis2,Eclipse plugins and OSGI (Part 2)
* Basic Example-Web service with Axis2,Eclipse plugins and OSGI (Part 2)
This example shows how we can create osgi bundle and working with Web Service from
previous example(Working under Tomcat and deploy it as a "aar" file).
There are two web server : one is from PC (Tomcat) and the other one is OSGI Web Server
Each program communicate data via stub that is automatically generated using
Axis2 plugin.
See here
- tomcat should be running
check out http://localhost:8080/axis2/services/listServices
This example shows how we can create osgi bundle and working with Web Service from
previous example(Working under Tomcat and deploy it as a "aar" file).
There are two web server : one is from PC (Tomcat) and the other one is OSGI Web Server
Each program communicate data via stub that is automatically generated using
Axis2 plugin.
See here
- tomcat should be running
check out http://localhost:8080/axis2/services/listServices
Basic Example-Web service with Axis2,Eclipse plugins and OSGI (Part 1)
* Basic Example-Web service with Axis2,Eclipse plugins and OSGI (Part 1)
This shows how we can create Web service with Axis2 ,eclipse and Axis eclispe plug-in.
And it also works with OSGI application.
This is for only build web service and deploy in Tomcat , create WSDL file
See here
This shows how we can create Web service with Axis2 ,eclipse and Axis eclispe plug-in.
And it also works with OSGI application.
This is for only build web service and deploy in Tomcat , create WSDL file
See here
Tuesday, 18 September 2007
Tuesday, 4 September 2007
* Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 3
* Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 3
> Part 3 request a precondition of Part 2
This part will be implemented for getting "Authentication" from STWF service side.
It's like that we will create virtual machine that is working with STWF server.
From this part we will use Axis2 with osgi.
Suppose we are have Axis2 (version 1.2) and set AXIS2_HOME in enviroment variable
* Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 3
> Part 3 request a precondition of Part 2
This part will be implemented for getting "Authentication" from STWF service side.
It's like that we will create virtual machine that is working with STWF server.
From this part we will use Axis2 with osgi.
Suppose we are have Axis2 (version 1.2) and set AXIS2_HOME in enviroment variable
* Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 3
Friday, 31 August 2007
* Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 2
* Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 2
Part 2 request a precondition of Part 1.
This part does not include Axis2 option. It discribes how osgi is working under web application.
Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 2
Part 2 request a precondition of Part 1.
This part does not include Axis2 option. It discribes how osgi is working under web application.
Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 2
Thursday, 30 August 2007
* Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 1
First step to understand how Axis2 and OSGI is working
This is simple example only about osgi programming.
You can understand servlet and access way in osgi programming.
Please download or open the below
Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 1
This is simple example only about osgi programming.
You can understand servlet and access way in osgi programming.
Please download or open the below
Axis2( version 1.2) + Eclipse + OSGI Simple example - Part 1
Sunday, 19 August 2007
Simple OSGI programming example
**** implemented functions
- View OSGI Bundles list
- View selected OSGI Details
- Stop selected OSGI Bundle
- Start selected OSGI bundle
downlaod(for eclipse)
- View OSGI Bundles list
- View selected OSGI Details
- Stop selected OSGI Bundle
- Start selected OSGI bundle
downlaod(for eclipse)
Monday, 6 August 2007
dependence package information
- MyPrinterWorkspace (copy folder from cc - label : SESP_Rel_S2.1_HQ)
- Create Plug-in
- Import copied MyPrinterWorkspace folder
- needed jar file
* should be located in package folder and link by Window > Preference > Plug-In Development > Target Platform >
Add (button) > File System > link in jar file folder
com.samsung.dpd.everest.core_0.2.0.u2a.jar
com.samsung.dpd.everest.portability_0.2.0.u1aRC2.jar
com.samsung.dpd.himalaya_0.2.0.u2a.jar
org.eclipse.equinox.http_1.0.100.v20061218.jar
org.eclipse.equinox.log_1.0.100.v20060717.jar
org.eclipse.equinox.servlet.api_1.0.0.v20060717.jar
sespcontrols.jar
com.samsung.dpd.winslow.common_0.1.7.a.jar
com.samsung.dpd.winslow.doctreestream_0.1.5.a.jar
com.samsung.dpd.winslow.jobmanagement_0.1.5.a.jar
com.samsung.dpd.winslow.portabilitysim_0.0.0.a.jar
com.samsung.dpd.winslow.scan_0.1.5.a.jar
com.samsung.dpd.winslow.store_0.1.5.a.jar
com.samsung.dpd.winslow.system_0.1.5.a.jar
com.samsung.dpd.winslow.tiffcomposer_0.1.5.a.jar
- go to Window > Preference > Plug-In Development > Target Platform
only check
com.samsung.dpd.everest.core
com.samsung.dpd.everest.portability
com.samsung.dpd.himalaya
com.samsung.dpd.winslow.common
com.samsung.dpd.winslow.doctreestream
com.samsung.dpd.winslow.jobmanagement
com.samsung.dpd.winslow.portabilitysim
com.samsung.dpd.winslow.scan
com.samsung.dpd.winslow.store
com.samsung.dpd.winslow.system
com.samsung.dpd.winslow.tiffcomposer
javax.servlet
org.eclipse.equinox.http
org.eclipse.equinox.http.servlet
org.eclipse.equinox.log
org.eclipse.osgi
org.eclipse.osgi.services
org.eclipse.osgi.util
SESPControls
- From MANIFEST.MF
- Dependencies > Imported Packages > Add
com.samsung.dpd.Controls,
com.samsung.dpd.everest.core,
com.samsung.dpd.everest.core.basics,
com.samsung.dpd.everest.core.collections,
com.samsung.dpd.everest.core.device,
com.samsung.dpd.everest.core.device.printer,
com.samsung.dpd.everest.core.device.scanner,
com.samsung.dpd.everest.core.device.store,
com.samsung.dpd.everest.core.events,
com.samsung.dpd.everest.core.imagebasics,
com.samsung.dpd.everest.core.jobmanagement,
com.samsung.dpd.everest.core.lifecycle,
com.samsung.dpd.everest.core.mfpbasics,
com.samsung.dpd.everest.core.support,
com.samsung.dpd.everest.core.systembasics,
com.samsung.dpd.everest.core.work,
com.samsung.dpd.everest.core.work.common,
com.samsung.dpd.everest.core.work.printing,
com.samsung.dpd.everest.core.work.retrieving,
com.samsung.dpd.everest.core.work.scanning,
com.samsung.dpd.everest.core.work.storing,
com.samsung.dpd.winslow.common,
javax.servlet;version="2.4.0",
javax.servlet.http;version="2.4.0",
org.osgi.framework;version="1.4.0",
org.osgi.service.http;version="1.2.0"
- Run AS > Open Run Diagram
check all Target Platform
com.samsung.dpd.everest.core
com.samsung.dpd.everest.portability
com.samsung.dpd.himalaya
com.samsung.dpd.winslow.common
com.samsung.dpd.winslow.doctreestream
com.samsung.dpd.winslow.jobmanagement
com.samsung.dpd.winslow.portabilitysim
com.samsung.dpd.winslow.scan
com.samsung.dpd.winslow.store
com.samsung.dpd.winslow.system
com.samsung.dpd.winslow.tiffcomposer
javax.servlet
org.eclipse.equinox.http
org.eclipse.equinox.http.servlet
org.eclipse.equinox.log
org.eclipse.osgi
org.eclipse.osgi.services
org.eclipse.osgi.util
SESPControls
- Click Run
- You will see this console
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530
2 ACTIVE org.eclipse.equinox.http_1.0.100.v20061218
3 ACTIVE org.eclipse.equinox.log_1.0.100.v20060717
14 ACTIVE MyPrinterWorkspace_1.0.0
24 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605
28 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070606
29 ACTIVE org.eclipse.osgi.util_3.1.200.v20070605
31 ACTIVE javax.servlet_2.4.0.v200706111738
32 ACTIVE SESPControls_1.0.0
33 ACTIVE com.samsung.dpd.winslow.portabilitysim_0.0.0.a
34 ACTIVE com.samsung.dpd.winslow.jobmanagement_0.1.5.a
35 ACTIVE com.samsung.dpd.everest.portability_0.2.0.u1aRC2
36 ACTIVE com.samsung.dpd.winslow.system_0.1.5.a
37 ACTIVE com.samsung.dpd.everest.core_0.2.0.u2a
38 ACTIVE com.samsung.dpd.winslow.tiffcomposer_0.1.5.a
39 ACTIVE com.samsung.dpd.himalaya_0.2.0.u2a
40 ACTIVE com.samsung.dpd.winslow.doctreestream_0.1.5.a
41 ACTIVE com.samsung.dpd.winslow.store_0.1.5.a
42 ACTIVE com.samsung.dpd.winslow.scan_0.1.5.a
43 ACTIVE com.samsung.dpd.winslow.common_0.1.7.a
* Kill IIS server
http://localhost/MyPrinterWorkspace
==================================================================================================
- YahooDemo
- Copy all file of YahooDemo
- Create Plug-in
- Import YahooDemo
- Change Activator name : com.samsung.dpd.sesp.samples.yahoodemo.Activator
- - needed jar file
* should be located in package folder and link by Window > Preference > Plug-In Development > Target Platform >
Add (button) > File System > link in jar file folder
org.eclipse.equinox.http_1.0.100.v20061218.jar
org.eclipse.equinox.log_1.0.100.v20060717.jar
org.eclipse.equinox.servlet.api_1.0.0.v20060717.jar
- go to Window > Preference > Plug-In Development > Target Platform
only check
javax.servlet
org.eclipse.equinox.http
org.eclipse.equinox.http.servlet
org.eclipse.equinox.log
org.eclipse.osgi
org.eclipse.osgi.services
org.eclipse.osgi.util
- From MANIFEST.MF
- Dependencies > Imported Packages > Add
javax.servlet;version="2.4.0",
javax.servlet.http;version="2.4.0",
org.osgi.framework;version="1.3.0",
org.osgi.service.http;version="1.2.0"
- Run AS > Open Run Diagram
check all Target Platform
javax.servlet;version="2.4.0",
javax.servlet.http;version="2.4.0",
org.osgi.framework;version="1.3.0",
org.osgi.service.http;version="1.2.0"
- You will see this console
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530
2 ACTIVE org.eclipse.equinox.http_1.0.100.v20061218
3 ACTIVE org.eclipse.equinox.log_1.0.100.v20060717
24 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605
28 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070606
29 ACTIVE org.eclipse.osgi.util_3.1.200.v20070605
31 ACTIVE javax.servlet_2.4.0.v200706111738
32 ACTIVE YahooDemo
* Kill IIS server
http://localhost/main.html
- Create Plug-in
- Import copied MyPrinterWorkspace folder
- needed jar file
* should be located in package folder and link by Window > Preference > Plug-In Development > Target Platform >
Add (button) > File System > link in jar file folder
com.samsung.dpd.everest.core_0.2.0.u2a.jar
com.samsung.dpd.everest.portability_0.2.0.u1aRC2.jar
com.samsung.dpd.himalaya_0.2.0.u2a.jar
org.eclipse.equinox.http_1.0.100.v20061218.jar
org.eclipse.equinox.log_1.0.100.v20060717.jar
org.eclipse.equinox.servlet.api_1.0.0.v20060717.jar
sespcontrols.jar
com.samsung.dpd.winslow.common_0.1.7.a.jar
com.samsung.dpd.winslow.doctreestream_0.1.5.a.jar
com.samsung.dpd.winslow.jobmanagement_0.1.5.a.jar
com.samsung.dpd.winslow.portabilitysim_0.0.0.a.jar
com.samsung.dpd.winslow.scan_0.1.5.a.jar
com.samsung.dpd.winslow.store_0.1.5.a.jar
com.samsung.dpd.winslow.system_0.1.5.a.jar
com.samsung.dpd.winslow.tiffcomposer_0.1.5.a.jar
- go to Window > Preference > Plug-In Development > Target Platform
only check
com.samsung.dpd.everest.core
com.samsung.dpd.everest.portability
com.samsung.dpd.himalaya
com.samsung.dpd.winslow.common
com.samsung.dpd.winslow.doctreestream
com.samsung.dpd.winslow.jobmanagement
com.samsung.dpd.winslow.portabilitysim
com.samsung.dpd.winslow.scan
com.samsung.dpd.winslow.store
com.samsung.dpd.winslow.system
com.samsung.dpd.winslow.tiffcomposer
javax.servlet
org.eclipse.equinox.http
org.eclipse.equinox.http.servlet
org.eclipse.equinox.log
org.eclipse.osgi
org.eclipse.osgi.services
org.eclipse.osgi.util
SESPControls
- From MANIFEST.MF
- Dependencies > Imported Packages > Add
com.samsung.dpd.Controls,
com.samsung.dpd.everest.core,
com.samsung.dpd.everest.core.basics,
com.samsung.dpd.everest.core.collections,
com.samsung.dpd.everest.core.device,
com.samsung.dpd.everest.core.device.printer,
com.samsung.dpd.everest.core.device.scanner,
com.samsung.dpd.everest.core.device.store,
com.samsung.dpd.everest.core.events,
com.samsung.dpd.everest.core.imagebasics,
com.samsung.dpd.everest.core.jobmanagement,
com.samsung.dpd.everest.core.lifecycle,
com.samsung.dpd.everest.core.mfpbasics,
com.samsung.dpd.everest.core.support,
com.samsung.dpd.everest.core.systembasics,
com.samsung.dpd.everest.core.work,
com.samsung.dpd.everest.core.work.common,
com.samsung.dpd.everest.core.work.printing,
com.samsung.dpd.everest.core.work.retrieving,
com.samsung.dpd.everest.core.work.scanning,
com.samsung.dpd.everest.core.work.storing,
com.samsung.dpd.winslow.common,
javax.servlet;version="2.4.0",
javax.servlet.http;version="2.4.0",
org.osgi.framework;version="1.4.0",
org.osgi.service.http;version="1.2.0"
- Run AS > Open Run Diagram
check all Target Platform
com.samsung.dpd.everest.core
com.samsung.dpd.everest.portability
com.samsung.dpd.himalaya
com.samsung.dpd.winslow.common
com.samsung.dpd.winslow.doctreestream
com.samsung.dpd.winslow.jobmanagement
com.samsung.dpd.winslow.portabilitysim
com.samsung.dpd.winslow.scan
com.samsung.dpd.winslow.store
com.samsung.dpd.winslow.system
com.samsung.dpd.winslow.tiffcomposer
javax.servlet
org.eclipse.equinox.http
org.eclipse.equinox.http.servlet
org.eclipse.equinox.log
org.eclipse.osgi
org.eclipse.osgi.services
org.eclipse.osgi.util
SESPControls
- Click Run
- You will see this console
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530
2 ACTIVE org.eclipse.equinox.http_1.0.100.v20061218
3 ACTIVE org.eclipse.equinox.log_1.0.100.v20060717
14 ACTIVE MyPrinterWorkspace_1.0.0
24 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605
28 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070606
29 ACTIVE org.eclipse.osgi.util_3.1.200.v20070605
31 ACTIVE javax.servlet_2.4.0.v200706111738
32 ACTIVE SESPControls_1.0.0
33 ACTIVE com.samsung.dpd.winslow.portabilitysim_0.0.0.a
34 ACTIVE com.samsung.dpd.winslow.jobmanagement_0.1.5.a
35 ACTIVE com.samsung.dpd.everest.portability_0.2.0.u1aRC2
36 ACTIVE com.samsung.dpd.winslow.system_0.1.5.a
37 ACTIVE com.samsung.dpd.everest.core_0.2.0.u2a
38 ACTIVE com.samsung.dpd.winslow.tiffcomposer_0.1.5.a
39 ACTIVE com.samsung.dpd.himalaya_0.2.0.u2a
40 ACTIVE com.samsung.dpd.winslow.doctreestream_0.1.5.a
41 ACTIVE com.samsung.dpd.winslow.store_0.1.5.a
42 ACTIVE com.samsung.dpd.winslow.scan_0.1.5.a
43 ACTIVE com.samsung.dpd.winslow.common_0.1.7.a
* Kill IIS server
http://localhost/MyPrinterWorkspace
==================================================================================================
- YahooDemo
- Copy all file of YahooDemo
- Create Plug-in
- Import YahooDemo
- Change Activator name : com.samsung.dpd.sesp.samples.yahoodemo.Activator
- - needed jar file
* should be located in package folder and link by Window > Preference > Plug-In Development > Target Platform >
Add (button) > File System > link in jar file folder
org.eclipse.equinox.http_1.0.100.v20061218.jar
org.eclipse.equinox.log_1.0.100.v20060717.jar
org.eclipse.equinox.servlet.api_1.0.0.v20060717.jar
- go to Window > Preference > Plug-In Development > Target Platform
only check
javax.servlet
org.eclipse.equinox.http
org.eclipse.equinox.http.servlet
org.eclipse.equinox.log
org.eclipse.osgi
org.eclipse.osgi.services
org.eclipse.osgi.util
- From MANIFEST.MF
- Dependencies > Imported Packages > Add
javax.servlet;version="2.4.0",
javax.servlet.http;version="2.4.0",
org.osgi.framework;version="1.3.0",
org.osgi.service.http;version="1.2.0"
- Run AS > Open Run Diagram
check all Target Platform
javax.servlet;version="2.4.0",
javax.servlet.http;version="2.4.0",
org.osgi.framework;version="1.3.0",
org.osgi.service.http;version="1.2.0"
- You will see this console
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530
2 ACTIVE org.eclipse.equinox.http_1.0.100.v20061218
3 ACTIVE org.eclipse.equinox.log_1.0.100.v20060717
24 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605
28 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.v20070606
29 ACTIVE org.eclipse.osgi.util_3.1.200.v20070605
31 ACTIVE javax.servlet_2.4.0.v200706111738
32 ACTIVE YahooDemo
* Kill IIS server
http://localhost/main.html
Sunday, 22 July 2007
Basic - OSGI programming
http://neilbartlett.name/blog/osgi-articles/
http://www.eclipsezone.com/eclipse/forums/t90365.html
http://www.eclipsezone.com/eclipse/forums/t90365.html
Subscribe to:
Posts (Atom)