Hi there,
I'm trying to register resources using the HttpService (pax-web
implementation), but when I access those resources, I get a 404.
I used the chapter Building an application with custom HttpContext with
Apache Karaf in Apache Karaf Cookbook as a template and registered a
shared
Hi there,
we are using Karaf 3.0.1 and the default authentication with encrypted
passwords for the console. According to the manual (and our own
observations) the password in users.properties becomes encrypted when a
client connects to the console for the first time.
If you start Karaf using
Seems to be an issue of the Aries Blueprint implementation. To me it seems
that the reference to the service (A1 or A2) is set when the component (X)
is created. It only takes those services into account which exist at that
moment. If later on another service with a higher ranking is added, the
Hi Achim,
I checked the release notes of Karaf. According to them, Aries Blueprint was
updated in 3.0.3 to 1.4.2. I would really like to update to this version.
Unfortunately some of our legacy libraries are incompatible with the updates
of the JPA libraries in 3.0.3. :-(
Regards
Jochen
--
Hi Christian,
I opened an issue, thanks for your help:
https://issues.apache.org/jira/browse/ARIES-1314
Regards
Jochen
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-3-0-1-does-not-consider-service-ranking-set-by-Blueprint-tp4039991p4040043.html
Sent from the Karaf
Hi there,
we are using Karaf 3.0.1. I want to deploy two bundles providing the same
service with different service rankings. The rankings are set using
Blueprint.
I have the following scenario:
Bundle X uses the service defined by API Bundle A.
Bundle A1 implements A and has a service ranking
Hi there,
we are currently using Karaf 3.0.1 and plan to install ModeShape 4.0.0.Final
as Java Content Repository into Karaf. We also like to use the WebDAV
interface of ModeShape. The interface depends on Servlet 3.1. Are there
plans for the Karaf war feature to upgrade to Servlet 3.1 in the
Thanks JB. Do you already have a time window when Karaf 4.0 final will be
released?
Regards
Jochen
--
View this message in context:
http://karaf.922171.n3.nabble.com/Servlet-3-1-support-tp4036176p4036178.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Hi,
I'm also interested in this topic. We have a data source which is configured
using the OSGi Configuration Admin. The data source is used by another
bundle to install SQL Scripts during startup of other bundles using the OSGi
Extender pattern.
Unfortunately the config admin service does not
Hi JB,
we create a custom distribution. The custom distribution already contains
the config file in the etc folder, so it is not provisioned using features.
Is there a difference between these two solutions?
Regards
Jochen
--
View this message in context:
Hi,
@Christian: Thanks for the link. I'll take a look at it.
@JB: Would be a nice enhancement to blueprint-cm and help us a lot.
Regards
Jochen
--
View this message in context:
http://karaf.922171.n3.nabble.com/Mandatory-Configuration-from-configAdmin-tp4031442p4035868.html
Sent from the
Hi there,
I like to set up a PostgreSQL data source in Karaf. In the Karaf-Tutorial a
org.postgresql.ds.PGPoolingDataSource is used (see
https://github.com/cschneider/Karaf-Tutorial/blob/master/db/datasource/datasource-postgres.xml).
On the other hand PostgreSQL recommends to not use the pooled
Hi JB,
when I try to use the generic data source, I get the following exception
from blueprint:
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
find a matching constructor on class
org.apache.commons.pool.impl.GenericObjectPool for arguments [null, 8,
Hi JB,
I checked with
la | grep -i DBCP
and
la | grep -i Pool
and only one DBCP and Pool bundle is installed. I also checked with
find-class GenericObjectPool and the class is only found in the DBCP, Pool
and my data source bundle. DBCP and my data source load the class from the
Pool bundle.
Hi there,
I solved the problem by replacing WHEN_EXHAUSTED_BLOCK with 1. It seems
that Blueprint cannot resolve WHEN_EXHAUSTED_BLOCK to the constant defined
by GenericObjectPool.
Regards
Jochen
--
View this message in context:
Hi,
I only tried using etc/org.ops4j.pax.url.mvn.cfg from 3.0.2-SNAPSHOT.
Stuarts answers solved the problem (thanks a lot for the detailed reply!).
Regards
Jochen
--
View this message in context:
Hi,
I observed the following behavior of Karaf: When our Karaf custom
distribution is installed on a system which has no ~/.m2 directory yet, it
creates the directory and puts the contents of KARAF_HOME/system there.
These bundles are then installed.
Now, if I install a newer version of our
Hi,
I thought I read something about a bug concerning downloading bundles which
are already present in the issue tracking system here:
https://issues.apache.org/jira/browse/KARAF/
But I'm not sure.
Regards
Jochen
--
View this message in context:
Hi,
you have to add http://svn.apache.org/repos/asf/servicemix/m2-repo/ as
repository. Depending on how your infrastructure is set up, there are
different solutions. E.g. we use a company nexus as proxy. In our case the
repository has to be added to our company nexus as proxied repository.
Hi,
I want to start a discussion about how logging mails in Karaf can be enabled
and what's the best way to do this.
Situation:
Our software is a web application. We use Karaf as a custom distribution.
Fatal errors in our software should not only be logged, but also sent to
developers per
Hi Achim,
adding the mail API to endorsed lib is not my prefered solution. And yes, it
is hacky. :-)
The activation API is part of org.apache.karaf.features/framework/3.0.1/kar.
I tried your suggestion before, but it didn't solved the problem of
javax.activation.UnsupportedDataTypeException:
Also one addition:
The problem of activation and mail API in OSGi is not a new one, see e.g.
here: http://thecarlhall.wordpress.com/2009/10/27/javamail-in-osgi/ or here:
http://nostacktrace.com/dev/2010/6/24/sending-multipart-mail-in-an-osgi-container.html
Simply adding activation and mail
Hi anshuman.osc,
I had the same problems before. The best way to generate a custom feature is
to set up another maven module which builds the xml and deploys it into the
maven repository. Then your custom distribution can fetch your feature.xml
from maven.
Overwriting configuration files can be
Thanks JB.
Perhaps this might help you: I found out that
javax.activation.MailcapCommandMap.createDataContentHandler(String) did not
-as I expected - load the handlers from the sun packages but instead from
org.apache.geronimo.mail.handlers which is provided by the
Hi,
when I commit a change to a module it triggers the build of a Karaf custom
distribution. This custom distribution is then used to run integration tests
with PaxExam using the KarafDistributionConfigurationOption.
The new snapshot version of my module is located in the system directory of
Hi Achim,
if PaxExam uses the Maven repo, I wonder why it does not use the latest
version but instead the one from yesterday. Is it because PaxExam does not
force an update and the local repository does not contain the latest
version?
Actually when I look into the local repo directory of the
Hi Achim,
thanks a lot. At last I managed to force PaxExam to use the latest snapshot.
We use a Maven mirror to route all requests to our company repo. PaxExam
used the mirror ID (alias) to get the dependencies. On the other hand our
Jenkins deployed the latests snapshots under ID
Hi,
I like to implement the following build queue in one of our projects:
1. A developer commits a change for a module.
2. The module is build by Jenkins and module tests are executed.
3. Jenkins builds a Karaf custom distribution containing the new module.
4. Jenkins executes integration tests
Thanks for your quick reply Achim and JB. I think solution 2 with Achim's
enhancements will do the job for us.
Regards
Jochen
--
View this message in context:
http://karaf.922171.n3.nabble.com/Triggering-a-Jenkins-build-when-dependency-defined-in-feature-xml-is-updated-tp4034123p4034126.html
Hi Vassilis
I don't know the API of the ConverterService class, but this is an OSGi
issue. If you want to load a resource from a bundle you have to access it
via the bundle classloader. E.g. the class org.osgi.framework.Bundle has the
method getResource(String) to fetch a resource from the bundle
Update: In order to work properly the following property has also to be added
to etc/system.properties:
openejb.deployments.classpath.filter.descriptors = true
Regards,
Jochen
--
View this message in context:
Maybe the problem in OpenEJB 4.5.2 can be solved using the workaround
described here:
http://karaf.922171.n3.nabble.com/Unsupported-URL-scheme-using-bundle-watch-td4033596.html#a4033708
Regards,
Jochen
Mansour Al Akeel wrote
I have been trying to get openEJB support to work with Karaf, but no
Hi,
I thought responsibility for the OSGi version of OpenEJB moved to the Karaf
team (mentioned here: https://issues.apache.org/jira/browse/OPENEJB-2086).
Perhaps it should be described on the OpenEJB page at the Karaf manual?
Regards,
Jochen
--
View this message in context:
Thank you Achim and JB. I created an issue and added some further
configuration information I stumbled upon:
https://issues.apache.org/jira/browse/KARAF-3066
Regards,
Jochen
--
View this message in context:
The cause of this error is method
org.apache.openejb.config.DeploymentsResolver.loadFromClasspath(...) in
Release 4.5.2 of OpenEJB. Here the URLs of all JARs loaded by the given
ClassLoader are collected. Then the system JARs get removed from the list.
Normally also the OpenEJB JARs should be
Thanks JB, solution 2 fits perfectly.
For other users having the same problem: I created a wrapper bundle
containing the blueprint data source definition as suggested. The blueprint
file also holds configuration parameters as described here:
Hello,
I try to create a custom distribution. My distribution contains a data
source and a bundle containing EJB and JPA classes referencing the data
source. The data source is deployed as Blueprint XML file in the deploy
folder. The EJB/JPA bundle is part of a custom feature which is set as
Hi,
I had the same problem and I solved it by configuring the
maven-resources-plugin to copy the resources into the target/assembly
directory.
Example:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-resources-plugin/artifactId
executions
execution
38 matches
Mail list logo