What is framework.properties? Are these configuration properties for the
framework? If so, what's in it?
-> richard
On 5/27/10 7:54, Miroslav Šulc wrote:
hello,
i am very new to osgi so maybe my issue is something trivial, but i did
not find solution for it while googling.
i have basic webapp that works fine if i install there felix osgi log
implementation and other felix bundles. i decided to try to code my own
implementation of osgi log service. i think i did all correctly, but
when i try to start my webapp with my implementation of log service, i
get this error:
ERROR: Error starting
jndi:/localhost/webapp/WEB-INF/bundles/commons-logservice-osgi-1.0-SNAPSHOT.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
cz.startnet.commons-logservice-osgi [2]: package;
(&(package=org.osgi.framework)(version>=1.5.0)))
org.osgi.framework.BundleException: Unresolved constraint in bundle
cz.startnet.commons-logservice-osgi [2]: package;
(&(package=org.osgi.framework)(version>=1.5.0))
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3299)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)
manifest of commons-logservice-osgi contains this (and ofc other lines):
Export-Package: cz.startnet.commons.org.osgi.service.log,org.osgi.serv
ice.log;uses:="org.osgi.framework";version="1.3"
Import-Package: cz.startnet.commons.org.osgi.service.log,org.osgi.fram
ework;version="1.5",org.osgi.service.log;version="1.3"
manifest was generated by maven-bundle-plugin.
this is structure of my webapp:
target/
|-- bundles
| |-- commons-logservice-osgi-1.0-SNAPSHOT.jar
| |-- org.apache.felix.http.bridge-2.0.4.jar
| `-- org.apache.felix.webconsole-3.0.0.jar
|-- classes
| `-- cz
| `-- startnet
| `-- webapp
| |-- FrameworkService.class
| |-- ProvisionActivator.class
| `-- StartupListener.class
|-- felix-cache
| |-- bundle0
| | `-- bundle.id
| |-- bundle1
| | |-- bundle.id
| | |-- bundle.lastmodified
| | |-- bundle.location
| | |-- bundle.startlevel
| | |-- bundle.state
| | `-- version0.0
| | |-- bundle.jar
| | |-- bundle.jar-embedded
| | | |-- commons-fileupload-1.1.1.jar
| | | |-- commons-io-1.4.jar
| | | `-- json-20070829.jar
| | `-- revision.location
| |-- bundle2
| | |-- bundle.id
| | |-- bundle.lastmodified
| | |-- bundle.location
| | |-- bundle.startlevel
| | |-- bundle.state
| | `-- version0.0
| | |-- bundle.jar
| | `-- revision.location
| `-- bundle3
| |-- bundle.id
| |-- bundle.lastmodified
| |-- bundle.location
| |-- bundle.startlevel
| |-- bundle.state
| `-- version0.0
| |-- bundle.jar
| `-- revision.location
|-- maven-archiver
| `-- pom.properties
|-- war
| `-- work
| `-- webapp-cache.xml
|-- webapp
| |-- META-INF
| | `-- context.xml
| `-- WEB-INF
| |-- bundles
| | |-- commons-logservice-osgi-1.0-SNAPSHOT.jar
| | |-- org.apache.felix.http.bridge-2.0.4.jar
| | `-- org.apache.felix.webconsole-3.0.0.jar
| |-- classes
| | `-- cz
| | `-- startnet
| | `-- webapp
| | |-- FrameworkService.class
| | |-- ProvisionActivator.class
| | `-- StartupListener.class
| |-- framework.properties
| |-- lib
| | |-- org.apache.felix.framework-2.0.5.jar
| | |-- org.apache.felix.http.proxy-2.0.4.jar
| | |-- org.osgi.compendium-4.2.0.jar
| | `-- org.osgi.core-4.2.0.jar
| `-- web.xml
`-- webapp.war
26 directories, 47 files
anyone knows what i am doing wrong that commons-logservice-osgi cannot
be started? thx for any hints.
Miroslav
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org