Oh, And if you wonder why I was using 'mvn clean package', I had run
earlier into different problems with 'mvn clean package
-Dconf.directory=/opt/syncope/conf
-Dbundles.directory=/opt/syncope/bundles
-Dlog.directory=/opt/syncope/log ', in which syncope did do even less.
So hence, i started running mvn clean package....
^_^
On 09-10-15 13:46, Ralph de Boom wrote:
On 09-10-15 13:20, Francesco Chicchiriccò wrote:
mvn clean package -Dconf.directory=/opt/syncope/conf
-Dbundles.directory=/opt/syncope/bundles
-Dlog.directory=/opt/syncope/log
Huzzah, I finally found the cause.
using mvn clean package, the eventual war generated will contain
references to load stuff from the project source directory. Which
causes stuff to be loaded on runtime that breaks deploying the war
properly.
strace -f -e trace=open bin/catalina.sh run 2>>strace2.log 3>>strace2.log
cat strace.log | grep open | grep /home/ralph/projects/
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/log/core.log",
O_RDWR|O_CREAT, 0666) = 200
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/log/core-persistence.log",
O_RDWR|O_CREAT, 0666) = 201
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/log/core-rest.log",
O_RDWR|O_CREAT, 0666) = 202
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/log/core-connid.log",
O_RDWR|O_CREAT, 0666) = 203
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/test-classes/persistence.properties",
O_RDONLY) = 204
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/test-classes/persistence.properties",
O_RDONLY) = 204
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/test-classes/rest.properties",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/test-classes/security.properties",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/test-classes/connid.properties",
O_RDONLY) = 204
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/test-classes/workflow.properties",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/test-classes/mail.properties",
O_RDONLY) = 204
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.ldap-1.4.0.jar",
O_RDONLY) = 205
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.soap-1.3.0.jar",
O_RDONLY) = 205
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.db.table-2.2.2.jar",
O_RDONLY) = 205
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.ad-1.2.3.jar",
O_RDONLY) = 205
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.csvdir-0.8.2.jar",
O_RDONLY) = 205
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.ldap-1.4.0.jar",
O_RDONLY) = 205
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.soap-1.3.0.jar",
O_RDONLY) = 207
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.db.table-2.2.2.jar",
O_RDONLY) = 246
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.ad-1.2.3.jar",
O_RDONLY) = 248
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/core/target/bundles/net.tirasa.connid.bundles.csvdir-0.8.2.jar",
O_RDONLY) = 252
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/console/target/log/console.log",
O_RDWR|O_CREAT, 0666) = 107
[pid 27424]
open("/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/console/target/test-classes/console.properties",
O_RDONLY) = 108
I don't know which of these files causes the problems I had. But my
case is solved.
I might add a note that even with 'mvn clean package
-Dconf.directory=/opt/syncope/conf
-Dbundles.directory=/opt/syncope/bundles
-Dlog.directory=/opt/syncope/log' a reference to my project source dir
is still made!
./webapps/syncope-console/WEB-INF/classes/console.properties:21:activitiModelerDirectory=/home/ralph/projects/git/bnl-iam-syncope-1.2.5/nl.stichtingbibliotheek.idm/console/target/activiti-modeler
If this might cause problems you might need to include this on the
documentation how to change this setting accordingly?
Cheers,
Ralph