Re: Startup problems: subversion checkout failed

Eric Minick <[email protected]> Tue, 19 Sep 2006 17:36:49 -0600
Newsgroups gmane.comp.java.anthill
Message-ID <[email protected]>
Sebastian,

Anthill OS requires the javac program to be on the path. It apparently 
is not. Error 2 from dos is a file not found error as the operating 
system is trying to launch javac.

-- Eric

Sebastian Weber wrote:

> Hello everybody,
> after some mess with our versioning system and the JUnit tests my boss 
> ordered me to setup a continuous integration environment. So here I 
> am. Installing and starting Anthill was pretty straight forward but 
> then I got stuck.
> I use Anthill OS version 1.8.1.303, Java 1.5.0_08, Subversion 1.4.0 
> and Tomcat 5.5.17 on a WinXP SP2 machine.
> Whenever I try to build our project (manual build with "force build" 
> option, "build as version" not set) Anthill is not even able to 
> checkout the project from the subversion repository. I looked up the 
> svn commands in the 
> conf/profiles/Win32/win_subversion/getWorkingProject.pgl and ran them 
> on the commandline - no problem, everything worked fine.
> As there is no up-to-date documentation for the subversion-adapter I 
> don't know where the problem is. The error messages from the Tomcat 
> stdout_xxx.log didn't help either
>
>   15:20:14:306 [Thread - AnthillBuildDaemon] INFO  
> com.urbancode.anthill.BuildManager  - Project: MASE3 is being released.
>   15:20:14:306 [Thread - AnthillBuildDaemon] INFO  
> com.urbancode.anthill.BuildManager  - Initializing repository adapter...
>   15:20:14:306 [Thread - AnthillBuildDaemon] INFO  
> com.urbancode.anthill.BuildManager  - step 0) Clean up working directory
>   15:20:14:306 [Thread - AnthillBuildDaemon] INFO  
> com.urbancode.anthill.adapter.ProfileRepositoryAdapter  - Cleaning up 
> local files:    15:20:14:415 [Thread - AnthillBuildDaemon] INFO  
> com.urbancode.anthill.BuildManager  - step 1) Retrieve working copy of 
> code from repository
>   15:20:14:603 [Thread - AnthillBuildDaemon] ERROR 
> com.urbancode.anthill.BuildManager  - Checkout failed: CreateProcess: 
> javac -classpath 
> C:\Programs\anthill-\lib\activation.jar;C:\Programs\anthill-\lib\anthill-1.8.1.303.jar;C:\Programs\anthill-\lib\antlr.jar;C:\Programs\anthill-\lib\Butler-1.0.75.jar;C:\Programs\anthill-\lib\commons-logging.jar;C:\Programs\anthill-\lib\CommonsExecute.jar;C:\Programs\anthill-\lib\CommonsUtil-0.0.3.jar;C:\Programs\anthill-\lib\jakarta-regexp-1.2.jar;C:\Programs\anthill-\lib\log4j.jar;C:\Programs\anthill-\lib\mail_1_2.jar;C:\Programs\anthill-\lib\Pagelets-3.1.5.jar;C:\Programs\anthill-\lib\Pagelets-email-3.1.5.jar;C:\Programs\anthill-\lib\servlet_2_2b.jar;;C:\Programs\Tomcat\bin\bootstrap.jar 
> C:\Programs\anthill-\pagelets\Win32\win_subversion\getWorkingProject_pgl.java 
> error=2
>   java.io.IOException: CreateProcess: javac -classpath 
> C:\Programs\anthill-\lib\activation.jar;C:\Programs\anthill-\lib\anthill-1.8.1.303.jar;C:\Programs\anthill-\lib\antlr.jar;C:\Programs\anthill-\lib\Butler-1.0.75.jar;C:\Programs\anthill-\lib\commons-logging.jar;C:\Programs\anthill-\lib\CommonsExecute.jar;C:\Programs\anthill-\lib\CommonsUtil-0.0.3.jar;C:\Programs\anthill-\lib\jakarta-regexp-1.2.jar;C:\Programs\anthill-\lib\log4j.jar;C:\Programs\anthill-\lib\mail_1_2.jar;C:\Programs\anthill-\lib\Pagelets-3.1.5.jar;C:\Programs\anthill-\lib\Pagelets-email-3.1.5.jar;C:\Programs\anthill-\lib\servlet_2_2b.jar;;C:\Programs\Tomcat\bin\bootstrap.jar 
> C:\Programs\anthill-\pagelets\Win32\win_subversion\getWorkingProject_pgl.java 
> error=2
>       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 java.lang.Runtime.exec(Runtime.java:429)
>       at java.lang.Runtime.exec(Runtime.java:326)
>       at 
> com.urbancode.pagelet.PageletCompiler.compile(PageletCompiler.java:82)
>       at com.urbancode.pagelet.Pagelet.compile(Pagelet.java:214)
>       at com.urbancode.pagelet.Pagelet.service(Pagelet.java:154)
>       at com.urbancode.pagelet.Pagelet.service(Pagelet.java:122)
>       at 
> com.urbancode.anthill.adapter.ProfileRepositoryAdapter.getWorkingProjectCopy(ProfileRepositoryAdapter.java:287) 
>
>       at 
> com.urbancode.anthill.adapter.SubversionRepositoryAdapter.getWorkingProjectCopy(SubversionRepositoryAdapter.java:135) 
>
>       at com.urbancode.anthill.BuildManager.build(BuildManager.java:104)
>       at 
> com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231) 
>
>       at 
> com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
>       at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
>   15:20:14:619 [Thread - AnthillBuildDaemon] ERROR 
> com.urbancode.anthill.BuildManager  - couldn't send result email
>   java.io.IOException: CreateProcess: javac -classpath 
> C:\Programs\anthill-\lib\activation.jar;C:\Programs\anthill-\lib\anthill-1.8.1.303.jar;C:\Programs\anthill-\lib\antlr.jar;C:\Programs\anthill-\lib\Butler-1.0.75.jar;C:\Programs\anthill-\lib\commons-logging.jar;C:\Programs\anthill-\lib\CommonsExecute.jar;C:\Programs\anthill-\lib\CommonsUtil-0.0.3.jar;C:\Programs\anthill-\lib\jakarta-regexp-1.2.jar;C:\Programs\anthill-\lib\log4j.jar;C:\Programs\anthill-\lib\mail_1_2.jar;C:\Programs\anthill-\lib\Pagelets-3.1.5.jar;C:\Programs\anthill-\lib\Pagelets-email-3.1.5.jar;C:\Programs\anthill-\lib\servlet_2_2b.jar;;C:\Programs\Tomcat\bin\bootstrap.jar 
> C:\Programs\anthill-\pagelets\resultEmail_pgl.java error=2
>       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 java.lang.Runtime.exec(Runtime.java:429)
>       at java.lang.Runtime.exec(Runtime.java:326)
>       at 
> com.urbancode.pagelet.PageletCompiler.compile(PageletCompiler.java:82)
>       at com.urbancode.pagelet.Pagelet.compile(Pagelet.java:214)
>       at com.urbancode.pagelet.Pagelet.service(Pagelet.java:154)
>       at 
> com.urbancode.pagelet.module.email.EmailMessage.send(EmailMessage.java:150) 
>
>       at 
> com.urbancode.anthill.PageletResultEmail.send(PageletResultEmail.java:40)
>       at 
> com.urbancode.anthill.PageletResultEmail.send(PageletResultEmail.java:24)
>       at com.urbancode.anthill.BuildManager.build(BuildManager.java:258)
>       at 
> com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231) 
>
>       at 
> com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
>       at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
>
> All that I know now is that it failed to retrieve the code from the 
> repository for whatever reason "error=2" refers to. Do I have to setup 
> the version adapter before I am able to checkout code from the 
> repository? I don't want to put files into the repository before I'm 
> absolutely sure that I have to. There is quite enough garbage in there 
> without me adding more. If I have to setup that version-stuff I would 
> prefer to do that on my machine before using the repository. The 
> "couldn't send result email" error is not a problem at the moment, I 
> just haven't setup the mail-server yet.
>
> I am thankful for any contributions to my problem.
>
> Greetings
>
> Sebastian
> _______________________________________________
> Anthill mailing list
> Anthill-IWHQxnLZ/[email protected]
> http://lists.urbancode.com/mailman/listinfo/anthill