You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2010/06/29 19:29:52 UTC
[jira] Created: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
----------------------------------------------------------------------------------------------
Key: SMX4-545
URL: https://issues.apache.org/activemq/browse/SMX4-545
Project: ServiceMix 4
Issue Type: Task
Reporter: Daniel Kulp
There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (SMX4-545) Update SMX to use aries
version of blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60372#action_60372 ]
Freeman Fang edited comment on SMX4-545 at 7/1/10 12:28 AM:
------------------------------------------------------------
Hi Dan,
After apply features patch, all tests in examples/itests/tests are failed.
The reason is that can't start nmr-osgi bundle for Constraint violation.
The detailed exception is
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Starting [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
DEBUG: Constraint violation for 71.0 detected; module can see org.osgi.util.tracker from [5.0] and org.osgi.util.tracker from [0]
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : cannot start bundle [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3306)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at org.springframework.osgi.test.AbstractOsgiTests.startBundle(AbstractOsgiTests.java:341)
at org.springframework.osgi.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:258)
at org.springframework.osgi.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:374)
at org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:203)
at org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Caught exception starting up
Seems now we have two system bundles(one with bundle id 0, one with bundle id 5, the second one should be here) both export org.osgi.util.tracker which cause this error.
Best Regards
Freeman
was (Author: ffang):
Hi Dan,
After apply features patch, all tests in examples/itests/tests are failed.
The reason is that can't start nmr-osgi bundle for Constraint violation.
The detailed exception is
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Starting [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
DEBUG: Constraint violation for 71.0 detected; module can see org.osgi.util.tracker from [5.0] and org.osgi.util.tracker from [0]
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : cannot start bundle [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3306)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at org.springframework.osgi.test.AbstractOsgiTests.startBundle(AbstractOsgiTests.java:341)
at org.springframework.osgi.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:258)
at org.springframework.osgi.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:374)
at org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:203)
at org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Caught exception starting up
Seems now we have two system bundle which export different version of org.osgi.util.tracker which cause this error.
Best Regards
Freeman
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang reassigned SMX4-545:
---------------------------------
Assignee: Freeman Fang
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated SMX4-545:
-----------------------------
Attachment: (was: aries-features.patch)
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated SMX4-545:
-----------------------------
Attachment: (was: aries.patch)
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved SMX4-545.
-------------------------------
Fix Version/s: 4.4.0
Resolution: Fixed
apply patch on behalf of Dan with thanks
http://svn.apache.org/viewvc?rev=959663&view=rev
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Fix For: 4.4.0
>
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60388#action_60388 ]
Freeman Fang commented on SMX4-545:
-----------------------------------
Hi Guillaume,
Use karaf snapshot is a good idea, we also can see if org.apache.felix.framework-3.0.1.jar work well with nmr/features.
I will commit this patch very soon and create another ticket for changing dependency groupId in pom.xml and package name in src code of nmr/features, which can accommodate recent changes in karaf as a new TLP, so that we can upgrade to use karaf snapshot.
Thanks
Freeman
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated SMX4-545:
-----------------------------
Attachment: aries.patch
Patch updates to a bunch of latest things.
Also allows ability to run jbi/ittests in eclipse directly if you modify the "order" to put the pax stuff first in the eclipse project.
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Attachments: aries.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60384#action_60384 ]
Daniel Kulp commented on SMX4-545:
----------------------------------
Freeman,
Hmm... the tests are passing for me. Strange.
in anycase, can you try removing the line:
+ getBundle("org.osgi", "org.osgi.core"),
of:
testing/support/src/main/java/org/apache/servicemix/platform/testing/support/AbstractIntegrationTest.java
(in nmr)
That may fix it.
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated SMX4-545:
-----------------------------
Attachment: aries-nmr.patch
aries-features.patch
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60386#action_60386 ]
Guillaume Nodet commented on SMX4-545:
--------------------------------------
I guess we could use a karaf snapshot if that helps.
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60351#action_60351 ]
Freeman Fang commented on SMX4-545:
-----------------------------------
Hi Dan,
I build servicemx 4 kit with your patch, when I start it, I get exception like
Could not create framework: java.io.FileNotFoundException: /Users/ffang/apache-servicemix-4.3.0-SNAPSHOT/system/org/apache/felix/org.apache.felix.framework/3.0.1/org.apache.felix.framework-3.0.1.jar
java.io.FileNotFoundException: /Users/ffang/apache-servicemix-4.3.0-SNAPSHOT/system/org/apache/felix/org.apache.felix.framework/3.0.1/org.apache.felix.framework-3.0.1.jar
at org.apache.felix.karaf.main.Main.updateClassLoader(Main.java:813)
at org.apache.felix.karaf.main.Main.launch(Main.java:187)
at org.apache.felix.karaf.main.Main.main(Main.java:325)
Actually the org.apache.felix.framework jar should be picked up and assembled by karaf, so we need a karaf version which use felix.framework.version as 3.0.1, unfortunately the latest karaf release still use felix.framework.version 2.0.5, this mismatch cause the exception.
We need upgrade karaf side felix.framework.version firstly if we really need felix.framework.version 3.0.1 for aries side blueprint.
Best Regards
Freeman
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60385#action_60385 ]
Freeman Fang commented on SMX4-545:
-----------------------------------
Hi,
No, that not fix it.
But I figured out why I see the error but you didn't.
Your nmr patch still use /org.apache.felix.framework-3.0.1.jar, it will cause similar error when we use nmr kit, some exception like
~/projects/smx/smx4/all/nmr/assembly/target/apache-servicemix-nmr-1.3.0-SNAPSHOT/bin ffang$ ./nmr
Could not create framework: java.io.FileNotFoundException: /Users/ffang/projects/smx/smx4/all/nmr/assembly/target/apache-servicemix-nmr-1.3.0-SNAPSHOT/system/org/apache/felix/org.apache.felix.framework/3.0.1/org.apache.felix.framework-3.0.1.jar
java.io.FileNotFoundException: /Users/ffang/projects/smx/smx4/all/nmr/assembly/target/apache-servicemix-nmr-1.3.0-SNAPSHOT/system/org/apache/felix/org.apache.felix.framework/3.0.1/org.apache.felix.framework-3.0.1.jar
at org.apache.felix.karaf.main.Main.updateClassLoader(Main.java:813)
at org.apache.felix.karaf.main.Main.launch(Main.java:187)
at org.apache.felix.karaf.main.Main.main(Main.java:325)
So I just change your nmr patch a little bit to use org.apache.felix.framework 2.0.5, to keep it same as karaf and features, then when I apply your features patch, I see the itests failure. If I keep your nmr patch, I will pass all tests, but it means org.apache.felix.framework version is different between karaf/nmr/features, which still also cause kit runtime problem.
FYI, karaf[1] just upgrade to felix framework 3.0.1, maybe we can keep this issue open util next karaf release, which means we can use felix framework 3.0.1 also in nmr and features
[1]https://issues.apache.org/jira/browse/KARAF-97
Best Regards
Freeman
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60372#action_60372 ]
Freeman Fang commented on SMX4-545:
-----------------------------------
Hi Dan,
After apply features patch, all tests in examples/itests/tests are failed.
The reason is that can't start nmr-osgi bundle for Constraint violation.
The detailed exception is
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Starting [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
DEBUG: Constraint violation for 71.0 detected; module can see org.osgi.util.tracker from [5.0] and org.osgi.util.tracker from [0]
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : cannot start bundle [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3306)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at org.springframework.osgi.test.AbstractOsgiTests.startBundle(AbstractOsgiTests.java:341)
at org.springframework.osgi.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:258)
at org.springframework.osgi.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:374)
at org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:203)
at org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Caught exception starting up
Seems now we have two system bundle which export different version of org.osgi.util.tracker which cause this error.
Best Regards
Freeman
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated SMX4-545:
-----------------------------
Attachment: aries-features.patch
aries-nmr.patch
Updated patches that just take felix up to 2.0.5 to match what karaf is using. When the new "TLP version" of Karaf is released, we can re-look at updating the Felix stuff.
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (SMX4-545) Update SMX to use aries
version of blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60372#action_60372 ]
Freeman Fang edited comment on SMX4-545 at 7/1/10 12:39 AM:
------------------------------------------------------------
Hi Dan,
After apply features patch, all tests in examples/itests/tests are failed.
The reason is that can't start several bundles (such as pax-logging-service, pax-web-runtime, pax-web-extender-whiteboard, org.apache.servicemix.nmr.osgi) for Constraint violation.
The detailed exception is
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Starting [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
DEBUG: Constraint violation for 71.0 detected; module can see org.osgi.util.tracker from [5.0] and org.osgi.util.tracker from [0]
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : cannot start bundle [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3306)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at org.springframework.osgi.test.AbstractOsgiTests.startBundle(AbstractOsgiTests.java:341)
at org.springframework.osgi.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:258)
at org.springframework.osgi.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:374)
at org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:203)
at org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Caught exception starting up
Seems now we have two system bundles(one with bundle id 0, one with bundle id 5, the second one should be here) both export org.osgi.util.tracker which cause this error.
Best Regards
Freeman
was (Author: ffang):
Hi Dan,
After apply features patch, all tests in examples/itests/tests are failed.
The reason is that can't start nmr-osgi bundle for Constraint violation.
The detailed exception is
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Starting [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
DEBUG: Constraint violation for 71.0 detected; module can see org.osgi.util.tracker from [5.0] and org.osgi.util.tracker from [0]
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : cannot start bundle [Apache ServiceMix NMR OSGi (org.apache.servicemix.nmr.osgi)|file:/Users/ffang/.m2/repository/org/apache/servicemix/nmr/org.apache.servicemix.nmr.osgi/1.3.0-SNAPSHOT/org.apache.servicemix.nmr.osgi-1.3.0-SNAPSHOT.jar]
org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3306)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at org.springframework.osgi.test.AbstractOsgiTests.startBundle(AbstractOsgiTests.java:341)
at org.springframework.osgi.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:258)
at org.springframework.osgi.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:374)
at org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:203)
at org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
[org.apache.servicemix.examples.CXFNMRIntegrationTest] : Caught exception starting up
Seems now we have two system bundles(one with bundle id 0, one with bundle id 5, the second one should be here) both export org.osgi.util.tracker which cause this error.
Best Regards
Freeman
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
> Attachments: aries-features.patch, aries-nmr.patch
>
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4-545) Update SMX to use aries version of
blueprint and latest Felix/Karaf stuff that also uses aries
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated SMX4-545:
-----------------------------
Attachment: (was: aries-nmr.patch)
> Update SMX to use aries version of blueprint and latest Felix/Karaf stuff that also uses aries
> ----------------------------------------------------------------------------------------------
>
> Key: SMX4-545
> URL: https://issues.apache.org/activemq/browse/SMX4-545
> Project: ServiceMix 4
> Issue Type: Task
> Reporter: Daniel Kulp
> Assignee: Freeman Fang
>
> There is a nasty bug in geronimo blueprint that prevents it from working properly. We need to update to Aries to get the fix, but that means also updating a bunch of other things.
> Will supply patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.