failed to deploy jsf application and gae

31 views
Skip to first unread message

user3738208 via StackOverflow

unread,
Feb 25, 2016, 2:55:04 PM2/25/16
to google-appengin...@googlegroups.com

I've tried to deploy my jsf application to google app engine but when it seems good, in the console show this:

C:\Users\MyName\AppData\Local\Temp\build_appengine_deployutils_SifaeJSF.xml:53: The following error occurred while executing this line: C:\appengine-java-sdk-1.9.31\config\user\ant-macros.xml:95: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_79\jre\bin\java.exe" (in directory "C:\Users\MyName\AppData\Local\Temp"): CreateProcess error=206, The filename or extension is too long at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at java.lang.Runtime.exec(Runtime.java:617) at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442) at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791)

I'm working in netbeans 8 and tried edit the build-impl.xml in the line javac.fork to false, but the problem still persist, any suggestions?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/35636920/failed-to-deploy-jsf-application-and-gae

user3738208 via StackOverflow

unread,
Feb 25, 2016, 3:55:04 PM2/25/16
to google-appengin...@googlegroups.com

I've tried to deploy my jsf application to google app engine but when it seems good, in the console show this:

C:\Users\MyName\AppData\Local\Temp\build_appengine_deployutils_SifaeJSF.xml:53: The following error occurred while executing this line: C:\appengine-java-sdk-1.9.31\config\user\ant-macros.xml:95: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_79\jre\bin\java.exe" (in directory "C:\Users\MyName\AppData\Local\Temp"): CreateProcess error=206, The filename or extension is too long at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at java.lang.Runtime.exec(Runtime.java:617) at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442) at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791)

I'm working in netbeans 8 and tried edit the build-impl.xml in the line javac.fork to false, but the problem still persist, any suggestions?

EDIT: the file build_appengine_deploytuls_SifaeJSF.xml is autogenerated by the gae api the trace begin with this line in this file:

<enhance_war war="${build.web.dir}">
        <args>
            <arg value="-enhancerVersion"/>
            <arg value="v2"/>
        </args>
    </enhance_war>

This is the line the get the error cause in ant-macros.xml file:

<enhance failonerror="true" api="@{api}">
    <args/>
    <classpath>
      <pathelement path="${appengine.tools.classpath}"/>
      <pathelement path="@{war}/WEB-INF/classes"/>
      <fileset dir="@{war}/WEB-INF/lib" includes="*.jar"/>
    </classpath>
    <fileset dir="@{war}/WEB-INF/classes" includes="**/*.class"/>
  </enhance>
Reply all
Reply to author
Forward
0 new messages