[NETVIRT-48] Java exception when install netvirt feature java.io.FileNotFoundException: ~/etc/shiro.ini (No such file or directory) Created: 04/Aug/16 Updated: 19/Oct/17 Resolved: 05/Aug/16 |
|
| Status: | Resolved |
| Project: | netvirt |
| Component/s: | General |
| Affects Version/s: | Beryllium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Nikolas Hermanns | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| Attachments: |
|
| External issue ID: | 6340 |
| Description |
|
When installing the netvirt feature a lot of exceptions are thrown. This is one of them. Stable release SR-2 Beryllium. 2016-08-04 17:03:38,019 | ERROR | pool-12-thread-1 | EnvironmentLoader | 223 - org.apache.shiro.web - 1.2.3 | Shiro environment initializa |
| Comments |
| Comment by Nikolas Hermanns [ 04/Aug/16 ] |
|
Attachment karaf.log has been added with description: karaf file |
| Comment by Nikolas Hermanns [ 04/Aug/16 ] |
|
I used: to install the feature. |
| Comment by Nikolas Hermanns [ 05/Aug/16 ] |
|
Ok found the issue my self. the problem was that I had a startup script:
if [ "$DEBUG" = true ]; then for file in "$KARAF_HOME"/lib/karaf*.jar exec ${JAVA_HOME}/bin/java $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_ENDORSED_DIRS}" -Djava.ext.dirs="${JAVA_EXT_DIRS}" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Dkaraf.etc="$KARAF_ETC" -Djava.io.tmpdir="$KARAF_DATA/tmp" -Djava.util.logging.config.file="$KARAF_BASE/etc/java.util.logging.properties" $KARAF_OPTS $OPTS -classpath "$CLASSPATH" $MAIN which happend to be started in the home folder. then java shiro is not smart enough to see where its root folder is so: when executing the start_opendayulight script from the ~/opendaylight/distribution folder it actually worked and did not throw any error anymore. |