You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "richard stone (JIRA)" <ji...@apache.org> on 2009/10/03 10:44:23 UTC

[jira] Commented: (FELIX-1683) The configuration in feature.xml setting can not survive after framework restart

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

richard stone commented on FELIX-1683:
--------------------------------------

Retried it  several times later, can not repeat it again.

All configurations created(no matter by feature.xml or by etc setting) were persisted under Configuration Admin bundle's storage.

Check the log file, it seems the http service bundle starts but the  Configuration Admin bundle still does not complete loading the persisted configurations, this is hard to avoid in OSGi dynamic environment, I believe. So I am closing this issue.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2009-10-3 15:25:18 org.apache.felix.karaf.main.SimpleFileLock lock
Info: locking
15:25:19,531 | INFO  | Thread-1         | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.fileinstall-deploy.cfg
15:25:19,750 | INFO  | nerated-bundles} | fileinstall                      | ?                                   ? | {felix.fileinstall.poll (ms) = 1000, felix.fileinstall.dir = C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\deploy, felix.fileinstall.debug = -1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\data\generated-bundles, felix.fileinstall.filter = null}
15:25:20,031 | INFO  | nerated-bundles} | fileinstall                      | ?                                   ? | {felix.fileinstall.poll (ms) = 1000, felix.fileinstall.dir = C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\deploy, felix.fileinstall.debug = -1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\data\generated-bundles, felix.fileinstall.filter = null}
15:25:20,078 | INFO  | Thread-1         | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.karaf.features.cfg
15:25:20,375 | INFO  | Thread-1         | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.karaf.log.cfg
15:25:20,375 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Updating configuration from org.ops4j.pax.url.mvn.cfg
15:25:20,640 | INFO  | Thread-1         | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.karaf.management.cfg
15:25:20,984 | INFO  | Thread-1         | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.karaf.shell.cfg
15:25:21,843 | INFO  | FelixStartLevel  | jetty                            | .service.internal.util.JCLLogger  102 | Logging to org.ops4j.pax.web.service.internal.util.JCLLogger@1acee78 via org.ops4j.pax.web.service.internal.util.JCLLogger
15:25:21,859 | INFO  | FelixStartLevel  | Activator                        | x.web.service.internal.Activator   68 | Starting pax http service
15:25:21,968 | INFO  | Thread-1         | fileinstall                      | ?                                   ? | Updating configuration from org.ops4j.pax.logging.cfg
15:25:22,156 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Installed C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\etc\org.ops4j.pax.url.mvn.cfg
15:25:22,312 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.karaf.shell.cfg
15:25:22,531 | WARN  | FelixStartLevel  | ConfigurationImpl                | rvice.internal.ConfigurationImpl  341 | Reading configuration property org.ops4j.pax.web.session.timeout has failed
15:25:22,531 | INFO  | FelixStartLevel  | ServerControllerImpl             | ce.internal.ServerControllerImpl   68 | configuring server: ServerControllerImpl{state=UNCONFIGURED} -> ConfigurationImpl{http enabled=true,http port=8080,http secure enabled=false,http secure port=8443,ssl keystore=C:\Documents and Settings\kshi\.keystore,ssl keystoreType=null,session timeout=null,listening addresses=[Ljava.lang.String;@107b56e}
15:25:22,546 | INFO  | FelixStartLevel  | ServerControllerImpl             | ce.internal.ServerControllerImpl   56 | starting server: ServerControllerImpl{state=STOPPED}
15:25:22,640 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Installed C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\etc\org.apache.felix.karaf.shell.cfg
15:25:22,718 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Updating configuration from org.ops4j.pax.logging.cfg
15:25:22,750 | INFO  | Thread-1         | fileinstall                      | ?                                   ? | Updating configuration from org.ops4j.pax.url.mvn.cfg
15:25:22,890 | INFO  | FelixStartLevel  | JettyServerImpl                  | service.internal.JettyServerImpl   98 | adding connectorNIOSocketConnectorWrapper@0.0.0.0:8080
15:25:22,906 | WARN  | FelixStartLevel  | ConfigurationImpl                | rvice.internal.ConfigurationImpl  341 | Reading configuration property org.ops4j.pax.web.session.timeout has failed
15:25:22,906 | INFO  | FelixStartLevel  | JettyServerImpl                  | service.internal.JettyServerImpl   62 | starting JettyServerImpl{}
15:25:22,906 | INFO  | FelixStartLevel  | jetty                            | .service.internal.util.JCLLogger  102 | jetty-6.1.x
15:25:23,296 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Installed C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\etc\org.ops4j.pax.logging.cfg
15:25:23,343 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.karaf.log.cfg
15:25:23,453 | INFO  | FelixStartLevel  | jetty                            | .service.internal.util.JCLLogger  102 | Started NIOSocketConnectorWrapper@0.0.0.0:8080
15:25:23,468 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Installed C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\etc\org.apache.felix.karaf.log.cfg
15:25:23,515 | WARN  | FelixStartLevel  | ConfigurationImpl                | rvice.internal.ConfigurationImpl  341 | Reading configuration property org.ops4j.pax.web.session.timeout has failed
15:25:23,562 | WARN  | guration Updater | ConfigurationImpl                | rvice.internal.ConfigurationImpl  341 | Reading configuration property org.ops4j.pax.web.session.timeout has failed
15:25:23,578 | INFO  | FelixStartLevel  | Activator                        | x.web.service.internal.Activator   72 | Started pax http service
15:25:23,578 | INFO  | guration Updater | ServerControllerImpl             | ce.internal.ServerControllerImpl   68 | configuring server: ServerControllerImpl{state=STARTED} -> ConfigurationImpl{http enabled=true,http port=8181,http secure enabled=false,http secure port=8443,ssl keystore=C:\Documents and Settings\kshi\.keystore,ssl keystoreType=null,session timeout=null,listening addresses=[Ljava.lang.String;@17574b9}
15:25:23,578 | INFO  | guration Updater | ServerControllerImpl             | ce.internal.ServerControllerImpl   62 | stopping server: ServerControllerImpl{state=STARTED}
15:25:23,578 | INFO  | guration Updater | JettyServerImpl                  | service.internal.JettyServerImpl   82 | stopping JettyServerImpl{}
15:25:23,609 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.karaf.management.cfg
15:25:23,703 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Installed C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\etc\org.apache.felix.karaf.management.cfg
15:25:23,765 | INFO  | guration Updater | ServerControllerImpl             | ce.internal.ServerControllerImpl   56 | starting server: ServerControllerImpl{state=STOPPED}
15:25:23,765 | INFO  | guration Updater | JettyServerImpl                  | service.internal.JettyServerImpl   98 | adding connectorNIOSocketConnectorWrapper@0.0.0.0:8181
15:25:23,765 | WARN  | guration Updater | ConfigurationImpl                | rvice.internal.ConfigurationImpl  341 | Reading configuration property org.ops4j.pax.web.session.timeout has failed
15:25:23,812 | INFO  | guration Updater | JettyServerImpl                  | service.internal.JettyServerImpl   62 | starting JettyServerImpl{}
15:25:23,812 | INFO  | guration Updater | jetty                            | .service.internal.util.JCLLogger  102 | jetty-6.1.x
15:25:23,859 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   33 | binding bundle: [org.apache.felix.webconsole [34]] to http service
15:25:23,890 | INFO  | FelixStartLevel  | HttpServiceStarted               | vice.internal.HttpServiceStarted   61 | Creating http service for: org.apache.felix.webconsole [34]
15:25:23,906 | INFO  | FelixStartLevel  | HttpServiceProxy                 | ervice.internal.HttpServiceProxy   74 | Creating adefault context
15:25:23,984 | INFO  | FelixStartLevel  | HttpServiceProxy                 | ervice.internal.HttpServiceProxy   52 | Registering servlet: [/system/console] -> org.apache.felix.webconsole.internal.servlet.OsgiManager@935741
15:25:24,031 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.karaf.features.cfg
15:25:24,125 | INFO  | FelixStartLevel  | HttpServiceProxy                 | ervice.internal.HttpServiceProxy   62 | Registering resource: [/system/console/res] -> /res
15:25:24,218 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Installed C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\etc\org.apache.felix.karaf.features.cfg
15:25:24,312 | INFO  | guration Updater | jetty                            | .service.internal.util.JCLLogger  102 | Started NIOSocketConnectorWrapper@0.0.0.0:8181
15:25:24,312 | INFO  | guration Updater | HttpServiceStarted               | ce.internal.HttpServiceStarted$1   77 | Handling event: [STARTED]
15:25:24,828 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Updating configuration from org.apache.felix.fileinstall-deploy.cfg
15:25:25,265 | INFO  | .0-SNAPSHOT/etc} | fileinstall                      | ?                                   ? | Installed C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\etc\org.apache.felix.fileinstall-deploy.cfg
15:25:25,562 | INFO  | guration Updater | JettyServerWrapper               | vice.internal.JettyServerWrapper  117 | added servlet context: HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@1458657}
15:25:26,078 | INFO  | guration Updater | webconsole                       | ?                                   ? | Failed to instantiate plugin org.apache.felix.webconsole.internal.compendium.ComponentsServlet. Reason: java.lang.NoClassDefFoundError: org.apache.felix.scr.ScrService
15:25:26,640 | INFO  | guration Updater | webconsole                       | ?                                   ? | Failed to instantiate plugin org.apache.felix.webconsole.internal.deppack.DepPackServlet. Reason: java.lang.NoClassDefFoundError: org/osgi/service/deploymentadmin/DeploymentException
15:25:26,656 | INFO  | guration Updater | webconsole                       | ?                                   ? | Failed to instantiate plugin org.apache.felix.webconsole.internal.misc.EventAdminServlet. Reason: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
15:25:26,718 | INFO  | guration Updater | webconsole                       | ?                                   ? | Failed to instantiate plugin org.apache.felix.webconsole.internal.misc.ShellServlet. Reason: java.lang.NoClassDefFoundError: org.apache.felix.shell.ShellService
15:25:26,968 | WARN  | guration Updater | ConfigurationImpl                | rvice.internal.ConfigurationImpl  341 | Reading configuration property org.ops4j.pax.web.session.timeout has failed
15:25:27,140 | INFO  | guration Updater | HttpServiceProxy                 | ervice.internal.HttpServiceProxy   68 | Unregistering [/system/console/res]
15:25:27,140 | INFO  | guration Updater | HttpServiceProxy                 | ervice.internal.HttpServiceProxy   68 | Unregistering [/system/console]
15:25:27,156 | INFO  | guration Updater | HttpServiceProxy                 | ervice.internal.HttpServiceProxy   74 | Creating adefault context
15:25:27,171 | INFO  | guration Updater | HttpServiceProxy                 | ervice.internal.HttpServiceProxy   52 | Registering servlet: [/system/console] -> org.apache.felix.webconsole.internal.servlet.OsgiManager@935741
15:25:27,171 | INFO  | guration Updater | JettyServerWrapper               | vice.internal.JettyServerWrapper  117 | added servlet context: HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@908faf}
15:25:27,328 | INFO  | guration Updater | webconsole                       | ?                                   ? | Failed to instantiate plugin org.apache.felix.webconsole.internal.compendium.ComponentsServlet. Reason: java.lang.NoClassDefFoundError: Could not initialize class org.apache.felix.webconsole.internal.compendium.ComponentsServlet
15:25:27,343 | INFO  | guration Updater | webconsole                       | ?                                   ? | Failed to instantiate plugin org.apache.felix.webconsole.internal.deppack.DepPackServlet. Reason: java.lang.NoClassDefFoundError: org/osgi/service/deploymentadmin/DeploymentException
15:25:27,343 | INFO  | guration Updater | webconsole                       | ?                                   ? | Failed to instantiate plugin org.apache.felix.webconsole.internal.misc.EventAdminServlet. Reason: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
15:25:27,343 | INFO  | guration Updater | webconsole                       | ?                                   ? | Failed to instantiate plugin org.apache.felix.webconsole.internal.misc.ShellServlet. Reason: java.lang.NoClassDefFoundError: org.apache.felix.shell.ShellService
15:25:27,359 | INFO  | guration Updater | HttpServiceProxy                 | ervice.internal.HttpServiceProxy   62 | Registering resource: [/system/console/res] -> /res
15:25:27,406 | INFO  | nerated-bundles} | fileinstall                      | ?                                   ? | {felix.fileinstall.poll (ms) = 1000, felix.fileinstall.dir = C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\deploy, felix.fileinstall.debug = -1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Documents and Settings\kshi\workspace\karaf\assembly\target\apache-felix-karaf-1.1.0-SNAPSHOT\data\generated-bundles, felix.fileinstall.filter = null}
15:25:27,859 | INFO  | pool-2-thread-3  | GogoPlugin                       | karaf.webconsole.gogo.GogoPlugin   97 | Gogo plugin activated
15:25:29,093 | INFO  | pool-2-thread-2  | FeaturesPlugin                   | bconsole.features.FeaturesPlugin   84 | Features plugin activated
15:25:32,562 | INFO  | pool-2-thread-1  | AdminPlugin                      | raf.webconsole.admin.AdminPlugin   56 | Admin plugin activated
15:25:32,937 | INFO  | pool-2-thread-2  | SecurityUtils                    | e.sshd.common.util.SecurityUtils   80 | BouncyCastle not registered, using the default JCE provider


> The configuration in feature.xml setting can not survive after framework restart
> --------------------------------------------------------------------------------
>
>                 Key: FELIX-1683
>                 URL: https://issues.apache.org/jira/browse/FELIX-1683
>             Project: Felix
>          Issue Type: Improvement
>          Components: Karaf
>            Reporter: richard stone
>            Priority: Minor
>
> In the apache-felix-karaf-1.1.0-SNAPSHOT-features.xml, I found the http port was 8181, and it did listen on that port, but after I restarted the karaf, this time, it listened on default 8080 port. This means the configuration in feature.xml setting can not survive after framework restart.

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