<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:20:34 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[NETVIRT-48] Java exception when install netvirt feature java.io.FileNotFoundException: ~/etc/shiro.ini (No such file or directory)</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-48</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;When installing the netvirt feature a lot of exceptions are thrown. This is one of them. &lt;/p&gt;

&lt;p&gt;Stable release SR-2 Beryllium.&lt;/p&gt;

&lt;p&gt;2016-08-04 17:03:38,019 | ERROR | pool-12-thread-1 | EnvironmentLoader                | 223 - org.apache.shiro.web - 1.2.3 | Shiro environment initializa&lt;br/&gt;
tion failed&lt;br/&gt;
org.apache.shiro.config.ConfigurationException: java.io.FileNotFoundException: /home/cloudci/etc/shiro.ini (No such file or directory)&lt;br/&gt;
        at org.apache.shiro.config.Ini.loadFromPath(Ini.java:242)&lt;span class=&quot;error&quot;&gt;&amp;#91;222:org.apache.shiro.core:1.2.3&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment.createShiroIni(KarafIniWebEnvironment.java:109)[220:org.opendaylight.aaa.shiro:0.3.2&lt;br/&gt;
.Beryllium-SR2]&lt;br/&gt;
        at org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment.createDefaultShiroIni(KarafIniWebEnvironment.java:95)[220:org.opendaylight.aaa.shiro&lt;br/&gt;
:0.3.2.Beryllium-SR2]&lt;br/&gt;
        at org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment.init(KarafIniWebEnvironment.java:45)[220:org.opendaylight.aaa.shiro:0.3.2.Beryllium-&lt;br/&gt;
SR2]&lt;br/&gt;
        at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)&lt;span class=&quot;error&quot;&gt;&amp;#91;222:org.apache.shiro.core:1.2.3&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)&lt;span class=&quot;error&quot;&gt;&amp;#91;222:org.apache.shiro.core:1.2.3&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221)&lt;span class=&quot;error&quot;&gt;&amp;#91;223:org.apache.shiro.web:1.2.3&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="19969">NETVIRT-48</key>
            <summary>Java exception when install netvirt feature java.io.FileNotFoundException: ~/etc/shiro.ini (No such file or directory)</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="nikolas.hermanns@ericsson.com">Nikolas Hermanns</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Aug 2016 15:21:55 +0000</created>
                <updated>Thu, 19 Oct 2017 21:28:18 +0000</updated>
                            <resolved>Fri, 5 Aug 2016 12:23:12 +0000</resolved>
                                    <version>Beryllium</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="36223" author="nikolas.hermanns@ericsson.com" created="Thu, 4 Aug 2016 15:21:55 +0000"  >&lt;p&gt;Attachment karaf.log has been added with description: karaf file&lt;/p&gt;</comment>
                            <comment id="36221" author="nikolas.hermanns@ericsson.com" created="Thu, 4 Aug 2016 15:23:07 +0000"  >&lt;p&gt;I used:&lt;br/&gt;
feature:install odl-ovsdb-openstack&lt;/p&gt;

&lt;p&gt;to install the feature.&lt;/p&gt;</comment>
                            <comment id="36222" author="nikolas.hermanns@ericsson.com" created="Fri, 5 Aug 2016 12:23:12 +0000"  >&lt;p&gt;Ok found the issue my self.&lt;/p&gt;

&lt;p&gt;the problem was that I had a startup script:&lt;br/&gt;
$cat ~/start_opendaylight &lt;br/&gt;
#!/bin/bash&lt;br/&gt;
KARAF_HOME=&quot;/opt/opendaylight&quot;&lt;br/&gt;
JAVA_OPTS=&quot;-server -Xms256M -Xmx2048M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dcom.sun.management.jmxremote&quot;&lt;br/&gt;
OPTS=&quot;-Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true&quot;&lt;br/&gt;
MAIN=&quot;org.apache.karaf.main.Main&quot;&lt;br/&gt;
DEBUG=true&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Try to find lang used in system&lt;br/&gt;
test -f /etc/default/locale &amp;amp;&amp;amp; . /etc/default/locale || true&lt;br/&gt;
export LANG=$LANG&lt;br/&gt;
#export JAVA_HOME=$(readlink -f /usr/bin/java | sed &quot;s:/jre/bin/java::&quot;)&lt;br/&gt;
export JAVA_HOME=/home/cloudci/jdk1.8.0_101&lt;br/&gt;
export KARAF_BASE=&quot;$KARAF_HOME&quot;&lt;br/&gt;
export KARAF_DATA=&quot;$KARAF_BASE/data&quot;&lt;br/&gt;
export KARAF_ETC=&quot;$KARAF_BASE/etc&quot;&lt;br/&gt;
export LD_LIBRARY_PATH=&quot;${LD_LIBRARY_PATH}:$KARAF_BASE/lib&quot;&lt;br/&gt;
export JAVA_ENDORSED_DIRS=&quot;${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed&quot;&lt;br/&gt;
export JAVA_EXT_DIRS=&quot;${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext&quot;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;if [ &quot;$DEBUG&quot; = true ]; then&lt;br/&gt;
  JAVA_OPTS=&quot;-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7586 ${JAVA_OPTS}&quot;&lt;br/&gt;
fi&lt;/p&gt;

&lt;p&gt;for file in &quot;$KARAF_HOME&quot;/lib/karaf*.jar&lt;br/&gt;
do&lt;br/&gt;
  if [ -z &quot;$CLASSPATH&quot; ]; then&lt;br/&gt;
      CLASSPATH=&quot;$file&quot;&lt;br/&gt;
  else&lt;br/&gt;
      CLASSPATH=&quot;$CLASSPATH:$file&quot;&lt;br/&gt;
  fi&lt;br/&gt;
done&lt;/p&gt;

&lt;p&gt;exec ${JAVA_HOME}/bin/java $JAVA_OPTS -Djava.endorsed.dirs=&quot;${JAVA_ENDORSED_DIRS}&quot; -Djava.ext.dirs=&quot;${JAVA_EXT_DIRS}&quot; -Dkaraf.instances=&quot;${KARAF_HOME}/instances&quot; -Dkaraf.home=&quot;$KARAF_HOME&quot; -Dkaraf.base=&quot;$KARAF_BASE&quot; -Dkaraf.data=&quot;$KARAF_DATA&quot; -Dkaraf.etc=&quot;$KARAF_ETC&quot; -Djava.io.tmpdir=&quot;$KARAF_DATA/tmp&quot; -Djava.util.logging.config.file=&quot;$KARAF_BASE/etc/java.util.logging.properties&quot; $KARAF_OPTS $OPTS -classpath &quot;$CLASSPATH&quot; $MAIN&lt;/p&gt;

&lt;p&gt;which happend to be started in the home folder. then java shiro is not smart enough to see where its root folder is so:&lt;br/&gt;
~/opendaylight/distribution/etc/shiro.ini&lt;/p&gt;

&lt;p&gt;when executing the start_opendayulight script from the ~/opendaylight/distribution folder it actually worked and did not throw any error anymore.&lt;br/&gt;
Through this the apidoc and all other http services did not come up.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12194" name="karaf.log" size="144422" author="nikolas.hermanns@ericsson.com" created="Thu, 4 Aug 2016 15:21:55 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6340</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=6340]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i01pe7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>