cancel
Showing results for 
Search instead for 
Did you mean: 

[BUILD FAILED] Unable to create javax script engine for java

onceagainloap
Champ in-the-making
Champ in-the-making
Hi there
I'm having some problems building the source code of Alfresco.
I copied it via svn from http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD.

the command ant build-tomcat returns:
Buildfile: /usr/local/alfresco/HEAD/root/build.xmlinit:     [echo] user.home = /home/me     [echo] version.number = 4.0.dBUILD FAILED/usr/local/alfresco/HEAD/root/build.xml:146: Unable to create javax script engine for javascriptTotal time: 1 second‍‍‍‍‍‍‍‍‍‍‍

java version:
java version "1.6.0_22"OpenJDK Runtime Environment (IcedTea6 1.10.2) (Gentoo build 1.6.0_22-b22)OpenJDK Client VM (build 20.0-b11, mixed mode)‍‍‍‍

ant version:
Apache Ant version 1.8.2 compiled on December 20 2010‍

env variables:
export CATALINA_HOME=/usr/local/tomcat/homeexport JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=256m"export TOMCAT_HOME=/usr/local/tomcat/homeexport APP_TOMCAT_HOME=/usr/local/tomcat/home‍‍‍‍‍

Any ideas?

Thank you in advance
2 REPLIES 2

onceagainloap
Champ in-the-making
Champ in-the-making
up?

janguela
Champ in-the-making
Champ in-the-making
Hi there, I was having the same issue compiling latest Head today.

I have solved it modifying the build.xml :

Comment this piece of code :
<!–      <condition property="classpath.bsf_javascript" else=""           value="${dir.project.3rdparty.lib}/bsf-2.4.0.jar:${dir.project.3rdparty.lib}/rhino-js-1.6R7.jar:${dir.project.3rdparty.lib}/commons/commons-logging-1.1.jar">         <equals arg1="${ant.java.version}" arg2="1.5" />      </condition>–>‍‍‍‍‍

And define the property "classpath.bsf_javascript". Note that they have replaced the commons-logging-1.1.jar by commons-logging-1.1.1.jar
<property name="classpath.bsf_javascript" value="${dir.project.3rdparty.lib}/bsf-2.4.0.jar:${dir.project.3rdparty.lib}/rhino-js-1.6R7.jar:${dir.project.3rdparty.lib}/commons/commons-logging-1.1.1.jar" />‍

I hope it helps. Cheers,
Jordi