Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

"java.io.IOException: Cannot run program "F:\Java\jdk1.8.0_231\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long" while running PostInstall script
Problem Description
PostInstall script is fails with the following error:

java.io.IOException: Cannot run program "F:\Java\jdk1.8.0_231\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
Cause
This is the known issue of ActiveVOS (AS-5752).​
Solution
To resolve this issue, do as follows:

 1. Navigate to WL_HOME\wlserver\server\lib and execute the following command:

         java -jar wljarbuilder.jar

       This would generate a new jar file wlfullclient.jar that consolidates all the classpath dependencies into a single jar, thus reducing the classpath length.

  2. Edit the deployer.xml under AVOS_HOME\Server\server-enterprise\weblogic_config\bin and replace the following entries with

 Before:

 <target name="init">

      <taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig" classpath="${appserver.location}/server/lib/weblogic.jar"/>

      <taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer" classpath="${appserver.location}/server/lib/weblogic.jar"/>

      <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="${appserver.location}/server/lib/weblogic.jar"/>

 </target>

 After:

<target name="init">  

    <path id="classpath">

        <fileset dir="${appserver.location}/server/lib" includes="wlfullclient.jar" />

        <fileset dir="${appserver.location}/server/lib" includes="wls-api.jar" />

        <fileset dir="${appserver.location}/modules" includes="com.oracle.weblogic.deploy.api.jar" />

        <fileset dir="${appserver.location}/modules" includes="com.oracle.weblogic.deploy.beanapi.jar" />

    </path>

                     <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpathref="classpath"/>

</target>​


3.Delete both ave-central and ave_weblogic ear's from the console (assuming all other ear's like siperian-mrm, etc are deployed and are in active state).

sip_ant.bat avos.deploy -Ddatabase.password=<db password> -Davos.username=<avos console name> -Davos.password=<avos console pswd> -Davos.jdbc.database.password=<avos db password> -Davos.jdbc.database.username=<avos db sschema name> -Dweblogic.password=<weblogic admin console pswd> -Dinstall.avos.patch=true 


More Information
​[exec]  [wldeploy] f:\Data\infamdm\avos\server\server-enterprise\weblogic_config\bin\deployer.xml:75: java.io.IOException: Cannot run program "F:\Java\jdk1.8.0_231\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
     [exec]  [wldeploy] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:774)
     [exec]  [wldeploy] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:194)
     [exec]  [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.executeDeployer(WLDeploy.java:517)
     [exec]  [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:431)
     [exec]  [wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [exec]  [wldeploy] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
     [exec]  [wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [exec]  [wldeploy] at java.lang.reflect.Method.invoke(Method.java:498)
     [exec]  [wldeploy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [exec]  [wldeploy] at org.apache.tools.ant.Task.perform(Task.java:348)
     [exec]  [wldeploy] at org.apache.tools.ant.Target.execute(Target.java:357)
     [exec]  [wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [exec]  [wldeploy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
     [exec]  [wldeploy] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     [exec]  [wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [exec]  [wldeploy] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
     [exec]  [wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [exec]  [wldeploy] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
     [exec]  [wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [exec]  [wldeploy] at java.lang.reflect.Method.invoke(Method.java:498)
     [exec]  [wldeploy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [exec]  [wldeploy] at org.apache.tools.ant.Task.perform(Task.java:348)
     [exec]  [wldeploy] at org.apache.tools.ant.Target.execute(Target.java:357)
     [exec]  [wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [exec]  [wldeploy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
     [exec]  [wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
     [exec]  [wldeploy] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [exec]  [wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [exec]  [wldeploy] at org.tp23.antinstaller.runtime.exe.AntProjectFilter.exec(AntProjectFilter.java:167)
     [exec]  [wldeploy] at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:110)
     [exec]  [wldeploy] at org.tp23.antinstaller.selfextract.NonExtractor.main(NonExtractor.java:62)
     [exec]  [wldeploy] Caused by: java.io.IOException: Cannot run program "F:\Java\jdk1.8.0_231\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
     [exec]  [wldeploy] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
     [exec]  [wldeploy] at java.lang.Runtime.exec(Runtime.java:620)
     [exec]  [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec]  [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [exec]  [wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [exec]  [wldeploy] at java.lang.reflect.Method.invoke(Method.java:498)
     [exec]  [wldeploy] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:828)
     [exec]  [wldeploy] at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
     [exec]  [wldeploy] at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
     [exec]  [wldeploy] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:767)
     [exec]  [wldeploy] ... 30 more
Applies To
Product: Active VOS; MDM Multidomain
Problem Type: Configuration; Installation
User Type: Administrator; Architect
Project Phase: Configure; Implement
Product Version:
Database:
Operating System:
Other Software:

Reference
Attachments
Last Modified Date:5/28/2020 1:08 PMID:616590
People who viewed this also viewed

Feedback

Did this KB document help you?



What can we do to improve this information (2000 or fewer characters)