Hi Arthi

Apache Stanbol is based on the Apache Sling launcher. Provided
configuration is stored under

    stanbol/config

Files under this path are managed by the OSGI environment (osgi
configuration admin) and should not be changed (especially while
Stanbol is running)

You might also see your configuration(s) under

    stanbol/fileinstall

Those files are synchronized (at least if you use the default Stanbol
config) with configurations done via the Configuration tab of the
Felix WebConsole (http://localhost:8080/system/console/configMgr).
This means that files in this directory can be changed (even at
runtime). This is based on the Sling installer
(http://sling.apache.org/site/osgi-installer.html).

In addition some Stanbol components do use

   stanbol/datafiles

to read binary configuration files (e.g. solrindex.zip files, OpenNLP
models ....).

On Mon, Jul 15, 2013 at 9:20 AM,  <arthi.ven...@wipro.com> wrote:
> Hi,
> Noticed a very strange behavior.  If Stanbol is restarted from the web 
> console on start up I saw following configured items completely disappearing.
>

You mean via the "System Information" tab of the Felix WebConsole?

When I try to do this, the OSGI environment terminates with a NPE at

Exception in thread "Sling Notifier" java.lang.NullPointerException
    at org.apache.sling.launchpad.app.Main.startSling(Main.java:407)
    at org.apache.sling.launchpad.app.Main.access$300(Main.java:50)
    at org.apache.sling.launchpad.app.Main$Notified.updated(Main.java:845)
    at 
org.apache.sling.launchpad.base.impl.SlingFelix$Notifier.run(SlingFelix.java:123)
    at java.lang.Thread.run(Thread.java:680)

Never noticed this before, because I have not used this feature of the
Felix Webconsole.

> 1.       Managed Site
>
> 2.       Entity Hub Linking
>
> 3.       Weighted chain
>
> How do we stored configured items between reboots?
>

This is all done by the default OSGI functionality to handle
configurations. See first part of the mail for details.

> Do we need to manually backup some files to ensure this does not happen.   If 
> yes what are the files ?
>

No you do not need to backup the configuration. Even after an JVM
crash there should not be any "missing" configurations

> What is the work around for this issue.?
>

I am not aware of an issue like that. Typically if services are not
available it is because of Exceptions during the activation of those
services. E.g. a ManagedSite will not active if the SolrYard for the
Site can not activate. The SolrYard might not be active because the
SolrCore with the data is not active.  So if expected services are not
available you should usually find some related exceptions in the Log
files.

You can also check the "stanbol/config" and "stanbol/fileinstall"
folders if the expected configuration files are present.


best
Rupert

> Note :  All the items were configured from the  - 
> http://localhost:8080/system/console/configMgr
>
> Thanks and Rgds,
> Arthi
>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
>
> www.wipro.com



--
| Rupert Westenthaler             rupert.westentha...@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to