[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2024-01-08 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17804461#comment-17804461
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1881814441

   @jbonofre Awesome, thanks! I got backed up over the holidays and never had a 
chance to look further but I was going down the same path (although not as 
in-depth as what you ended up doing) before I set it aside. 




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.5.0, 4.4.5
>
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2024-01-03 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17802245#comment-17802245
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

jbonofre commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1875618334

   Superseded by #1814 




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2024-01-03 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17802215#comment-17802215
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

jbonofre closed pull request #1804: KARAF-6210: extract core config commands to 
its own bundle
URL: https://github.com/apache/karaf/pull/1804




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2024-01-03 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17802214#comment-17802214
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

jbonofre commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1875530587

   @RangerRick I found other issue with your bundles: the import required impl 
package which is private, it should not export utils, etc. I propose to close 
this one and do a clean new one.




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-24 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17800197#comment-17800197
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1868553682

   Yeah I got stuck working on other things before the holidays, I realized 
that as soon as I saw the build failures. Was gonna take another look in the 
new year but if it's a quick fix I'd appreciate it.




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-23 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17800136#comment-17800136
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

jbonofre commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1868439374

   @RangerRick your change on the feature doesn't validate. It should be using 
conditional. If you don't mind, I will do the change/fix for you.




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796871#comment-17796871
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856367671

   > So as far as my understanding goes, we want to structure this just as 
features 

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796861#comment-17796861
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

jbonofre commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856341404

   @RangerRick that's why I was suspected.
   
   @rovarga possible, I will take a new look
   




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796860#comment-17796860
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

rovarga commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856339643

   I mean this bit: 
https://github.com/apache/karaf/blob/7761d9be81e0fa5f26882842666cff72b5d2a257/assemblies/features/standard/src/main/feature/feature.xml#L125-L157
   




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796859#comment-17796859
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856336936

   Also now that I try a fresh build, I find it's failing because there's some 
introspection from commands into `org.apache.karaf.config.core.impl` so maybe 
this needs a bit more refactoring than I'd hoped.
   
   I'll play with this a bit and get back to you...




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796858#comment-17796858
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

rovarga commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856334665

   So as far as my understanding goes, we want to structure this just as 
features 

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796857#comment-17796857
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856332047

   @rovarga Ooh, yes! I have noticed that when the `KARAF-6210` issue happens, 
trying to do `config:edit` gets eaten and `scr:config` is the only config 
command available in my shell.




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796856#comment-17796856
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

rovarga commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856329801

   > @jbonofre Ah, hrm, realizing that `org.apache.karaf.config.command` 
doesn't get pulled in by the standard featureset, since command.core is 
specified as a framework/startup bundle. What would be the correct place to add 
it to make sure it shows up properly? Somewhere in the framework feature file?
   
   I wonder whether 
[KARAF-7775](https://issues.apache.org/jira/browse/KARAF-7775) is part of the 
picture here




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796855#comment-17796855
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856328319

   erp, used to my internal workflow, I should probably not be force-pushing 
test changes here, sorry about that :)




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796854#comment-17796854
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856325273

   > @RangerRick I just wonder if the root cause of the problem is really the 
shell in config. It sounds more like a race condition for me. So, this is not a 
fix but more a workaround imho.
   
   @jbonofre I'm really not sure. It is definitely a race condition, but it's 
not clear what the "right" answer, a bunch of this stuff is so intertwined. 
I've been fighting this for a couple of weeks.
   
   We have a fun thing where we implement our own config impl, so we're running 
into this as a part of updating our Karaf version. I suspect we're more likely 
than most to hit issues because our Karaf distribution looks less "standard".




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796853#comment-17796853
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856323144

   @jbonofre Ah, hrm, realizing that `org.apache.karaf.config.command` doesn't 
get pulled in by the standard featureset, since command.core is specified as a 
framework/startup bundle.
   What would be the correct place to add it to make sure it shows up properly? 
Somewhere in the framework feature file?




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796848#comment-17796848
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

jbonofre commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856311691

   @RangerRick I just wonder if the root cause of the problem is really the 
shell in config. It sounds more like a race condition for me. So, this is not a 
fix but more a workaround imho.




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796844#comment-17796844
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856278673

   I'm testing this out with a patch against 4.3.10 right now (which is what we 
still currently rely on, haven't figured out why we're having issues moving to 
4.4 yet)




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread Jira


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796842#comment-17796842
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

