We are having only one of our custom bundle deployed on Karaf.

My pom.xml, feature.xml are attached for that bundle.

We also made some changes in org.apache.features.cfg & system.properties
which are also attached.

We are just placing the bundle in deploy folder while karaf is running and
org.apache.features.cfg and a bundle config file in deploy folder whenever
we are installing our bundle.

Is there any improvement on this regard on Karaf 4?

On Fri, Jun 24, 2016 at 4:36 PM, Jean-Baptiste Onofré <[email protected]>
wrote:

> That's probably the origin of the problem, depending of the dependencies
> (in term of service especially) and your bundles.
>
> I would have to take a look on your bundles and usage of the deploy folder
> to clearly identify the source of the problem.
>
> Regards
> JB
>
> On 06/24/2016 01:04 PM, Debraj Manna wrote:
>
>> Yeah we use the deploy folder.
>>
>> On Fri, Jun 24, 2016 at 4:33 PM, Jean-Baptiste Onofré <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>     Resolved state can be enough as a bundle already exports package at
>>     resolved state. Activate means the activator of the bundle has been
>>     called.
>>
>>     So, resolved state doesn't necessary mean "it's wrong".
>>
>>     It's the case with the features resolve on Karaf 4.
>>
>>     However, as you are using Karaf 3, I'm more suspecting something in
>>     the start order.
>>
>>     Do you use the deploy folder to deploy your artifacts ?
>>
>>     Regards
>>     JB
>>
>>     On 06/24/2016 01:01 PM, Debraj Manna wrote:
>>
>>         No did not see anything special in log.
>>
>>         Installed or Resolved. I have to manually login to karaf and then
>> do
>>         bundle:start to make the bundles Active
>>
>>         On Fri, Jun 24, 2016 at 4:19 PM, Jean-Baptiste Onofré
>>         <[email protected] <mailto:[email protected]>
>>         <mailto:[email protected] <mailto:[email protected]>>> wrote:
>>
>>              Hi,
>>
>>              anything special in the log ?
>>
>>              What's the status of the bundles ? Resolved ?
>>
>>              Regards
>>              JB
>>
>>
>>              On 06/22/2016 12:10 PM, Debraj Manna wrote:
>>
>>                  Hi,
>>
>>                  Sometimes on restarting Karaf some of our system
>>         bundles (e.g. -
>>                  camel-jetty) are not starting. This is not happening
>>         always. Can you
>>                  please let me know what could be the reason?
>>
>>                  I am using Karaf 3.0.5 running under Servicemix 6.1.0.
>>
>>
>>
>>              --
>>              Jean-Baptiste Onofré
>>         [email protected] <mailto:[email protected]>
>>         <mailto:[email protected] <mailto:[email protected]>>
>>         http://blog.nanthrax.net
>>              Talend - http://www.talend.com
>>
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     [email protected] <mailto:[email protected]>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
	<modelVersion>4.0.0</modelVersion>

	<groupId>com.jabong.orchestratorservice</groupId>
	<artifactId>basecomponent</artifactId>
	<version>0.0.1</version>
	<packaging>bundle</packaging>
	<name>basecomponent</name>
	<url>http://maven.apache.org</url>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<camel.version>2.16.1</camel.version>
		<jackson.version>2.7.4</jackson.version>
		<jackson.afterburner.version>2.7.1</jackson.afterburner.version>
		<runSuite>**/AllTestSuite.class</runSuite>
	</properties>

	<dependencies>
		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
			<version>1.3.1</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
			<version>${jackson.version}</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-annotations</artifactId>
			<version>${jackson.version}</version>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>${jackson.version}</version>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.module</groupId>
			<artifactId>jackson-module-afterburner</artifactId>
			<version>${jackson.afterburner.version}</version>
		</dependency>

		<dependency>
			<groupId>com.github.arnabk</groupId>
			<artifactId>java-dogstatsd-client</artifactId>
			<version>1.0.1</version>
		</dependency>
		<dependency>
			<groupId>org.json</groupId>
			<artifactId>json</artifactId>
			<version>20151123</version>
		</dependency>
		<dependency>
			<groupId>javax.xml.bind</groupId>
			<artifactId>jaxb-api</artifactId>
			<version>2.2.11</version>
		</dependency>
		<dependency>
			<groupId>org.im4java</groupId>
			<artifactId>im4java</artifactId>
			<version>1.4.0</version>
		</dependency>
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.6</version>
		</dependency>
		<dependency>
			<groupId>commons-dbcp</groupId>
			<artifactId>commons-dbcp</artifactId>
			<version>1.4</version>
		</dependency>
		<dependency>
			<groupId>net.java.dev.jna</groupId>
			<artifactId>jna</artifactId>
			<version>4.2.2</version>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-jdbc</artifactId>
			<version>${camel.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-jetty</artifactId>
			<version>${camel.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-aws</artifactId>
			<version>${camel.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-http4</artifactId>
			<version>${camel.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-core</artifactId>
			<version>${camel.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-test</artifactId>
			<version>${camel.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.github.tomakehurst</groupId>
			<artifactId>wiremock</artifactId>
			<version>1.58</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>net.javacrumbs.json-unit</groupId>
			<artifactId>json-unit</artifactId>
			<version>1.11.0</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>commons-httpclient</groupId>
			<artifactId>commons-httpclient</artifactId>
			<version>3.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.scireum</groupId>
			<artifactId>s3ninja</artifactId>
			<version>2.7</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<profiles>
		<profile>			
			<activation>
				<property>
					<name>!maven.test.skip</name>
				</property>
			</activation>

			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-surefire-plugin</artifactId>
							<version>2.19.1</version>
							<configuration>
								<includes>
									<include>${runSuite}</include>
								</includes>
								<!-- <skipTests>true</skipTests> -->
							</configuration>
						</plugin>
						<plugin>
							<artifactId>maven-compiler-plugin</artifactId>
							<version>3.3</version>
							<configuration>
								<source>1.8</source>
								<target>1.8</target>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
				<plugins>					
					<!-- Documentation at https://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html -->
					<plugin>
						<groupId>org.apache.karaf.tooling</groupId>
						<artifactId>karaf-maven-plugin</artifactId>
						<version>3.0.5</version>
						<configuration>
							<aggregateFeatures>false</aggregateFeatures>
							<includeTransitiveDependency>true</includeTransitiveDependency>
						</configuration>
						<executions>
							<execution>
								<id>generate-karaf-artifacts</id>
								<goals>
									<goal>features-generate-descriptor</goal>
									<goal>features-create-kar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.felix</groupId>
						<artifactId>maven-bundle-plugin</artifactId>
						<extensions>true</extensions>
						<version>3.0.1</version>
						<configuration>
							<instructions>
								<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
								<Bundle-Description>${project.description}</Bundle-Description>
								<Export-Package>!</Export-Package>
								<Import-Package>com.fasterxml.jackson.databind.ser,com.fasterxml.jackson.databind.deser,com.fasterxml.jackson.databind.ser.std,com.fasterxml.jackson.databind.deser.std,com.fasterxml.jackson.module.afterburner.ser,com.fasterxml.jackson.module.afterburner.deser,*</Import-Package>
							</instructions>
						</configuration>
					</plugin>
				</plugins>
				<resources>
					<resource>
						<directory>src/main/resources</directory>
						<excludes>
							<exclude>/log4j.properties</exclude>
							<exclude>**/*.cfg</exclude>
						</excludes>
					</resource>
				</resources>
			</build>

		</profile>
	</profiles>

</project>

Attachment: org.apache.karaf.features.cfg
Description: Binary data

Attachment: system.properties
Description: Binary data

Reply via email to