Partha Mukherjee | 10 Jun 00:15

Anthill configuration problem

Hi,

I'm running Anthill version 1.8.1.303 on Win XP using Tomcat. I can view 
the Anthill pages properly but it is not being able to build any 
project. Whenever I'm trying to force a build, the following error :-

Anthill: looking for file: C:\Documents and Settings\Partha 
Mukherjee\.anthill.a
nthill.properties
Anthill version: 1.8.1.303 loaded.
Anthill root dir: C:\Program Files\Anthill-
02:22:33:109 [http-8585-1] INFO  com.urbancode.anthill.Anthill  - 
Starting Anthi
ll daemons
02:22:43:296 [Thread - AnthillBuildDaemon] INFO  
com.urbancode.anthill.adapter.C
VSRepositoryAdapter  - repository root: 
:pserver:partham@...:/panini
repo
02:22:43:296 [Thread - AnthillBuildDaemon] INFO  
com.urbancode.anthill.adapter.C
VSRepositoryAdapter  - Module: abcrepo
02:22:43:406 [Thread - AnthillBuildDaemon] INFO  
com.urbancode.anthill.adapter.C
VSRepositoryAdapter  - Branch: null
02:22:43:406 [Thread - AnthillBuildDaemon] INFO  
com.urbancode.anthill.adapter.C
VSRepositoryAdapter  - Work directory: C:\Program Files\Anthill-\work
02:22:43:406 [Thread - AnthillBuildDaemon] INFO  
com.urbancode.anthill.adapter.C
(Continue reading)

Naina Dani | 1 Jul 22:25
Picon

how to set JAVA_HOME in antscript build.xml

Hello everybody,

I am facing a peculiar problem. I have two projects in anthill. One of them needs java 1.4 and the other needs java 1.5. The problem is, if I set JAVA_HOME to 1.4 or 1.5 in my .profile, one project builds and the other fail.

So I want to set JAVA_HOME in build.xml of the project, so that JAVA_HOME is set depending on the project being built. Can anybody give me an idea how to do this ?

Thanks in advance.
Regards,
Naina.

_______________________________________________
Anthill mailing list
Anthill@...
http://lists.urbancode.com/mailman/listinfo/anthill
Naina Dani | 1 Jul 22:32
Picon

how to set JAVA_HOME in antscript build.xml


Hello everybody,

I am facing a peculiar problem. I have two projects in anthill. One of them needs java 1.4 and the other needs java 1.5. The problem is, if I set JAVA_HOME to 1.4 or 1.5 in my .profile, one project builds and the other fail.

So I want to set JAVA_HOME in build.xml of the project, so that JAVA_HOME is set depending on the project being built. Can anybody give me an idea how to do this ?

Thanks in advance.
Regards,
Naina.

_______________________________________________
Anthill mailing list
Anthill@...
http://lists.urbancode.com/mailman/listinfo/anthill
Eric Minick | 1 Jul 22:39

Re: how to set JAVA_HOME in antscript build.xml

Naina,

Typically we have recommended having two Anthill OS instances standing 
next to each-other. Multiple jre support was always one of those things 
the commercial tool did.

I suppose you could have a stubbed out Ant script that calls your real 
script through the exec task. The exec task does take environment 
variables as options, so that should work. I haven't tried that though.

Cheers,

Eric

Naina Dani wrote:
> Hello everybody,
>
> I am facing a peculiar problem. I have two projects in anthill. One of 
> them needs java 1.4 and the other needs java 1.5. The problem is, if I 
> set JAVA_HOME to 1.4 or 1.5 in my .profile, one project builds and the 
> other fail.
>
> So I want to set JAVA_HOME in build.xml of the project, so that 
> JAVA_HOME is set depending on the project being built. Can anybody 
> give me an idea how to do this ?
>
> Thanks in advance.
> Regards,
> Naina.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill mailing list
> Anthill@...
> http://lists.urbancode.com/mailman/listinfo/anthill
>   
Naina Dani | 1 Jul 22:51
Picon

Re: how to set JAVA_HOME in antscript build.xml

Hello Eric,

Thank you so much for the help.

Here in the current situation, one project is dependent on the other. So having two anthill instances is ruled out.

I do not know how to stub out main ant script calling the real script through the exec task. Could you please elaborate this further.

Thanks again for the help :)

Regards,
Naina.

On Tue, Jul 1, 2008 at 3:39 PM, Eric Minick <etm-SVNIZWSJOcJl57MIdRCFDg@public.gmane.org> wrote:
Naina,

