You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "anwar (Created) (JIRA)" <ji...@apache.org> on 2012/03/10 23:24:57 UTC
[jira] [Created] (CXF-4174) eroor on deploying
cxf-dosgi-ri-singlebundle-distribution bundle in glassfish
eroor on deploying cxf-dosgi-ri-singlebundle-distribution bundle in glassfish
-----------------------------------------------------------------------------
Key: CXF-4174
URL: https://issues.apache.org/jira/browse/CXF-4174
Project: CXF
Issue Type: Bug
Components: OSGi
Reporter: anwar
when I deploy the greeting sample bundles with the cxf-dosgi-ri-singlebundle-distribution-1.3.jar in an independent Felix framework instance it works.
But if I deploy the bundles in glassfish 3.1.2 I get this error when srating the glasfish domain :
[#|2012-03-10T22:55:29.310+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=pool-7-thread-2;|Exception in thread "pool-7-thread-2" |#]
[#|2012-03-10T22:55:29.312+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=pool-7-thread-2;|java.lang.ClassCastException: org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator cannot be cast to org.osgi.serv
ice.event.EventAdmin
at org.apache.cxf.dosgi.dsw.service.EventAdminHelper.getEventAdmins(EventAdminHelper.java:127)
at org.apache.cxf.dosgi.dsw.service.EventAdminHelper.notifyEventAdmin(EventAdminHelper.java:97)
at org.apache.cxf.dosgi.dsw.service.EventProducer.publishNotifcation(EventProducer.java:62)
at org.apache.cxf.dosgi.dsw.service.EventProducer.publishNotifcation(EventProducer.java:47)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:265)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:67)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
|#]
[#|2012-03-10T22:55:29.416+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=fileinstall-D:\DevTools\glassfish-3.1.2\glassfish-3.1.2\glassfish\domains\domain1/autodeploy/bundles/;|Failed to update artifact D:\DevTools\glassfish
-3.1.2\glassfish-3.1.2\glassfish\domains\domain1\autodeploy\bundles\cxf-dosgi-ri-singlebundle-distribution-1.3.jar: java.lang.IllegalStateException: Invalid BundleContext.|#]
[#|2012-03-10T22:55:29.416+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=fileinstall-D:\DevTools\glassfish-3.1.2\glassfish-3.1.2\glassfish\domains\domain1/autodeploy/bundles/;|java.lang.IllegalStateException: Invalid Bundle
Context.
at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)
at org.apache.felix.framework.BundleContextImpl.getDataFile(BundleContextImpl.java:491)
at org.apache.felix.fileinstall.internal.Util.storeChecksum(Util.java:293)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:1064)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:849)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:445)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DOSGI-112) eroor on deploying
cxf-dosgi-ri-singlebundle-distribution bundle in glassfish
Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DOSGI-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486903#comment-13486903 ]
Christian Schneider commented on DOSGI-112:
-------------------------------------------
I guess there may be two bundles in your system that define EventAdmin. Can you check this?
> eroor on deploying cxf-dosgi-ri-singlebundle-distribution bundle in glassfish
> -----------------------------------------------------------------------------
>
> Key: DOSGI-112
> URL: https://issues.apache.org/jira/browse/DOSGI-112
> Project: CXF Distributed OSGi
> Issue Type: Bug
> Reporter: anwar
>
> when I deploy the greeting sample bundles with the cxf-dosgi-ri-singlebundle-distribution-1.3.jar in an independent Felix framework instance it works.
> But if I deploy the bundles in glassfish 3.1.2 I get this error when srating the glasfish domain :
>
> [#|2012-03-10T22:55:29.310+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=pool-7-thread-2;|Exception in thread "pool-7-thread-2" |#]
> [#|2012-03-10T22:55:29.312+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=pool-7-thread-2;|java.lang.ClassCastException: org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator cannot be cast to org.osgi.serv
> ice.event.EventAdmin
> at org.apache.cxf.dosgi.dsw.service.EventAdminHelper.getEventAdmins(EventAdminHelper.java:127)
> at org.apache.cxf.dosgi.dsw.service.EventAdminHelper.notifyEventAdmin(EventAdminHelper.java:97)
> at org.apache.cxf.dosgi.dsw.service.EventProducer.publishNotifcation(EventProducer.java:62)
> at org.apache.cxf.dosgi.dsw.service.EventProducer.publishNotifcation(EventProducer.java:47)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:265)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:67)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
> at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> |#]
> [#|2012-03-10T22:55:29.416+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=fileinstall-D:\DevTools\glassfish-3.1.2\glassfish-3.1.2\glassfish\domains\domain1/autodeploy/bundles/;|Failed to update artifact D:\DevTools\glassfish
> -3.1.2\glassfish-3.1.2\glassfish\domains\domain1\autodeploy\bundles\cxf-dosgi-ri-singlebundle-distribution-1.3.jar: java.lang.IllegalStateException: Invalid BundleContext.|#]
> [#|2012-03-10T22:55:29.416+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=fileinstall-D:\DevTools\glassfish-3.1.2\glassfish-3.1.2\glassfish\domains\domain1/autodeploy/bundles/;|java.lang.IllegalStateException: Invalid Bundle
> Context.
> at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)
> at org.apache.felix.framework.BundleContextImpl.getDataFile(BundleContextImpl.java:491)
> at org.apache.felix.fileinstall.internal.Util.storeChecksum(Util.java:293)
> at org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:1064)
> at org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:849)
> at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:445)
> at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Moved] (DOSGI-112) eroor on deploying
cxf-dosgi-ri-singlebundle-distribution bundle in glassfish
Posted by "Daniel Kulp (Moved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DOSGI-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp moved CXF-4174 to DOSGI-112:
----------------------------------------
Component/s: (was: OSGi)
Workflow: jira (was: Default workflow, editable Closed status)
Key: DOSGI-112 (was: CXF-4174)
Project: CXF Distributed OSGi (was: CXF)
> eroor on deploying cxf-dosgi-ri-singlebundle-distribution bundle in glassfish
> -----------------------------------------------------------------------------
>
> Key: DOSGI-112
> URL: https://issues.apache.org/jira/browse/DOSGI-112
> Project: CXF Distributed OSGi
> Issue Type: Bug
> Reporter: anwar
>
> when I deploy the greeting sample bundles with the cxf-dosgi-ri-singlebundle-distribution-1.3.jar in an independent Felix framework instance it works.
> But if I deploy the bundles in glassfish 3.1.2 I get this error when srating the glasfish domain :
>
> [#|2012-03-10T22:55:29.310+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=pool-7-thread-2;|Exception in thread "pool-7-thread-2" |#]
> [#|2012-03-10T22:55:29.312+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=pool-7-thread-2;|java.lang.ClassCastException: org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator cannot be cast to org.osgi.serv
> ice.event.EventAdmin
> at org.apache.cxf.dosgi.dsw.service.EventAdminHelper.getEventAdmins(EventAdminHelper.java:127)
> at org.apache.cxf.dosgi.dsw.service.EventAdminHelper.notifyEventAdmin(EventAdminHelper.java:97)
> at org.apache.cxf.dosgi.dsw.service.EventProducer.publishNotifcation(EventProducer.java:62)
> at org.apache.cxf.dosgi.dsw.service.EventProducer.publishNotifcation(EventProducer.java:47)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:265)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:67)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
> at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
> at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> |#]
> [#|2012-03-10T22:55:29.416+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=fileinstall-D:\DevTools\glassfish-3.1.2\glassfish-3.1.2\glassfish\domains\domain1/autodeploy/bundles/;|Failed to update artifact D:\DevTools\glassfish
> -3.1.2\glassfish-3.1.2\glassfish\domains\domain1\autodeploy\bundles\cxf-dosgi-ri-singlebundle-distribution-1.3.jar: java.lang.IllegalStateException: Invalid BundleContext.|#]
> [#|2012-03-10T22:55:29.416+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=fileinstall-D:\DevTools\glassfish-3.1.2\glassfish-3.1.2\glassfish\domains\domain1/autodeploy/bundles/;|java.lang.IllegalStateException: Invalid Bundle
> Context.
> at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)
> at org.apache.felix.framework.BundleContextImpl.getDataFile(BundleContextImpl.java:491)
> at org.apache.felix.fileinstall.internal.Util.storeChecksum(Util.java:293)
> at org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:1064)
> at org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:849)
> at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:445)
> at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira