Receive error when trying to Execute a Script in Non-interactive DV AdminShell
Issue
- We are unable to execute groovy script using adminshell.bat. This script can be executed successfully within adminshell in interactive mode. However, when trying to execute from command line using the following command:
adminshell.bat scripts/test.groovy
We get the following fatal error:
===> [import static org.teiid.adminshell.AdminShell.*; import static org.teiid.adminshell.GroovySqlExtensions.*; import org.teiid.adminapi.*;]
FATAL: groovy.lang.MissingPropertyException: No such property: scripts for class: groovysh_evaluate
groovy.lang.MissingPropertyException: No such property: scripts for class: groovysh_evaluate
Environment
- Red Hat JBoss Data Virtualization (DV) 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
