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

Steinar Bang commented on KARAF-5115:
-------------------------------------

I tried my steps for triggering the InterruptedException on 
karaf-4.1.2-SNAPSHOT and the problem occurs on 4.1.2-SNAPSHOT as well.

The platform was windows 10 and java 1.8_102.

The karaf.log for this session is attached as karaf_log_ukelonn_install.zip

Here's what I did
# Cloned and built and started karaf-4.1.2-SNAPSHOT (see comment in KARAF-5174 
for detailed explanation of what I did)
# Deleted the data directory resulting from the KARAF-5174 test
# Built the master branch of my application ukelonn 
# Installed the ukelonn app:
{code:java}
c:\ProgramFiles\apache-karaf-4.1.2-SNAPSHOT>bin\karaf.bat debug
Listening for transport dt_socket at address: 5005
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (4.1.2-SNAPSHOT)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:repo-add 
mvn:no.priv.bang.ukelonn/ukelonn.karaf/LATEST/xml/features
Adding feature url mvn:no.priv.bang.ukelonn/ukelonn.karaf/LATEST/xml/features
karaf@root()> feature:install liquibase-core
karaf@root()> feature:install ukelonn-db-derby-test
karaf@root()> feature:install ukelonn
Error executing command: java.lang.InterruptedException
{code}
At this point the karaf console is dead and doesn't even respon to Ctrl-C

> Error while installing cxf
> --------------------------
>
>                 Key: KARAF-5115
>                 URL: https://issues.apache.org/jira/browse/KARAF-5115
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.1.1
>         Environment: Windows 10 64bit
> Java JDK 1.8.0_131
>            Reporter: Massimo Bono
>            Assignee: Jean-Baptiste Onofré
>              Labels: features
>             Fix For: 4.2.0, 4.1.2
>
>         Attachments: karaf.log, karaf_log_install_ukelonn.zip
>
>
> Hello,
> I was trying to create a REST application with karaf.
> I know there are examples over the internet showing how this can be achieved 
> (like [this 
> one|http://liquid-reality.de:8090/display/liquid/2011/12/22/Karaf+Tutorial+Part+4+-+CXF+Services+in+OSGi]),
>  but usually they use blueprints as DI. My goal is to use Declarative Service 
> instead.
> I followed this 
> [guide|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=55153391]:
>  it uses Karaf 3.0.3 and CXF 3.1.0, but I **think** it should work with 4.1.1 
> as well.
> By doing the following:
> {code}
> karaf@root()> feature:install scr http pax-cdi-web-weld
> karaf@root()> feature:repo-add cxf 3.1.11
> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.11/xml/features
> karaf@root()> feature:install cxf/3.1.11 cxf-jaxrs-cdi/3.1.11
> {code}
> Karaf gives the following error:
> {code}
> java.lang.IllegalStateException: No inital startlevel yet
>         at 
> org.apache.felix.framework.FrameworkStartLevelImpl.setStartLevel(FrameworkStartLevelImpl.java:131)
>         at org.apache.karaf.main.Main.setStartLevel(Main.java:605)
>         at 
> org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:711)
>         at org.apache.karaf.main.Main.doMonitor(Main.java:382)
>         at org.apache.karaf.main.Main.access$100(Main.java:75)
>         at org.apache.karaf.main.Main$3.run(Main.java:369)
> {code}
> Furthermore, karaf *won't* return the console control to me, but remains 
> stuck waiting nothing.
> It's highly possible that my procedure to install pax-cdi and cxf  is flawed, 
> but I still think that showing that error on the console and letting the 
> shell going unresponsive are a bug of karaf (or a bug of the underlying OSGi 
> framework, aka felix itself).
> Sorry if this behaviour is not a bug at all, but is just caused by my 
> ignorance of the tool.
> Regards,



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to