Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
+2 votes
1 view
I'm getting the following message at the end of the installation (Patching files ...): "Unable to configure application server (Ant execution)". Does anyone know how to solve it?

Knowage-6.0.0-CE-Installer-Windows-JVM64bit-20170623.exe
in Installer by (140 points)
I'm having the same issue.  Windows Server 2012 R2 Datacenter, MariaDB 10.2.8, there is another Tomcat installation, but I stopped it and tried again after the first time I got this error.  Extract from install log:

[ERROR] com.install4j.runtime.beans.actions.control.RunScriptAction [ID 13692]: java.lang.RuntimeException: Errone durante l'esecuzione dello script
In action "Tomcat Ant 2 [Run script]" (screen "Display progress"), property "Script":
java.lang.RuntimeException: Errone durante l'esecuzione dello script
    at ant_exec.Executor.executeAntTask(Executor.java:78)
    at ant_exec.Executor.executeAntTask(Executor.java:30)
    at com.install4j.script.I4jScript_Internal_660.eval(I4jScript_Internal_660.java:5)
    at com.install4j.script.I4jScript_Internal_660.evaluate(I4jScript_Internal_660.java:9)
    at com.install4j.runtime.installer.helper.Script.evaluate(Script.java:33)
    at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:188)
    at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:182)
    at com.install4j.runtime.beans.actions.control.RunScriptAction.execute(RunScriptAction.java:34)
    at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(SystemInstallOrUninstallAction.java:29)
    at com.install4j.runtime.installer.ContextImpl$7.executeAction(ContextImpl.java:1668)
    at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1659)
    at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1656)
    at com.install4j.runtime.installer.helper.comm.actions.FetchObjectAction.execute(FetchObjectAction.java:14)
    at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:274)
    at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:249)
    at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionChecked(HelperCommunication.java:187)
    at com.install4j.runtime.installer.helper.comm.HelperCommunication.fetchObjectChecked(HelperCommunication.java:170)
    at com.install4j.runtime.installer.ContextImpl.performActionIntStatic(ContextImpl.java:1656)
    at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(InstallerContextImpl.java:151)
    at com.install4j.runtime.installer.ContextImpl.performAction(ContextImpl.java:1103)
    at com.install4j.runtime.installer.controller.Controller.executeAction(Controller.java:368)
    at com.install4j.runtime.installer.controller.Controller.executeActions(Controller.java:334)
    at com.install4j.runtime.installer.controller.Controller.handleCommand(Controller.java:195)
    at com.install4j.runtime.installer.controller.Controller.start(Controller.java:94)
    at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:59)
    at com.install4j.runtime.installer.Installer.main(Installer.java:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
    at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
    at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)
Caused by: C:\Users\jtaylor\AppData\Local\Temp\4\e4j461A.tmp_dir1505418322\user\tomcat-install.xml:419: Failed to add text to insert/paste
    at com.oopsconsultancy.xmltask.ant.Insert.register(Insert.java:124)
    at com.oopsconsultancy.xmltask.ant.Insert.process(Insert.java:137)
    at com.oopsconsultancy.xmltask.ant.XmlTask.addConfiguredInsert(XmlTask.java:871)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.IntrospectionHelper$AddNestedCreator.istore(IntrospectionHelper.java:1477)
    at org.apache.tools.ant.IntrospectionHelper$AddNestedCreator.store(IntrospectionHelper.java:1471)
    at org.apache.tools.ant.IntrospectionHelper$Creator.store(IntrospectionHelper.java:1374)
    at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:595)
    at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:359)
    at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:205)
    at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:164)
    at org.apache.tools.ant.Task.perform(Task.java:347)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
    at ant_exec.Executor.executeAntTask(Executor.java:72)
    ... 32 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 147; The entity name must immediately follow the '&' in the entity reference.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at com.oopsconsultancy.xmltask.InsertAction.readXml(InsertAction.java:160)
    at com.oopsconsultancy.xmltask.InsertAction.<init>(InsertAction.java:115)
    at com.oopsconsultancy.xmltask.InsertAction.fromString(InsertAction.java:76)
    at com.oopsconsultancy.xmltask.ant.Insert.register(Insert.java:120)
    ... 51 more
        Execute action not successful after 464 ms
In my case the problem was caused by having an ampersand in the DB password.

1 Answer

0 votes
Dear Bruno,

Can you tell me more info. ? e.g. jdk , windows version...

Best regards

Angelo
by (20.7k points)
Hi Angelo.

- Windows Server 2008 R2 Enterprise

- I have more than one JDK, but I configured the path of JAVA_HOME to "C:\Program Files\Java\jdk1.7.0_75\jre". (64bit)

- I also had the environment variable ANT_HOME, but I deleted it.

- There are other Tomcats installed, but none running on port 8080.

- The installer spends a lot of time, more than 5 minutes, in the "Updating database...". Is this normal?

Thanks for helping.
Hi Bruno,
the installation process take a long time because it restore FOODMART db, this is a database used by the document examples.
ANT is not mandatory,
Can you provide me the MySql version ?

Best Regards
Angelo.
Hi,

MySQL Server 5.7.

Does the installer generate any log files?

Thanks.
Bruno
Hi,

I'm experiencing the same issue on a new install on windows 2012 r2. Using the same version of Mysql but using the latest JDK of 1.8.

regards,
Holger
Hi!

Try to run the installer as administrator.

It worked for me on windows 2012 r2, mySQL 5.7, jdk 1.8.
...