| Author |
Message |
|
|
Post subject: Java EE 6 Container Support?
Posted: Dec 11, 2009 - 12:08 AM
|
|
Registered Member


Joined: Feb 28, 2006
Posts: 1
|
|
Having trouble running mail related java tasks.
I believe the mail is standard in java ee 1.6
java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream
at javax.mail.internet.MimeUtility.<clinit>(MimeUtility.java:1161)
at javax.mail.internet.InternetAddress.setPersonal(InternetAddress.java:196)
at org.apache.commons.mail.Email.createInternetAddress(Email.java:418)
at org.apache.commons.mail.Email.addTo(Email.java:490)
at org.apache.commons.mail.Email.addTo(Email.java:475)
App runs fine when deployed to tomcat 6... but it makes development difficult.
Is there a way to change melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER
to
melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER
Let me know, thanks! |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Java EE 6 Container Support?
Posted: Dec 14, 2009 - 10:21 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8013
|
|
messiahic,
You can setup his own Java EE 6 libs, just a user library, and use that instead of our Java EE 5 one. That should do the trick. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 16, 2010 - 08:18 AM
|
|
Registered Member


Joined: Oct 15, 2005
Posts: 173
|
|
hi dear
Ihave same errpr
java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream
Iuse MyEclipse 8.5 Jboss 4.2.2
the program works fine with java run to send a an email.
but when I run it in MyEclipse I get error. I added mail.jar but still the same error
there must be a setting or more jars involved.
please let me know.
moreover where do I get the port number? Is it 25 always from windows xp?
take care with thanks
Amir |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 17, 2010 - 10:54 AM
|
|
Registered Member

Joined: May 18, 2009
Posts: 1532
|
|
Amir,
| Quote: |
the program works fine with java run to send a an email.
but when I run it in MyEclipse I get error.
|
Can you list out the steps in detail to replicate your issue? Also, what is the JDK version that you are using? |
_________________ Shalini
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 17, 2010 - 01:54 PM
|
|
Veteran Member

Joined: Mar 29, 2008
Posts: 4
|
|
First of all, this is not a myeclipse issue and you don't need javaee6 to email. It is available in jdk 5. Since you are deploying in jboss, you need to configure jboss to setup mail service as a jndi object. Look at /deploy/mail-service.XML. Follow jboss docs to set it up.
Next on your desktop you need to run an smtp server if you are just sending email or use gmail. If your smtp server doesn't need authentication then the setup is simple and the default port is 25. Gmail needs authentication info to send email. |
|
|
| |
|
|
|
 |
|
|