Javax.mail.*; not being seen by portal in EP 6

Hello All,
It seems that when I deploy the following code:
package com.giggity;
import java.util.Properties;
import javax.mail.*;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import com.sapportals.portal.prt.component.AbstractPortalComponent;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentResponse;
public class Mailer extends AbstractPortalComponent
  public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
  Properties p = System.getProperties();
  p.put("mail.host", "stmail");
  try{
  MimeMessage message =
new MimeMessage(Session.getInstance(p, null));
message.setFrom(new InternetAddress("[email protected]"));               message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("[email protected]"));
message.setSubject("No work");
message.setText("Does not work");
Transport.send(message);
catch(Exception e)
I get a javax/mail/Address ClassNotFoundException.  In
the IDE (Eclipse with PDK plugin, not using NW04), it
compiles and builds just fine.  What is the problem?
Thanks.
-Greg

Successful compilation or building in the eclipse/NWDS does not mean that it can be successfully deployed on the portal. If the Java build path has all the required jars, any project compiles and builts fine but that build path is not transported to the portal( see inside any par file, there won't be any .classpath and .project files. They are local only files).
========
   Add all your third party jar files to the component in this path( ..\dist\PORTAL-INF\lib). There is no need to add mail.jar as it's already available in sap j2ee engine. So add these lines to the portalapp.xml. (as told by jagdeep)
<application-config>
<property name="PrivateSharingReference" value="SAPJ2EE::library:mail"/>
</application-config>
Regs,
Bobby

Similar Messages

  • Groups created in OID - not being seen through Portal Admin

    Hi,
    I also posted this in the OID section.
    I'm working on an intranet application for my company, and trying to structure Groups/Users in the OID to enable role-based security.
    I'm having a problem where the groups created in OID through the OID Self Services Console, cannot be viewed in the Portal Administration page. I have assigned all users to the groups I created in OID, and made the "NEW GROUPS" members of the oip_available_users, and the AUTHENTICATED USERS groups. From what I understand, if I make them members of these 2 groups, they should be available for the Portal to see. Is that correct?
    Has anyone else faced this problem. How can I create a group in OID and view it through the Portal, for giving privileges to pages in my pagegroup.
    Any help would be appreciated!
    Thanks,
    Lakshmi

    You cannot add groups to the OIP_AVAILABLE_USERS group. Oracle Instant Portal is designed to only read users from that group.
    Also, If creating groups for use by Portal 10g, using DAS, you should create the groups under the Portal-specific instance container in the directory information tree so that the groups show up automatically in the group LOVs for the portal instance. If they don't show up, you should still be able to see them if you opt to view "All Groups" from the Group portlet. In either case, the group must be somewhere under the global group search base configured in OID.
    If you use the Group Portlet to create your groups, they will automatically be created under the Portal instance group container.

  • Why wont my mail open? The mail not being able to open is making me not be able to shut down my laptop.

    Why wont my mail open? The mail not being able to open is making me not able to shut down my macbook.

    Press power button down and hold up to 30 secs to force shut down and then start up and see how u goes on ur mail....

  • I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    If the external drive can be seen at all in Disk Utility, follow the instructions for repair here.

  • My ipad is not being seen by itunes in Windows 7. I uninstalled then reinstalled itunes it started working for a while then it stopped. I get a message stating that the device is not recognized or the device is defective replace device. Anyone have a fix.

    My ipad is not being seen by itunes in Windows 7. I uninstalled then reinstalled itunes it started working for a while then it stopped. I get a message stating that the device is not recognized or the device is defective replace device. Anyone have a fix.

    At present I have no power to the Gen 7, so need to get some power to it I think.  I pressed the buttons as you suggested, but nothing is showing up at this point.  Thank you for your response as the more I can rule out before  I take it back the better I think.

  • LaCie d2 500GB Quadra Hard Drive Not Being Seen By Time Machine

    Hello all,
    I have a LaCie d2 500GB Quadra Hard Drive Not being seen by Time Machine hooked up to my iMac via firewire 800. My iMac is running latest updates etc. Have raised a support ticket and was given the following instructions by LaCie:
    Posted: 08 November 2007 @ 00:00
    Thank you for contacting LaCie Technical Support. Make sure the drive is mounting and you can assess files on it on your 10.5 system. If you can then you will need to reformat the drive to make it compatible with time machine.
    Warning! All data on the external drive will be destroyed in this process.
    Step 1: Run Applications > Utilities > Disk Utility
    Step 2: Click on the LaCie hard drive's 'physical' entry, usually the third entry in the list
    Step 3: Click on the Partition tab
    Step 4: Change 'Current Scheme' to '1 Partition'
    Step 5: Change the name of the drive back to what you would like it to be
    Step 6: The format needs to be Mac OS Extended, with or without journaling
    Step 7: Click on the Options... button
    Use "Apple Partition Map" partition scheme on a PowerPC-based Mac.
    Use "GUID" partition scheme on an Intel-based Mac.
    Step 8: Click on OK
    Step 9: Click on Apply
    Step 10: click on Erase at the bottom of the screen, then confirm the erase.
    The drive should start to be reformatted which should take only a few seconds and show up on the desktop with a new icon. Once it has you can then use it with time machine.
    I have done all of the above and it is still not being seen. Anyone had a similar issue or got the above to actually work?
    Thanks in advance!!!!

    Ryan,
    Check drive volume name and also the Computer name. Apple released a tech note recommending that both be limited to only the characters A-Za-z0-9 (no dashes, hyphens, or other special characters.
    If you can, send the Apple System Profiler report to me at the addres in my profile. Imay be able to see something there. I have helped another user with similar problems, but with a LaCie USB drive. He got things working by repeating the recommended steps, and double checking everything.
    As others have rported, this should work, so there may be something else preventing proper operation.
    If the drive is usable from Finder, but Time Machine cannot use it, there is something related in how Time Machine is viewing the drive.
    Mike

  • E mail not being received

    Hi, I use BT yahoo mail through outlook 2010, sent mails show as sent in outbox, i get no error message but they are not going to recipients. I have deleted account and re set up in outlook i am using the IMAP settings as on the BT web site. When i send mail from my apple devices using same e mail account they are recieved ok? Any ideas ? Thanks in advance.I should add when i set up account in outlook and hit test message that gets received ok . In additon I can send myself emails using outlook.

    I suspect that you may have the same issue as
    https://community.bt.com/t5/Email/One-particular-recipient-not-receiving-my-Outlook-mail-but-can/td-...
    https://community.bt.com/t5/Email/e-mail-not-being-received/td-p/1343373
    https://community.bt.com/t5/Email/Cannot-send-emails/td-p/1343253   
    One solution may be to temporarily change your SMTP server to 
    smtp.mail.yahoo.co.uk

  • Package javax.mail not found in import.

    hi,
    i am trying to develop a mail application using jsp, i have jaf1.0.1 and javamail API and the application was working fine on weblogic but when i tried to do the same thing on Apache server the Package javax.mail not found in import. is occuring,
    What could be the problem can any one explain...
    Thanks

    I think you have not placed mail.jar and activation.jar files in the /jre/lib/ext directory. Just place the mail.jar and activation.jar files in the jdk's /jre/lib/ext directory and check out. This will work for you.
    Rkanthj

  • Import javax.mail not found

    Hello,
    I am new to Java Mail. I wanted to test my first programme. When I compile, I get this errors.
    package javax.mail not found in import and so on. I have set my classpath to so
    set classpath = %classpath%;C:\j2sdk1.4.0\lib\mail.jar;C:\j2sdk1.4.0\lib\activation.jar
    I included the mail.jar,smtp.jar and activation.jar in the lib directory of my jdk e.g c:\j2sdk1.4.0\lib\ "the jar file".
    Can any one tell me what I am missing here?
    Thanks
    James

    the easiest way to do this is to put
    activation.jar
    mail.jar          
    mailapi.jar     
    imap.jar     
    smtp.jar          
    pop3.jar
    into the virtual machine directory C:\Program Files\JavaSoft\JRE\1.3.1\lib\ext
    or the lib\ext directory of whatever virtual machine you are using
    and put coppies of them in JDK
    C:\j2sdk1.4.0-beta3\jre\lib\ext
    or jre\lib\ext
    of whatever JDK you are using
    this way they are found automaticaly
    no need for classpath

  • Rules in Mail not being applied after Mavericks update

    Hi everyone, I know there are a lot of threads already discussing similar issues, but so far I've been unable to find one that helps resolve my particular issue. Ever since upgrading to Mavericks my rules are not being applied in Mail. I will give you a screenshot of one of my rules:
    I have about five rules that follow the same pattern: search for particular string in the FROM field and mark it with a color if the string is present. These rules all worked fine in Snow Leopard. All of my rules are still present after the upgrade and all checked as active. When I "select all" messages in my inbox and press Option-Cmd-L the rules are applied properly. However, the rules are not applying themselves when new mail comes in. As far as I can tell this does not have anything to do with the mail not being recognizes “as a new message” like, for example, because the mail was already read on my phone. It happens even if my other devices are offline and the only thing I am using to check mail is my laptop.
    I am using a MacBook Pro 2.3 GHz Intel Core Duo with OS X 10.9.1, in case that matters.
    Thanks for any advice!

    I think I've found at least a partial solution to the Mail - Rules Don't Work problem:
    In "Mail" go to the menu Mailbox and click on Rebuild.
    If you have a lot of stuff, this will take several minutes to finish.
    I also reviewed all my rules and made a few minor changes.
    Mixed results:  I found that running "Apply Rules" didn't work on email already received; but new mail did.  I don't quite understand that, but I call it a partial success.

  • My Goflex external drive is not being seen since I installed Lion, any ideas.

    My Goflex external drive is not being seen since I installed Lion, any ideas I cannot see any driver updates etc.

    Try resetting SMC.
        Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".

  • Why can I not load pictures from a micro SD 64gb using scan disk adapter plugged into an Apple iPad camera connection kit.  I have the iPhoto app but pictures not being seen on iPad.  So incredibly frustrating.  Apple please fix this.

    Why can I not load pictures from a micro SD 64gb using scan disk adapter plugged into an Apple iPad camera connection kit.  I have the iPhoto app but pictures not being seen on iPad.  So incredibly frustrating.  Apple please fix this.

    Do you have a smaller capacity micro SD card to try? I seem to remember from past posts that users were having problems with cards larger than 32GB, however, Apple's page doesn't mention this.
    Using The iPad Camera Connection Kit
    http://support.apple.com/kb/HT4101
    What format are the pics - jpg or raw?
     Cheers, Tom

  • DVD 1270 not being seen in xp to install at start up windows 7

    DVD 1270 not being seen at startup in xp to install windows 7. Boot order works - the machine sees  a cd but not a dvd. Installed latest driver for lightscribe from this site. Also tried two other dvds - one a hp 1160 which works on  another machine it sees the dvd on other machine running w7 but not on this new one - ASUS mthrbd P867-M Le. ASUS says it is the DVD and to try another. Seems like it may be a config issue. Any ideas? Thanks

    Well, if the drive is good, then try a different SATA port.  It might be that the OS is looking for the drive per the BIOS and it is not on the SATA 0 port. BTW: Does this motherboard have 6GB SATA ports?  Do not use them for DVD drive.
    {---------- Please click the "Thumbs Up" to say thanks for helping.
    Please click "Accept As Solution" if my help has solved your problem. ----------}
    This is a user supported forum. I am a volunteer and I do not work for HP.

  • Solved Problem - mail not being sent and kept in Outbox....

    I've posted a few messages here about mail not being able to be sent and kept in the Outbox.
    It is solved. I believe.
    Everything seems to be back to normal. I guess it was a problem of me over stepping limitations for .Mac e-mail, and getting locked out for a 24 hour period. So, I will be more care next time I need to e-mail large files to numbers of people ! Probably will invest in something like Stuffit and use there compression facility to reduce the size of files I want to send over the internet and via e-mail.
    Thanks to those who took interest and gave advice.

    You don't have to invest in Stuffit.
    Built-in compression is included with the Finder.
    To compress files before sending them, use the Archive command in the Finder's File menu. Select the file or files you want to compress, then choose File > Create Archive.
    A compressed archive of the files is created. If you archive a single item, the archived file has the name of the original item with a ".zip" extension. If you archive multiple items at once, the archived file is named Archive.zip.
    Recipients can open the archive by double-clicking regardless the platform - Windows or OS X.

  • Development Component libraries not being recognized in Portal

    Hi everyone,
    I've been having a problem regarding a Background Execution Callable Object.
    At first, when I added External Libraries to the Java Build Path of the Development Component, these libraries would dissappear upon build time. The solution to this was to create another DC type External Library and add the libraries there. Afterwards, these libraries would form part the DC's Public Part and these would be incorporated in the Used DC's section of the first component (marking Design Time and Build Time when it was added). This enabled me to build and deploy the DC successfully.
    Once inside the Portal, I tried creating a new Background Execution Callable Object and once I entered the class' name, I would get the following error message:
    Cannot check if class exists: Unable to load the required classes.
    I had already created a CO pointing to this reference and when I test it, I get the following error message:
    java.lang.NoClassDefFoundError: com/cts/speed/exception/DatabaseException
    This leads me to the conclusion that the external libraries used aren't being recognized by the portal at runtime.
    I would appreciate any suggestions as to how I can solve this issue.
    Thank you very much,
    Luis

    Successful compilation or building in the eclipse/NWDS does not mean that it can be successfully deployed on the portal. If the Java build path has all the required jars, any project compiles and builts fine but that build path is not transported to the portal( see inside any par file, there won't be any .classpath and .project files. They are local only files).
    ========
       Add all your third party jar files to the component in this path( ..\dist\PORTAL-INF\lib). There is no need to add mail.jar as it's already available in sap j2ee engine. So add these lines to the portalapp.xml. (as told by jagdeep)
    <application-config>
    <property name="PrivateSharingReference" value="SAPJ2EE::library:mail"/>
    </application-config>
    Regs,
    Bobby

Maybe you are looking for

  • Resetting Time Capsule - network is OK, but no longer connects to internet

    I've set up my TC in the past and it's worked fine, but periodic printer or router updates have caused problems and I think I need to completely reset it. My setup is an ISP-suppled Orange Livebox Mini router connecting to the internet, an iMac plugg

  • Quicktime works in IE7, but not in Firefox 2

    I made Firefox 2 my default browser, and I know I have the most up-to-date Quicktime, but I don't know how to make Firefox 2 have a Quicktime plug-in. When I view a page that is supposed to have sound, i get a message that says to click to download r

  • Mass change in base unit of meausurement

    Dear All, Is it possible to make change in base unit of meausurement by using massd?? Regards, Nitesh

  • Deleting My Usage call record

    I want to delete previous call history in my usage call account record, how is this done?

  • Apache Error Log after update from 2.0 to 2.2.1

    Yesterday, I upgraded from 2.0 to 2.2.1. This morning some problems - very few - are happening with the users trying to save their work. Not allways but sometimes, they get a blank screen after trying to save the recored or they get the "Page can not