You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by koslowskyj <jo...@younicos.com> on 2015/02/04 16:50:16 UTC

Karaf 3.0.3 etc/system.properties karaf.lock.level=50 RuntimeException on startup.

When i download the Karaf 3.0.3 distribution:
http://karaf.apache.org/index/community/download.html#Karaf3.0.3
and add the following property+value:

karaf.lock.level=50 

to the system.properties i get a RuntimeException on startup.

org.apache.karaf.main.Main launch
Installing and starting initial bundles
org.apache.karaf.main.Main main
Could not launch framework
java.lang.RuntimeException: Error installing bundle listed in
startup.properties with url: mvn:org.ops4j.pax.url/pax-url-aether/2.3.0 and
startlevel: 5
	at org.apache.karaf.main.Main.installAndStartBundles(Main.java:392)
	at org.apache.karaf.main.Main.launch(Main.java:245)
	at org.apache.karaf.main.Main.main(Main.java:167)
Caused by: org.osgi.framework.BundleException: Unresolved constraint in
bundle org.ops4j.pax.url.mvn [1]: Unable to resolve 1.0: missing requirement
[1.0] osgi.wiring.package;
(&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))
	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
	at org.apache.karaf.main.Main.installAndStartBundles(Main.java:389)
	... 2 more 

When i do the same with 2.3.3 it works just fine.
Does someone know if this a bug, or intended behaviour?

The same happens when configuring any Failover-Mechanism and adding
karaf.lock.level=50 described here: 
http://karaf.apache.org/manual/latest/users-guide/failover.html 

best regards





--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-3-etc-system-properties-karaf-lock-level-50-RuntimeException-on-startup-tp4038298.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 3.0.3 etc/system.properties karaf.lock.level=50 RuntimeException on startup.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

sorry, I didn't have time to rework on this issue.

Yes, please, open a Jira, I will take a look asap.

Thanks,
Regards
JB

On 02/10/2015 01:57 PM, koslowskyj wrote:
> Hi,
>
> I am just curious, could you reproduce the problem?
> Is it a bug or does it only occur on my machine?
>
> Machine:
> - Windows 7 64 bit
> - Java  1.7.0_67
>
> Should i open a jira issue?
>
> Best regards
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-3-etc-system-properties-karaf-lock-level-50-RuntimeException-on-startup-tp4038298p4038432.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf 3.0.3 etc/system.properties karaf.lock.level=50 RuntimeException on startup.

Posted by koslowskyj <jo...@younicos.com>.
Hi,

I am just curious, could you reproduce the problem?
Is it a bug or does it only occur on my machine?

Machine:
- Windows 7 64 bit
- Java  1.7.0_67

Should i open a jira issue?

Best regards
 



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-3-etc-system-properties-karaf-lock-level-50-RuntimeException-on-startup-tp4038298p4038432.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 3.0.3 etc/system.properties karaf.lock.level=50 RuntimeException on startup.

Posted by koslowskyj <jo...@younicos.com>.
Hi JB,

thanks for your quick answer, unfortunately the problem is the same also
when setting the karaf.lock.level to 80.

Best regards



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-3-etc-system-properties-karaf-lock-level-50-RuntimeException-on-startup-tp4038298p4038301.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 3.0.3 etc/system.properties karaf.lock.level=50 RuntimeException on startup.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

Do you have the same issue with lock level set to 80 ?

The level changed between Karaf 2.3.x and 3.0.x.

Regards
JB

On 02/04/2015 04:50 PM, koslowskyj wrote:
> When i download the Karaf 3.0.3 distribution:
> http://karaf.apache.org/index/community/download.html#Karaf3.0.3
> and add the following property+value:
>
> karaf.lock.level=50
>
> to the system.properties i get a RuntimeException on startup.
>
> org.apache.karaf.main.Main launch
> Installing and starting initial bundles
> org.apache.karaf.main.Main main
> Could not launch framework
> java.lang.RuntimeException: Error installing bundle listed in
> startup.properties with url: mvn:org.ops4j.pax.url/pax-url-aether/2.3.0 and
> startlevel: 5
> 	at org.apache.karaf.main.Main.installAndStartBundles(Main.java:392)
> 	at org.apache.karaf.main.Main.launch(Main.java:245)
> 	at org.apache.karaf.main.Main.main(Main.java:167)
> Caused by: org.osgi.framework.BundleException: Unresolved constraint in
> bundle org.ops4j.pax.url.mvn [1]: Unable to resolve 1.0: missing requirement
> [1.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))
> 	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
> 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
> 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
> 	at org.apache.karaf.main.Main.installAndStartBundles(Main.java:389)
> 	... 2 more
>
> When i do the same with 2.3.3 it works just fine.
> Does someone know if this a bug, or intended behaviour?
>
> The same happens when configuring any Failover-Mechanism and adding
> karaf.lock.level=50 described here:
> http://karaf.apache.org/manual/latest/users-guide/failover.html
>
> best regards
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-3-etc-system-properties-karaf-lock-level-50-RuntimeException-on-startup-tp4038298.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com