This is the test that I did on Karaf 4.0.0-SNAPSHOT, Felix framework 4.4.1, Oracle JDK 1.7, Linux:

0/ I start karaf with bin/karaf

1/ I installed the war feature:

karaf@root()> feature:install war

2/ I installed and started a bundle:

karaf@root()> bundle:install mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_6
Bundle ID: 94
karaf@root()> bundle:start 94

Nothing special in the log, clean state with la:

49 | Resolved | 30 | 1.4.4 | JavaMail API (compat) 50 | Resolved | 30 | 1.0.1 | Annotation 1.1 51 | Resolved | 30 | 1.1 | Java Authentication SPI for Containers 52 | Resolved | 30 | 1.1.1 | geronimo-jta_1.1_spec 53 | Active | 30 | 1.0 | Servlet 3.0 54 | Active | 30 | 4.0.0.SNAPSHOT | Apache Karaf :: HTTP :: Core 55 | Active | 30 | 4.0.0.SNAPSHOT | Apache Karaf :: Web :: Core 56 | Resolved | 20 | 3.18.0 | Apache XBean OSGI Bundle Utilities 57 | Resolved | 20 | 3.18.0 | Apache XBean :: Classpath Resource Finder 58 | Resolved | 30 | 3.8.2.v20130121-145325 | Eclipse Compiler for Java(TM) 59 | Active | 30 | 9.0.7.v20131107 | Jetty :: Continuation 60 | Active | 30 | 9.0.7.v20131107 | Jetty :: Http Utility 61 | Active | 30 | 9.0.7.v20131107 | Jetty :: IO Utility 62 | Active | 30 | 9.0.7.v20131107 | Jetty :: JAAS 63 | Active | 30 | 9.0.7.v20131107 | Jetty :: JASPI Security 64 | Active | 30 | 9.0.7.v20131107 | Jetty :: JMX Management 65 | Active | 30 | 9.0.7.v20131107 | Jetty :: JNDI Naming 66 | Active | 30 | 9.0.7.v20131107 | Jetty :: Plus 67 | Active | 30 | 9.0.7.v20131107 | Jetty :: Rewrite Handler 68 | Active | 30 | 9.0.7.v20131107 | Jetty :: Security 69 | Active | 30 | 9.0.7.v20131107 | Jetty :: Server Core 70 | Active | 30 | 9.0.7.v20131107 | Jetty :: Servlet Handling 71 | Active | 30 | 9.0.7.v20131107 | Jetty :: Utility Servlets and Filters 72 | Active | 30 | 9.0.7.v20131107 | Jetty :: Utilities 73 | Active | 30 | 9.0.7.v20131107 | Jetty :: Utilities :: Ajax(JSON) 74 | Active | 30 | 9.0.7.v20131107 | Jetty :: Webapp Application Support 75 | Active | 30 | 9.0.7.v20131107 | Jetty :: Websocket :: API 76 | Active | 30 | 9.0.7.v20131107 | Jetty :: Websocket :: Common 77 | Active | 30 | 9.0.7.v20131107 | Jetty :: Websocket :: Server 78 | Active | 30 | 9.0.7.v20131107 | Jetty :: Websocket :: Servlet Interface 79 | Active | 30 | 9.0.7.v20131107 | Jetty :: XML utilities 80 | Active | 30 | 2.1.0 | OPS4J Pax Url - war 81 | Active | 30 | 4.0.0 | Jetty-Annotations 82 | Active | 30 | 4.0.0 | OPS4J Pax Web - API 83 | Active | 30 | 4.0.0 | OPS4J Pax Web - FileInstall Deployer 84 | Active | 30 | 4.0.0 | OPS4J Pax Web - Extender - WAR 85 | Active | 30 | 4.0.0 | OPS4J Pax Web - Extender - Whiteboard 86 | Active | 30 | 4.0.0 | OPS4J Pax Web - Jetty 87 | Active | 30 | 4.0.0 | OPS4J Pax Web - Jsp Support 88 | Active | 30 | 4.0.0 | OPS4J Pax Web - Runtime 89 | Active | 30 | 4.0.0 | OPS4J Pax Web - Service SPI 94 | Active | 80 | 2.4.0.6 | Apache ServiceMix :: Bundles :: commons-lang

3/ I kill Karaf with:

kill -9 $KARAF_PID

(so basically a brute kill).

4/ I start Karaf again with bin/karaf.
The la command still show "valid" bundles, and I can manipulate the bundles (for instance, bundle:uninstall 94 works fine).

So, I have some questions for you:
1/ do you use the deploy folder or kar to deploy your bundles ?
2/ how do you deploy your bundles ?
3/ which kind of bundles do you deploy (blueprint, DS/SCR, ...) ?

Thanks,
Regards
JB

On 12/10/2014 10:21 AM, Bellski wrote:
jbonofre wrote
Did you try on Karaf using Equinox ?

As I said in my previous e-mail, we directly leverage the framework for
bundle management. Anyway, I re-open the Jira about this to double check.

Yes, it works with strange, but it works. I wrote in another mail about
permanent Karaf 4.0.0M1 "Starting" state, with couple of external bundles.
Now i'wll try 3.0.2.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-0M1-wont-resolve-random-bundles-after-crush-tp4036956p4037099.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to