felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artur Opala (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-1984) Components starts disabled
Date Wed, 20 Jan 2010 16:56:54 GMT

    [ https://issues.apache.org/jira/browse/FELIX-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802890#action_12802890
] 

Artur Opala commented on FELIX-1984:
------------------------------------

After debugging: components are not enabled beacause of the exception:

{code}
java.lang.ClassCastException: org.apache.felix.cm.impl.ConfigurationAdminImpl
	at org.apache.felix.scr.impl.config.ConfigurationComponentRegistry.createComponentHolder(ConfigurationComponentRegistry.java:104)
	at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:244)
	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:238)
	at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:174)
	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3576)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1650)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
	at pl.eurobank.osgi.deployment.internal.AutoDeployActivator.processAutoDeploy(AutoDeployActivator.java:306)
	at pl.eurobank.osgi.deployment.internal.AutoDeployActivator.start(AutoDeployActivator.java:88)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
	at java.lang.Thread.run(Thread.java:595)
{code}

{code}
final BundleContext bundleContext = activator.getBundleContext();
        final String bundleLocation = bundleContext.getBundle().getLocation();
        final String name = metadata.getName();

        final ServiceReference caRef = bundleContext.getServiceReference( ConfigurationAdmin.class.getName()
);
        if ( caRef != null )
        {
            *final ConfigurationAdmin ca = ( ConfigurationAdmin ) bundleContext.getService(
caRef );*
{code}

> Components starts disabled
> --------------------------
>
>                 Key: FELIX-1984
>                 URL: https://issues.apache.org/jira/browse/FELIX-1984
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions:  scr-1.4.0
>         Environment: felix-2.0.2
>            Reporter: Artur Opala
>         Attachments: configuration-status-20100113-1209+0100.zip
>
>
> From SCR version 1.2.0 all components starts with state 'disabled', SCR 1.0.8 worked
fine. Configuration dump attached as zip file.
> {code}
> 0=[pl.eurobank.osgi.springframework.web.SpringServletContextListener]
> Bundlepl.eurobank.osgi.springframework-bundle (11)
> State=disabled
> DefaultState=enabled
> Activation=delayed
> ServiceType=service
> Services=javax.servlet.ServletContextListener
> Properties=
> component.id=0
> component.name=pl.eurobank.osgi.springframework.web.SpringServletContextListener
> service.pid=pl.eurobank.osgi.springframework.web.SpringServletContextListener
> 1=[pl.eurobank.osgi.launcher.bundle.internal.LauncherSupportActivator]
> Bundlepl.eurobank.osgi.launcher-bundle (18)
> State=disabled
> DefaultState=enabled
> Activation=immediate
> Reference=bundleProviderService, Satisfied
> Service Name: pl.eurobank.osgi.deployment.BundleProviderService
> Multiple: single
> Optional: optional
> Policy: dynamic
> No Services bound
> Reference=httpService, Satisfied
> Service Name: org.osgi.service.http.HttpService
> Multiple: single
> Optional: optional
> Policy: dynamic
> No Services bound
> Reference=logReader, Satisfied
> Service Name: org.osgi.service.log.LogReaderService
> Multiple: single
> Optional: optional
> Policy: dynamic
> No Services bound
> Properties=
> component.id=1
> component.name=pl.eurobank.osgi.launcher.bundle.internal.LauncherSupportActivator
> service.pid=pl.eurobank.osgi.launcher.bundle.internal.LauncherSupportActivator
> 2=[pl.eurobank.osgi.struts.internal.TestFilter]
> Bundlepl.eurobank.osgi.struts-1-2-bundle (19)
> State=disabled
> DefaultState=enabled
> Activation=delayed
> ServiceType=service
> Services=javax.servlet.Filter
> Properties=
> alias=/test2/*
> component.id=2
> component.name=pl.eurobank.osgi.struts.internal.TestFilter
> contextPath=/bar
> init.testparam=testvalue
> service.pid=pl.eurobank.osgi.struts.internal.TestFilter
> service.ranking=50
> 3=[pl.eurobank.osgi.struts.internal.IndexServlet]
> Bundlepl.eurobank.osgi.struts-1-2-bundle (19)
> State=disabled
> DefaultState=enabled
> Activation=delayed
> ServiceType=service
> Services=javax.servlet.Servlet
> Properties=
> alias=/index
> component.id=3
> component.name=pl.eurobank.osgi.struts.internal.IndexServlet
> contextPath=/
> init.testparam=testvalue
> service.pid=pl.eurobank.osgi.struts.internal.IndexServlet
> 4=[pl.eurobank.osgi.struts.internal.StrutsProxyServlet]
> Bundlepl.eurobank.osgi.struts-1-2-bundle (19)
> State=disabled
> DefaultState=enabled
> Activation=delayed
> ServiceType=service
> Services=javax.servlet.Servlet
> Properties=
> alias=*.ebk
> component.id=4
> component.name=pl.eurobank.osgi.struts.internal.StrutsProxyServlet
> service.pid=pl.eurobank.osgi.struts.internal.StrutsProxyServlet
> 5=[pl.eurobank.osgi.jsp.internal.JspProxyServlet]
> Bundlepl.eurobank.osgi.jsp-bundle (20)
> State=disabled
> DefaultState=enabled
> Activation=delayed
> ServiceType=service
> Services=org.osgi.util.tracker.BundleTrackerCustomizer, java.io.Serializable, javax.servlet.Servlet,
javax.servlet.ServletConfig
> Properties=
> alias=*.jsp
> component.id=5
> component.name=pl.eurobank.osgi.jsp.internal.JspProxyServlet
> service.pid=pl.eurobank.osgi.jsp.internal.JspProxyServlet
> 6=[pl.eurobank.multipulpit.system.menu.MenuService]
> Bundleeb-multipulpit-system (25)
> State=disabled
> DefaultState=enabled
> Activation=immediate
> ServiceType=service
> Services=pl.eurobank.multipulpit.system.menu.MenuService
> Properties=
> component.id=6
> component.name=pl.eurobank.multipulpit.system.menu.MenuService
> service.pid=pl.eurobank.multipulpit.system.menu.MenuService
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message