Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ANT script task failing

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
amccool
Posts: 1
Joined: 2010-03-08 17:37

ANT script task failing

#1 Post by amccool »

Using ant with

Code: Select all

<script language="jython" manager="auto">
is failing

BUILD FAILED
/root/dawndusk/times_build.xml:25: Unable to create javax script engine for jython
at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:86)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:69)

I have ant-optional installed.
Do I need to register specific languages?

Apache Ant version 1.8.0 compiled on February 20 2010
Detected Java version: 1.6 in: /usr/lib/jvm/java-6-openjdk/jre

jmakalanda
Posts: 1
Joined: 2015-08-19 15:24

Re: ANT script task failing

#2 Post by jmakalanda »

Check with the class path for ant is set.. it would be something link so:

SET APACHE_ANT="C:\bea\modules\org.apache.ant_1.6.5\bin\ant.bat"
SET CLASSPATH_FOR_ANT="lib/jsch-0.1.33.jar;lib/bsf.jar;lib/jython-2.2.jar"
set WL_HOME=C:\bea
call "%WL_HOME%\wlserver_10.3\server\bin\setWLSEnv.cmd"
call %APACHE_ANT% -lib %CLASSPATH_FOR_ANT% -f deploy.xml %1

note the CLASSPATH_FOR_ANT var in second and da last line

Post Reply