On 28/03/2014 11:41, Francesco Chicchiriccò wrote:
On 28/03/2014 11:38, Chiari Stefano wrote:
Hi,
I had some problem setting up a brand new environment (on centos linux).
I was always getting this error, when starting up tomcat
/ERROR org.quartz.impl.StdSchedulerFactory - Couldn't generate
instance Id! org.quartz.SchedulerException: Couldn't get host name!/
After some investigation (I'm new on quartz... and syncope), I found
out this property
<prop key="org.quartz.scheduler.instanceId">AUTO</prop>
In SchedulingContext.xml and tried with a custom id (e.g.
"syncope"), instead of default, as I've seen "auto" will lead quartz
to retrieve the hostname and there was probably some misconfiguration
on that host, and it worked!
My suggestion, if I may, is to set a custom id as a default or, as an
alternative, to add a line in a doc, something like "be sure to
correctly configure network address, reverse lookup or whatever"
HI Stefano,
thanks for reporting.
Why don't you add this as FAQ in [1]?
Done.
Regards.
[1] https://cwiki.apache.org/confluence/display/SYNCOPE/FAQ
[2]
https://cwiki.apache.org/confluence/display/SYNCOPE/FAQ#FAQ-Igettheerror"org.quartz.impl.StdSchedulerFactory-Couldn'tgenerateinstanceId!org.quartz.SchedulerException:Couldn'tgethostname!"
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/