Re: Classloading issue with Berkley DB

2024-03-18 Thread Paul Spencer
/#_creating_bundles_for_non_osgi_third_party_dependencies https://karaf.apache.org/manual/latest/#_datasources_jdbc Paul Spencer

Classloading issue with Berkley DB

2024-03-18 Thread 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

[Studio] ApacheDS 2.0.0 LDAP Server starts and shutdowns immediately with 2.0.0-SNAPSHOT.

2024-02-24 Thread Paul Spencer
Paul Spencer

Documentation to enable password encryption for the PropertiesLoginModule does not result in encrypted passwords

2024-02-02 Thread 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

Re: Realm created via jaas:realm-add go away after karaf restart

2024-02-01 Thread 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

Realm created via jaas:realm-add go away after karaf restart

2024-01-30 Thread Paul Spencer
le 5 │ karaf │ org.apache.karaf.jaas.modules.audit.EventAdminAuditLoginModule karaf@root()> Is this bug? Paul Spencer

[jira] [Commented] (KARAF-7602) jaas:module-add fails to load org.apache.karaf.jaas.modules.properties.PropertiesLoginModule class

2024-01-30 Thread Paul Spencer (Jira)
[ 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

Re: How do I protect a OSGi JAX-RS whiteboard REST service using Basic Authentication?

2024-01-30 Thread Paul Spencer
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 "

Re: How do I protect a OSGi JAX-RS whiteboard REST service using Basic Authentication?

2024-01-30 Thread Paul Spencer
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

Re: How do I protect a OSGi JAX-RS whiteboard REST service using Basic Authentication?

2024-01-29 Thread Paul Spencer
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

Re: How do I protect a OSGi JAX-RS whiteboard REST service using Basic Authentication?

2024-01-29 Thread Paul Spencer
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

Re: How do I protect a OSGi JAX-RS whiteboard REST service using Basic Authentication?

2024-01-24 Thread Paul Spencer
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

How do I protect a OSGi JAX-RS whiteboard REST service using Basic Authentication?

2024-01-23 Thread Paul Spencer
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

Re: Karaf 4.4.5 - What is the feature or bundle to resolve javax.annotation.security version>=1.3.0 ?

2024-01-22 Thread 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

[jira] [Created] (KARAF-7802) javax.annotation.security is missing from etc/jre.properties

2024-01-22 Thread Paul Spencer (Jira)
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

Karaf 4.4.5 - What is the feature or bundle to resolve javax.annotation.security version>=1.3.0 ?

2024-01-19 Thread Paul Spencer
(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

[jira] [Created] (KARAF-7798) Documentation to add headers to the wrap deployer missing escape character

2024-01-12 Thread Paul Spencer (Jira)
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

Re: TomeEE official maven repo

2024-01-10 Thread Paul Spencer
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

Only the first LdapIdentityStoreDefinition appears to be working. Why?

2024-01-10 Thread Paul Spencer
// groupSearchBase = "ou=roles,dc=example,dc=com", // groupMemberAttribute = "uniqueMember", useFor = (ValidationType.PROVIDE_GROUPS), priority = 100) @ApplicationScoped public class RolesIdentity { } Paul Spencer

Re: Moving to Attic

2023-11-21 Thread 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

Re: Show reverse depends of a bundle on console

2023-08-23 Thread Paul Spencer
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

Re: Show reverse depends of a bundle on console

2023-08-11 Thread Paul Spencer
--no-format Disable table rendered output karaf@root()> Paul Spencer &

[jira] [Created] (KARAF-7708) Test and example of JSON configuration

2023-07-10 Thread Paul Spencer (Jira)
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

Re: How to use Jakarta Restful WebService(OSGi 8.1) ?

2023-04-12 Thread Paul Spencer
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.

Web and CDI setup failed to start bundled due to two bundles exporting the same version of javax.annotation

2023-04-02 Thread Paul Spencer
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

Re: Using Decanter log appender/collector and mail alerting fails with "javax.activation.UnsupportedDataTypeException: text/plain"

2023-03-22 Thread 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

Re: Using Decanter log appender/collector and mail alerting fails with "javax.activation.UnsupportedDataTypeException: text/plain"

2023-03-21 Thread Paul Spencer
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

Re: Using Decanter log appender/collector and mail alerting fails with "javax.activation.UnsupportedDataTypeException: text/plain"

2023-03-21 Thread Paul Spencer
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

[jira] [Updated] (KARAF-7680) "system:property --unset" is not removing the property.

2023-03-13 Thread Paul Spencer (Jira)
[ 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.  {{

[jira] [Created] (KARAF-7680) "system:property --unset" is not removing the property.

2023-03-13 Thread Paul Spencer (Jira)
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

"system:property --unset" is not removing the property.

2023-03-09 Thread Paul Spencer
foo=bar karaf@root()> system:property --unset foo bar karaf@root()> system:property | grep foo foo=bar karaf@root()> Paul Spencer

[jira] [Created] (KARAF-7673) Location of the "minimal distribution" files is not documented

2023-03-01 Thread Paul Spencer (Jira)
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

Existence of a "Minimal Distribution" is documented, but its location is not.

2023-02-27 Thread Paul Spencer
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?

2023-02-25 Thread Paul Spencer
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

Re: How to use Pax Web 8.0.16 in karaf 4.4.3?

2023-02-25 Thread Paul Spencer
│ Transition feature to pax-url-wrap karaf@root()> Paul Spencer > On Feb 25, 2023,

Re: How to use Pax Web 8.0.16 in karaf 4.4.3?

2023-02-25 Thread Paul Spencer
patibility-servlet31; type=osgi.fragment; version="[8.0.15,8.0.15]"; resolution:=man

Re: How to use Pax Web 8.0.16 in karaf 4.4.3?

2023-02-24 Thread Paul Spencer
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

How to use Pax Web 8.0.16 in karaf 4.4.3?

2023-02-24 Thread 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

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-26 Thread 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

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-25 Thread Paul Spencer
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 >

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
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

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
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; >

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
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

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
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: >

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
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

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Paul Spencer
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

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Paul Spencer
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

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Paul Spencer
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

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Paul Spencer
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

[jira] [Commented] (KARAF-7634) Adding Aries JaxRS feature duplicates features

2023-01-22 Thread Paul Spencer (Jira)
[ 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

[jira] [Created] (KARAF-7640) "schemaLocation... must have even number of URI's." in example feature.xml files

2023-01-22 Thread Paul Spencer (Jira)
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

[jira] [Created] (KARAF-7639) Some REST example features fail to install

2023-01-21 Thread Paul Spencer (Jira)
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

"schemaLocation... must have even number of URI's." in example feature.xml files

2023-01-21 Thread Paul Spencer
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

Re: Anyone using Multiple Karaf Instances Successfully?

2023-01-20 Thread 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

Re: Maven Compile Kars

2023-01-16 Thread Paul Spencer
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

Posts to user@karaf.apache.org are not appearing.

2023-01-16 Thread Paul Spencer
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?

2023-01-16 Thread Paul Spencer
Should Karaf Decanter v2.9.0 work with Karaf 4.4.3? Paul Spencer

[jira] [Created] (KARAF-7634) Adding Aries JaxRS feature duplicates features

2023-01-06 Thread Paul Spencer (Jira)
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

[jira] [Created] (KARAF-7633) HTTPS SSL configuration needs updating

2023-01-06 Thread Paul Spencer (Jira)
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

Karaf 4.4.1 and Karaf 4.4.2 Websocket example references the command http:list instead of web:servlet-list

2022-12-19 Thread Paul Spencer
│ /example-websocket/* │ HttpService │ - karaf@root()> I opened the following Jira https://issues.apache.org/jira/browse/KARAF-7626 Paul Spencer

[jira] [Created] (KARAF-7626) Websocket example references the command http:list instead of web:servlet-list

2022-12-19 Thread Paul Spencer (Jira)
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

Re: Karaf 4.4.2 bin/client -> Failed (IllegalArgumentException) to execute: Invalid UINT32 value: -1

2022-11-14 Thread Paul Spencer
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

Karaf 4.4.2 bin/client -> Failed (IllegalArgumentException) to execute: Invalid UINT32 value: -1

2022-11-14 Thread Paul Spencer
624) at java.lang.Thread.run(Thread.java:748) sparrow:apache-karaf-4.4.2 paul$ Paul Spencer

Re: Scheduled command fails with "session is closed" after client session closed.

2022-05-17 Thread 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

[jira] [Created] (KARAF-7436) Comments and order in json configuration files are not preserved

2022-05-16 Thread Paul Spencer (Jira)
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

[jira] [Updated] (KARAF-7435) Setting a configuration parameter to null throws an NPE.

2022-05-16 Thread Paul Spencer (Jira)
[ 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

[jira] [Created] (KARAF-7435) Setting a configuration parameter to null throws an NPE.

2022-05-16 Thread Paul Spencer (Jira)
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

scheduled command job fails with "java.lang.IllegalStateException: A job is already in foreground"

2022-05-16 Thread Paul Spencer
e │ Alias │ Url ───┼──┼──┼─┼───┼─ 86 │ Whiteboard$1 │ cxf-servlet │ Deployed│ │ [/*] [1] donehttp:list karaf@root()> Paul Spencer

cut/paste error in the logger definition of the Scheduler's CommandJob?

2022-05-16 Thread Paul Spencer
= LoggerFactory.getLogger(ScriptJob.class); Paul Spencer

Scheduled command fails with "session is closed" after client session closed.

2022-05-16 Thread Paul Spencer
─── foo:emailReport -r j...@example.com & │ cron(0 0 17 * * ?) Paul Spencer

How to preserve comments and property order in json configuration files?

2022-05-16 Thread 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

Setting a configuration parameter to null throws an NPE.

2022-05-16 Thread 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

Re: Karaf 4.3.6 Map in .json configuration?

2022-05-15 Thread 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

Karaf 4.3.6 Map in .json configuration?

2022-05-15 Thread Paul Spencer
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

Configuration properties ending in .target cause NullPointerException when config:update

2022-05-13 Thread 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

Re: How do I load configuration within a shell command?

2022-05-13 Thread 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

Re: How do I load configuration within a shell command?

2022-05-13 Thread Paul Spencer
") 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

Re: How do I load configuration within a shell command?

2022-05-13 Thread 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

Re: How do I load configuration within a shell command?

2022-05-13 Thread Paul Spencer
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: &

How do I load configuration within a shell command?

2022-05-12 Thread Paul Spencer
and the configurationPid attribute. What are the equivalents for shell commands, class that implement org.apache.karaf.shell.api.action.Action? Paul Spencer

[jira] [Created] (KARAF-7430) Example of updating a JDBC datasource configuration using Karaf commands.

2022-04-30 Thread Paul Spencer (Jira)
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

Re: jdbc:ds-create command and "to create the datasource definition file"?

2022-04-30 Thread Paul Spencer
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-

Example of updating a JDBC datasource configuration using Karaf commands.

2022-04-29 Thread Paul Spencer
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

jdbc:ds-create command and "to create the datasource definition file"?

2022-04-29 Thread Paul Spencer
"org.ops4j.datasource.ad014501-2db1-4455-abb9-ced214fee015" url="dbc:hsqldb:mem:." user="sa" karaf@root()>karaf@root()> Paul Spencer

RE: Static OpenSSL 3 library with FIPS

2022-03-25 Thread 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

Static OpenSSL 3 library with FIPS

2022-03-25 Thread Paul Spencer
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

Re: Updated mitigation for Log4JShell in Karaf 4.2.x and 4.3.x since setting log4j2.formatMsgNoLookups is a insufficient mitigation measure

2021-12-23 Thread Paul Spencer
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

Re: Updated mitigation for Log4JShell in Karaf 4.2.x and 4.3.x since setting log4j2.formatMsgNoLookups is a insufficient mitigation measure

2021-12-23 Thread Paul Spencer
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

Re: Updated mitigation for Log4JShell in Karaf 4.2.x and 4.3.x since setting log4j2.formatMsgNoLookups is a insufficient mitigation measure

2021-12-23 Thread Paul Spencer
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

Updated mitigation for Log4JShell in Karaf 4.2.x and 4.3.x since setting log4j2.formatMsgNoLookups is a insufficient mitigation measure

2021-12-23 Thread Paul Spencer
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

Karaf 3.0.x "Apache Log4j Remote Code Execution Vulnerability" mitigation?

2021-12-12 Thread Paul Spencer
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

Karaf 4.2.x "Apache Log4j Remote Code Execution Vulnerability" mitigation?

2021-12-12 Thread 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

Karaf 4.3.x "Apache Log4j Remote Code Execution Vulnerability" mitigation?

2021-12-12 Thread 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

Supported Java Version for Karaf 4.3.x?

2021-09-14 Thread 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

4.3.x JSON based configuration example for an OSGi bundle?

2021-09-09 Thread Paul Spencer
( ComponentContext context) { String keyValue = context.getProperties().get(“key1”); } *** * etc/foo.cfg *** key1 = value 1 key2 = value 2 Paul Spencer

Karaf online forums are not found

2021-08-05 Thread 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

[jira] [Commented] (KARAF-7113) Scheduler should ignores runnable without scheduler service properties

2021-04-19 Thread Paul Spencer (Jira)
[ 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

[jira] [Created] (KARAF-7108) Scheduler documentation fails to mention the option of Whitboard-Service configurtion a job using OSGi configuration.

2021-04-18 Thread Paul Spencer (Jira)
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

configurationPid array may cause the Scheduler to throw a ClassCastException

2021-04-18 Thread Paul Spencer
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

[jira] [Commented] (KARAF-7102) maven:repository-remove fails with NPE if ~/.m2/settings does not exist

2021-04-12 Thread Paul Spencer (Jira)
[ 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   2   3   4   5   6   7   8   9   10   >