[~rangerrick] are we sure the issue actually comes from config bundle ? It 
looks more "generic".

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796840#comment-17796840
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

jbonofre commented on PR #1804:
URL: https://github.com/apache/karaf/pull/1804#issuecomment-1856267125

   @RangerRick Thanks ! That's a good idea, good catch. I will review and test 
the standard feature (four eyes verification :) ). I will probably include this 
in Karaf 4.5.0 and 4.4.5.




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread Benjamin Reed (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796837#comment-17796837
 ] 

Benjamin Reed commented on KARAF-6210:
--

I've made [a PR|https://github.com/apache/karaf/pull/1804] that splits the 
commands out into a separate module so that the reliance on the shell APIs can 
be removed from core, if you'd like to give it a try.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796836#comment-17796836
 ] 

ASF GitHub Bot commented on KARAF-6210:
---

RangerRick opened a new pull request, #1804:
URL: https://github.com/apache/karaf/pull/1804

   This PR performs a simple split of `org.apache.karaf.config.core` into 
`org.apache.karaf.config.core` and `org.apache.karaf.config.command` which 
resolves the problem of relying on the shell api in the main config core.




> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-12-14 Thread Benjamin Reed (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17796823#comment-17796823
 ] 

Benjamin Reed commented on KARAF-6210:
--

Just noting that I'm seeing this issue in our builds of our internal Karaf 
distribution, introduced with syncing to Karaf 4.3.10.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-02-10 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17687370#comment-17687370
 ] 

Amichai Rothman commented on KARAF-6210:


Is that related to the solution to this issue? I happens with various other 
bundles unrelated to config...

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-02-10 Thread Jira


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17687362#comment-17687362
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

The reason why we changed the config.core bundle start level is to avoid race 
condition at startup regarding configuration loading.

config.core should not depend on shell.api (we should have another bundle 
dedicate to commands).

I will fix that.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2, 4.4.3
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-02-07 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17685706#comment-17685706
 ] 

Amichai Rothman commented on KARAF-6210:


And the other bundles that get the same exception, like bundle.core or kar or 
others? Are you changing the shell bundle itself to run before all other karaf 
bundles that contain commands?

I have a feeling this may be a viable workaround, but still wont' solve the 
inherent circular dependency of how the mechanism currently works, and the 
issue may return if ever the shell bundle gets refreshed for any reason or 
such... what do you think?

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-02-06 Thread Anthony Wood (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17684982#comment-17684982
 ] 

Anthony Wood commented on KARAF-6210:
-

I have found this to be due to a bundle start-level inversion:
 * framework assembly, "framework" feature contains:
{{mvn:org.apache.karaf.config/org.apache.karaf.config.core/${project.version}}}
 * standard assembly, "shell" feature contains:
{{mvn:org.apache.karaf.shell/org.apache.karaf.shell.core/${project.version}}}

The config.core bundle depends on {{org.apache.karaf.shell.api.action}} from 
the shell.core bundle, yet has a start-level of 30 > 11.  When I manually set 
shell.core's level to 11, the ClassNotFoundException disappears on startup. 

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-01-20 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17679216#comment-17679216
 ] 

Amichai Rothman commented on KARAF-6210:


I'm not sure what you mean... I recreated again with a breakpoint in the same 
place, this time the org.apache.karaf.kar.core bundle hit the exception first. 
In the debugger if I look at the lower stack frames (the ones around 
FeaturesServiceImpl) and poke around at the parameters and local variables, it 
seems like it's processing everything - e.g. a 'requirements' field in a 
DeploymentRequest object has an entry 'root' and 39 features under it, which I 
think is everything. In the loop that starts the bundles, the toStart 
collection has 300 bundles in it, which again, I think is everything that's 
installed. So I'm not sure if it's a refresh, or just startup... what 
specifically should I be looking for?

btw in 4.3.4 the exact stacktrace is:

java.lang.NoClassDefFoundError: org/apache/karaf/shell/api/action/Action
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:283)
        at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:716)
        at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:639)
        at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:607)
        at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:587)
        at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:566)
        at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:335)
        at 
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:397)
        at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:500)
        at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416)
        at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at 
org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:622)
        at 
