Eric Minick | 1 Nov 15:00

Re: anthill "no vss database" found

The only thing in your settings that jumps out is your password setting. 
It is really duplicated like that?

- Eric

tp001 tp wrote:

> Hey Eric,
>
> Thanks for your quick reply.
>
> Here is what I have in my project.anthill file
>
> ================
> anthill.schedule = default
> anthill.lastBuildFailDate = 10/29/2004 16:23:45
> anthill.lastBuildSucceeded = false
> anthill.registry.format.version = 1.1
> anthill.publish.url =
> anthill.publish.dir =
> anthill.publish.script = build/release.xml
> anthill.publish.run_policy = success.only
> anthill.build.script = build/build.xml
> anthill.build.tag = all
> anthill.users.vikas = x.x@...
> anthill.version.adapter = 
> com.urbancode.anthill.adapter.ProjectPropertyFileVersionAdapter
> anthill.java.extra.options =
> anthill.mail.policy = always
> anthill.repository.adapter = 
(Continue reading)

David Schmitz | 1 Nov 17:13
Picon

Can't get anthill-example to build

I've struggled for two day trying to get the anthill-example project just to 
build and have been completely unsuccessful. Nothing is printed in anyof of 
the log files and the only error I get in the server is...

10:04:45:386 [Thread - AnthillBuildDaemon] ERROR 
com.urbancode.anthill.BuildManager  - Failed to Build project. Error: 1
java.lang.Exception: Failed to Build project. Error: 1
	at com.urbancode.anthill.BuildManager.buildProject(BuildManager.java:497)
	at com.urbancode.anthill.BuildManager.runBuild(BuildManager.java:403)
	at com.urbancode.anthill.BuildManager.build(BuildManager.java:187)
	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)
10:04:45:386 [Thread - AnthillBuildDaemon] INFO  
com.urbancode.anthill.BuildManager  - Step 6) Tag project (if set to 
success):

which really doesn't help me at all. What might i be doing wrong, I follow 
the setup instruction and the code is being pulled from CVS. I do seem the 
be missing some jar, junit and jdepend. Does anyone have any ideas? I can't 
afford to devote anymore time to this is I can't even get the example to 
build.
Eric Minick | 1 Nov 17:25

Re: Can't get anthill-example to build

Hi David,

Thanks for writing to the list. The logging in Anthill could probably 
use some work,  but a good deal is logged to the servlet containers 
standard out. Run as a service / daemon Tomcat usually will use 
catalina.out. You might want to tail that to see if there are more 
useful messages there.

Your error message suggests that Ant was called and the returned error 
code from the shell was 1.

Both the junit and jdepend jars are provided as part of the 1.5.1 vesion 
of Ant which is included with Anthill. Is it possible that you changed 
your Ant settings in the system to use a differant copy of Ant on your 
sytstem?

Regards,

Eric

David Schmitz wrote:

> I've struggled for two day trying to get the anthill-example project 
> just to build and have been completely unsuccessful. Nothing is 
> printed in anyof of the log files and the only error I get in the 
> server is...
>
>
> 10:04:45:386 [Thread - AnthillBuildDaemon] ERROR 
> com.urbancode.anthill.BuildManager  - Failed to Build project. Error: 1
(Continue reading)

David Schmitz | 1 Nov 17:57
Picon

Re: Can't get anthill-example to build

Hi Eric, thanks for getting back to me, after looking into it a little
further I found a log with a meaningful error in it. I've never seen this
error before with ant and my javac is in my system path, so I'm not sure why
I'm getting this error.

C:\programs\anthill-\work\Anthill-Example\build\build.xml:118: Unable to
find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

If I run the javac command from the command line it finds it. Is there
somewhere else I have to set it's location up inside anthill?

----- Original Message ----- 
From: "Eric Minick" <eric@...>
To: "Anthill user list" <anthill@...>
Sent: Monday, November 01, 2004 10:25 AM
Subject: Re: [Anthill] Can't get anthill-example to build

> Hi David,
>
> Thanks for writing to the list. The logging in Anthill could probably
> use some work,  but a good deal is logged to the servlet containers
> standard out. Run as a service / daemon Tomcat usually will use
> catalina.out. You might want to tail that to see if there are more
> useful messages there.
>
> Your error message suggests that Ant was called and the returned error
> code from the shell was 1.
>
(Continue reading)

Eric Minick | 1 Nov 18:15

Re: Can't get anthill-example to build

David,

Things that don't work in Anthill but do work from the command line are 
almost always user permission / settings related. Putting it on the path 
is a good approach. If you are running Tomcat as a service, the default 
user has some pretty bad settings. You might want to change the user in 
the windows services manager.

While you're still trying to get a feeling for the tool, it might just 
make sense to run Tomcat from the batch file. That way you know it's got 
the same environment as you do.

-- Eric

David Schmitz wrote:

>Hi Eric, thanks for getting back to me, after looking into it a little
>further I found a log with a meaningful error in it. I've never seen this
>error before with ant and my javac is in my system path, so I'm not sure why
>I'm getting this error.
>
>C:\programs\anthill-\work\Anthill-Example\build\build.xml:118: Unable to
>find a javac compiler;
>com.sun.tools.javac.Main is not on the classpath.
>Perhaps JAVA_HOME does not point to the JDK
>
>If I run the javac command from the command line it finds it. Is there
>somewhere else I have to set it's location up inside anthill?
>
>
(Continue reading)

