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

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

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

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

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 &

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

"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

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

"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

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

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

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

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: 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

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

Karaf 4.2.11 - "maven:repository-remove -id central" fails with NPE. Why?

2021-04-12 Thread Paul Spencer
Executor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_282] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282] Paul Spencer

How to return HTTP Response Code 401 from call to REST service?

2021-03-01 Thread Paul Spencer
de: 500 ExchangeId: a3c911a4-028c-4db1-aebe-c5097f9bbaa5 Headers: {} Payload: http://cxf.apache.org/bindings/xformat;>http://cxf.apache.org/bindings/xformat;>org.apache.cxf.interceptor.security.AuthenticationException: Authentication failed: login failed Paul Spencer

Cave 4.2.1 - "Error downloading mvn:org.apache.cxf.karaf/cxf-karaf-commands/3.3.4" when install from custom distro on a disconnected server.

2021-01-11 Thread Paul Spencer
nds cave-repository true true false true Paul Spencer

Re: Decanter 2.6.0 - Missing service: [org.apache.karaf.decanter.alerting.service.Store] ?

2021-01-02 Thread Paul Spencer
JB, The root cause is identified in issue KARAF-6982. I have submitted a pull request to resolve the issue. decanter-appender-file and decanter-alerting are conflicting over ${karaf.data}/decanter Paul Spencer > On Jan 2, 2021, at 1:17 AM, Jean-Baptiste Onofre wrote: > > Hi Paul,

Re: Decanter 2.6.0 - Missing service: [org.apache.karaf.decanter.alerting.service.Store] ?

2021-01-01 Thread Paul Spencer
Correction, this is an issue running on a RaspberryPI. I see the same failure with Java 11 and Java 1.8. The Alerting service is running on Karaf 4.2.10, Java 1.8.0_172, and MacOS 10.14.6. Paul Spencer > On Jan 1, 2021, at 2:57 PM, Paul Spencer wrote: > > The Alerting Servi

Re: Decanter 2.6.0 - Missing service: [org.apache.karaf.decanter.alerting.service.Store] ?

2021-01-01 Thread Paul Spencer
The Alerting Service starts with Java 1.8.0_212 (OpenJDK Client VM version 25.212-b01). This is appears to be a Java 11 issue. > On Jan 1, 2021, at 1:09 PM, Paul Spencer wrote: > > Karaf 4.2.10 > Decanter 2.6.0 > JVM OpenJDK Server VM version 11.0.9.1+1-post-Ra

Decanter 2.6.0 - Missing service: [org.apache.karaf.decanter.alerting.service.Store] ?

2021-01-01 Thread Paul Spencer
s: Not an instanceof DynamicMBean or not MBean spec compliant standard MBean 12:35:57.934 INFO [features-3-thread-1] Done. 12:35:57.833 ERROR [FelixDispatchQueue] FrameworkEvent ERROR org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.karaf.decanter.alerting.store.lucene (14)) Paul Spencer

Setting the log level to DEFAULT for a logger does not remove the logger

2020-12-10 Thread Paul Spencer
─┼── ROOT│ INFO audit │ TRACE foo.bar │ org.apache.aries.spifly │ WARN org.apache.sshd │ INFO karaf@root()> *** * etc/org.ops4j.pax.logging.cfg *** log4j2.logger.foo_bar.name = foo.bar Paul Spencer

Karaf 4.2.x Logging documentation is out of date

2020-12-10 Thread Paul Spencer
.appender.rolling.strategy.type = DefaultRolloverStrategy log4j2.appender.rolling.strategy.max = 10 Should I file an issue? Paul Spencer

Re: No link to 4.2.10 on Karaf download page

2020-11-01 Thread Paul Spencer
load title will ease the frustration for those wanting to download older versions. Paul Spencer > On Nov 1, 2020, at 1:48 PM, Francois Papon > wrote: > > Hi, > > You can download old versions on the archives page: > > https://karaf.apache.org/archives.html > <ht

No link to 4.2.10 on Karaf download page

2020-11-01 Thread Paul Spencer
Where is the link to Karaf 4.2.10 on the download page, https://karaf.apache.org/download.html? I expected to each "Last Version" in the "Schedule" table under "Karaf Runtime" to be a link to the version specific distribution directory. Paul Spencer

Re: Access to @Component defined service via JNDI from Webapp using PAX-WEB?

2020-09-25 Thread Paul Spencer
JB, To close out this thread, I switched from using a list of bundles to support MyFaces that was used by the Karaf 3.0 based implementation of the application to the pax-jsf-support feature and all is working. Paul Spencer > On Sep 13, 2020, at 2:30 PM, Jean-Baptiste Onofre wrote: >

How to uniquely configure multiple instances of a bundle, including an instance specific URL?