Typically we have recommended having two Anthill OS instances standing next to each-other. Multiple jre support was always one of those things the commercial tool did.

I suppose you could have a stubbed out Ant script that calls your real script through the exec task. The exec task does take environment variables as options, so that should work. I haven't tried that though.

Cheers,

Eric

Naina Dani wrote:
Hello everybody,

I am facing a peculiar problem. I have two projects in anthill. One of them needs java 1.4 and the other needs java 1.5. The problem is, if I set JAVA_HOME to 1.4 or 1.5 in my .profile, one project builds and the other fail.

So I want to set JAVA_HOME in build.xml of the project, so that JAVA_HOME is set depending on the project being built. Can anybody give me an idea how to do this ?

Thanks in advance.
Regards,
Naina.
------------------------------------------------------------------------

_______________________________________________
Anthill mailing list
Anthill-IWHQxnLZ/P3rXihlmxnZCEEOCMrvLtNR@public.gmane.org
http://lists.urbancode.com/mailman/listinfo/anthill
 
_______________________________________________
Anthill mailing list
Anthill-IWHQxnLZ/P3rXihlmxnZCEEOCMrvLtNR@public.gmane.org
http://lists.urbancode.com/mailman/listinfo/anthill

_______________________________________________
Anthill mailing list
Anthill@...
http://lists.urbancode.com/mailman/listinfo/anthill
Kenneth Burgener | 1 Jul 23:53

Create Dependency Group - Permission denied

I have several projects that build successfully.  Today I tried to add a 
Dependency Group only to get the following error:

========================================
15:45:58:067 [http-8080-Processor25] ERROR 
com.urbancode.anthill.web.admin.CreateDependencyGroupServlet  - 
Permission denied
java.io.IOException: Permission denied
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at 
com.urbancode.anthill.DependencyGroup.<init>(DependencyGroup.java:71)
        at 
com.urbancode.anthill.Anthill.createDependencyGroup(Anthill.java:210)
        at 
com.urbancode.anthill.web.admin.CreateDependencyGroupServlet.processRequest(CreateDependencyGroupServlet.java:65)
        at 
com.urbancode.anthill.web.admin.AnthillBaseServlet.processRequest0(AnthillBaseServlet.java:64)
        at 
com.urbancode.anthill.web.admin.AnthillBaseServlet.doGet(AnthillBaseServlet.java:114)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)
15:45:58:068 [http-8080-Processor25] ERROR

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[CreateDependencyGroupServlet]

- Servlet.service() for servlet CreateDependencyGroupServlet threw exception
java.io.IOException: Permission denied
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at 
com.urbancode.anthill.DependencyGroup.<init>(DependencyGroup.java:71)
        at 
com.urbancode.anthill.Anthill.createDependencyGroup(Anthill.java:210)
        at 
com.urbancode.anthill.web.admin.CreateDependencyGroupServlet.processRequest(CreateDependencyGroupServlet.java:65)
        at 
com.urbancode.anthill.web.admin.AnthillBaseServlet.processRequest0(AnthillBaseServlet.java:64)
        at 
com.urbancode.anthill.web.admin.AnthillBaseServlet.doGet(AnthillBaseServlet.java:114)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)
========================================

I am running Anthill version 1.8.1.303 with Java 1.5.0_13.  I am running 
Anthill with the user "build", which owns the whole anthill folder (I 
even ran "chown -R build:build /opt/anthill" just to make sure).  I can 
add, build and modify projects successfully.  I can also change the 
Anthill Properties and I can create, delete and update schedules as well.

Has anyone run into this before?

Thanks,
Kenneth
Kenneth Burgener | 2 Jul 00:06

Re: how to set JAVA_HOME in antscript build.xml

On 7/1/2008 2:25 PM, Naina Dani wrote:
> So I want to set JAVA_HOME in build.xml of the project, so that 
> JAVA_HOME is set depending on the project being built. Can anybody give 
> me an idea how to do this ?

We have an old project that had to be built with the 1.4 compiler.  To 
do this we used the "executable" parameter to the javac task.

<javac srcdir="${project.test}"
   destdir="${build.test}"
   source="1.4"
   target="1.4"
   debug="on"
   deprecation="off"
   optimize="on"
   fork="yes"
   executable="${jdk1.4}/bin/javac">
   <classpath>
      ...
   </classpath>
</javac>

This might work for you.

Kenneth

Gmane