Menu
  • HOME
  • TAGS

Can I deploy a fab bundle on any OSGI-compliant container/application server?

Tag: osgi,web-deployment,fuseesb,jbossfuse

I am currently trying to deploy my camel app as a FAB bundle in the Fuse ESB container. I understand that I can install Fab(Fabric-bundle) as a feature on OSGI containers like Karaf or felix and deploy the bundle. I want to know if this feature is available on all OSGI containers as well as other application servers like IBM Websphere(Websphere supports OSGI) or will this tie me up to the Fuse ecosystem.

Will deploying as a WAR or an OSGI bundle be a better approach as the goal is to support as many ESB Containers/Application Servers as possible.

Best How To :

No, this is a specialty of Fuse, for this it'll only work on the FUSE containers. Even Vanilla Karaf doesn't understand FAB (unless it's a standard Karaf feature, with just another name to it)

For usage of Karaf Featurs outside of Karaf you'd need to add the feature resolver and services of Karaf to the other OSGi containers first. Never tried that but might be possible.

Why does bnd figures my bundle REQUIRES optional services (*, 0..n, ReferenceCardinality.MULTIPLE)?

java,osgi,bnd,bndtools

Since it was a bug which has been fixed, and not a question with a possible answer, i'm closing it.

Host Four ASP.Net Projects in IIS as single direcory(maintain more projects in same url)

asp.net,iis,hosting,web-deployment

Good afternoon Ramesh! If I understand your question correctly you currently have 3 separate web roots and you want to use these as separate web applications that will be served to users based on geography in some way. You also want to maintain individual web configuration files for each as...

db:migrate (PostgreSQL) fails on Rails deployment with Capistrano

ruby-on-rails,centos,web-deployment

Your user "me" does not have permissions to connect to your database. Permissions are defined in Postgres' pg_hba.conf. I haven't used CentOS, but from what I can gather, you should be able to find that file at /var/lib/pgsql/<your Postgres version>/data. Open the config file in your text editor (you might...

When OSGi ServiceTracker modifiedService() method is actually invoked by the Framework?

java,osgi

The modifiedService method is called when the properties of the service are modified.

How to register an org.apache.aries.blueprint.Interceptor in OSGi Karaf?

java,apache,osgi,interceptor,karaf

You can only add blueprint interceptors in namespace handlers not completely outside the bundle. For an example of implementing a namespace see blueprint-authz. As you can see in the example you will have to introduce a simple element that the user has to add to his xml. This seems to...

Third party OSGi library dependency conflict

eclipse-plugin,osgi

Unfortunately not. You will have to change the jar to add the correct meta data. You should also report this issue at openarchitectureware. So they can produce correct artifacts for newer versions.

Play Framework 2.3.x (Java) distribution with Ebean

java,web-deployment,playframework-2.3,ebean

Use the applyEvolutions as a param during starting the app (preferebly write shell script) like: ./my-project-name -DapplyEvolutions.default=true ...

PAX-CDI change log level

osgi,cdi,pax

How about setting the right log level in your logger. If your using pax exam add the required logback or pax - logging bundles to your environment. If used in plain OSGi make sure you have a log framework installed. I would suggest pax - logging it's proven to work....

How to deploy solution from Visual Studio with multiple projects to Azure

azure,visual-studio-2013,asp.net-mvc-5,repository-pattern,web-deployment

Turns out something was wrong with my repository pattern and unit of work i redid the patterns again from scratch and it works

How to configure user bundles so that they can be autostarted with higher priority - hence earlier than others?

java,maven,osgi,equinox

You were right. Start level in OSGi is defined by the @2 you put in your config.ini file. The default (by default) is a start level of 4. It seems that your problem is more related to a directory path problem to access the bundle rather than the load order...

What does HTTP 2 mean for Web Developers

php,security,ssl,web-deployment

The changes in HTTP/2.0 over HTTP/1.1 are mostly relevant if your application streams large amounts of data to many simultaneous users. Is there any special functions that I will have to do to produce a secure connection to my server or all do we need to do is redirect all...

CSS Icons are working locally in the app, but are not showing on Heroku?

php,css,cakephp,heroku,web-deployment

As I've check in the site's code, you are using HTML Kickstart Toolkit. The Icons that you are looking for belongs to another plugin called font-awesome. See if all the files in the css and fonts are accessible and mapped correctly. I've noticed when I check in the browser's developer...

Deploye two wars with different domain name but same context-path in same jboss-4.0.3

tomcat,jboss,web-deployment,contextpath

I have added another host vhost2 to server.xml inside folder ${jboss-home}server\default\deploy\jbossweb-tomcat55.sar folder as follows: <Server> <Service name="jboss.web" className="org.jboss.web.tomcat.tc5.StandardService"> <Connector port="8080" address="${jboss.bind.address}" maxThreads="250" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" enableLookups="false" redirectPort="443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"/> <Connector protocol="HTTP/1.1"...

How to read an internal file in a web project

java,servlets,war,web-deployment,dom4j

getResourceAsStream() method searches for resources with classpath as root. I suppose in your case 'testfolder' is source folder. I you would have your 1.properties in 'testfolder/mypath/1.properties' then you need to specify getResourceAsStream("mypath/1.properties")

calculate the day of my Birtday [closed]

php,web-deployment

Here this code might need some tweaking but it should work. And here is a link of how I figured it out: http://php.net/manual/en/function.date.php //create a date of John $birth_date = mktime(0,0,0,1,6,1991); //determine if John's birthday has passed this year if (date("m",$birth_date) > date("m") && (date("d",$birth_date) > date("d"))){ $year = date("Y");...

Manage paths in R Shiny?

r,shiny,web-deployment

For tidiness I keep my source files in a folder called "files" alongside ui.r and server.r. Since the working directory for a shiny app is the folder where ui.r and server.r are kept you can use source("files/script.r").

MySQL Connector in OSGi Environment (Gradle): NoClassDefFoundError

java,mysql,intellij-idea,osgi,apache-felix

oh my gosh PRAISE THE SUN, I got it working now. I don't know if it's done this way or if there is better way but this is how I have done it: EDIT: If you download the mysql-connector-java-5.1.35-bin.jar it should work out of the box, since it is already...

MVC web.config compilation debug=true - a manual change needed?

asp.net-mvc,web-config,web-deployment

Preferred would be to publish your web-site (different to F5 or drag and drop) so to update\transform the web.config ... Disable debug mode Depends on build configuration rather than destination environment, the debug attribute is for the Release build specifically when you typically want debugging disabled regardless of which environment...

OSGi bundle (State - Active) (Spring - Started)

spring,osgi,karaf

If you want to program this yourself then you can do the same as the karaf bundle service in the SpringStateService. You can also simply leverage the BundleStateService. You need to watch for all such services and use the one that returns "Spring DM" in getName()....

OSGi: service binding without lifecycle management

service,osgi,components,declarative-services

Solution: use ServiceTracker (as suggested by Neil Bartlett) Note: if you want to see the reason for the downvote please see Neil's answer and our back-and-forth in its comments. In the end I've solved it using ServiceTracker and a static registry (MyServiceRegistry), as shown below. public class Activator implements BundleActivator...

AWS SDK in OSGi causing “Unable to resolve/Missing requirement” errors

java,eclipse,amazon-web-services,osgi

I finally figured out how to add the JRE packages that were missing. Inside the Bndtools Run Descriptor, I clicked on Source and added the following: -runsystempackages: \ org.w3c.dom.html,\org.w3c.dom.ranges,\org.w3c.dom.traversal Now my OSGi framework launches and runs the Test class in the OP without error! I originally added only the org.w3c.dom.html,...

What is difference between versions of eclipse like juno, kepler etc.? Which version to choose for web development?

eclipse,eclipse-plugin,web-deployment

Juno, indigo, Galileo are friendly names for release versions of Eclipse platform: Galileo is 3.5 Indigo is 3.7 Juno is 4.2 Luna is 4.4 Eclipse providers "prepackaged" distributions for your specific needs - http://www.eclipse.org/downloads/. For example http://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr2 is for PHP developers. I am not sure what specific web development you...

Set a bundle start level programatically on embedded Apache Felix 5

osgi,bundle

I guess you have a Framework instance if you use embedded Felix. In this case I think the following could work: Bundle bundle = framework.getBundleContext().installBundle(location); BundleStartLevel bundleStartLevel = bundle.adapt(BundleStartLevel.class); bundleStartLevel.setStartLevel(xxx); ...

Using an external java library in OSGI bundle

java,eclipse,osgi,dependency-management,osgi-bundle

The enocean library seems to be an OSGi bundle. So you should add it to your target platform and use Import-Package in your own bundle to access the packages you need.

How to go to the current breakpoint in Chrome console

javascript,google-chrome,web-deployment

You can use the call stack portion to go to the current location the debugger is stopped at by clicking the top item in the call stack. Edit: I would post an image but I don't have the appropriate rep to do so......

How to test java server without deployment?

java,webserver,client-server,server,web-deployment

You can use Apache Tomcat or Jboss(Wildfly) or any other application server. I think wamp or lamp has its own tomcat server you can use it to deploy java application.

Deployment with Rake Causing Image Permission Errors (600)

ruby,rake,web-deployment,file-permissions

Rake isn't really your problem here. Rake doesn't know anything about uploading files or setting permissions; it just runs the commands as defined in the task. The actual file upload is happening via rsync. According to the rsync man page, you should be able to use the option -p (AKA...

JBoss REST WS application doesn't work when deployed as WAR file but works when expanded to a folder

web-services,jboss,war,web-deployment,resteasy

We finally found the solution. It's pretty stupid so I want to post it to prevent others from losing their time... We have found that there was a difference in the naming. The name of the unpacked WAR file was not just Engine.war as I stated in my question (I...

Java and telnet - java.net.SocketException: Broken pipe

java,osgi,telnet

You should not close the stream as soon as you sent the command as in this case the server cannot answer and throw the exception. You should read the stream of the socket until it is closed by the server. It will be closed as soon as the remote shell...

Publish Llightswith Web app locally

visual-studio-2013,web-deployment,visual-studio-lightswitch,setup-deployment

(1) The missing link is IIS! Go to Control Panel -> Programs and Features -> Turn Windows Features on or off-> find 'Internet Information Services' (IIS) and install it. (There are many options, if unsure install everything except FTP Server) I'd recommend watching a few tutorials about IIS to get...

Python/Flask deployment without pip

python,deployment,flask,web-deployment

Assuming your build machine is binary-compatible with the target, or you don't need any compiled extensions, you can use pip wheel to compile you project and all its dependencies to wheels, copy those files to the server, and pip install from the wheel directory only. # on build machine cd...

tomcat: deploying a webapp which is accessed via browser without context root name

tomcat,web-applications,web-deployment,contextroot

Re-name the directory from mywebapp to ROOT (case matters, even on a case-insensitive filesystem). Also, don't put your <Context> element in server.xml. Instead, put it into your web application under META-INF/context.xml....

How to connect to osgi framework (felix)

java,osgi,apache-felix

Felix itself does not listen on any port. You need to install a bundle (or set of bundles) that offers the functionality that you need: That opens a port and accepts commands on some protocol. There are several micro-projects like that. One that could work for you is Apache Felix...

OSGi bundle not started : missing requirement osgi.wiring.package; > &(osgi.wiring.package=org.apache.felix.dm)

java,eclipse,osgi,apache-felix,bndtools

Your agenda.service.simple bundle is looking for a bundle that exports a version of org.apache.felix.dm between 3.0.0 and 4.0.0, but it is only finding the 4.0.1 version that the Apache Felix Dependency Manager exports. Typically this would be caused by compiling against a different version of felix than you are running...

Getting ClassNotFound for PaxExam Option class when running test

java,osgi,classpath,pax-exam

The problem indeed seemed to be that the class was referencing via import another class that imported Pax classes. To illustrate the imports: class A <-- class B <-- Pax The problem was that class B was not importing the Pax Exam classes in the Bundle manifest. So while Pax...

OSGi - should I create service tracker for every bundle?

java,osgi,apache-felix

Each bundle that uses a service will need its own ServiceTracker. The ServiceTracker will use the bundle's context to find and bind to services. You do not want to use the context of another bundle to track to services for your bundle since many things will not work properly such...

how to use maven bundle plugin to exclude package out of bundle

osgi,pom.xml,exclude,maven-bundle-plugin

I have made it works. Basically, we need to use a combination between and . Tell maven bundle plugin to not export this package and this package is not a private package --> that means we dont need to keep this package in the bundle <Export-Package>!com.xxx.yyyy.common</Export-Package> <Private-Package>!com.xxx.yyyy.common</Private-Package> ...

Change context-root inside WAR file

java,weblogic,web-deployment

Yes you can deploy the same war file multiple times and yes you can change the context root. You will want to do something like the following if you cannot rebuild the war file yourself. Unzip the war file (jar xvf myfile.war) This isn't entirely necessary but it will help...

CDI+OSGI: bundle packages scope

java,osgi,cdi,weld,pax

If you don't change your system design, all you can do is to export thirdpackage from B and to import it into A. To achieve better encapsulation, you could factor out a service interface IClass2 implemented by Class2, make this class an @OsgiServiceProvider and use @Inject @OsgiService private IClass2 class2;...

JPA and Apache Aries: persistence unit unresolved dependency

java,jpa,osgi,blueprint-osgi,aries

The problem was due to a fistful of missing bundles in my runtime. To solve the problem it was enough to look at the blog sample project within the Apache Aries Samples and replicate that runtime in my bnd file. The bundles I added are the following: org.apache.aries.transaction.wrappers org.apache.aries.jpa.container org.apache.aries.jpa.container.context...

How can I work on files on my server and keep them in sync?

linux,debian,vmware,web-deployment

Besides version controlling you can achieve it with sshfs. It is basically like mounting a remote directory in your local system. More info: http://en.wikipedia.org/wiki/SSHFS https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh...

Mark OSGI Event As Handled

java,osgi

No, this is not the intention of the Event Admin service. Every handler is supposed to receive the same event; this is why the content of the event is immutable.

How can I install postgresqljdbc to work in Karaf OSGi?

osgi,karaf

Just tested with Karaf 4.0.0.M2: OSGi compendium exports org.osgi.service.jdbc __ __ ____ / //_/____ __________ _/ __/ / ,< / __ `/ ___/ __ `/ /_ / /| |/ /_/ / / / /_/ / __/ /_/ |_|\__,_/_/ \__,_/_/ Apache Karaf (4.0.0.M2) Hit '<tab>' for a list of available commands...

Is there a pre-packed vanilla Apache Felix installation with Jetty 9?

jetty,osgi,bundle

If you just take a look at the Apache Karaf project it's a OSGi Container based on Felix/Equinox and brings Jetty along with Pax-Web as service Layer. The most benefit of this server is that you just don't need to care much about all those infrastructure bundles and just unpack...

How can I use Equinox Weaving with bndtools

osgi,aspectj,equinox,load-time-weaving,bndtools

An working source-code example can be found here on GitHub Generally the instructions here are also valid for usage with bndtools. Add the required bundles -runbundles: \ org.eclipse.equinox.weaving.aspectj,\ org.aspectj.runtime,\ org.aspectj.weaver Make sure that the org.eclipse.equinox.weaving.hook is co-located -runpath: org.eclipse.equinox.weaving.hook And the you need to provide the following runproperties inside the...

Trouble with publishing simple .html site through FileZilla

html,deployment,web-deployment

Buttons don't work the way you're expecting them to inside anchors. If you just want a simple link to the indexEng.html page, you just need to specify the anchor: <a href="indexEng.html">This is the link text</a> You can style the link to look like a button using CSS....

Dynamically wire OSGi Services by configuration properties

java,osgi,bndtools

DS always puts all configuration information as service properties if it registers a service for a Component. You should do the same in your A and B ManagedServiceFactory so the services will be searchable. On the other hand, if you specify a property for your reference with the ".target" suffix,...

show Asp.net website to client without having domain or web hosting

asp.net,web,web-deployment

You can try azure free websites. Other than that, you can host the website on you own computer and give your client your ip address (you may have to play around with port forwarding and windows firewall)....

Eclipse/OSGi: How to control the file-name created via an exported plugin (jar)

java,eclipse,eclipse-plugin,osgi

Qualifier is in the MANIFEST.MF file in the Version Tag. Remove it there.

Eclipse OSGI unsatisfied constraint

java,eclipse,maven,osgi

The maven bundle plugin looks into the manifests of the bundles you depend on to determine the package versions. it finds that you use the package org.osgi.framework and that felix framework 5.0.0 exports this package with version 1.8.0. So it creates an import range from this version until excluding the...