You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Puiggros <Pu...@aia.ptv.es> on 2004/12/03 08:46:10 UTC

Classpath size limit. java.io.IOException: CreateProcess

I'm running maven in WindowsXp and i'm suffering that error when i fork
junit tests.

I suppose that the classpath is truncated due to some kind of limit in
argument
size of CreateProcess.

Can I bypass this problem?

Thanks,


BUILD FAILED
File...... C:\Documents and
Settings\DAVID.AIA_NT\.maven\cache\maven-test-plugin
-1.6.2\plugin.jelly
Element... junit
Line...... 133
Column.... 41
Process fork failed.
com.werken.werkz.UnattainableGoalException: Unable to obtain goal
[test:test] --
 C:\Documents and
Settings\DAVID.AIA_NT\.maven\cache\maven-test-plugin-1.6.2\plu
gin.jelly:133:41: <junit> Process fork failed.
.....
.....
.....
.....
Caused by: java.io.IOException: CreateProcess:
C:\Apl\j2sdk1.4.2_04\jre\bin\java
.exe -Dbasedir=c:\projects\cons\gn\angasdom -classpath
"C:\projects\cons\gn\anga
sdom\target\test-classes;C:\projects\cons\gn\angasdom\target\classes;C:\Docu
ment
s and
Settings\DAVID.AIA_NT\.maven\repository\log4j\jars\log4j-1.2.8.jar;C:\Docu
ments and
Settings\DAVID.AIA_NT\.maven\repository\commons-digester\jars\commons-
digester-1.5.jar;C:\Documents and
Settings\DAVID.AIA_NT\.maven\repository\common
s-cli\jars\commons-cli-1.0.jar;C:\Documents and
Settings\DAVID.AIA_NT\.maven\rep
ository\commons-beanutils\jars\commons-beanutils-1.6.1.jar;C:\Documents and
Sett
ings\DAVID.AIA_NT\.maven\repository\commons-collections\jars\commons-collect
ions
-2.1.jar;C:\Documents and
Settings\DAVID.AIA_NT\.maven\repository\commons-loggin
g\jars\commons-logging-1.0.2.jar;C:\Documents and
Settings\DAVID.AIA_NT\.maven\r
epository\hibernate\jars\hibernate-2.1.6.jar;C:\Documents and
Settings\DAVID.AIA
_NT\.maven\repository\commons-lang\jars\commons-lang-2.0.jar;C:\Documents
and Se
ttings\DAVID.AIA?

_______________________________________


David Puiggròs Figueras
Aplicaciones en Informática Avanzada S.A.
Artesans, 10 
Parc Tecnològic del Vallès
08290, Cerdanyola, Barcelona
Telfs: 935.044.900 / Fax: 935.802.188
e-mail: puiggrosd@aia.ptv.es
 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Classpath size limit. java.io.IOException: CreateProcess

Posted by Brett Porter <br...@gmail.com>.
are you sure this limitation exists in windows XP? So it works when
forking on a smaller project?

I'd say:
- look for an environment variable that might allow increasing the size
- set maven.repo.local and move your repository to a shortened parth, eg c:\repo

Cheers,
Brett

On Fri, 3 Dec 2004 08:46:10 +0100, David Puiggros <pu...@aia.ptv.es> wrote:
> I'm running maven in WindowsXp and i'm suffering that error when i fork
> junit tests.
> 
> I suppose that the classpath is truncated due to some kind of limit in
> argument
> size of CreateProcess.
> 
> Can I bypass this problem?
> 
> Thanks,
> 
> BUILD FAILED
> File...... C:\Documents and
> Settings\DAVID.AIA_NT\.maven\cache\maven-test-plugin
> -1.6.2\plugin.jelly
> Element... junit
> Line...... 133
> Column.... 41
> Process fork failed.
> com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> [test:test] --
>  C:\Documents and
> Settings\DAVID.AIA_NT\.maven\cache\maven-test-plugin-1.6.2\plu
> gin.jelly:133:41: <junit> Process fork failed.
> .....
> .....
> .....
> .....
> Caused by: java.io.IOException: CreateProcess:
> C:\Apl\j2sdk1.4.2_04\jre\bin\java
> .exe -Dbasedir=c:\projects\cons\gn\angasdom -classpath
> "C:\projects\cons\gn\anga
> sdom\target\test-classes;C:\projects\cons\gn\angasdom\target\classes;C:\Docu
> ment
> s and
> Settings\DAVID.AIA_NT\.maven\repository\log4j\jars\log4j-1.2.8.jar;C:\Docu
> ments and
> Settings\DAVID.AIA_NT\.maven\repository\commons-digester\jars\commons-
> digester-1.5.jar;C:\Documents and
> Settings\DAVID.AIA_NT\.maven\repository\common
> s-cli\jars\commons-cli-1.0.jar;C:\Documents and
> Settings\DAVID.AIA_NT\.maven\rep
> ository\commons-beanutils\jars\commons-beanutils-1.6.1.jar;C:\Documents and
> Sett
> ings\DAVID.AIA_NT\.maven\repository\commons-collections\jars\commons-collect
> ions
> -2.1.jar;C:\Documents and
> Settings\DAVID.AIA_NT\.maven\repository\commons-loggin
> g\jars\commons-logging-1.0.2.jar;C:\Documents and
> Settings\DAVID.AIA_NT\.maven\r
> epository\hibernate\jars\hibernate-2.1.6.jar;C:\Documents and
> Settings\DAVID.AIA
> _NT\.maven\repository\commons-lang\jars\commons-lang-2.0.jar;C:\Documents
> and Se
> ttings\DAVID.AIA?
> 
> _______________________________________
> 
> David Puiggròs Figueras
> Aplicaciones en Informática Avanzada S.A.
> Artesans, 10
> Parc Tecnològic del Vallès
> 08290, Cerdanyola, Barcelona
> Telfs: 935.044.900 / Fax: 935.802.188
> e-mail: puiggrosd@aia.ptv.es
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org