Quantcast

[JIRA] Created: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

classic Classic list List threaded Threaded
35 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Created: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
-------------------------------------------------------------------------------------------

                 Key: JENKINS-9679
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
             Project: Jenkins
          Issue Type: Bug
          Components: core
    Affects Versions: current
         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
            Reporter: Olivier Mansion


When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:

$ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
        at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
        at hudson.remoting.Launcher.run(Launcher.java:192)
        at hudson.remoting.Launcher.main(Launcher.java:168)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 3 more

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Commented: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148910#comment-148910 ]

Tiago Pais commented on JENKINS-9679:
-------------------------------------

Hi,

I have this same problem on a Windows Server 2008 slave connecting to a Linux master.
It's a x64 machine.

Do anyone knows of a fast workaround? Like adding http://commons.apache.org/codec/ somewhere?

Thanks,

  Tiago


> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Commented: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148911#comment-148911 ]

Mariusz S commented on JENKINS-9679:
------------------------------------

I have this error on W2008 with Tomcat 7 secured by SSL. Installing proper SSL cert in java keychain resolved this.

> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Updated: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tiago Pais updated JENKINS-9679:
--------------------------------

    Environment:
Jenkins 1.411 / MacOS X / JDK 1.6.0_24
Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20

  was:Jenkins 1.411 / MacOS X / JDK 1.6.0_24


> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
> Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Commented: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148912#comment-148912 ]

Olivier Mansion commented on JENKINS-9679:
------------------------------------------

Adding commons-codec-1.5.jar in the classpath worked for us:

$ java -jar slave.jar -cp /path/to/commons-codec-1.5.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>

> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
> Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Commented: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148913#comment-148913 ]

Tiago Pais commented on JENKINS-9679:
-------------------------------------

I was using {{-noCertificateCheck}} so there was no issue with SSL certificates. Either way thanks for the suggestion.

Meanwhile i was able to find a workaround:

# After installing Hudson Slave as a service I got to the local (on Slave) directory and found *{{jenkins-slave.xml}}*
# I edit the *{{<arguments>}}* entry to add the necessary jar to the invocation _classpath_:
## _commons-codec-1.5.jar_ is the jar missing and you can grab it [here|http://mirrors.fe.up.pt/pub/apache//commons/codec/binaries/commons-codec-1.5-bin.zip] (just unzip and it's there)
## Put _commons-codec-1.5.jar_ in the local slave directory (inside a newly created lib directory)
## Change the *{{<arguments>}}*  entry to add commons-codec-1.5.jar to the _classpath_ like this {{-Xrs -jar "%BASE%\slave.jar" -jnlpUrl <url_to_jnlp> -classpath "%BASE%\lib\commons-codec-1.5.jar" -jnlpCredentials <user>:<password> -noCertificateCheck}}
# Start service in windows and monitor {{jenkins-slave.err.log}}

Hope it helps,

  Tiago

> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
> Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Issue Comment Edited: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148913#comment-148913 ]

Tiago Pais edited comment on JENKINS-9679 at 5/23/11 11:26 AM:
---------------------------------------------------------------

I was using {{-noCertificateCheck}} so there was no issue with SSL certificates. Either way thanks for the suggestion.

Meanwhile i was able to find a workaround:

# After installing Hudson Slave as a service I got to the local (on Slave) directory and found *{{jenkins-slave.xml}}*
# I edit the *{{<arguments>}}* entry to add the necessary jar to the invocation _classpath_:
## _commons-codec-1.5.jar_ is the jar missing and you can grab it [here|http://mirrors.fe.up.pt/pub/apache//commons/codec/binaries/commons-codec-1.5-bin.zip] (just unzip and it's there)
## Put _commons-codec-1.5.jar_ in the local slave directory (inside a newly created lib directory)
## Change the *{{<arguments>}}*  entry to add commons-codec-1.5.jar to the _classpath_ like this {{-Xrs -jar "%BASE%\slave.jar" -jnlpUrl <url_to_jnlp> -classpath "%BASE%\lib\commons-codec-1.5.jar" -jnlpCredentials <user>:<password> -noCertificateCheck}}
# Start service in windows and monitor {{jenkins-slave.err.log}}

Hope it helps,

  Tiago

{info}Olivier Mansion found it pretty much at the same time. Thanks anyway.{info}

      was (Author: tiago):
    I was using {{-noCertificateCheck}} so there was no issue with SSL certificates. Either way thanks for the suggestion.

Meanwhile i was able to find a workaround:

