/#_creating_bundles_for_non_osgi_third_party_dependencies
https://karaf.apache.org/manual/latest/#_datasources_jdbc
Paul Spencer
We're using BerkelyDB within our application.
I did not look too hard for an OSGI module for it, it wasn't readily apparent,
so I just hamfisted one by taking their jar and using bnd to create a bundle
from it.
But there's a curious issue.
We have code like this:
final DatabaseConfig
Paul Spencer
rs.properties
encryption.enabled = true
encryption.prefix = ENC(
encryption.suffix = )
encryption.algorithm = MD5
encryption.encoding = hexadecimal
***
* etc/foo.users.properties
***
foo = ENC(37B51D194A7513E45B56F6524F2D51F2)
Paul Spencer
Ciprian,
Thank you. I found the following supporting documentation and was able to
create a new realms.
https://karaf.apache.org/manual/latest/#_available_realm_and_login_modules
Paul Spencer
On 2024/01/31 15:15:32 Ciprian Ciubotariu wrote:
> I had solved this by deploying a bluepr
le
5 │ karaf │
org.apache.karaf.jaas.modules.audit.EventAdminAuditLoginModule
karaf@root()>
Is this bug?
Paul Spencer
[
https://issues.apache.org/jira/browse/KARAF-7602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17812455#comment-17812455
]
Paul Spencer commented on KARAF-7602:
-
I am also seeing this error in Karaf 4.4.5.
JVM
Java
Steinar,
Apologies for misspelling your name.
I have not opened an issue related to the dependencies.
Paul Spencer
> On Jan 30, 2024, at 11:19 AM, Steinar Bang wrote:
>
>>>>>> Paul Spencer :
>
>> Steiner,
>
> (ps last "e" is an "
Steiner,
I installed the feature shiro-core and had to add had to install the following
bundles.
mvn:commons-collections/commons-collections/3.2.2
mvn:commons-beanutils/commons-beanutils/1.9.4
mvn:org.apache.shiro/shiro-config-core/1.13.0
Paul Spencer
> On Jan 30, 2024, at 8:48
in "Jersey REST
API Security Example".
Paul Spencer
> On Jan 29, 2024, at 12:00 PM, Ciprian Ciubotariu wrote:
>
> The way I have done it in the past is to set the security context with a
> custom implementation on the authe
t leverage the OSGi JAX-RS whiteboard
REST service and the security services within Karaf as time becomes available.
Paul Spencer
> On Jan 24, 2024, at 5:08 PM, Paul Spencer wrote:
>
> Steinar,
> This helps!
>
> Paul Spencer
>
> On 2024/01/24 12:38:27 Steina
Steinar,
This helps!
Paul Spencer
On 2024/01/24 12:38:27 Steinar Bang wrote:
> >>>>> Paul Spencer :
>
> > Karaf 4.4.5
> > How do I protect a OSGi JAX-RS whiteboard REST service using Basic
> > Authentication?
>
> Apache Shiro can do basic auth (amo
rvice = MessageLog.class)
@JaxrsResource
@JaxrsApplicationSelect("(osgi.jaxrs.name=myRestApi)")
public class MessageLog {
@RolesAllowed("ADMIN")
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/")
public Response getMessageLog() {
// Only users with the Role "ADMIN" can execute method.
...
}
}
Paul Spencer
rsion="1.3", \
javax.annotation.processing;version="1.0", \
...
***
* Patached etc/jre.properties
***
jre-9= \
...
javax.annotation;version="1.3", \
javax.annotation.security;version="1.3", \
javax.annotation.processing;version="1.0", \
...
I have reported
Paul Spencer created KARAF-7802:
---
Summary: javax.annotation.security is missing from
etc/jre.properties
Key: KARAF-7802
URL: https://issues.apache.org/jira/browse/KARAF-7802
Project: Karaf
(version>=2.0.0)))
Unresolved requirements: [[foo.bar.msg-rest [162](R 162.1)]
osgi.wiring.package;
(&(osgi.wiring.package=javax.annotation.security)(version>=1.3.0)(!(version>=2.0.0)))]
I suspect this because I have not installed a required feature or bundle. What
is the the required feature or bundle?
Paul Spencer
Paul Spencer created KARAF-7798:
---
Summary: Documentation to add headers to the wrap deployer missing
escape character
Key: KARAF-7798
URL: https://issues.apache.org/jira/browse/KARAF-7798
Project
repos" question.
Paul Spencer
On 2024/01/08 12:53:17 COURTAULT Francois wrote:
> THALES GROUP LIMITED DISTRIBUTION to email recipients
>
> Hello everyone,
>
> Could someone confirm or not to me that the official TomEE maven repos is
> https://repo.maven.apache.org/ma
//
groupSearchBase = "ou=roles,dc=example,dc=com", //
groupMemberAttribute = "uniqueMember",
useFor = (ValidationType.PROVIDE_GROUPS),
priority = 100)
@ApplicationScoped
public class RolesIdentity {
}
Paul Spencer
Terence,
As one who has been using Archiva for years, primarily because it just works
without requiring much maintenance, having a list of migration options from
those with more subject area knowledge would be very helpful.
Paul Spencer
> On Nov 19, 2023, at 9:47 PM, Terence Kent wr
hem
karaf@internal()>
Paul Spencer
> On Aug 22, 2023, at 1:00 AM, Jean-Baptiste Onofré wrote:
>
> Hi,
>
> It sounds like a change in exports command betwee
--no-format
Disable table rendered output
karaf@root()>
Paul Spencer
&
Paul Spencer created KARAF-7708:
---
Summary: Test and example of JSON configuration
Key: KARAF-7708
URL: https://issues.apache.org/jira/browse/KARAF-7708
Project: Karaf
Issue Type: Improvement
axrs
jackson-jaxrs
pax-web-http-whiteboard
pax-web-karaf
aries-jax-rs-whiteboard
aries-jax-rs-whiteboard-jackson
mvn:com.foo.rest/foo-restapp/${restapp.version}
foo-restapp
mvn:com.foo.rest/foo-msg-rest/${bugdata.msg.
mport:
(&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0)))
|
export: osgi.wiring.package: javax.annotation
org.apache.felix.framework [org.apache.felix.framework [0](R 0)] Unresolved
requirements: [[org.apache.aries.cdi.extension.servlet.owb [109](R 109.0)]
osgi.wiring.package;
(&(osgi.wiring.package=org.apache.webbeans.config)(version>=2.0.0)(!(version>=3.0.0)))]
karaf@root()>
Paul Spencer
outside of the feature
***
feature:install scr
bundle:install mvn:com.sun.activation/jakarta.activation/1.2.1
bundle:install mvn:com.sun.mail/jakarta.mail/1.6.7
bundle:install --start
mvn:org.apache.karaf.decanter.alerting/org.apache.karaf.decanter.alerting.email/2.10.0
Paul Spencer
> On Mar 22, 2
Bert,
You can test alerts with Decanter 2.9.0 on Karaf 4.3.x in the interim.
Since it is very easy to create an email storm, I suggest using a tool like
Greenmail, https://greenmail-mail-test.github.io/greenmail/#deploy_standalone,
as an email server for testing.
Paul Spencer
> On Mar
JB,
I am using JavaMail 1.6.7 in karaf 4.3.x and used this question to test email
in Karaf 4.4.3. As a result I have reproduced this issue. In attempt to
upgrade EmailAlerter to Jakarta Mail 2.1.1 with an Eclipse Angus
implementation, I found a bundled dependency issue and filed the following
[
https://issues.apache.org/jira/browse/KARAF-7680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Spencer updated KARAF-7680:
Description:
The command "system:property --unset" is not removing the property.
{{
Paul Spencer created KARAF-7680:
---
Summary: "system:property --unset" is not removing the property.
Key: KARAF-7680
URL: https://issues.apache.org/jira/browse/KARAF-7680
Project: Karaf
foo=bar
karaf@root()> system:property --unset foo
bar
karaf@root()> system:property | grep foo
foo=bar
karaf@root()>
Paul Spencer
Paul Spencer created KARAF-7673:
---
Summary: Location of the "minimal distribution" files is not
documented
Key: KARAF-7673
URL: https://issues.apache.org/jira/browse/KARAF-7673
Proj
he integrity of the files" section of the
download page[2].
I do not have a suggestion on how to document the location of the "minimal
distribution" files, but it is needed.
Should I open a JIRA?
Paul Spencer
[1]
https://karaf.apache.org/manual/latest/#_using_apa
Should standard-n.n.n-feature.xml reference the minimum version of pax-web
instead of the exact version?
I ask this because the current implementation prevent upgrading pax-web without
manually editing the distribution or creating a custom distribution.
Paul Spencer
│ Transition feature to pax-url-wrap
karaf@root()>
Paul Spencer
> On Feb 25, 2023,
patibility-servlet31;
type=osgi.fragment; version="[8.0.15,8.0.15]"; resolution:=man
tures you install will come from 8.0.16.
>
> regards
> Grzegoz Grzybek
>
> pt., 24 lut 2023 o 20:48 Paul Spencer napisał(a):
> I see that Pax Web version 8.0.16 has been released. How do I utilize the
> version 8.0.16 in Karaf 4.4.3?
>
> Paul Spencer
I see that Pax Web version 8.0.16 has been released. How do I utilize the
version 8.0.16 in Karaf 4.4.3?
Paul Spencer
-example/karaf-rest-example-whiteboard
- Issue related to feature.xml for the REST Example
https://issues.apache.org/jira/browse/KARAF-7639
Paul Spencer
> On Jan 26, 2023, at 5:02 AM, Jaap Gordijn wrote:
>
> Hi Paul,
>
> I have put the Rest service in a separate bundle but tha
Jaap,
I suggest placing the PersonService in a separate bundle.
Paul Spencer
> On Jan 25, 2023, at 3:57 PM, Jaap Gordijn wrote:
>
> Paul,
>
> The Rest class and the PersonService are in the same bundle.
>
> Do you know if there are any examples out there that show
>
oot>
My assumption is the requirement is missing, meaning the requirement in the
REST bundle is not defined correctly.
Paul Spencer
> On Jan 23, 2023, at 5:44 PM, Jaap Gordijn wrote:
>
> Paul,
>
> - scr is installed and started
> - the person bundle started
> - diag
installed, if not install it.
Paul Spencer
> On Jan 23, 2023, at 3:38 PM, Jaap Gordijn wrote:
>
> Paul,
>
> I have now minimized the code that I call via REST:
>
> @Reference(scope=ReferenceScope.PROTOTYPE_REQUIRED)
> private PersonService personService;
>
Jaap,
Something is missing. The @Referenece should prevent the component from
becoming Active when a PeopleService does not exist.
Look in Karaf.log for clues.
Paul Spencer
> On Jan 23, 2023, at 3:14 PM, Jaap Gordijn wrote:
>
> Paul,
>
> I tried also the @Refer
Jaap,
In the code I posted, there was not constructor. I moved the injection of
personService to an @Reference annotated field. The @Activator annotation is
for a method, which you may not need based on your example.
Paul Spencer
> On Jan 23, 2023, at 2:30 PM, Jaap Gordijn wrote:
>
Jaap,
Your @Activate annotation is incorrect.
Try the following.
…
public class Rest() {
@Reference
private PersonService personService;
@Activate
public void activate(Map properties) {
...
}
}
Paul Spencer
> On Jan 23, 2023, at 12:40 PM, Jaap Gordijn wr
return set;
> }
>
> }
>
> Now the endpoint resolves.
>
> But DS dependency injection does not work.
> Is there something needed to switch this on?
>
> -- Jaap
>
>> -Original Message-
>> From: Paul Spencer
>> Sent: maandag 23 ja
Jaap,
Have you created the Jaxrs application?
@Component(service=Application.class)
@JaxrsName("MyApplication")
@JaxrsApplicationBase("/example")
public class MyApp extends Application{
}
Paul Spencer
> On Jan 23, 2023, at 7:39 AM, Jaap Gordijn wrote:
>
> P
Jaap,
JaxrsApplicationBase is used with JaxrsApplicationSelect to is required to use
a non-default context, so your results confirm the default context is working.
Paul Spencer
> On Jan 23, 2023, at 9:08 AM, Jaap Gordijn wrote:
>
> Paul,
>
> I did the following to create
Jaap,
1) You can use the web: commands to verify the expected context exists
2) Review karaf.log to verify the the bundle startup and post relevant errors
3) I use the following features:
jackson
pax-web-http-whiteboard
aries-jax-rs-whiteboard
aries-jax-rs-whiteboard-jackson
Paul Spencer
[
https://issues.apache.org/jira/browse/KARAF-7634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17679659#comment-17679659
]
Paul Spencer commented on KARAF-7634:
-
This issue appears to have been resolved in 4.4.3.
> Add
Paul Spencer created KARAF-7640:
---
Summary: "schemaLocation... must have even number of URI's." in
example feature.xml files
Key: KARAF-7640
URL: https://issues.apache.org/jira/browse/KARAF-7640
Paul Spencer created KARAF-7639:
---
Summary: Some REST example features fail to install
Key: KARAF-7639
URL: https://issues.apache.org/jira/browse/KARAF-7639
Project: Karaf
Issue Type: Bug
rs to resolve
the issue error.
Working tag:
http://karaf.apache.org/xmlns/features/v1.4.0;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.4.0
http://karaf.apache.org/xmlns/features/v1.4.0”>
Shall I file a JIRA?
Paul Spencer
Paul,
I know creating and starting multiple instance of Karaf via the instance
command works in 4.4.3 and 4.3.9. Including the "errors" in your post would be
most helpful.
Paul Spencer
> On Jan 20, 2023, at 12:37 PM, Paul Fraser wrote:
>
> Hi,
>
> In trying to
Paul,
Although I have not generated a KAR with an Maven recover build, I suspect you
will need to add dependencies to the KAR pom to control the build order.
See https://maven.apache.org/guides/mini/guide-multiple-modules.html
Paul Spencer
> On Jan 15, 2023, at 4:42 PM, Paul Fraser wr
cribed this list using a
different email address.
How do I get this issue resolved?
Paul Spencer
Should Karaf Decanter v2.9.0 work with Karaf 4.4.3?
Paul Spencer
Paul Spencer created KARAF-7634:
---
Summary: Adding Aries JaxRS feature duplicates features
Key: KARAF-7634
URL: https://issues.apache.org/jira/browse/KARAF-7634
Project: Karaf
Issue Type
Paul Spencer created KARAF-7633:
---
Summary: HTTPS SSL configuration needs updating
Key: KARAF-7633
URL: https://issues.apache.org/jira/browse/KARAF-7633
Project: Karaf
Issue Type: Documentation
│
/example-websocket/* │ HttpService │ -
karaf@root()>
I opened the following Jira https://issues.apache.org/jira/browse/KARAF-7626
Paul Spencer
Paul Spencer created KARAF-7626:
---
Summary: Websocket example references the command http:list
instead of web:servlet-list
Key: KARAF-7626
URL: https://issues.apache.org/jira/browse/KARAF-7626
Project
Just found https://issues.apache.org/jira/browse/KARAF-7607, so this is a known
bug.
Paul Spencer
On 2022/11/14 15:53:03 Paul Spencer wrote:
> Karaf version 4.4.2
> Java Virtual MachineJava HotSpot(TM) 64-Bit Server VM version
> 25.172-b11
&g
624)
at java.lang.Thread.run(Thread.java:748)
sparrow:apache-karaf-4.4.2 paul$
Paul Spencer
is a cron job that
launches bin/client with the desired command.
Paul Spencer
> On May 17, 2022, at 2:20 AM, Jean-Baptiste Onofré wrote:
>
> Hi Paul,
>
> if your command uses some session resources (like stream), it's normal
> as the session is closed when you quit the sh
Paul Spencer created KARAF-7436:
---
Summary: Comments and order in json configuration files are not
preserved
Key: KARAF-7436
URL: https://issues.apache.org/jira/browse/KARAF-7436
Project: Karaf
[
https://issues.apache.org/jira/browse/KARAF-7435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Spencer updated KARAF-7435:
Description:
Setting a configuration parameter to null throws a NullPointerException
Paul Spencer created KARAF-7435:
---
Summary: Setting a configuration parameter to null throws an NPE.
Key: KARAF-7435
URL: https://issues.apache.org/jira/browse/KARAF-7435
Project: Karaf
Issue
e │ Alias │ Url
───┼──┼──┼─┼───┼─
86 │ Whiteboard$1 │ cxf-servlet │ Deployed│ │ [/*]
[1] donehttp:list
karaf@root()>
Paul Spencer
=
LoggerFactory.getLogger(ScriptJob.class);
Paul Spencer
───
foo:emailReport -r j...@example.com & │ cron(0 0 17 * * ?)
Paul Spencer
t;:{
"a":1,
"b":"two"
}
}
***
* foo.json after config:property-list --pid foo
***
{
"an_int_array":[
2,
3,
4,
5
],
"complex":"{\"a\":1,\"b\":\"two\"}",
"port":300
}
Paul Spencer
java:365)
[!/:3.7.4]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
[!/:3.7.4]
***
* etc/foo.json
***
{
"myNullValue":null
}
Paul Spencer
Never mind.
I found
https://osgi.org/specification/osgi.cmpn/7.0.0/service.configurator.html which
matches the observed behavior.
Paul Spencer
> On May 15, 2022, at 3:18 PM, Paul Spencer wrote:
>
> Karaf 4.3.6
>
> I would like to include a Map in a json configuration f
quot;{\"a\":1,\"b\":\"two\"}"
}
***
* Snippet to display the property type
***
@Activate
protected void activate(final Map configProperties) throws
Exception {
for (Entry entry : configProperties.entrySet()) {
logger.info("Key : {}, Value {}", entry.getKey(),
entry.getValue().getClass().getCanonicalName());
}
}
Paul Spencer
utor.java:624)
~[?:1.8.0_172]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
Is this a bug?
Paul Spencer
!= null && configs.length == 1) {
String companyName = (String)
configs[0].getProperties().get("companyName");
System.out.println("Company name = " + companyName);
}
}
}
Paul Spencer
> On May 13, 2022, at 3:23 PM, Jean-Baptist
")
public class InfoCommand implements Action {
@Override
public Object execute(){
// How to populate company name for customerInfo configuration PID?
String companyName = ??
// Print company info
System.out.println("Company name = " + companyName);
}
Paul Spencer
João,
I would prefer not to add component bundles whose sole purpose is to pass
configuration values from pid.cfg to a command via @Reference.
Paul Spencer
> On May 13, 2022, at 9:48 AM, João Assunção
> wrote:
>
> Why not have the components implement the required operations
JB,
The command needs to use values stored in pid.cfg files, like instance specific
CustomerName, just like other components.
Paul Spencer
> On May 13, 2022, at 1:46 AM, Jean-Baptiste Onofré wrote:
>
> Hi Paul,
>
> Not sure I understand exactly the request, but you can do:
&
and the configurationPid attribute. What are the equivalents for shell
commands, class that implement org.apache.karaf.shell.api.action.Action?
Paul Spencer
Paul Spencer created KARAF-7430:
---
Summary: Example of updating a JDBC datasource configuration using
Karaf commands.
Key: KARAF-7430
URL: https://issues.apache.org/jira/browse/KARAF-7430
Project: Karaf
ec
karaf@root()>
Paul Spencer
> On Apr 30, 2022, at 12:24 AM, Jean-Baptiste Onofré wrote:
>
> Hi,
>
> The documentation is correct if we have pax-
Karaf 4.3.6
The example below demonstrates how to update the configuration of a JDBC
datasource using Karaf commands. I was unable to find a concise procedure in
the Karaf documentation and wanted to document a procedure for myself and
others.
1) Create the datasource "myDb", in this case
"org.ops4j.datasource.ad014501-2db1-4455-abb9-ced214fee015"
url="dbc:hsqldb:mem:."
user="sa"
karaf@root()>karaf@root()>
Paul Spencer
%3cm...@openssl.org%3e>>
To: openssl-users@openssl.org<mailto:openssl-users@openssl.org>
Subject: [EXTERNAL] Re: Static OpenSSL 3 library with FIPS
Date: Fri, 25 Mar 2022 20:22:02 +
On 25/03/2022 18:33, Paul Spencer wrote:
Q: Is it possible to have a static (.a) OpenSSL 3 libra
Q: Is it possible to have a static (.a) OpenSSL 3 library with FIPS support?
This was possible with OpenSSL 1.0.2 and the FIPS 2.0.x module (and special
linking in the Makefile). However, with SSL3, if I go
Configure no-module enable-fips
then it silently disables FIPS. Is there any way to do
compliance and deployment processes.
Thank you and the Karaf team for rapidly releasing updated versions of Karaf to
address the CVE. The updated Karaf will be will incorporated into our products
and pushed through the release and deployment process as quickly as possible.
Paul Spencer
> On
e/logging/log4j/core/lookup/JndiLookup.class
This looks like a reasonable short term workaround that is relatively easy to
implement. Relative to the Karaf and its services, do you see any potential
problems with the workaround?
Paul Spencer
> On Dec 23, 2021, at 12:17 PM, JB Onofré wrote
JB,
As stated earlier, upgrading Karaf is not an option in the short term.
Paul Spencer
> On Dec 23, 2021, at 11:21 AM, JB Onofré wrote:
>
> Upgrade to Karaf 4.2.13.
>
>> Le 23 déc. 2021 à 17:02, Paul Spencer a écrit :
>>
>> In light of the updated mitigatio
ax-logging-log4j2-1.11.6.jar
| grep JndiLookup
org/apache/logging/log4j/core/lookup/JndiLookup.class
[user@localhost karaf]$
Paul Spencer
[1] https://logging.apache.org/log4j/2.x/security.html#CVE-2021-44228
For users of Karaf 3.0.x that uses Pax Logging version 1.8.x, what is the
recommended mitigation for "Apache Log4j Remote Code Execution Vulnerability",
CVE-2021-44228?
Paul Spencer
For users of Karaf 4.2.x, what is the recommended mitigation for "Apache Log4j
Remote Code Execution Vulnerability", CVE-2021-44228?
Paul Spencer
For users of Karaf 4.3.x, what is the recommended mitigation for "Apache Log4j
Remote Code Execution Vulnerability", CVE-2021-44228?
Paul Spencer
using Java
1.8.
Is Karaf 4.3.x supported under Java 1.8?
If not, why is the required Java version in pom.xml 1.8?
Paul Spencer
( ComponentContext context) {
String keyValue = context.getProperties().get(“key1”);
}
***
* etc/foo.cfg
***
key1 = value 1
key2 = value 2
Paul Spencer
The online forums links on the Karaf Community page,
http://karaf.apache.org/community.html, are no longer working.
User Forum: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Dev Forum: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Have the forums moved?
Paul Spencer
[
https://issues.apache.org/jira/browse/KARAF-7113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17324722#comment-17324722
]
Paul Spencer commented on KARAF-7113:
-
The bug is in the calculation of the SetviceIdentifier when
Paul Spencer created KARAF-7108:
---
Summary: Scheduler documentation fails to mention the option of
Whitboard-Service configurtion a job using OSGi configuration.
Key: KARAF-7108
URL: https://issues.apache.org/jira
case, the Scheduler is failing to set a Service Identifier when
there is no scheduler.name configuration and the component's configurationPid
is an array.
Is this a bug?
Paul Spencer
[
https://issues.apache.org/jira/browse/KARAF-7102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17319716#comment-17319716
]
Paul Spencer commented on KARAF-7102:
-
[~jbonofre] I found the duplicated issued. It is KARAF-7101
1 - 100 of 2142 matches
Mail list logo