I have had all sorts of issues with Jython and anything newer than 2.4 Stable. If you go back to 2.4 Stable you will have to modify the setenv.bat and the start.bat files per the instructions here:
But, if you’d like to try something in your current 2.5 M4 setup, check out this post:
It moves the jython standalone file into the boot folder (follow the directions). It worked for me to enable jython, but I still have problems. Jython works, but nothing loads at startup. I have to “touch” (add a space somewhere and save) a file to get it to load. Any thoughts you might have would help.
Another thing you need to make sure of is that you have jython logging enabled in the org.ops4j.pax.logging.cfg
file. I can’t remember where I found it, but this is what I use (append to the bottom of the file).
#ADDED following Upgrade to 2.5.0 M4
log4j2.logger.org_openhab_core_automation.level = WARN
log4j2.logger.org_openhab_core_automation.name = org.openhab.core.automation
log4j2.logger.jsr223.level = DEBUG
log4j2.logger.jsr223.name = jsr223
# Added to limit JSR223/jython log outputs (every time a rule is fired)
log4j2.logger.smarthomeRuleStatusInfoEvent.name = smarthome.event.RuleStatusInfoEvent
log4j2.logger.smarthomeRuleStatusInfoEvent.level = WARN
Maybe some of this will help!