I did not! I suspected that was necessary, but could no figure it out what would be the structure of that file. I even looked at another IPT test installation I manage, but as it is deployed as rpm package, could not find the equivalent. Can you help with a sample of whar datadir.location should look like? Thanks for the support. ------------------ Rui Figueira Coordenador do Nó Português do GBIF Professor Associado ruifigueira@isa.ulisboa.pt Instituto Superior de Agronomia Herbário Tapada da Ajuda, 1349-017 Lisboa, Portugal Tel. +351 213653165 | Fax. +351 213653195 http://www.gbif.pt http://www.isa.ulisboa.pt On 2026-03-30 21:52, Julien Cigar wrote:
Do you have a populated datadir.location file under WEB-INF directory?
On Monday, March 30th, 2026 at 18:16, Rui Figueira via IPT <ipt@lists.gbif.org> wrote:
Dear all,
I am having troubles in upgrading my IPT 3.1.7 installation to 3.2.3. I am on a Debian 12, with tomcat9 and openJDK 17.
I am upgrading in the old way of replacing by the war with the new version. However, ver 3.2.3 fails to deploy with the following error in catalina.out:
ERROR ContextLoader Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'freemarkerConfig' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: No data dir has been configured yet at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ...
Caused by: java.lang.IllegalStateException: No data dir has been configured yet at org.gbif.ipt.config.DataDir.dataFile(DataDir.java:173) at org.gbif.ipt.config.IPTModule.provideFreemarker(IPTModule.java:112) ...
I had no problems in upgrading from 3.1.6 to 3.1.7, namely in defining the data dir, but any attempt with 3.2 fails.
Can you help?
Best,
Rui
-- ------------------
Rui Figueira Coordenador do Nó Português do GBIF Professor Associado ruifigueira@isa.ulisboa.pt Instituto Superior de Agronomia Herbário Tapada da Ajuda, 1349-017 Lisboa, Portugal Tel. +351 213653165 | Fax. +351 213653195 http://www.gbif.pt http://www.isa.ulisboa.pt
_______________________________________________ IPT mailing list -- ipt@lists.gbif.org To unsubscribe send an email to ipt-leave@lists.gbif.org
Hello, It should simply contain a directory (your IPT data director): ipt1% pwd /usr/local/apache-tomcat-9.0/vhosts/ipt.biodiversity.be/ROOT/WEB-INF ipt1% cat datadir.location /filer/ipt/ipt.biodiversity.be/private Julien On Tuesday, March 31st, 2026 at 10:47, Rui Figueira via IPT <ipt@lists.gbif.org> wrote:
I did not! I suspected that was necessary, but could no figure it out what would be the structure of that file. I even looked at another IPT test installation I manage, but as it is deployed as rpm package, could not find the equivalent.
Can you help with a sample of whar datadir.location should look like?
Thanks for the support.
------------------
Rui Figueira Coordenador do Nó Português do GBIF Professor Associado ruifigueira@isa.ulisboa.pt Instituto Superior de Agronomia Herbário Tapada da Ajuda, 1349-017 Lisboa, Portugal Tel. +351 213653165 | Fax. +351 213653195 http://www.gbif.pt http://www.isa.ulisboa.pt
On 2026-03-30 21:52, Julien Cigar wrote:
Do you have a populated datadir.location file under WEB-INF directory?
On Monday, March 30th, 2026 at 18:16, Rui Figueira via IPT <ipt@lists.gbif.org> wrote:
Dear all,
I am having troubles in upgrading my IPT 3.1.7 installation to 3.2.3. I am on a Debian 12, with tomcat9 and openJDK 17.
I am upgrading in the old way of replacing by the war with the new version. However, ver 3.2.3 fails to deploy with the following error in catalina.out:
ERROR ContextLoader Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'freemarkerConfig' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: No data dir has been configured yet at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ...
Caused by: java.lang.IllegalStateException: No data dir has been configured yet at org.gbif.ipt.config.DataDir.dataFile(DataDir.java:173) at org.gbif.ipt.config.IPTModule.provideFreemarker(IPTModule.java:112) ...
I had no problems in upgrading from 3.1.6 to 3.1.7, namely in defining the data dir, but any attempt with 3.2 fails.
Can you help?
Best,
Rui
-- ------------------
Rui Figueira Coordenador do Nó Português do GBIF Professor Associado ruifigueira@isa.ulisboa.pt Instituto Superior de Agronomia Herbário Tapada da Ajuda, 1349-017 Lisboa, Portugal Tel. +351 213653165 | Fax. +351 213653195 http://www.gbif.pt http://www.isa.ulisboa.pt
_______________________________________________ IPT mailing list -- ipt@lists.gbif.org To unsubscribe send an email to ipt-leave@lists.gbif.org
IPT mailing list -- ipt@lists.gbif.org To unsubscribe send an email to ipt-leave@lists.gbif.org
Hi Julien, Thanks! I managed to solve it by creating $CATALINA_BASE/conf/Catalina/localhost/<ipt>.xml, which was different from the existing that was at $CATALINA_BASE/Catalina/localhost/<ipt>.xml. I prefered this solution because normally I delete the existing deployed directory, including WEB-INF, before installing a new version. Best, Rui ------------------ Rui Figueira Coordenador do Nó Português do GBIF Professor Associado ruifigueira@isa.ulisboa.pt Instituto Superior de Agronomia Herbário Tapada da Ajuda, 1349-017 Lisboa, Portugal Tel. +351 213653165 | Fax. +351 213653195 http://www.gbif.pt http://www.isa.ulisboa.pt On 2026-03-31 10:12, Julien Cigar wrote:
Hello,
It should simply contain a directory (your IPT data director):
ipt1% pwd /usr/local/apache-tomcat-9.0/vhosts/ipt.biodiversity.be/ROOT/WEB-INF
ipt1% cat datadir.location /filer/ipt/ipt.biodiversity.be/private
Julien
On Tuesday, March 31st, 2026 at 10:47, Rui Figueira via IPT <ipt@lists.gbif.org> wrote:
I did not! I suspected that was necessary, but could no figure it out what would be the structure of that file. I even looked at another IPT test installation I manage, but as it is deployed as rpm package, could not find the equivalent.
Can you help with a sample of whar datadir.location should look like?
Thanks for the support.
------------------
Rui Figueira Coordenador do Nó Português do GBIF Professor Associado ruifigueira@isa.ulisboa.pt Instituto Superior de Agronomia Herbário Tapada da Ajuda, 1349-017 Lisboa, Portugal Tel. +351 213653165 | Fax. +351 213653195 http://www.gbif.pt http://www.isa.ulisboa.pt
On 2026-03-30 21:52, Julien Cigar wrote:
Do you have a populated datadir.location file under WEB-INF directory?
On Monday, March 30th, 2026 at 18:16, Rui Figueira via IPT <ipt@lists.gbif.org> wrote:
Dear all,
I am having troubles in upgrading my IPT 3.1.7 installation to 3.2.3. I am on a Debian 12, with tomcat9 and openJDK 17.
I am upgrading in the old way of replacing by the war with the new version. However, ver 3.2.3 fails to deploy with the following error in catalina.out:
ERROR ContextLoader Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'freemarkerConfig' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: No data dir has been configured yet at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ...
Caused by: java.lang.IllegalStateException: No data dir has been configured yet at org.gbif.ipt.config.DataDir.dataFile(DataDir.java:173) at org.gbif.ipt.config.IPTModule.provideFreemarker(IPTModule.java:112) ...
I had no problems in upgrading from 3.1.6 to 3.1.7, namely in defining the data dir, but any attempt with 3.2 fails.
Can you help?
Best,
Rui
-- ------------------
Rui Figueira Coordenador do Nó Português do GBIF Professor Associado ruifigueira@isa.ulisboa.pt Instituto Superior de Agronomia Herbário Tapada da Ajuda, 1349-017 Lisboa, Portugal Tel. +351 213653165 | Fax. +351 213653195 http://www.gbif.pt http://www.isa.ulisboa.pt
_______________________________________________ IPT mailing list -- ipt@lists.gbif.org To unsubscribe send an email to ipt-leave@lists.gbif.org
IPT mailing list -- ipt@lists.gbif.org To unsubscribe send an email to ipt-leave@lists.gbif.org
participants (2)
-
Julien Cigar -
Rui Figueira