Dave Birkhead | 5 Oct 01:10

OK, I'm stuck

Hi all,

 

I’m working with anthill (OS) on Windows and I’ve hit the wall.

We use Perforce and I need to call it from inside the ant script.

 

I keep getting the error:

Problem exec'ing P4 command: java.io.IOException: CreateProcess: p4 change -o error=2

 

If I run the script from outside anthill it works, but inside anthill I can’t make it work.

 

I’ve narrowed it down to the path that is being used in the environment that ant is running in. Under anthill it seems to be using a very restricted path. It seens to be a subset of the system path.

 

Can someone please tell me how to change this?

 

Thanks,

 

-Daveb

_______________________________________________
Anthill mailing list
Anthill@...
http://lists.urbancode.com/mailman/listinfo/anthill
Eric Minick | 5 Oct 16:55

Re: OK, I'm stuck

Hey Dave,

Which path is giving you trouble?

-- Eric

Dave Birkhead wrote:

> Hi all,
>
> I’m working with anthill (OS) on Windows and I’ve hit the wall.
>
> We use Perforce and I need to call it from inside the ant script.
>
> I keep getting the error:
>
>Problem exec'ing P4 command: java.io.IOException: CreateProcess: p4 change -o error=2
>
> If I run the script from outside anthill it works, but inside anthill 
> I can’t make it work.
>
> I’ve narrowed it down to the path that is being used in the 
> environment that ant is running in. Under anthill it seems to be using 
> a very restricted path. It seens to be a subset of the system path.
>
> Can someone please tell me how to change this?
>
> Thanks,
>
> -Daveb
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Anthill mailing list
>Anthill@...
>http://lists.urbancode.com/mailman/listinfo/anthill
>  
>
Dave Birkhead | 5 Oct 18:25

RE: OK, I'm stuck

It appears to be the path to p4.exe. Ant calls it through the PATH
variable and I do not see a way to set it explicitly. So, I'm stuck
trying to modify the PATH

-Daveb

-----Original Message-----
From: anthill-bounces@...
[mailto:anthill-bounces@...] On Behalf Of Eric Minick
Sent: Thursday, October 05, 2006 7:55 AM
To: Anthill user list
Subject: Re: [Anthill] OK, I'm stuck

Hey Dave,

Which path is giving you trouble?

-- Eric

Dave Birkhead wrote:

> Hi all,
>
> I'm working with anthill (OS) on Windows and I've hit the wall.
>
> We use Perforce and I need to call it from inside the ant script.
>
> I keep getting the error:
>
>Problem exec'ing P4 command: java.io.IOException: CreateProcess: p4
change -o error=2
>
> If I run the script from outside anthill it works, but inside anthill 
> I can't make it work.
>
> I've narrowed it down to the path that is being used in the 
> environment that ant is running in. Under anthill it seems to be using

> a very restricted path. It seens to be a subset of the system path.
>
> Can someone please tell me how to change this?
>
> Thanks,
>
> -Daveb
>
>-----------------------------------------------------------------------
-
>
>_______________________________________________
>Anthill mailing list
>Anthill@...
>http://lists.urbancode.com/mailman/listinfo/anthill
>  
>

_______________________________________________
Anthill mailing list
Anthill@...
http://lists.urbancode.com/mailman/listinfo/anthill
Varban | 5 Oct 18:37

Re: OK, I'm stuck

Hi Dave,

if the servlet container (Tomcat, webspehere ...) that is hosting AnthillOS is 
running under a system account it is possible that AnthillOS does not have 
the full system path available. I would suggest that you shut down the 
servlet container and manually start it from command line (thus ensuring that 
it is using the same user account as you) or if using a service to start it 
change the login account and try to run the build in AnthillOS again. 
We have seen strange behavior like that when using a system account to run 
Anthill within Tomcat. 

Regards,
Varban
On Thursday 05 October 2006 12:25, Dave Birkhead wrote:
> It appears to be the path to p4.exe. Ant calls it through the PATH
> variable and I do not see a way to set it explicitly. So, I'm stuck
> trying to modify the PATH
>
> -Daveb
>
> -----Original Message-----
> From: anthill-bounces@...
> [mailto:anthill-bounces@...] On Behalf Of Eric Minick
> Sent: Thursday, October 05, 2006 7:55 AM
> To: Anthill user list
> Subject: Re: [Anthill] OK, I'm stuck
>
> Hey Dave,
>
> Which path is giving you trouble?
>
> -- Eric
>
> Dave Birkhead wrote:
> > Hi all,
> >
> > I'm working with anthill (OS) on Windows and I've hit the wall.
> >
> > We use Perforce and I need to call it from inside the ant script.
> >
> > I keep getting the error:
> >
> >Problem exec'ing P4 command: java.io.IOException: CreateProcess: p4
>
> change -o error=2
>
> > If I run the script from outside anthill it works, but inside anthill
> > I can't make it work.
> >
> > I've narrowed it down to the path that is being used in the
> > environment that ant is running in. Under anthill it seems to be using
> >
> > a very restricted path. It seens to be a subset of the system path.
> >
> > Can someone please tell me how to change this?
> >
> > Thanks,
> >
> > -Daveb
> >
> >-----------------------------------------------------------------------
>
> -
>
> >_______________________________________________
> >Anthill mailing list
> >Anthill@...
> >http://lists.urbancode.com/mailman/listinfo/anthill
>
> _______________________________________________
> Anthill mailing list
> Anthill@...
> http://lists.urbancode.com/mailman/listinfo/anthill
> _______________________________________________
> Anthill mailing list
> Anthill@...
> http://lists.urbancode.com/mailman/listinfo/anthill
timothyc | 6 Oct 03:06
Picon

