I'm just getting started with Felix and OSGI and I'm trying to get the
web service (PAX WEB) working. In particular I would like to get the
StockWatcher sample app from Google GWT running. When I start my felix
though I get the following error/messages:
*INFO * Failed to instantiate plugin
org.apache.felix.webconsole.internal.compendium.ComponentsServlet.
Reason: java.lang.NoClassDefFoundError: org.apache.felix.scr.ScrService
*INFO * Failed to instantiate plugin
org.apache.felix.webconsole.internal.compendium.ConfigManager. Reason:
java.lang.NoClassDefFoundError:
org/osgi/service/metatype/ObjectClassDefinition
*INFO * Failed to instantiate plugin
org.apache.felix.webconsole.internal.deppack.DepPackServlet. Reason:
java.lang.NoClassDefFoundError:
org/osgi/service/deploymentadmin/DeploymentException
*INFO * Failed to instantiate plugin
org.apache.felix.webconsole.internal.misc.ConfigurationRender. Reason:
java.lang.NoClassDefFoundError:
org/osgi/service/prefs/BackingStoreException
When I ps it though I get:
-> ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (1.8.0)
[ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0)
[ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.0)
[ 4] [Active ] [ 1] Apache Felix File Install (1.2.0)
[ 40] [Active ] [ 1] OPS4J Pax Web - Service (0.6.0)
[ 41] [Active ] [ 1] Apache Felix Web Management Console
(1.2.10)
[ 42] [Active ] [ 1] Apache Felix Configuration Admin Service
(1.0.10)
[ 43] [Active ] [ 1] Apache Felix Framework (1.8.1)
[ 44] [Active ] [ 1] Apache Felix Log Service (1.0.0)
[ 45] [Active ] [ 1] Apache Felix (1.8.1)
[ 46] [Active ] [ 1] Apache Felix EventAdmin (1.0.0)
I can still hit the Web Admin console though, so I don't know if there
really is a problem with PaxWeb or not
So anyways, I took that Google app, 'OSGI-fied' it based on a tutorial
at the PAX site. The manifest looks like this:
Bundle-ManifestVersion: 2
Bundle-SymbolicName: com.google.gwt.sample.stockwatcher
Bundle-Version: 1.0.0
Bundle-Name: StockWathcher
Bundle-Vendor: Me
Bundle-Copyright: This header contains the copyright specification for
this bundle.
Webapp-Context: StockWatcher
Bundle-ClassPath: WEB_INF/classes, ., gwt-servlet.jar.jar
Import-Package: javax.servlet,javax.servlet.http
When I placed it in the directory I told felix to watch I got:
java.lang.NullPointerException
at
org.apache.felix.framework.cache.JarRevision.getManifestHeader(JarRevision.java:98)
at
org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:965)
at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2123)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2026)
at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:130)
at
org.apache.felix.fileinstall.DirectoryWatcher.install(DirectoryWatcher.java:717)
at
org.apache.felix.fileinstall.DirectoryWatcher.install(DirectoryWatcher.java:625)
at
org.apache.felix.fileinstall.DirectoryWatcher.doInstalled(DirectoryWatcher.java:381)
at
org.apache.felix.fileinstall.DirectoryWatcher.run(DirectoryWatcher.java:123)
and when I tried restarting felix I got simply:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]