Opened 7 years ago

Closed 7 years ago

#1627 closed enhancement (fixed)

SECORE error with userdb collection not found

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.5
Component: secore Version: development
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

SECORE error with userdb collection not found when running def.war in Tomcat with java_server=embedded

Normally, when java_server=embedded, SECORE is supposed to run as a standalone server with java -jar def.war.

However, if start def.war as an external application with Tomcat and with this configuration, SECORE could not start with these errors

/usr/share/tomcat7/.basex could not be written.
  INFO [03:01:22] IOUtil@147: BaseX will create secoredb from the input gml resource folder '/opt/rasdaman/share/rasdaman/war/secoredb'.
  WARN [03:01:22] IOUtil@151: Failed creating database directory: /opt/rasdaman/share/rasdaman/war/secoredb
  WARN [03:01:22] BaseX@89: Default secore database directory, please consider updating DBPATH in .basex: /usr/share/tomcat7/BaseXData
 DEBUG [03:01:22] BaseX@113: The database gml_85 doesn't seem to exist
  INFO [03:01:22] BaseX@115: Initializing database gml_85
 ERROR [03:01:25] BaseX@139: Failed initializing the gml_85 database
org.basex.core.BaseXException: /usr/share/tomcat7/BaseXData/gml_85/tbl.basex (No such file or directory)

as it tried to create secoredb outside of tomcat7/webapps folder and does not have permission to do it.

So, it should check this case as an error from user's behavior then throw a good error message, instead of trying to create all the collections and later it stops with error "collection not found".

Change History (1)

comment:1 by Bang Pham Huu, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.