Ok, figured out it's an karaf issue[1] and fixed it.
Again, IMO it's not a show stopper as the bundle function well
actually, so we can pick up this release after SMX4.4.
[1]https://issues.apache.org/jira/browse/KARAF-1114
Freeman
On 2011-12-17, at 上午10:11, Freeman Fang wrote:
Hi,
I don't think the problem you encountered here is same as it in
ARIES-626.
I did a quick test with the test case you appended with SMX4-1003 on
the SMX 4.4 releasse candidate kit apache-servicemix-
full-4.4.0.tar.gz, I can see "Test Spring Osgi Service" bundle
spring status isn't "Started" after I restart SMX BOTH with and
without internet connection.
So the status is
[ 158] [Active ] [ ] [ ] [ 60] Test Spring
Osgi Service (0.1.0.SNAPSHOT)
the expected one should be
[ 158] [Active ] [ ] [Started] [ 60] Test Spring
Osgi Service (0.1.0.SNAPSHOT)
However, this has nothing to do with offline mode, this is just that
the restart SMX can't show correct spring bundle status, even though
the spring bundle is actually in good shape.
I can see this on other bundles also(both online and offline), like
cxf-jaxrs example, which is pure spring configuration and has
nothing to do with blueprint.
As you describe it try to download spring xsd files, but I'm quiet
sure cxf-bundle.jar embedded all necessary xsd files so generally it
won't try to download the remote one.
If it need download something with offline mode, then osgi:update
the bundle won't make it correct.
The ARIES-626 is about in blueprint configuration, xsd:include or
xsd:import can't use local xsd, but it's totally another issue.
In summary, the problem you encounter is that restart smx4 can't
show spring bundle status correctly, though the spring bundle
actually in good shape and all function are good,would you please
create an issue to track it, so that we can fix it after 4.4
release(it's not a show stopper IMO as the bundle function well
actually) and I'm not sure so far where we need fix it(probably in
Karaf, not sure).
Freeman
On 2011-12-17, at 上午3:29, Ge@@ru wrote:
I don't know if we have ready for smx-4.4.0 :'(
I'm trying to use cxf on offline environment but I haven't found
yet a
solution.
* With blueprint + cxf it isn't possible deploy cxf bundle for
problem
describe on SMX-1003 (https://issues.apache.org/jira/browse/
ARIES-626)
* With spring there is a problem like for blueprint. Spring try to
download jaxrs.xsd and then doesn't start correctly (after a smx
restart)
smx@root> features:install examples-cxf-jaxrs
smx@root> shutdown
... restart of smx
(here sniffing of http request from smx)
127.0.0.1 - - [16/Dec/2011:20:17:36 +0100] "GET
http://cxf.apache.org/schemas/jaxrs.xsd HTTP/1.1" 200 9161
..
(here bundle is Active but not Started (only an osgi:update or a
redeploy set status to Started))
On production environment normally smx will be on offline
environment,
so, is it right release a smx-4.4.0 where isn't possible deploy/
restart
smx with cxf bundles?
Is there a way to avoid spring xml validation and permit start of cxf
bundle correctly?
Thanks
Ge@@ru
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com