org.apache.karaf.shell.impl.action.osgi.CommandExtension.start(CommandExtension.java:100)
        at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
        at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488)
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420)
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
        at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)
        at 
org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:949)
        at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
        at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
        at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:229)
        at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:138)
        at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:130)
        at 
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:217)
        at org.eclipse.osgi.container.Module.publishEvent(Module.java:499)
        at org.eclipse.osgi.container.Module.start(Module.java:486)
        at 
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445)
        at 
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:464)
        at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165)
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1160)
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1041)
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069)
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004)
        at 

[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-01-20 Thread Jira


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17679184#comment-17679184
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

[~amichai] any chance you know the features causing the refresh ?

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-01-19 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17678603#comment-17678603
 ] 

Amichai Rothman commented on KARAF-6210:


Having another look at this, I put a breakpoint in CommandExtension.start() 
where it catches ClassNotFoundException.

Indeed, debugger kicked in for bundle org.apache.karaf.bundle.core_4.4.3 [290]. 
It finds the karaf commands header, finds the clauses, finds all the command 
class names from the wiring, but  bundle.loadClass(className) throws this 
exception - java.lang.NoClassDefFoundError: 
org/apache/karaf/shell/api/action/Action.

>From looking at the bundle, it seems the org.apache.karaf.shell.* packages are 
>all resolution:=optional. Maybe it just doesn't have it wired yet (or at all) 
>due to a startup sequence race?

Maybe the shell bundle starts processing other bundles (via bundle listener) 
which contain commands, before they've had a chance to refresh and see the 
shell bundle and find its core classes, on which the command classes 
depend/extend?

I don't know when/how/where bundles get refreshed or rewired, but is there any 
other info that I can get from the debugger that will help you understand this 
state so we can finally fix it?

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2023-01-18 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17678524#comment-17678524
 ] 

Amichai Rothman commented on KARAF-6210:


Still happens in 4.4.3.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4, 4.3.2
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-08-04 Thread Jira


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17392859#comment-17392859
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

I'm ok to reopen the Jira but as I can't reproduce it (even with the steps you 
provided), that's not easy to identify. Let me try to overload a docker to see 
if I have more chance.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-08-04 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17392829#comment-17392829
 ] 

Amichai Rothman commented on KARAF-6210:


I originally reported simple steps to reproduce on stock karaf, and also 
attached the full karaf log when recreating it... I'm really sorry but I'm not 
sure what more I can add :-/

It's a race condition, so naturally it isn't 100% reproducible all the time, 
and can occur more often on some systems than others (due to threading 
differences, cpu speed, disk speed, OS, or sheer random luck). The point is, 
it's still happening, and has been for years now, and is quite annoying... at 
least we have a workaround (also a bit annoying), but still I think it 
shouldn't be doing this at all, obviously there's a bug somewhere. And as I 
found out yesterday when upgrading to 4.3.2 - it's still here, and the issue 
shouldn't be closed imho.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-08-03 Thread Jira


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17392539#comment-17392539
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

And still not able to reproduce it. Please, can you provide a way to reproduce 
it ?

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-08-03 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17392499#comment-17392499
 ] 

Amichai Rothman commented on KARAF-6210:


Still happens on Karaf 4.3.2 (with equinox).

 

karaf@root()> bundle:list 
Command not found: bundle:list

 

and in log -

java.lang.NoClassDefFoundError: org/apache/karaf/shell/api/action/Action

 

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-04-12 Thread nizar.ben.mansour (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17319157#comment-17319157
 ] 

nizar.ben.mansour commented on KARAF-6210:
--

By miracle.issue disppeared after many deployment of my packages.

I think it's a race condition at startup but i'm afraid it will come back 
espacially on a production system.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-04-11 Thread Jira


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17318869#comment-17318869
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

It could be related to a refresh. Let me try to reproduce a new time. 

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-04-11 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17318768#comment-17318768
 ] 

Amichai Rothman commented on KARAF-6210:


The original report has exact steps to reproduce, they are quite 
straightforward. Every race condition issue may be difficult to recreate, but 
the issue is certainly real and still open - happens to more than one user, 
over multiple releases, using stock karaf and a single apache aries bundle as 
an example - as stated, this can happen with other bundles as well, but that's 
one example that certainly triggered it. Also added the karaf log before, and 
the exact machine specs (again as an example - this happened on more than one 
machine, and on both Windows and Linux, so I doubt it's related to anything at 
a lower level). What other info is needed?

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-04-11 Thread Jira


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17318723#comment-17318723
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

