ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "edward pedersson" <cpsmadn...@googlemail.com>
Subject Re: jspc createProcess error
Date Mon, 13 Aug 2007 20:36:28 GMT
Hi

Thank you Steve Loughran, Steve Loughran, Martin Gainty and Davy Toch.
It was indeed to do with the length of the classpath and I have moved
to a working directory that is in the root of the c drive which gives
me a few more charatcters. We do our main builds on linux and deply to
linux but we develop on windows and that is most probably why Bamboo
was not working on my machine but it was ok on the build server.

Thanks again.

Ed

On 13/08/07, Davy Toch <Davy.Toch@belgacom.net> wrote:
> Hi,
>
> It's most probably due to the classpath being too long for the DOS shell
> environment. I had a similar problem with weblogic.APPC (BEA library) which
> allows to precompile JSP pages and generate EJB stubs.
>
> The "solution" was to put all the jars of the classpath in a "flattened"
> structure, so the chance of reaching the max. DOS shell environment size is
> decreased. E.g.:
>
>  <mkdir dir="${output.dir}/jspc-flattenedclasspath"/>
>   <copy todir="${output.dir}/jspc-flattenedclasspath" flatten="true">
>     <fileset refid="fileset.refid.your.classpath.deps"/>
>   </copy>
>   <jspc ...>
>     <classpath>
>       <path refid="${output.dir}/jspc-flattenedclasspath"/>
>     </classpath>
>   </java>
>
> I know it's not ideal, but it does the trick for us.
>
> Another solution would be removing your MS Win platform and using a
> Unix/Linux
> shell environment instead :-).
>
> As a sidenote: if at the end of the failed command line you see a special
> character like:
>
> ...QUITY-TRUNK\src\ö
>
> then it's almost always related to shell environment size limitations.
>
> Best regards,
> Davy Toch
>
> edward pedersson schreef:
> > Hi
> >
> > I am using  Ant version 1.6.5 and I am getting a createProcess error
> > when running the jspC task. I have search the archives and could not
> > find an answer that could help me. This is the problem I am getting
> >
> >
> > BUILD FAILED
> > C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\buil
> > d.xml:585: java.io.IOException: CreateProcess: "C:\Program Files\Java\jdk1.5.0_0
> > 6\jre\bin\java.exe" -classpath C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build
> > -dir\EQUITY-TRUNK\src\java\lib\commons-logging-api.jar;C:\MyProgramFiles\Bamboo\
> > web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\commons-logging.jar;C:\My
> > ProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\c
> > ommons-el.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK
> > \src\java\lib\jsf\el-api.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-d
> > ir\EQUITY-TRUNK\src\java\lib\jsf\el-ri.jar;C:\MyProgramFiles\Bamboo\web_stuff\xm
> > l-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\jsp-api.jar;C:\MyProgramFiles\Bam
> > boo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\jsf-api.jar;C:\My
> > ProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\j
> > sf-impl.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\s
> > rc\java\lib\jsf\jstl.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\E
> > QUITY-TRUNK\src\ö
> >         at org.apache.tools.ant.taskdefs.Java.fork(Java.java:758)
> >         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:171)
> >         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
> >         at org.apache.tools.ant.taskdefs.optional.jsp.compilers.JasperC.execute(
> > JasperC.java:81)
> >         at org.apache.tools.ant.taskdefs.optional.jsp.JspC.doCompilation(JspC.ja
> > va:466)
> >         at org.apache.tools.ant.taskdefs.optional.jsp.JspC.execute(JspC.java:430
> > )
> >         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > Caused by: java.io.IOException: CreateProcess: "C:\Program Files\Java\jdk1.5.0_0
> > 6\jre\bin\java.exe" -classpath C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build
> > -dir\EQUITY-TRUNK\src\java\lib\commons-logging-api.jar;C:\MyProgramFiles\Bamboo\
> > web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\commons-logging.jar;C:\My
> > ProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\c
> > ommons-el.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK
> > \src\java\lib\jsf\el-api.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-d
> > ir\EQUITY-TRUNK\src\java\lib\jsf\el-ri.jar;C:\MyProgramFiles\Bamboo\web_stuff\xm
> > l-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\jsp-api.jar;C:\MyProgramFiles\Bam
> > boo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\jsf-api.jar;C:\My
> > ProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\j
> > sf-impl.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\s
> > rc\java\lib\jsf\jstl.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\E
> > QUITY-TRUNK\src\ö
> >         at java.lang.ProcessImpl.create(Native Method)
> >         at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
> >         at java.lang.ProcessImpl.start(ProcessImpl.java:30)
> >         at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> >         at java.lang.Runtime.exec(Runtime.java:591)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
> > ute.java:834)
> >         at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
> >         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
> >         at org.apache.tools.ant.taskdefs.Java.fork(Java.java:751)
> >         ... 17 more
> > --- Nested Exception ---
> > java.io.IOException: CreateProcess: "C:\Program Files\Java\jdk1.5.0_06\jre\bin\j
> > ava.exe" -classpath C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY
> > -TRUNK\src\java\lib\commons-logging-api.jar;C:\MyProgramFiles\Bamboo\web_stuff\x
> > ml-data\build-dir\EQUITY-TRUNK\src\java\lib\commons-logging.jar;C:\MyProgramFile
> > s\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\commons-el.j
> > ar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\l
> > ib\jsf\el-api.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-T
> > RUNK\src\java\lib\jsf\el-ri.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\buil
> > d-dir\EQUITY-TRUNK\src\java\lib\jsf\jsp-api.jar;C:\MyProgramFiles\Bamboo\web_stu
> > ff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\jsf-api.jar;C:\MyProgramFile
> > s\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib\jsf\jsf-impl.jar
> > ;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK\src\java\lib
> > \jsf\jstl.jar;C:\MyProgramFiles\Bamboo\web_stuff\xml-data\build-dir\EQUITY-TRUNK
> > \src\ö
> >         at java.lang.ProcessImpl.create(Native Method)
> >         at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
> >         at java.lang.ProcessImpl.start(ProcessImpl.java:30)
> >         at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> >         at java.lang.Runtime.exec(Runtime.java:591)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
> > ute.java:834)
> >         at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
> >         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
> >         at org.apache.tools.ant.taskdefs.Java.fork(Java.java:751)
> >         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:171)
> >         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
> >         at org.apache.tools.ant.taskdefs.optional.jsp.compilers.JasperC.execute(
> > JasperC.java:81)
> >         at org.apache.tools.ant.taskdefs.optional.jsp.JspC.doCompilation(JspC.ja
> > va:466)
> >         at org.apache.tools.ant.taskdefs.optional.jsp.JspC.execute(JspC.java:430
> > )
> >         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >
> > Total time: 8 seconds
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 


-- e

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message