Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Now the jar is ready to be deployed. Drop the jar into the /WEB-INF/classes/bundles directory and it will automatically be installed when the application starts up.

Using Spring

Warning

By default Spring OSGi loads its xml config file asynchronously, which causes the OSGi plugin to fail while starting. To fix this add this line to MANIFEST.MF:

No Format

Spring-Context:*;create-asynchronously:=false

Or if using The Apache Felix maven plugin (see below for details):

Code Block
xml
xml

<Spring-Context>*;create-asynchronously:=false</Spring-Context>

If you want to use the Spring as the object factory for your actions, then follow these steps:

...