My point is that It could be related to the bundle (depending if you use 
private package or gogo command). Provide me a way to reproduce it I will take 
a lol

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-04-11 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17318667#comment-17318667
 ] 

Amichai Rothman commented on KARAF-6210:


Just to clarify, the above comment is from a second user experiencing the same 
issue, not the original reporter.

Also, the original steps to recreate use the stock karaf distribution, not a 
custom one, and involve deploying a single bundle into the deploy folder, so 
I'm not sure how it can be a problem specific to the user's distribution or 
deployment technique...

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-04-09 Thread Jira


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17318061#comment-17318061
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

This is definitely an issue with your distribution, or the way you deploy 
stuff. I tried on Windows VM without problem. So, without your distribution to 
reproduce, I can't do anything.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2021-04-09 Thread nizar.ben.mansour (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317798#comment-17317798
 ] 

nizar.ben.mansour commented on KARAF-6210:
--

still getting the same issue on windows 10 with karaf 4.2.11

 

 INFO  | features-2-thread-1 | FeaturesServiceImpl              | 13 - 
org.apache.karaf.features.core - 4.2.11 |   
org.apache.karaf.http.core4.3.2.SNAPSHOT INFO  | features-2-thread-1 | 
FeaturesServiceImpl              | 13 - org.apache.karaf.features.core - 4.2.11 
|   org.apache.karaf.http.core4.3.2.SNAPSHOT2021-04-09T10:54:29,272 | 
INFO  | features-2-thread-1 | CommandExtension                 | 38 - 
org.apache.karaf.shell.core - 4.2.11 | Inspection of class 
org.apache.karaf.http.command.ProxyAddCommand 
failed.java.lang.NoClassDefFoundError: org/apache/karaf/shell/api/action/Action 
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_191] at 
java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_191] at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2410)
 ~[?:?] at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2194)
 ~[?:?] at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607)
 ~[?:?] at 
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
 ~[?:?] at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
 ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_191] 
at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) ~[?:?] at 
org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) ~[?:?] at 
org.apache.karaf.shell.impl.action.osgi.CommandExtension.start(CommandExtension.java:100)
 ~[?:?] at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
 ~[?:?] at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
 ~[?:?] at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
 ~[osgi.core-6.0.0.jar:?] at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
 ~[osgi.core-6.0.0.jar:?] at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) 
~[osgi.core-6.0.0.jar:?] at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
 ~[osgi.core-6.0.0.jar:?] at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
 ~[?:?] at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
 ~[?:?] at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
 ~[?:?] at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) 
~[?:?] at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) ~[?:?] 
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?] at 
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?] at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165)
 ~[?:?] at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1154)
 ~[?:?] at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1044) 
~[?:?] at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1063)
 ~[?:?] at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
 ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_191] at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_191] at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_191] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]Caused by: 
java.lang.ClassNotFoundException: org.apache.karaf.shell.api.action.Action not 
found by org.apache.karaf.http.core [231] at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
 ~[?:?] at 
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
 ~[?:?] at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
 ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_191] 
... 33 more2021-04-09T10:54:29,274 | INFO  | features-2-thread-1 | 
CommandExtension                 | 38 - org.apache.karaf.shell.core - 4.2.11 | 
Inspection of class org.apache.karaf.http.command.ProxyBalancingListCommand 
failed.java.lang.NoClassDefFoundError: org/apache/karaf/shell/api/action/Action 
at java.lang.ClassLoader.defineClass1(Native Method) 

[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2020-07-07 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17152889#comment-17152889
 ] 

Amichai Rothman commented on KARAF-6210:


Still happens in 4.2.8:

java.lang.NoClassDefFoundError: org/apache/karaf/shell/api/action/Action 
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_202] 
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763) 
~[?:1.8.0_202] 
    at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:276)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:655)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:578)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:538)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:525)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:446)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395) 
~[?:?] 
    at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387) 
~[?:?] 
    at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
 ~[?:?] 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_202] 
    at 
org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:564)
 ~[?:?] 
    at 
