springsource-dm-server

Adding a ServiceListener with Spring DM

I am wondering if it possible to do the equivalent of public void start(BundleContext context) { String filter = "filter for my specific service"; context.addServiceListener(new MyServiceListener(), filter); } with Spring DM. I have found reference material for adding listeners for lifecycle management. But this relates t...

Pax-import-bundle and Spring DM bundles

Hi, I'm following the examples from Modular Java but I'm having trouble with chapter 6 and adding the Spring DM modules to my project. I run: pax-import-bundle -g org.springframework.osgi -a spring-osgi-extender -v 1.2 -- -DwidenScope -DimportTransitive When running pax-provision the Spring DM bundles are not resolved. I get complaint...

Spring ApplicationContextShutdownBean entries in log

My SpringSource dm Server log is full of lines like the following: com.springsource.server.kernel.dm.ApplicationContextShutdownBean < void com.springsource.server.kernel.dm.ApplicationContextShutdownBean.onApplicationEvent(ApplicationEvent) making it hard to spot interesting log events. How can I turn these log entries off? ...

SpringSource dm Server occastionally fails to unpack valid ZIP file

When deploying my project to SpringSource dm Server, every once in a while a JAR fails to deploy with the following message: /mnt/myproject/springsource/work/com.springsource.server.deployer/packed/my.project.0.1.10.M.jar' cannot be unpacked. java.util.zip.ZipException: error in opening zip file There are 5 .war files in the project....

Can't find service because OSGi bundle isn't activated

I'm having a problem discovering services that are provided by some OSGi bundles that are not being activated. Let me describe the situation: Bundle A defines interface X Bundles B, C, and D provide services that implement interface X These bundles' services are registered via Spring DM, so they are only created when the bundle is ac...

OSGI + Spring-DM cross-bundle dependency deadlock

As the title suggests, I'm having problems with OSGI + Spring DM. In my project design, i have a bundle A that requires a service svB and exports service svA. Bundle B requires svA and exports svB (among other things, of course). This seems to be causing a deadlock, as it appears both bundles are waiting for the other to go online. Is t...

HTTP Status 503 - Servlet action is currently unavailable

I am using spring source dm server version 2.0.0. I developed one application in spring/struts/hibernate. When I am running my application in spring dm server with http://localhost:8080/PatniTEMgt-v3/ it gives me error like: HTTP Status 503 - Servlet action is currently unavailable type: Status report message: Servlet action is curre...

Integrate Eclipse RAP and OSGI/Spring-DM plugins, using Maven for build

The background I have a project containing my domain model and persistence code (created using Spring-ROO). I've changed this into an OSGi bundle, and build & deploy it using Maven (via PAX Construct scripts). This bundle deploys nicely to Equinox, and I can access the various services,etc. I also have a Eclipse RAP plugin/bundle from w...

Maven + SSDM Build and Runtime Environment Automation

Preface: My Company, like most, has several run-time environments and several release versions which themselves are composed of different versions of various jars. For example, let us consider release versions 1.1, 1.2, and 1.3 of Software X, which may be deployed to a developer computer, testing, or production. Software-x-1.1 is it...

Using Struts with SpringSource dm server gives Http Status 503 error

Hi, I developed an enterprise application using spring, struts and hibernate, now I want to transfer it to work with OSGi dm server. I found a book "Pro SpringSource dm server" where the author has explained a way to migrate WAR to OSGi bundles. I successfully migrated the application given in book. The first step of migration says th...

Configure trace for SpringServer dm 2

According to the Spring documentation, By default, the dm Server trace file is called $SERVER_HOME/serviceability/logs/dm-server/log_i.log ... The index i varies from 1 to 4, on a rolling basis, as each log file exceeds 10Mb. I'm aware that the default trace file name can be changed in server.config. Is it possible to c...

Can not find Driver when using generic database bundle

I have a project that is build up from several OSGi bundles. One of them is a generic Database bundle that defines a DataSource that can be used throughout the project. The spring bean definition of this service is: <osgi:service interface="javax.sql.DataSource"> <bean class="org.postgresql.ds.PGPoolingDataSource"> <property...

ActiveMQ + OSGi XML xBean configuration problem

Hi folks, I've been having problems configuring an ActiveMQ broker through an xBean-parsed external XML file. At this point, ANY help, tips, pointers, hints or even cheering-up are appreciated. Here's my issue: I'm trying to use an external .xml file to configure a broker. I have the following code in my spring bundle context: <bean i...

Spring WS Osgi samples

We are currently researching OSGI at work and I need to provide a proof of concept on its use with spring dm and spring-ws in the appropriate application server(tomcat / jetty).Does anyone have a example or a tutorial or any links that can help in my research? I have for the past dew days been looking for some samples on how to implemen...

Using JAXB inside a Confluence Plugin

I have a Confluence plugin I am working on that contains a series of classes that use JAXB. When the plugin runs I get the following runtime-exception: [INFO] [talledLocalContainer] javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found [INFO] [talledLocalContainer] - with linked exception: [INFO] [talledL...

How to get Spring Dynamic Modules 2.x to work on Apache Felix Karaf?

We started using Apache Felix Karaf for a project, and make use of Blueprint Services. Now, I would like to use Spring Dynamic Modules in order to have access to advanced DI functionality and testing features. The problem is that I haven't been able to figure out how to get Spring DM 2.x running on Felix. The spring and spring-dm featu...

deploying osgi war bundle

Hi, I have deployed a standard war file as an osgi bundle into equinox using bnd to create a war bundle. Whilst it deploys ok and I can run the app, I cannot see any images or css files. I have deployed catalina-start as an osgi bundle and am using spring-web-extender as the bridge. The image/css files are located at the root of the ...