# After installing Hudson Slave as a service I got to the local (on Slave) directory and found *{{jenkins-slave.xml}}*
# I edit the *{{<arguments>}}* entry to add the necessary jar to the invocation _classpath_:
## _commons-codec-1.5.jar_ is the jar missing and you can grab it [here|http://mirrors.fe.up.pt/pub/apache//commons/codec/binaries/commons-codec-1.5-bin.zip] (just unzip and it's there)
## Put _commons-codec-1.5.jar_ in the local slave directory (inside a newly created lib directory)
## Change the *{{<arguments>}}*  entry to add commons-codec-1.5.jar to the _classpath_ like this {{-Xrs -jar "%BASE%\slave.jar" -jnlpUrl <url_to_jnlp> -classpath "%BASE%\lib\commons-codec-1.5.jar" -jnlpCredentials <user>:<password> -noCertificateCheck}}
# Start service in windows and monitor {{jenkins-slave.err.log}}

Hope it helps,

  Tiago
 

> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
> Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Issue Comment Edited: (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148913#comment-148913 ]

Tiago Pais edited comment on JENKINS-9679 at 5/23/11 11:27 AM:
---------------------------------------------------------------

I was using {{-noCertificateCheck}} so there was no issue with SSL certificates. Either way thanks for the suggestion.

Meanwhile i was able to find a workaround:

# After installing Hudson Slave as a service I got to the local (on Slave) directory and found *{{jenkins-slave.xml}}*
# I edit the *{{<arguments>}}* entry to add the necessary jar to the invocation _classpath_:
## _commons-codec-1.5.jar_ is the jar missing and you can grab it [here|http://mirrors.fe.up.pt/pub/apache//commons/codec/binaries/commons-codec-1.5-bin.zip] (just unzip and it's there)
## Put _commons-codec-1.5.jar_ in the local slave directory (inside a newly created lib directory)
## Change the *{{<arguments>}}*  entry to add commons-codec-1.5.jar to the _classpath_ like this {{-Xrs -jar "%BASE%\slave.jar" -jnlpUrl <url_to_jnlp> -classpath "%BASE%\lib\commons-codec-1.5.jar" -jnlpCredentials <user>:<password> -noCertificateCheck}}
# Start service in windows and monitor {{jenkins-slave.err.log}}

Hope it helps,

  Tiago

*Olivier Mansion found it pretty much at the same time. Thanks anyway*

      was (Author: tiago):
    I was using {{-noCertificateCheck}} so there was no issue with SSL certificates. Either way thanks for the suggestion.

Meanwhile i was able to find a workaround:

# After installing Hudson Slave as a service I got to the local (on Slave) directory and found *{{jenkins-slave.xml}}*
# I edit the *{{<arguments>}}* entry to add the necessary jar to the invocation _classpath_:
## _commons-codec-1.5.jar_ is the jar missing and you can grab it [here|http://mirrors.fe.up.pt/pub/apache//commons/codec/binaries/commons-codec-1.5-bin.zip] (just unzip and it's there)
## Put _commons-codec-1.5.jar_ in the local slave directory (inside a newly created lib directory)
## Change the *{{<arguments>}}*  entry to add commons-codec-1.5.jar to the _classpath_ like this {{-Xrs -jar "%BASE%\slave.jar" -jnlpUrl <url_to_jnlp> -classpath "%BASE%\lib\commons-codec-1.5.jar" -jnlpCredentials <user>:<password> -noCertificateCheck}}
# Start service in windows and monitor {{jenkins-slave.err.log}}

Hope it helps,

  Tiago

{info}Olivier Mansion found it pretty much at the same time. Thanks anyway.{info}
 

> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
> Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

hiroyoshi kasai updated JENKINS-9679:
-------------------------------------

    Environment:
Jenkins 1.411 / MacOS X / JDK 1.6.0_24
Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
Jenkins 1.424.2 / Master: CentOS 5.5,  / Slave: Windows Server 2008 R2 x64, JDK 1.6.0_21


  was:
Jenkins 1.411 / MacOS X / JDK 1.6.0_24
Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20

   

> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
> Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
> Jenkins 1.424.2 / Master: CentOS 5.5,  / Slave: Windows Server 2008 R2 x64, JDK 1.6.0_21
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162591#comment-162591 ]

Liam Staskawicz commented on JENKINS-9679:
------------------------------------------

Would love to see this addressed or elevated in priority - this is a critical component of putting together a master/slave cluster, and has been known for just about a year now. I say this without being able to fix it myself of course :) but this would be a great help to people setting up multi configuration systems.
               

> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
> Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
> Jenkins 1.424.2 / Master: CentOS 5.5,  / Slave: Windows Server 2008 R2 x64, JDK 1.6.0_21
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
> at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
> at hudson.remoting.Launcher.run(Launcher.java:192)
> at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 3 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

REMOVE ME

Martin Schoepf
________________________________________________________
Martin Schoepf - Software Testing
TTTech Computertechnik AG - Ensuring Reliable Networks
Commercial Reg. No.: 165 664z, Commercial Court Vienna


Schoenbrunner Strasse 7, A-1040 Vienna, Austria
Phone: +43 1 585 34 34-46, Fax: +43 1 585 34 34-90
[hidden email],
http://www.tttech.com
_______________________________________________________



From: "[hidden email] (JIRA)" <[hidden email]>
To: [hidden email]
Date: 05.09.2012 05:08
Subject: [JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
Sent by: [hidden email]






   [
https://issues.jenkins-ci.org/browse/JENKINS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162591#comment-162591 ]

Liam Staskawicz commented on JENKINS-9679:
------------------------------------------

Would love to see this addressed or elevated in priority - this is a critical component of putting together a master/slave cluster, and has been known for just about a year now. I say this without being able to fix it myself of course :) but this would be a great help to people setting up multi configuration systems.
               
> NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-9679
>                 URL:
https://issues.jenkins-ci.org/browse/JENKINS-9679
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Jenkins 1.411 / MacOS X / JDK 1.6.0_24
> Jenkins 1.412 / Master: Ubuntu 10.04,  / Slave: Windows Server 2008 x64, JDK 1.6.0_20
> Jenkins 1.424.2 / Master: CentOS 5.5,  / Slave: Windows Server 2008 R2 x64, JDK 1.6.0_21
>            Reporter: Olivier Mansion
>
> When launching a headless slave, a NoClassDefFoundError on org/apache/commons/codec/binary/Base64 is raised when specifying the -jnlpCredential option:
> $ java -jar slave.jar -jnlpUrl <url> -jnlpCredentials <user>:<password>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
>                  at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:221)
>                  at hudson.remoting.Launcher.run(Launcher.java:192)
>                  at hudson.remoting.Launcher.main(Launcher.java:168)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
>                  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>                  at java.security.AccessController.doPrivileged(Native Method)
>                  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>                  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>                  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>                  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>                  ... 3 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira

       



CONFIDENTIALITY: The contents of this e-mail are confidential and
intended only for the above addressee(s). If you are not the intended
recipient, or the person responsible for delivering it to the intended
recipient, copying or delivering it to anyone else or using it in any
unauthorized manner is prohibited and may be unlawful. If you
receive this e-mail by mistake, please notify the sender and the
systems administrator at [hidden email] immediately.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Harry G. commented on Bug JENKINS-9679

This is really somewhat clumsy and non intuitive, this foils the simple jnlp slave concept...
Wouldn't it be easy to deliver commons-codec with the slave and set it in the cp by default?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Still exists in 1.480.1, Workaround from Tiago Pais works.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

I wasted two hours trying to get JNLP (installed as service) to work before finding this bug. When is this going to be fixed? It's been a year! At least document it somewhere!

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
sogabe commented on Bug JENKINS-9679
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Yury Zaytsev started work on Bug JENKINS-9679
Change By: Yury Zaytsev (11/Jan/13 4:34 PM)
Status: Open In Progress
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
pom.xml
src/main/java/hudson/remoting/Base64.java
src/main/java/hudson/remoting/Engine.java
src/main/java/hudson/remoting/Launcher.java
src/test/java/hudson/remoting/BinarySafeStreamTest.java
http://jenkins-ci.org/commit/remoting/ecf7f30df0f0e084eafa5c08f5569cbdca1dbaf5
Log:
[FIXED JENKINS-9679] Don't depend on commons-codec

After all, we just need base64 encoder.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: SCM/JIRA link daemon (11/Jan/13 9:51 PM)
Status: In Progress Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
pom.xml
http://jenkins-ci.org/commit/jenkins/8a4bedd0df9b5d642945eb601ddb99bb75e87131
Log:
[FIXED JENKINS-9679] integrated remoting 2.21 that contains the fix.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-9679) NoClassDefFoundError on Base64 when launching an headless slave with -jnlpCredential option

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Yury Zaytsev commented on Bug JENKINS-9679

Thank you, KK!~

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12
Loading...