/bin/java?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

/bin/java?

Benson Margulies
My system has no /bin/java. I could probably fix this, but, really,
why should I have to? Why isn't it using the java from the jdk install
I specified in the project config? (1.417)

Started by user anonymous
Updating http://svn.basistech.net/engineering/rse/trunk
U         etrog_doc/en/rse-lucene.xml
At revision 23765
Parsing POMs
[workspace] $ /bin/java -cp
/basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar:/basis/treez/jenkins/maven/maven-2.2.1-basis/boot/classworlds-1.1.jar
hudson.maven.agent.Main /basis/treez/jenkins/maven/maven-2.2.1-basis
/var/run/jenkins/war/WEB-INF/lib/remoting-1.417.jar
/basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.2.jar
37585 /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
ERROR: Failed to parse POMs
java.io.IOException: Cannot run program "/bin/java" (in directory
"/basis/treez/jenkins/ciderpress-home/jobs/RSE - CI/workspace"):
java.io.IOException: error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
        at hudson.Proc$LocalProc.<init>(Proc.java:244)
        at hudson.Proc$LocalProc.<init>(Proc.java:216)
        at hudson.Launcher$LocalLauncher.launch(Launcher.java:698)
        at hudson.Launcher$ProcStarter.start(Launcher.java:329)
        at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:216)
        at hudson.maven.ProcessCache.get(ProcessCache.java:231)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:673)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430)
        at hudson.model.Run.run(Run.java:1376)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:465)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:146)
Caused by: java.io.IOException: java.io.IOException: error=2, No such
file or directory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
        ... 12 more
Sending e-mails to: [hidden email]
Finished: FAILURE
Reply | Threaded
Open this post in threaded view
|

Re: /bin/java?

Olivier Lamy-2
Hello Benson,
Have you configured a jdk for your job ?

2011/6/23 Benson Margulies <[hidden email]>:

> My system has no /bin/java. I could probably fix this, but, really,
> why should I have to? Why isn't it using the java from the jdk install
> I specified in the project config? (1.417)
>
> Started by user anonymous
> Updating http://svn.basistech.net/engineering/rse/trunk
> U         etrog_doc/en/rse-lucene.xml
> At revision 23765
> Parsing POMs
> [workspace] $ /bin/java -cp
> /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar:/basis/treez/jenkins/maven/maven-2.2.1-basis/boot/classworlds-1.1.jar
> hudson.maven.agent.Main /basis/treez/jenkins/maven/maven-2.2.1-basis
> /var/run/jenkins/war/WEB-INF/lib/remoting-1.417.jar
> /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.2.jar
> 37585 /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
> ERROR: Failed to parse POMs
> java.io.IOException: Cannot run program "/bin/java" (in directory
> "/basis/treez/jenkins/ciderpress-home/jobs/RSE - CI/workspace"):
> java.io.IOException: error=2, No such file or directory
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
>        at hudson.Proc$LocalProc.<init>(Proc.java:244)
>        at hudson.Proc$LocalProc.<init>(Proc.java:216)
>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:698)
>        at hudson.Launcher$ProcStarter.start(Launcher.java:329)
>        at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:216)
>        at hudson.maven.ProcessCache.get(ProcessCache.java:231)
>        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:673)
>        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430)
>        at hudson.model.Run.run(Run.java:1376)
>        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:465)
>        at hudson.model.ResourceController.execute(ResourceController.java:88)
>        at hudson.model.Executor.run(Executor.java:146)
> Caused by: java.io.IOException: java.io.IOException: error=2, No such
> file or directory
>        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
>        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
>        ... 12 more
> Sending e-mails to: [hidden email]
> Finished: FAILURE
>



--
Olivier Lamy
http://twitter.com/olamy | http://www.linkedin.com/in/olamy
Reply | Threaded
Open this post in threaded view
|

Re: /bin/java?

Benson Margulies
Yes!

And I've set --javahome in /etc/default/jenkins, and JAVA_HOME, and
JAVA_HOME in the global environment vars.

(frustrated)

(thanks)

--benson

I will try resetting it.

On Thu, Jun 23, 2011 at 12:21 PM, Olivier Lamy <[hidden email]> wrote:

> Hello Benson,
> Have you configured a jdk for your job ?
>
> 2011/6/23 Benson Margulies <[hidden email]>:
>> My system has no /bin/java. I could probably fix this, but, really,
>> why should I have to? Why isn't it using the java from the jdk install
>> I specified in the project config? (1.417)
>>
>> Started by user anonymous
>> Updating http://svn.basistech.net/engineering/rse/trunk
>> U         etrog_doc/en/rse-lucene.xml
>> At revision 23765
>> Parsing POMs
>> [workspace] $ /bin/java -cp
>> /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar:/basis/treez/jenkins/maven/maven-2.2.1-basis/boot/classworlds-1.1.jar
>> hudson.maven.agent.Main /basis/treez/jenkins/maven/maven-2.2.1-basis
>> /var/run/jenkins/war/WEB-INF/lib/remoting-1.417.jar
>> /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.2.jar
>> 37585 /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
>> ERROR: Failed to parse POMs
>> java.io.IOException: Cannot run program "/bin/java" (in directory
>> "/basis/treez/jenkins/ciderpress-home/jobs/RSE - CI/workspace"):
>> java.io.IOException: error=2, No such file or directory
>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
>>        at hudson.Proc$LocalProc.<init>(Proc.java:244)
>>        at hudson.Proc$LocalProc.<init>(Proc.java:216)
>>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:698)
>>        at hudson.Launcher$ProcStarter.start(Launcher.java:329)
>>        at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:216)
>>        at hudson.maven.ProcessCache.get(ProcessCache.java:231)
>>        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:673)
>>        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430)
>>        at hudson.model.Run.run(Run.java:1376)
>>        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:465)
>>        at hudson.model.ResourceController.execute(ResourceController.java:88)
>>        at hudson.model.Executor.run(Executor.java:146)
>> Caused by: java.io.IOException: java.io.IOException: error=2, No such
>> file or directory
>>        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
>>        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
>>        ... 12 more
>> Sending e-mails to: [hidden email]
>> Finished: FAILURE
>>
>
>
>
> --
> Olivier Lamy
> http://twitter.com/olamy | http://www.linkedin.com/in/olamy
>
Reply | Threaded
Open this post in threaded view
|

