We are currently working on the forum. For the short-term, all forum content will be in read-only format. We apologize for the interruption and look forward to collaborating with you shortly. All the best in your research!
I've installed OpenClinica without issue but the webservices are proving trickier. The webservice page just 404's because the webapp fails to start due to "One or more listeners failed to start". I've enabled the webservice logging to see what happens there ... but the logs are utterly empty. See the relevant chunk of catalina.out below. Any ideas on how to track this down?
INFO: Deploying web application directory /var/lib/tomcat7/webapps/OpenClinica-ws
Jan 21, 2016 1:40:46 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://code.google.com/p/jmesa is already defined
Jan 21, 2016 1:40:46 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 21, 2016 1:40:51 PM liquibase.database.template.JdbcTemplate comment
INFO: Lock Database
Jan 21, 2016 1:40:51 PM liquibase.lock.LockHandler acquireLock
INFO: Successfully acquired change log lock
Jan 21, 2016 1:40:53 PM liquibase.database.AbstractDatabase getRanChangeSetList
INFO: Reading from databasechangelog
Jan 21, 2016 1:40:53 PM liquibase.database.template.JdbcTemplate comment
INFO: Release Database Lock
Jan 21, 2016 1:40:53 PM liquibase.lock.LockHandler releaseLock
INFO: Successfully released change log lock
Jan 21, 2016 1:40:53 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Jan 21, 2016 1:40:53 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/OpenClinica-ws] startup failed due to previous errors
Technical details: Amazon Linux, OC 3.7.
0
Comments
openclinica? There would be no openclinica-ws database.
Is sysURL important for the webservices? I couldn't figure what that should be set as.
T
- I boosted the memory available to the system and made sure the right JAVA_OPTS were in place as suggested above. It may not have been the issue but I was going to have to do it sometime anyway and it might have been hiding other problems.
- A number of settings in openclinica-ws.config/datainfo.properties had to be changed. The database and logging setting were fine, but "misfireThreshold", "threadCount" and "collectStats" needed to be set as well, otherwise it looks like parsing the file was erroring out and bringing the app to a halt.
Another point was that some of the useful detailed errors / messages only appeared in "catalina.out" not "catalina.(date).log". I know very little of Tomcat so can't pick what the difference was.All in all, it was a lengthy process with a lot of trial and error
Can you please share which settings worked for you?
Many thanks,
Gerben Rienk
Just faced this issue a few minutes ago.
To solve this you have to give all variables in your datainfo.properties an actual value.
So instead of using log.dir=${log.dir} use log.dir=log.dir=${catalina.home}/logs/openclinica-ws .
This is how my datainfo.properties looks like:
#############################################################################
# 1 - Database Configuration
#
#
# REQUIRED
#############################################################################
dbType=postgres
dbUser=clinica
dbPass=mysupersecretpassword
db=openclinica
dbPort=5432
dbHost=localhost
#############################################################################
# 2 - filePath
#
#
# REQUIRED.
#############################################################################
filePath=${catalina.home}/${WEBAPP.lower}.data/
#############################################################################
# 3 - Attached File Location
#
# NOT REQUIRED
#############################################################################
# attached_file_location=
#############################################################################
# 4 - user_account_notification
#
#
# REQUIRED.
#############################################################################
userAccountNotification=email
#############################################################################
# 5 - adminEmail
#
# REQUIRED
#############################################################################
[email protected]
#############################################################################
# 6- Spring Based Email System
#
#############################################################################
mailHost=mail.smtp.com
mailPort=25
mailProtocol=smtp
mailUsername=
mailPassword=
mailSmtpAuth=false
mailSmtpStarttls.enable=false
mailSmtpsAuth=false
mailSmtpsStarttls.enable=false
mailSmtpConnectionTimeout=100
[email protected]
#############################################################################
# 8 - sysURL
#
# REQUIRED
#############################################################################
sysURL=http://localhost:8080/${WEBAPP}
#############################################################################
# 9 - max_inactive_interval
#
#
# REQUIRED
#############################################################################
maxInactiveInterval=3600
############################################################################
# 11 - Logging configuration
#
log.dir=${catalina.home}/logs/openclinica
logLocation=local
#
# Specify logging level - trace/debug/info/warn/error
logLevel=info
syslog.host=localhost
syslog.port=514
#############################################################################
# 15- Quartz Scheduler Configuration
#
# REQUIRED
#############################################################################
org.quartz.jobStore.misfireThreshold=18000000
# threadCount should be set to zero on web services modules
org.quartz.threadPool.threadCount=0
org.quartz.threadPool.threadPriority=5
#############################################################################
# 16 - CCTS configuration
#
#
# NOT REQUIRED
#############################################################################
ccts.waitBeforeCommit=6000
#############################################################################
# 19 - Usage statistics configuration
# 'collectStats' value to 'false'
collectStats=true
usage.stats.host=usage.openclinica.com
usage.stats.port=514
OpenClinica.version=3.8
#############################################################################
# 20 - Rule Designer configuration
#############################################################################
designerURL=https://designer.openclinica.com/
Regards,
Csaba