2020-09-21 Thread Paul Spencer
with different configuration including the URL for web bundles? Where can I find examples? Paul Spencer

Re: Access to @Component defined service via JNDI from Webapp using PAX-WEB?

2020-09-13 Thread Paul Spencer
Spencer > On Sep 10, 2020, at 10:19 AM, Paul Spencer wrote: > > JB, > Keep in mind the web application, .war not .wab, correctly retrieved a > Bluetooth define service. It is the @Component defined service that was not > found. > > Is there some additional informati

Re: Access to @Component defined service via JNDI from Webapp using PAX-WEB?

2020-09-10 Thread Paul Spencer
ass serviceInterfaceClass) { try { Context ctx = new InitialContext(); return getServiceViaJndi(ctx, serviceInterfaceClass); } catch (NamingException e) { getLogger().error("Getting " + serviceInterfaceClass.getName(), e); r

Re: Access to @Component defined service via JNDI from Webapp using PAX-WEB?

2020-09-09 Thread Paul Spencer
JB, 1) I am using “new InitialContext()” as defined in the 4.17.3 of the Karaf Container Documentation. 2) The application is deployed as a WAR Paul Spencer > On Sep 9, 2020, at 12:39 PM, Jean-Baptiste Onofre wrote: > > Does your WebApplication use the InitialContextFactory f

Re: Access to @Component defined service via JNDI from Webapp using PAX-WEB?

2020-09-09 Thread Paul Spencer
ostgresql.jdbc2.optional.SimpleDataSource karaf@root()> Paul Spencer > On Sep 9, 2020, at 12:07 PM, Jean-Baptiste Onofre wrote: > > Hi Paul, > > If your component expose a service (that you can see with bundle:services for > instance), and you have also the jndi feature installed, nothing t

Access to @Component defined service via JNDI from Webapp using PAX-WEB?

2020-09-09 Thread Paul Spencer
; list | grep -i faces 230 │ Resolved │ 80 │ 5.1.0│ primefaces 240 │ Resolved │ 80 │ 2.2.12 │ Apache MyFaces JSF-2.2 Core API 242 │ Resolved │ 80 │ 2.2.12 │ Apache MyFaces JSF-2.2 Core Impl Paul Spencer

The command jdbc:ds-factories is not documented

2020-08-21 Thread Paul Spencer
e database "test" on "localhost" *** karaf@root()> jdbc:ds-create -dn "PostgreSQL JDBC Driver" -url "jdbc:postgresql://localhost:5432/test" --username testuser --password testpwd testdsn Paul Spencer

"scr --help" returns nothing even though scr command exist.

2020-07-17 Thread Paul Spencer
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_172] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_172] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172] Is this a bug? Should I create a Jira? Paul Spencer

Re: Question about @Reference Karaf Command annotation

2020-07-16 Thread Paul Spencer
Alex, I have created the following Jira. Please note the Jira describes the behavior and references this thread. You may add information regarding the suspected root cause. https://issues.apache.org/jira/browse/KARAF-6790 Paul Spencer > On Jul 16, 2020, at 8:50 AM, Alex Soto wrote: >

Re: Question about @Reference Karaf Command annotation

2020-07-15 Thread Paul Spencer
greenColorService; @Override public String getColor() { StringBuffer colors = new StringBuffer(); colors.append(redColorService.getColor()); colors.append(", "); colors.append(greenColorService.getColor());

Re: Services defined in dependency are not ignore by karaf-services-maven-plugin. Bug?

2020-07-13 Thread Paul Spencer
where ever karaf-services-maven-plugin, org.apache.karaf.shell.api.action.Action, or the BaseActivator is documented. Paul Spencer > On Jul 13, 2020, at 12:27 PM, Jean-Baptiste Onofre wrote: > > I understand now, you are mixing BaseActivator and > karaf-services-maven-plugin. > &g

Re: Services defined in dependency are not ignore by karaf-services-maven-plugin. Bug?

2020-07-13 Thread Paul Spencer
I mark foo as imported? > If foo is private to "bar", then, commands will be scanned and added. > > Regards > JB > Paul Spencer >> Le 13 juil. 2020 à 00:42, Paul Spencer a écrit : >> >> Karaf 4.2.9 >> >> I have a bundle "bar" w

Services defined in dependency are not ignore by karaf-services-maven-plugin. Bug?

2020-07-12 Thread Paul Spencer
for (Class clazz : services) { getLog().info("Service " + clazz.getCanonicalName()); packages.add(clazz.getPackage().getName()); } Paul Spencer

[WARNING] Bundle ...: Split package, multiple jars provide the same package:org/apache/karaf/util/tracker?

2020-07-11 Thread Paul Spencer
org.apache.karaf.util org.apache.karaf.shell org.apache.karaf.shell.core How should resolve the warning? Paul Spencer

  1   2   3   >