Re: /bin/java?

Benson Margulies
In reply to this post by Olivier Lamy-2
I suspect that something in the jdk book-keeping was broken by
relocating JENKINS_HOME, but I am failing to figure out what.

On Thu, Jun 23, 2011 at 12:21 PM, Olivier Lamy <[hidden email]> wrote:

> Hello Benson,
> Have you configured a jdk for your job ?
>
> 2011/6/23 Benson Margulies <[hidden email]>:
>> My system has no /bin/java. I could probably fix this, but, really,
>> why should I have to? Why isn't it using the java from the jdk install
>> I specified in the project config? (1.417)
>>
>> Started by user anonymous
>> Updating http://svn.basistech.net/engineering/rse/trunk
>> U         etrog_doc/en/rse-lucene.xml
>> At revision 23765
>> Parsing POMs
>> [workspace] $ /bin/java -cp
>> /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar:/basis/treez/jenkins/maven/maven-2.2.1-basis/boot/classworlds-1.1.jar
>> hudson.maven.agent.Main /basis/treez/jenkins/maven/maven-2.2.1-basis
>> /var/run/jenkins/war/WEB-INF/lib/remoting-1.417.jar
>> /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.2.jar
>> 37585 /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
>> ERROR: Failed to parse POMs
>> java.io.IOException: Cannot run program "/bin/java" (in directory
>> "/basis/treez/jenkins/ciderpress-home/jobs/RSE - CI/workspace"):
>> java.io.IOException: error=2, No such file or directory
>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
>>        at hudson.Proc$LocalProc.<init>(Proc.java:244)
>>        at hudson.Proc$LocalProc.<init>(Proc.java:216)
>>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:698)
>>        at hudson.Launcher$ProcStarter.start(Launcher.java:329)
>>        at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:216)
>>        at hudson.maven.ProcessCache.get(ProcessCache.java:231)
>>        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:673)
>>        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430)
>>        at hudson.model.Run.run(Run.java:1376)
>>        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:465)
>>        at hudson.model.ResourceController.execute(ResourceController.java:88)
>>        at hudson.model.Executor.run(Executor.java:146)
>> Caused by: java.io.IOException: java.io.IOException: error=2, No such
>> file or directory
>>        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
>>        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
>>        ... 12 more
>> Sending e-mails to: [hidden email]
>> Finished: FAILURE
>>
>
>
>
> --
> Olivier Lamy
> http://twitter.com/olamy | http://www.linkedin.com/in/olamy
>
Reply | Threaded
Open this post in threaded view
|

Re: /bin/java?

Benson Margulies
In reply to this post by Olivier Lamy-2
resetting the config of the jdk in system settings fixed this.

On Thu, Jun 23, 2011 at 12:21 PM, Olivier Lamy <[hidden email]> wrote:

> Hello Benson,
> Have you configured a jdk for your job ?
>
> 2011/6/23 Benson Margulies <[hidden email]>:
>> My system has no /bin/java. I could probably fix this, but, really,
>> why should I have to? Why isn't it using the java from the jdk install
>> I specified in the project config? (1.417)
>>
>> Started by user anonymous
>> Updating http://svn.basistech.net/engineering/rse/trunk
>> U         etrog_doc/en/rse-lucene.xml
>> At revision 23765
>> Parsing POMs
>> [workspace] $ /bin/java -cp
>> /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar:/basis/treez/jenkins/maven/maven-2.2.1-basis/boot/classworlds-1.1.jar
>> hudson.maven.agent.Main /basis/treez/jenkins/maven/maven-2.2.1-basis
>> /var/run/jenkins/war/WEB-INF/lib/remoting-1.417.jar
>> /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.2.jar
>> 37585 /basis/treez/jenkins/ciderpress-home/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
>> ERROR: Failed to parse POMs
>> java.io.IOException: Cannot run program "/bin/java" (in directory
>> "/basis/treez/jenkins/ciderpress-home/jobs/RSE - CI/workspace"):
>> java.io.IOException: error=2, No such file or directory
>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
>>        at hudson.Proc$LocalProc.<init>(Proc.java:244)
>>        at hudson.Proc$LocalProc.<init>(Proc.java:216)
>>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:698)
>>        at hudson.Launcher$ProcStarter.start(Launcher.java:329)
>>        at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:216)
>>        at hudson.maven.ProcessCache.get(ProcessCache.java:231)
>>        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:673)
>>        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430)
>>        at hudson.model.Run.run(Run.java:1376)
>>        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:465)
>>        at hudson.model.ResourceController.execute(ResourceController.java:88)
>>        at hudson.model.Executor.run(Executor.java:146)
>> Caused by: java.io.IOException: java.io.IOException: error=2, No such
>> file or directory
>>        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
>>        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
>>        ... 12 more
>> Sending e-mails to: [hidden email]
>> Finished: FAILURE
>>
>
>
>
> --
> Olivier Lamy
> http://twitter.com/olamy | http://www.linkedin.com/in/olamy
>