org.apache.karaf.shell.impl.action.osgi.CommandExtension.start(CommandExtension.java:100)
 ~[?:?] 
    at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
 ~[?:?] 
    at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
 ~[?:?] 
    at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
 ~[osgi.core-6.0.0.jar:?] 
    at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
 ~[osgi.core-6.0.0.jar:?] 
    at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) 
~[osgi.core-6.0.0.jar:?] 
    at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
 ~[osgi.core-6.0.0.jar:?] 
    at 
org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
 ~[?:?] 
    at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 ~[?:?] 
    at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
 ~[?:?] 
    at 
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)
 ~[?:?] 
    at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) 
~[?:?] 
    at org.eclipse.osgi.container.Module.start(Module.java:467) ~[?:?] 
    at 
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) 
~[?:?] 
    at 
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402) 
~[?:?] 
    at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165)
 ~[?:?] 
    at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153)
 ~[?:?] 
    at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1036) 
~[?:?] 
    at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
 ~[?:?] 
    at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
 ~[?:?] 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
~[?:1.8.0_202] 
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
~[?:1.8.0_202] 
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_202] 
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202] 
Caused 

[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-09-03 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16921650#comment-16921650
 ] 

Amichai Rothman commented on KARAF-6210:


For the record, the workaround is to move all jars away from the deploy folder 
to some temporary folder before starting karaf for the first time (or after 
deleting data dir), then start karaf, let it initialize fully, and only then 
copy the jars back into the deploy folder.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.3.0, 4.2.7
>
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-09-03 Thread Amichai Rothman (Jira)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16921637#comment-16921637
 ] 

Amichai Rothman commented on KARAF-6210:


Still happens with today's 4.2.7-SNAPSHOT.

Saw it once on Linux while testing this version, reproducible every time on 
Windows.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.3.0, 4.2.7
>
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-05-12 Thread Amichai Rothman (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16838053#comment-16838053
 ] 

Amichai Rothman commented on KARAF-6210:


Does the log help? Anything else I can do to move this forward? Something you'd 
like me to try? breakpoint anywhere?

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Attachments: karaf_command_not_found.log
>
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-04-29 Thread Amichai Rothman (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16829229#comment-16829229
 ] 

Amichai Rothman commented on KARAF-6210:


Correction: I've just tried the recreation steps above with all 4.2.x versions 
of karaf, and it does happen in all of them. Only with equinox, that is - when 
using felix everything is ok.

 

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-04-29 Thread Amichai Rothman (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16829195#comment-16829195
 ] 

Amichai Rothman commented on KARAF-6210:


ASUS ZenBook UX331u

Core i7-8550U, 16GB RAM

Windows 10 64-bit version 1809 (OS Build 17763.437)

Oracle JDK 1.8.0_202

Stock Karaf 4.2.5 (only change is setting framework to equinox)

Tried starting karaf both from cmd via batch file, and from git bash via sh 
file, same result in both.

As I mentioned, I've seen this happen on Linux once as well (on same hardware 
iirc, same JDK), but it's rare. On Window it's 100% reproducible so far.

Never saw this issue in Karaf 4.2.3 or earlier.

Any other info that might be useful? Or something you'd like me to test?

 

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-04-29 Thread JIRA


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16829177#comment-16829177
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

It works for me on Windows 10. I'm testing a new time. Anything special on your 
environment (Windows version, JDK version) ?

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-04-29 Thread JIRA


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16829178#comment-16829178
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

Let me try on Linux as well. But it seems environment related.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-04-29 Thread Amichai Rothman (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16829164#comment-16829164
 ] 

Amichai Rothman commented on KARAF-6210:


Also pasting the original exception's stacktrace (on 4.2.5), in case it helps:

java.lang.NoClassDefFoundError: org/apache/karaf/shell/api/action/Action
 at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
 at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:?]
 at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:279)
 ~[?:?]
 at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:716)
 ~[?:?]
 at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:639)
 ~[?:?]
 at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:607)
 ~[?
 :?]
 at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:587)
 ~[?
 :?]
 at 
org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:566)
 ~[?:?]
 at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
 ~[?:?]
 at 
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
 ~[?:?]
 at 
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
 ~[?:?]
 at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) 
~[?:?]
 at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414) 
~[?:?]
 at 
org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
 ~[?:?]
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:612)
 ~[?:?]
 at 