Running Anthill Agent


When I run anthill Agent by invoking the following command from the command
prompt in the directory, <Anthill 3 Install Dir>/agent/bin: ah3agent.cmd
start

Although the script does run, it does not take any action. Is this the
correct process for running the agent and using Anthill 3? 
--

-- 
View this message in context: http://www.nabble.com/Running-Anthill-Agent-tf2392483.html#a6670700
Sent from the Anthill - General mailing list archive at Nabble.com.
Eric Minick | 6 Oct 18:55

Re: Running Anthill Agent

Tim,

That is the expected behavior for the agent. After the intial setup, 
it's probably going to be run as a daemon or windows service. The agent 
is up and running as a background process. Using the 'run' flag instead 
of the 'start' flag will run the agent in the current shell. A single 'I 
have started' line in the log might be helpful though.

-- Eric

PS -- The Anthill-pro list is probably better for Anthill Pro 3 questions.

timothyc wrote:

>When I run anthill Agent by invoking the following command from the command
>prompt in the directory, <Anthill 3 Install Dir>/agent/bin: ah3agent.cmd
>start
>
>Although the script does run, it does not take any action. Is this the
>correct process for running the agent and using Anthill 3? 
>  
>
Robert E Dobbins | 6 Oct 22:13
Picon
Favicon

Robert E Dobbins/Alpharetta/IBM is out of the office.

I will be out of the office starting 10/06/2006 and will not return until 10/09/2006.

If you need assistance please contact Chris Holden, Kathy Amundson or the Middleware duty pager.. I will respond to your message(s) when I return.

If it is an urgent matter call my cell.

_______________________________________________
Anthill mailing list
Anthill@...
http://lists.urbancode.com/mailman/listinfo/anthill
timothyc | 9 Oct 09:35
Picon

Server problem


When launching my server process, it does not connect to the IP address I
stipulated in the installation proccess but rather the default 0.0.0.0 . Do
you know why this would be? 
--

-- 
View this message in context: http://www.nabble.com/Server-problem-tf2408346.html#a6712889
Sent from the Anthill - General mailing list archive at Nabble.com.
Varban | 18 Oct 16:10

This is a test! Please ignore!

This is a test
Peter Tung | 23 Oct 19:50

problem running PVCS build with anthill OS 1.8.1.303

Hi all,

Some background info: 
   Anthil version : 1.8.1.303
   Ant version : 1.6.5
   Java version : 1.4.2_05
   PVCS (Serena ChangMan) version : 8.1.3
   Running anthill on Tomcat 4.1

I'm running into some issues when running builds after a successful initial
build, wondering if anyone's ran into this before...  What it looks like is
that it can't execute the getRevisionsSince script properly, but I'm kind of
confused as far as where I can find what's wrong to come up with a solution.

Here's the dump from the tomcat screen:
----------------------------------------------------------------------------
----
12:29:50:827 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.P
VCSRepositoryAdapter  - getRevisionsSince script command: cmd /x/c cd /d
"c:\ant
hill\..\zoobuild\JavaServerProgram\Utility" &&
 pcli run -s"c:\anthill\conf\profiles\Win32\win_pvcs\myscript.pcli"
"Z:\zoo\PVCS
Server" "JavaServerProgram/Utility"

12:29:50:842 [Thread - AnthillBuildDaemon] ERROR
com.urbancode.anthill.BuildMana
ger  - PVCSRepositoryAdapter: Error executing: cmd /x/c cd /d
"c:\anthill\..\zoo
build\JavaServerProgram\Utility" &&
 pcli run -s"c:\anthill\conf\profiles\Win32\win_pvcs\myscript.pcli"
"Z:\zoo\PVCS
Server" "JavaServerProgram/Utility"
.  Exit Code: -1
com.urbancode.anthill.adapter.RepositoryException: PVCSRepositoryAdapter:
Error
executing: cmd /x/c cd /d "c:\anthill\..\zoobuild\JavaServerProgram\Utility"
&&
 pcli run -s"c:\anthill\conf\profiles\Win32\win_pvcs\myscript.pcli"
"Z:\zoo\PVCS
Server" "JavaServerProgram/Utility"
.  Exit Code: -1
        at
com.urbancode.anthill.adapter.PVCSRepositoryAdapter.getRevisionsSince
(PVCSRepositoryAdapter.java:261)
        at
com.urbancode.anthill.BuildManager.loadRevisions(BuildManager.java:28
7)
        at com.urbancode.anthill.BuildManager.build(BuildManager.java:215)
        at
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.ja
va:231)
        at
com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
        at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
----------------------------------------------------------------------------
----

The error code doesn't really explain much and I'm having trouble finding
more information.  The command shown in the screen seems to run fine in a
separate cmd window.  What I noticed is that with any other command
execution that ran successfully, this shows up on the screen:

----------------------------------------------------------------------------
----
12:29:39:343 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.P
rofileRepositoryAdapter  - Executing Command: pcli put -prZ:\zoo\PVCSServer
-ac:
\anthill\..\zoobuild\JavaServerProgram\Utility\BuildJobs\switchupdate.versio
n -f
 -Y -mCommitted_by_Anthill
/JavaServerProgram/Utility/BuildJobs/switchupdate.ver
sion
12:29:39:358 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.P
rofileRepositoryAdapter  - Execute:Java13CommandLauncher: Executing 'pcli'
with
arguments:
... (lists the command arguments and execution below)
----------------------------------------------------------------------------
----

But that's not the case with the getRevisionSince script.

Any help is appreciated.  Thanks in advance.

Peter Tung

Gmane