Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > java email exception from .jar

Thread Tools

java email exception from .jar

Posts: n/a
I trying to use log4j's SMTPAppender which sends mail of log messages.
I have it working inside Eclipse, and I've used log4j(excluding
SMTPAppender) for a long time in my application .jar. However, the
java email classes are throwing an error from my .jar. It seems to be
looking for a manifest which I'm guessing is the activation's?

I'm putting the java email classes in my .jar as well as the
activation.jar in the same path as the jaf1-1 framework does. Here is
the exception.

Any suggestions would be appreciated.



Exception in thread "main" java.lang.SecurityException: no manifiest
section for
signature file entry javax/activation/DataContentHandlerFactory.class
at ion(SignatureFileVe
at ignatureFileVerifie
at gnatureFileVerifier
at java.util.jar.JarVerifier.processEntry(JarVerifier .java:239)
at java.util.jar.JarVerifier.update( 194)
at java.util.jar.JarFile.initializeVerifier(JarFile.j ava:300)
at java.util.jar.JarFile.getInputStream( 362)
at sun.misc.Resource.getBytes(
at .java:24
at$100(URLClassLoader. java:55)
at$ 194)
at Method)
at ava:187)
at java.lang.ClassLoader.loadClass( 89)
at java.lang.ClassLoader.loadClass( 35)
at java.lang.ClassLoader.loadClassInternal(ClassLoade

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CheckBox in Column of JTable: Exception: java.lang.String cannot becast to java.lang.Boolean Java 13 09-23-2012 02:44 PM
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
while executing my client program i get the exception javax.naming.LinkException: [Root exception is javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining if plz anybody know how to solve this problem then mahesh Java 0 03-08-2007 12:26 PM
Re: bizaar exception that isn't really an exception jeff ASP .Net 3 06-26-2003 01:02 PM
Re: bizaar exception that isn't really an exception jeff ASP .Net 0 06-24-2003 12:46 PM