org.apache.karaf.shell.impl.action.osgi.CommandExtension.start(CommandExtension.java:100)
 ~[?:?]
 at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
 ~[?:?]
 at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
 ~[?:?]
 at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
 ~[?:?]
 at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
 ~[?:?]
 at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?]
 at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
 ~[?:?]
 at 
org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:944)
 ~[?:?]
 at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
 ~[?:?]
 at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
 ~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:233)
 ~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:140)
 ~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:132)
 ~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:194)
 ~[?:?]
 at org.eclipse.osgi.container.Module.publishEvent(Module.java:484) ~[?:?]
 at org.eclipse.osgi.container.Module.start(Module.java:475) ~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:431) 
~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:450) 
~[?:?]
 at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
 ~[?:?]
 at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1149)
 ~[?:?]
 at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:997) 
~[?:?]
 at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
 ~[?:?]
 at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
 ~[?:?]
 at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:?]
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:?]
 at java.lang.Thread.run(Thread.java:748) [?:?]

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: 

[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-04-29 Thread Amichai Rothman (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16829160#comment-16829160
 ] 

Amichai Rothman commented on KARAF-6210:


Happens also on Karaf 4.2.5.

In addition, on 4.2.5 there is also this, which looks similar:

java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator
 at org.apache.karaf.specs.activator.Activator.register(Activator.java:124) 
~[?:?]
 at org.apache.karaf.specs.activator.Activator.bundleChanged(Activator.java:96) 
~[?:?]
 at 
org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:944)
 ~[?:?]
 at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
 ~[?:?]
 at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
 ~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.
java:233) ~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:140)
~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:132)
~[?:?]
 at 
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:1
94) ~[?:?]
 at 
org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:848) 
~[?:?]
 at 
org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:552)
 ~[?:?]
 at 
org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:495) 
~[?:?]
 at 
org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:484) 
~[?:?]
 at 
org.eclipse.osgi.container.ModuleContainer$ContainerWiring.resolveBundles(ModuleContainer.java:1442)
 ~[?:?]
 at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.resolveBundles(BundleInstallSupportImpl.j
ava:240) ~[?:?]
 at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.resolveBundles(FeaturesServiceImpl.java:1164)
~[?:?]
 at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:983) 
~[?:?]
 at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
 ~[?
:?]
 at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceI
mpl.java:994) ~[?:?]
 at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
~[?:?]
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:?]
 at java.lang.Thread.run(Thread.java:748) ~[?:?]

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-04-03 Thread JIRA


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16808396#comment-16808396
 ] 

Jean-Baptiste Onofré commented on KARAF-6210:
-

Not yet on Windows 10 VM. I'm pretty sure it's due to a refresh. Working on it.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-04-02 Thread Amichai Rothman (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16808136#comment-16808136
 ] 

Amichai Rothman commented on KARAF-6210:


Can anyone confirm whether they are able to recreate it using the steps above?

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf

2019-03-27 Thread Amichai Rothman (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16802898#comment-16802898
 ] 

Amichai Rothman commented on KARAF-6210:


Just wanted to add that this is not a Windows-only issue, as I've seen it 
happen at least once on Linux as well. So it more likely involves some startup 
race condition or something like that, which might be more likely to happen on 
Windows due to thread scheduling differences, but is not exclusive to Windows.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 
> Karaf
> --
>
> Key: KARAF-6210
> URL: https://issues.apache.org/jira/browse/KARAF-6210
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.2.4
> Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle JDK 8.
>Reporter: Amichai Rothman
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> When starting karaf using equinox and some bundle in the deploy folder, many 
> shell commands (such as bundle:* and others) are not recognized, and the log 
> shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action. Some 
> commands don't work, but others (e.g. shell:*) do.
> This happens consistently on Windows 10, but not on Linux, not sure why.
>  
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to 
> karaf.framework=equinox.
> 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in 
> deploy folder. This is not the only bundle it happens with, just a public one 
> I found for this example. From several I tried, some recreated the issue and 
> some did not. The bundle is not resolved due to missing dependencies.
> 4. Start Karaf.
> 5. Try to run bundle:list and it'll say command not found. Or look at the 
> karaf log and see "java.lang.NoClassDefFoundError: 
> org/apache/karaf/shell/api/action/Action". Use shell completion to see that 
> some commands are available but others are not.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)