• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't find imported class from ERJavaMail's jar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't find imported class from ERJavaMail's jar


  • Subject: Re: Can't find imported class from ERJavaMail's jar
  • From: Pascal Robert <email@hidden>
  • Date: Fri, 27 Dec 2013 06:02:07 -0500

Hi Jonathan,

How did you add the framework to your project? And if I import version 2 of your project (from https://code.google.com/p/wobmail/source/checkout), ERJavaMail is included correctly. No problem if I run it, I get the login screen (but I did have to clean the project in Eclipse).

> Hi all,
>
> It's been 4 years since I did any significant WebObjects development, but now I decided to plunge back in by importing an old project of mine into an updated Eclipse/WOLips project on the very latest and greatest of everything (WebObjects 5.4.3, latest Wonder, but Eclipse 3.7.2).
>
> My app uses classes from ERJavaMail.framework's JARs (namely my Main.java references javax.mail.MessagingException from mailapi-1.4.5.jar), but no matter how I include the framework and the JARs, when I launch my app from Eclipse, I get the same exception (see below).
>
> Any idea on how to fix this?  Am I missing something obvious after all these years? :)
>
> Jonathan
>
>  com.webobjects.foundation.NSForwardException [java.lang.reflect.InvocationTargetException] null:java.lang.reflect.InvocationTargetException
> 	at com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:626)
> 	at com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.java:646)
> 	at com.webobjects.appserver._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:544)
> 	at com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:642)
> 	at com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
> 	at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:284)
> 	at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
> 	at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
> 	at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
> 	at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
> 	at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2110)
> 	at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2075)
> 	at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
> 	at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
> 	at java.lang.Thread.run(Thread.java:695)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.java:640)
> 	... 13 more
> Caused by: java.lang.Error: Unresolved compilation problems:
> 	The import javax.mail cannot be resolved
> 	The import javax.mail cannot be resolved
> 	The method registerMailSession(Session, String, String) from the type Pop3MailSessionManager refers to the missing type MessagingException
> 	AuthenticationFailedException cannot be resolved to a type
> 	MessagingException cannot be resolved to a type
>
> 	at net.xytra.wobmail.components.Main.<init>(Main.java:9)
> 	... 18 more
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Can't find imported class from ERJavaMail's jar
      • From: Jonathan Meijer <email@hidden>
References: 
 >Can't find imported class from ERJavaMail's jar (From: Jonathan Meijer <email@hidden>)

  • Prev by Date: Deployment WAR problem
  • Next by Date: AjaxModalDialog issue
  • Previous by thread: Can't find imported class from ERJavaMail's jar
  • Next by thread: Re: Can't find imported class from ERJavaMail's jar
  • Index(es):
    • Date
    • Thread