tp001 tp | 1 Nov 23:31
Picon

Re: anthill "no vss database" found

I have tried every possible combination and now I am stuck.

This is the combination that I use now on the project.anthill file

------------------------
anthill.schedule = default
anthill.lastBuildFailDate = 11/01/2004 16:07:06
anthill.lastBuildSucceeded = false
anthill.registry.format.version = 1.1
anthill.publish.url =
anthill.publish.dir =
anthill.publish.script = build/release.xml
anthill.publish.run_policy = success.only
anthill.build.script = build/build.xml
anthill.build.tag = all
anthill.users.xxx = xxx@...
anthill.version.adapter = 
com.urbancode.anthill.adapter.ProjectPropertyFileVersionAdapter
anthill.java.extra.options =
anthill.mail.policy = always
anthill.repository.adapter = 
com.urbancode.anthill.adapter.VSSRepositoryAdapter
anthill.repository.vss.module = root/dir
anthill.repository.vss.dateFormat = MM/dd/yyyy;hh:mma
anthill.repository.vss.branch =
anthill.repository.vss.home = U:\Program Files\VSS\win32
anthill.repository.vss.root = V:\Databases\project
anthill.repository.vss.work.dir = work
anthill.repository.vss.user.password = passowrd
anthill.repository.vss.anthill.user = username
(Continue reading)

Eric Minick | 2 Nov 00:06

Re: anthill "no vss database" found

TP,

I'll dig into the code a bit and see if I can get a better feeling for 
what the VSS driver might be doing to you. In the meantime, I'll share 
my settings which work fine for an Anthill installation on the same 
server as the repository:

---------------

anthill.schedule = default
anthill.lastBuildFailDate = 11/01/2004 16:30:30
anthill.lastBuildSucceeded = false
anthill.lastGoodBuildDate = 03/10/2003 16:42:44
anthill.version = 2.0.0.66
anthill.registry.format.version = 1.1
anthill.java.extra.options =
anthill.publish.dir =
anthill.publish.script = build/release.xml
anthill.publish.url =
anthill.publish.run_policy = success.only
anthill.version.adapter = 
com.urbancode.anthill.adapter.ProjectPropertyFileVersionAdapter
anthill.version.file = source/main/java/example.version
anthill.repository.adapter = 
com.urbancode.anthill.adapter.VSSRepositoryAdapter
anthill.repository.vss.module = VSS_EXAMPLE
anthill.repository.vss.branch =
anthill.repository.vss.home = C:\Program Files\Microsoft Visual 
Studio\VSS\win32
anthill.repository.vss.root = C:\Program Files\Microsoft Visual Studio\VSS
(Continue reading)

Anil Asher | 2 Nov 05:29
Picon

Re: anthill "no vss database" found

2 simple suggestions which might seem silly but one of the things I did 
while I was trying to get my setup to work.

Remove the spaces before and after "=" in your properties file.

Use "/" instead of "\" . If you want to use "\" then you might need to 
escape it with another \.

Of course the best way to test is to use the command line Ant logs in a DOS 
command window, If it works there then the problem is not in the script or 
your properties but the environment.
tpass001 | 2 Nov 17:50
Picon

Re: anthill "no vss database" found

Ok,

I think I solved the problem of "no vss database found".

The solution was to leave the  repository.vss.root as blank. After you do 
this, you need to point your SSDIR env variable to the server (where the 
source lives) for example in my case it was

C:\Documents and Settings\xx>set SSDIR
SSDIR=\\Server\VSS\Databases\project

Also the
 repository.vss.home = U:\Program Files\VSS\win32 or on the local drive i.e.
repository.vss.home = C:\Program Files\VSS\win32

where the ss.exe file resides (on the source server where the database lives 
or the ss.exe on the local machine) why is this, dont ask me. I did what 
programmers do when there can be no logic applied. trial and error.

But the problem is not solved yet. I see that the files are being "get" from 
my vss server and copied to the work dir. but the build is taking forever. 
by forever I mean that when I do the build from the command prompt it takes 
about 20 sec. And this build from anthill has been going on for more than 2 
hrs with no ss.exe or java.exe showing up in the task manager. last time 
this happened, I restarted the machine like a good windows programmer, but 
to no avail.

Also, I notice that when the files are "get" from the server they are still 
read only. why is that. shouldn't anthill not change the read only attribute 
or is that going to happen once my 2 hr build gets over. Sorry for sounding 
(Continue reading)

Eric Minick | 2 Nov 18:15

Re: anthill "no vss database" found

TP,

If you're build is going on for two hours, then it's probably time to 
kill it off. It just shouldn't take that long. If you can see where it's 
gettting hung in the standard out log, that would be a big help. My 
first guess would be that it's running a VSS command where VSS is 
responding by asking for further input unexpectedly.

Regards,

Eric

tpass001 wrote:

> Ok,
>
> I think I solved the problem of "no vss database found".
>
> The solution was to leave the  repository.vss.root as blank. After you 
> do this, you need to point your SSDIR env variable to the server 
> (where the source lives) for example in my case it was
>
> C:\Documents and Settings\xx>set SSDIR
> SSDIR=\\Server\VSS\Databases\project
>
> Also the
> repository.vss.home = U:\Program Files\VSS\win32 or on the local drive 
> i.e.
> repository.vss.home = C:\Program Files\VSS\win32
>
(Continue reading)


Gmane