Linshare doesn't find the good directory for linshare.properties

Added by Vincent Boisseau about 7 years ago

Hi,

I try to setup a new install of Linshare on a test server (Version 0.8.3) (debian lenny 5.0.6) to test upgrade in last version.
My problem is "linshare" at startup doesn't find the directory where the linshare.properties file is !!!

Log :
ATTENTION: Could not load properties from ServletContext resource [/${linshare.config.path}/linShare.properties]: Could not open ServletContext resource [/${linshare.config.path}/linShare.properties]
27 févr. 2012 16:27:40 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from ServletContext resource [/${linshare.config.path}/jackRabbit.properties]
27 févr. 2012 16:27:40 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
ATTENTION: Could not load properties from ServletContext resource [/${linshare.config.path}/jackRabbit.properties]: Could not open ServletContext resource [/${linshare.config.path}/jackRabbit.properties]
27 févr. 2012 16:27:40 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization

The files seems to be good :
rw-r--r- 1 root root 2087 fév 27 16:27 /opt/linshare/jetty/resources/linShare.properties

I think that is a problem of path, but i don't know how to change.

I tried this but without any success :
  1. java -Dlinshare.config.path=file:///opt/linshare/opt/resources
    or
  2. java -Dlinshare.config.path=/opt/linshare/opt/resources
    or
  3. java -jar linshare-0.8.3.jar -Dlinshare.config.path=/opt/linshare/opt/resources -console

I attached the linShare.properties file !!!

And another problem (I think it is related), "linshare" deploy the linshare.war in tmp directory
Log :
2012-02-27 16:27:36.951:INFO::Extract /opt/linshare/jetty/webapps/linshare.war to /tmp/Jetty_0_0_0_0_8080_linshare.war____.t1wxaz/webapp

And not in /data/linshare/ directory as setup in the linshare.properties.

Any help will be very appreciated.

Best regards.

Vincent.

linShare.properties - linShare.properties (2 kB)

linshare - File in /etc/default (521 Bytes)