hudson on tomcat: java.lang.NoClassDefFoundError: javax/activation/DataContentHandler

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

hudson on tomcat: java.lang.NoClassDefFoundError: javax/activation/DataContentHandler

Wolfram Kroll-2
Hi,

I need some help with installing Hudson on a tomcat app server on a
Fedora Core 7 64bit box. When Hudson tries to send e-mails it fails with
the stack trace shown below. Building works well.

On the same machine, it worked fine using JBoss. Do I have to configure
some classpaths on tomcat? I used the admin web-ui to install hudson.war.

Hudson contains the required lib:
./hudson/WEB-INF/lib/activation-1.1.jar

Wolfram

Sending e-mails to: [hidden email]
FATAL: javax/activation/DataContentHandler
java.lang.NoClassDefFoundError: javax/activation/DataContentHandler
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1346)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
        at
javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:590)
        at
javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
        at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611)
        at javax.activation.DataHandler.writeTo(DataHandler.java:315)
        at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248)
        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268)
        at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
        at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
        at javax.mail.Transport.send(Transport.java:97)
        at hudson.tasks.MailSender.execute(MailSender.java:71)
        at hudson.tasks.Mailer._perform(Mailer.java:73)
        at hudson.tasks.Mailer.perform(Mailer.java:67)
        at hudson.model.Build$RunnerImpl.post(Build.java:142)
        at hudson.model.Run.run(Run.java:591)
        at hudson.model.Build.run(Build.java:107)
        at hudson.model.ResourceController.execute(ResourceController.java:66)
        at hudson.model.Executor.run(Executor.java:59)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: hudson on tomcat: java.lang.NoClassDefFoundError: javax/activation/DataContentHandler

Wolfram Kroll-2
Wolfram Kroll schrieb:

> Hi,
>
> I need some help with installing Hudson on a tomcat app server on a
> Fedora Core 7 64bit box. When Hudson tries to send e-mails it fails with
> the stack trace shown below. Building works well.
>
> On the same machine, it worked fine using JBoss. Do I have to configure
> some classpaths on tomcat? I used the admin web-ui to install hudson.war.
>
> Hudson contains the required lib:
> ./hudson/WEB-INF/lib/activation-1.1.jar

my versions:
tomcat 5.5.23
hudson 1.136

wolfram

>
> Wolfram
>
> Sending e-mails to: [hidden email]
> FATAL: javax/activation/DataContentHandler
> java.lang.NoClassDefFoundError: javax/activation/DataContentHandler
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>     at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>     at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1346)
>
>     at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
>
>     at
> javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:590)
>
>     at
> javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
>
>     at
> javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611)
>     at javax.activation.DataHandler.writeTo(DataHandler.java:315)
>     at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248)
>     at
> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268)
>     at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
>     at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
>     at javax.mail.Transport.send(Transport.java:97)
>     at hudson.tasks.MailSender.execute(MailSender.java:71)
>     at hudson.tasks.Mailer._perform(Mailer.java:73)
>     at hudson.tasks.Mailer.perform(Mailer.java:67)
>     at hudson.model.Build$RunnerImpl.post(Build.java:142)
>     at hudson.model.Run.run(Run.java:591)
>     at hudson.model.Build.run(Build.java:107)
>     at hudson.model.ResourceController.execute(ResourceController.java:66)
>     at hudson.model.Executor.run(Executor.java:59)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: hudson on tomcat: java.lang.NoClassDefFoundError: javax/activation/DataContentHandler

Wolfram Kroll-2
Wolfram Kroll schrieb:

> Wolfram Kroll schrieb:
>> Hi,
>>
>> I need some help with installing Hudson on a tomcat app server on a
>> Fedora Core 7 64bit box. When Hudson tries to send e-mails it fails
>> with the stack trace shown below. Building works well.
>>
>> On the same machine, it worked fine using JBoss. Do I have to
>> configure some classpaths on tomcat? I used the admin web-ui to
>> install hudson.war.
>>
>> Hudson contains the required lib:
>> ./hudson/WEB-INF/lib/activation-1.1.jar
>
> my versions:
> tomcat 5.5.23
> hudson 1.136

I think the Tomcat rpm version still uses libs from the installed gcj
rpm version. So I have to figure out how to switch it completely to
sun's java which is already installed.

Wolfram

>
> wolfram
>
>>
>> Wolfram
>>
>> Sending e-mails to: [hidden email]
>> FATAL: javax/activation/DataContentHandler
>> java.lang.NoClassDefFoundError: javax/activation/DataContentHandler
>>     at java.lang.ClassLoader.defineClass1(Native Method)
>>     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>     at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>     at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>     at java.lang.ClassLoader.defineClass1(Native Method)
>>     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>     at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>     at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>     at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1346)
>>
>>     at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
>>
>>     at
>> javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:590)
>>
>>     at
>> javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
>>
>>     at
>> javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611)
>>     at javax.activation.DataHandler.writeTo(DataHandler.java:315)
>>     at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248)
>>     at
>> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268)
>>     at
>> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
>>     at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
>>     at javax.mail.Transport.send(Transport.java:97)
>>     at hudson.tasks.MailSender.execute(MailSender.java:71)
>>     at hudson.tasks.Mailer._perform(Mailer.java:73)
>>     at hudson.tasks.Mailer.perform(Mailer.java:67)
>>     at hudson.model.Build$RunnerImpl.post(Build.java:142)
>>     at hudson.model.Run.run(Run.java:591)
>>     at hudson.model.Build.run(Build.java:107)
>>     at
>> hudson.model.ResourceController.execute(ResourceController.java:66)
>>     at hudson.model.Executor.run(Executor.java:59)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]