Failed to  load javax.mail.Address class

Hi,
We are using NAS 4.0 sp 6 on solaris 8. I have noticed
time and again on restarting NAS, the kjs engine is not able to load the javax.mail.Address class. This happens not every time but every now and then. What
could be the reason for this ?
Thanks for any help,
Amit

Has anybody an idea about this issue?

Similar Messages

  • Error: SHA1 digest error for javax/mail/Authenticator.class

    I am using javax.mail api to sending emails.
    when I calls main method of the class to send email its works perfect, but when I imports the same class in jsp its shows me above said error.
    My email server requires authentication before sending mails.
    please guide me how to use this class in jsp .
    class code is as below :
    =========================
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    public class SendMailUsingAuthentication
    private static final String SMTP_HOST_NAME = "myserver.smtphost.com";
    private static final String SMTP_AUTH_USER = "myusername";
    private static final String SMTP_AUTH_PWD = "mypwd";
    private static final String emailMsgTxt = "Online Order Confirmation Message. Also include the Tracking Number.";
    private static final String emailSubjectTxt = "Order Confirmation Subject";
    private static final String emailFromAddress = "[email protected]";
    // Add List of Email address to who email needs to be sent to
    private static final String[] emailList = {"[email protected]", "[email protected]"};
    public static void main(String args[]) throws Exception
    SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
    smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
    System.out.println("Sucessfully Sent mail to All Users");
    public void postMail( String recipients[ ], String subject,
    String message , String from) throws MessagingException
    boolean debug = false;
    //Set the host smtp address
    Properties props = new Properties();
    props.put("mail.smtp.host", SMTP_HOST_NAME);
    props.put("mail.smtp.auth", "true");
    Authenticator auth = new SMTPAuthenticator();
    Session session = Session.getDefaultInstance(props, auth);
    session.setDebug(debug);
    // create a message
    Message msg = new MimeMessage(session);
    // set the from and to address
    InternetAddress addressFrom = new InternetAddress(from);
    msg.setFrom(addressFrom);
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++)
    addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/plain");
    Transport.send(msg);
    * SimpleAuthenticator is used to do simple authentication
    * when the SMTP server requires it.
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    return new PasswordAuthentication(username, password);

    Find all the jar files under Tomcat's installation directory and all the jar files in the jre/lib/ext directory.
    Make sure only one of them includes javax.mail.* classes.
    Note that setting CLASSPATH to a directory does not cause all jar files in that directory to be loaded.
    Finally, make sure Eclipse isn't copying the class files out of mail.jar and packaging them with your
    application.

  • Mystery Exception: Failed to load or instantiate TagLibraryValidator class

    I am having trouble with getting a class to load when I access a JSP which uses JSTL:
    org.apache.jasper.JasperException: /hello.jsp(1,1) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
         org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
         org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)There is org/apache/taglibs/standard/tlv/JstlCoreTLV.class in webapps/foobar/WEB-INF/lib/standard.jar. I'm using Tomcat 5.5.4 and Spring 1.1.2.
    Any ideas as to how I can get around this, or what might be causing the problem ?
    --James                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I'm using NetBeans and getting same message. Application i'm running on jrun, which not complains about that, but it seems it similary ignores that code.
    <c:choose>
      <c:when test="${!empty param.branchEdit || !empty param.branchCreate}">
              <%@ include file="/inc/union/editBranch.inc.jsp"%>
      </c:when>
      <c:otherwise>
              <%@ include file="/inc/union/viewBranchList.inc.jsp"%>
      </c:otherwise>
    </c:choose>After i changed to :
    <%
         if(request.getParameter("branchEdit")!=null || request.getParameter("branchCreate")!=null)
         %>
         <%@ include file="/inc/union/editBranch.inc.jsp"%>
         <%
         else
    %>
         <%@ include file="/inc/union/viewBranchList.inc.jsp"%>
    <%}%>all works ok.

  • Failed to load or instantiate TagExtraInfo class

    Hi there
    If I deploy a taglib (which contains TEI-classes) to Tomcat 5.0.25 I get the following error:
    org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: ch.gsa.prodass3.taglib.TagAddAttributeTEI
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:283)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:422)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    root cause
    java.lang.ClassNotFoundException: ch.gsa.prodass3.taglib.TagAddAttributeTEI
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:419)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.
    I've got no idea how the problem can be resolved..!
    Help, would be very appreceated!
    The jar-file with the tag-classes and the tei-classes is located in /WEB-INF/lib/
    The class TagAddAttributeTEI.class is included in the jar-file.
    The beginning of the tld-file looks like this:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>db</short-name>
    <uri>taglib.tld</uri>
    <description>Datenbankzugriff</description>
    <tag>
    <name>addattribute</name>
    <tag-class>ch.gsa.prodass3.taglib.TagAddAttribute</tag-class>
    <tei-class>ch.gsa.prodass3.taglib.TagAddAttributeTEI</tei-class>
    <body-content>jsp</body-content>
    <display-name>addattribute</display-name>
    <description>A short description...</description>
    <attribute>
    <name>useexisting</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>procedurename</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>itemid</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>attribute</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>sprachid</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>type</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>message</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>status</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <example>Brief snippet showing how to use this tag.</example>
    </tag>

    Has anybody an idea about this issue?

  • Problem with recognizing javax.mail.* class ?

    Hi Folks,
    I am new to JavaMail usage on a standalone java program. I did write a java program to send a mail. The problem is it is not recognizing the javax.mail.* class, though i added on the classpath. I too added mail.jar file in the c:\program files\java\jdk1.5.0_16\lib and added the reference same to the classpath and still it is not recognizing. Do i miss something? help me out guys.
    Regards,
    jaisuryah

    Hi Shannon,
    I hope the configuration i did is well. Yah am running the Java from the command line and i dont know why importing the package of javax.mail.* classes are not recognizing. I did unzipped the zip file and placed all the JAR files to lib folder of my installed JDK and referenced the JDK to classpath in environment variable also.
    Regards,
    Jaisuryah

  • Error editing task sequence: Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" From XML into WMI

    I've started getting an intermittent error editing my Windows 7 OSD task sequence.  Sometimes I can open the TS to edit, but when I try to apply changes I get the error.  Other times I get the error when trying to open the TS.  If I try again
    right away, I still get the error, but if I wait a few minutes and try again sometimes it will open the TS. 
    The error reads:
    ConfigMgr Error Object:instance of SMS_Extended Status{Description = "Failed to load dynamic properties for class \"SMS_TaskSequence_ApplyWindowsSettingsAction\" from XML into WMI";Error Code = 2147943746;File = "e:\\qfe\\nts\\sms\\siteserver\\sdk_provider\\smsprov\\ssptspackage.cpp";Line = 3454;Operation = "ExecMethod";ParameterInfo = "SMS_TaskSequencePackage";ProviderName = "WinMgmt";StatusCode = 2147749889;}
    Coinciding with this error, I show the following entries in the TaskSequenceProvider.log file: 
    [PID: 7608] Invoking method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Failed to protect memory buffer, hr=0x80070542
    TaskSequenceProvider
    Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load node Apply Windows Settings from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "PostInstall" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "Execute Task Sequence" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load XML for the task sequence into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    [PID: 7608] Done with method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Setting status complete:  status code = 0x80070542; Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI
    TaskSequenceProvider
    I exported the task sequence and checked in "object.xml" for the "ApplyWindowsSettingsAction", to see if there was something odd in the xml, but I don't find anything that jumps out as being wrong.  Here's the section of XML for
    that step.  I've removed identifying info, and replaced it with a generic term in bold.
    <step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply Windows Settings" description="" runIn="WinPE" successCodeList="0" runFromNet="false"><action>osdwinsettings.exe /config</action><defaultVarList><variable name="OSDLocalAdminPassword" property="AdminPassword"></variable><variable name="OSDComputerName" property="ComputerName">%_SMSTSMachineName%</variable><variable name="OSDProductKey" property="ProductKey"></variable><variable name="OSDRandomAdminPassword" property="RandomAdminPassword">false</variable><variable name="OSDRegisteredOrgName" property="RegisteredOrgName">COMPANY NAME</variable><variable name="OSDRegisteredUserName" property="RegisteredUserName">COMPANY NAME</variable><variable name="OSDServerLicenseConnectionLimit" property="ServerLicenseConnectionLimit">5</variable><variable name="OSDTimeZone" property="TimeZone">Central Standard Time</variable></defaultVarList></step><step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply Network Settings" description="" runIn="WinPEandFullOS" successCodeList="0" runFromNet="false"><action>osdnetsettings.exe configure</action><defaultVarList><variable name="OSDDomainName" property="DomainName">DOMAIN.COM</variable><variable name="OSDJoinPassword" property="DomainPassword"></variable><variable name="OSDJoinAccount" property="DomainUsername">DOMAIN ACCOUNT</variable><variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering" hidden="true">false</variable><variable name="OSDNetworkJoinType" property="NetworkJoinType">0</variable><variable name="OSDAdapterCount" property="NumAdapters" hidden="true">0</variable></defaultVarList></step>
    Is there any other log I should check for a clue on this issue?  What could be causing this error?

    Thanks for sharing that!  I tend to save contacting MS support until after I've exhausted other options.  I'm always afraid that I'll spend the $500 to open a case and then it turns out to be something simple that I would have found if I had just
    kept working on it myself a little longer.
    It looks like that link is for an update released in February as KB3023562.  I downloaded and installed it. I'll try opening/editing/saving the task sequence a few times today to see if the issue is resolved.  
    After I had already installed it, I thought to look up that update in configmgr.  The update is listed as superseded by 2 other updates.  The newest of those is KB3046049, which just installed last night with the other March patches, so it's possible
    that I didn't need to install KB3023562 after all.  

  • SHA1 digest error for javax/mail/Message.class

    it's been 4 hrs that i am striving to get around this .....Does any body has any idea why this error appears and how to remedy it ....
    help will be much much appreciated....

    Either:
    1. Your mail.jar is corrupted, or
    2. You have more than one copy of the javax.mail.Message class in your CLASSPATH.

  • Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib

    Hi,
    I am using tomcat 4.1.x and jdk1.4. After updating the tomcat to 5.5.17 my application gives the following error:
    org.apache.jasper.JasperException: /jsp/index.jsp(150,20) Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
    Is it because jdk1.4 is not compatible with tomcat 5.5.17? can i fix this problem by just pasting some jar files in my WEF-INF/lib directory?
    If yes, could you let me know what those jar files are.
    Can anyone please suggest me if there is some other approach?

    Just remove jsp-api.jar from your classpath.

  • Netbeans can, jar can not - NoClassDefFoundError: javax/mail/Address

    I have made a simple java application to send out emails. It works on Netbeans. That is, after compilation on Netbeans, and then run it on Netbeans, the email can be sent out successfully.
    But after I made a jar file with cmd.exe, and then try to run it on cmd.exe, it throws the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Address
    Can anyone help to illumine?
    thanks a lot!

    I did, doesnt work. program only works if I run jar file from location where netbeans puts jar for distribution. If I copy the jar file from the dist to the directory I want to run the jar file, it cant find the other jar i want to include.
    I have my program which compiles to a jar for distribution. In netbeans i point to a sqljdbc.jar for connecting to SQL Server. Running it from netbeans works fine. Copying the lib directory in the dist directory together with the jar to my destination where I want to run the program works fine too. But I would like to link to the sqljdbc.jar at its original location.
    I have added C:\applibs\sqljdbc.jar to the path in Start >> My Computer >> Properties >> Advanced >> Environment Variables. Doesnt Work.
    If I copy C:\dev\myapp\dist\myapp.jar to C:\apps\myapp.jar without copying C:\dev\myapp\lib to teh same location as well, it doesnt run. It gives the NoClassDefinationError when run at the command prompt
    C:\apps>java -jar myapp.jar
    I even tried
    C:\apps>java -classpath .;C:\C:\applibs\sqljdbc.jar -jar myapp.jar
    Its like the -classpath flag is being ignored. So obviously there is a concept I am misunderstanding. I read somewhere that I have to build my own jar file. Is that the only option? Should this theoretically be working? Can you just copy the jar file from the dist directory to run somewhere else provided the libs it uses is in the path at an OS level?

  • Failed to build javax.mail.jar (Java Mail 1.4.4) with Maven-2.2.1

    Hi,
    I am building javax.mail.jar using with the source of "JavaMail 1.4.4 source code", downloaded from http://kenai.com/projects/javamail/downloads , we have some customized changes in few source java files (regarding IMAP and response) of this source, otherwise no changes we have done in this source for building mail jar with maven.
    I was using Maven 2.2.1 - successfully downloaded repository on my systems when I had Java 1.6. Then I have moved to java 7 but it failed, on roll back changes I was unable to download repositories as I had downloaded at earlier stage.
    System has set JAVA_HOME of Java Home directory
    [ERROR] BUILD ERROR
    [INFO] ----------------------------------------------------------------------
    [INFO] Internal error in the plugin manager executing goal 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version': Unable to load the mojo 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version' in the plugin 'com.sun.enterprise:osgiversion-maven-plugin'. A required class is missing: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
    org.apache.maven.shared.osgi.Maven2OsgiConverter
    [INFO] ----------------------------------------------------------------------
    [INFO] Trace
    org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Internal error in the plugin manager executing goal 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version': Unable to load the mojo 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version' in the plugin 'com.sun.enterprise:osgiversion-maven-plugin'. A required class is missing: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:698)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:556)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:535)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHandleFailures(DefaultLifecycleExe cutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegments(DefaultLifecycleExecutor.jav a:348)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:3 62)
    at org.apache.maven.cli.compat.CompatibleMain.main(Co mpatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher. java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.ja va:375)
    Caused by: org.apache.maven.plugin.PluginManagerException: Unable to load the mojo 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version' in the plugin 'com.sun.enterprise:osgiversion-maven-plugin'. A required class is missing: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
    at org.apache.maven.plugin.DefaultPluginManager.getCo nfiguredMojo(DefaultPluginManager.java:679)
    at org.apache.maven.plugin.DefaultPluginManager.execu teMojo(DefaultPluginManager.java:468)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:694)
    ... 17 more
    Caused by: java.lang.NoClassDefFoundError: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.jav a:2291)
    at java.lang.Class.getDeclaredField(Class.java:1880)
    at hidden.org.codehaus.plexus.util.ReflectionUtils.ge tFieldByNameIncludingSuperclasses(ReflectionUtils. java:47)
    at org.codehaus.plexus.component.composition.FieldCom ponentComposer.getFieldByName(FieldComponentCompos er.java:212)
    at org.codehaus.plexus.component.composition.FieldCom ponentComposer.findMatchingField(FieldComponentCom poser.java:171)
    at org.codehaus.plexus.component.composition.FieldCom ponentComposer.assembleComponent(FieldComponentCom poser.java:62)
    at org.codehaus.plexus.component.composition.DefaultC omponentComposerManager.assembleComponent(DefaultC omponentComposerManager.java:68)
    at org.codehaus.plexus.DefaultPlexusContainer.compose Component(DefaultPlexusContainer.java:1486)
    at org.codehaus.plexus.personality.plexus.lifecycle.p hase.CompositionPhase.execute(CompositionPhase.jav a:29)
    at org.codehaus.plexus.lifecycle.AbstractLifecycleHan dler.start(AbstractLifecycleHandler.java:101)
    at org.codehaus.plexus.component.manager.AbstractComp onentManager.startComponentLifecycle(AbstractCompo nentManager.java:105)
    at org.codehaus.plexus.component.manager.AbstractComp onentManager.createComponentInstance(AbstractCompo nentManager.java:95)
    at org.codehaus.plexus.component.manager.PerLookupCom ponentManager.getComponent(PerLookupComponentManag er.java:48)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:331)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:440)
    at org.apache.maven.plugin.DefaultPluginManager.getCo nfiguredMojo(DefaultPluginManager.java:652)
    ... 19 more
    Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.osgi.Maven2OsgiConverter
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at org.codehaus.classworlds.RealmClassLoader.loadClas sDirect(RealmClassLoader.java:195)
    at org.codehaus.classworlds.DefaultClassRealm.loadCla ss(DefaultClassRealm.java:255)
    at org.codehaus.classworlds.DefaultClassRealm.loadCla ss(DefaultClassRealm.java:274)
    at org.codehaus.classworlds.RealmClassLoader.loadClas s(RealmClassLoader.java:214)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
    ... 36 more
    [INFO] ----------------------------------------------------------------------
    [INFO] Total time: 29 minutes 36 seconds
    [INFO] Finished at: Fri Dec 21 13:07:49 IST 2012
    [INFO] Final Memory: 13M/23M
    [INFO] ----------------------------------------------------------------------
    Complete log output of downloading process can be seen here - http://neelamsharma.s3.amazonaws.com/Maven_Result-2.2.1.txt
    I am removing local repository ".m2" folder from my user each time before restart build. I have tried to download on different OS but it always stuck at same error.
    Can anybody please let me know what settings are changed that I need to update ? Or which repositories need to remove to get rid of this error?

    Looks like there is some sun plugin being used there. Might be that you need the java.net nexus repository so maven can fetch plugin dependencies from it.

  • Javax.mail.Session Class Cast Exception

    I'm tryin' to send a mail via JNDI Java Mail Session, but when i get the look up Object, ClassCastException are thrown
    When i take the o.getClass().getName() is equal to the cast class that i use. I don't know what to do.
    Source --->
    Object o;
    context = new InitialContext();
    o = context.lookup("java:comp/env/mail/mysession");
    System.out.println(o.getClass().getName());
    return (javax.mail.Session) o; // Exception here!

    DUH!
    I'm using incorrect mail.jar version...
    :')

  • Mta fail to resolve external mail address

    ]# /run/msg/imsimta test -rewrite [email protected]
    address channel = tcp_local
    forward channel =
    backward channel = tcp_local
    unique identifier = [email protected]
    header forward address = [email protected] (route (TCP-DAEMON,TCP-DAEMON)) (host yahoo.com.hk)
    header reverse address = [email protected]
    envelope forw address = (route (reprocess-daemon-error,reprocess-daemon-error)) (host yahoo.com.hk)
    envelope rev address = [email protected] (route (TCP-DAEMON,TCP-DAEMON)) (host yahoo.com.hk)
    name =
    mbox = hoilau
    Extracted address action list:
    [email protected]
    Extracted 733 address action list:
    [email protected]
    Address list expansion:
    -13 expansion total.
    Submitted address list:
    Address list error -- 4.0.0 Temporary lookup failure: [email protected]
    Submitted notifications list:
    # tail /log-msg/mail.log_current
    14-Mar-2009 11:12:45.45 3f39.1.299 reprocess Q 4 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.46 3f3d.1.275 reprocess Q 51 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.47 3f3a.1.292 reprocess Q 12 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.48 3f38.1.302 reprocess Q 233 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.49 3f3d.1.276 reprocess Q 4 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.49 3f39.1.300 reprocess Q 13 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.50 3f3a.1.293 reprocess Q 5 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.51 3f38.1.303 reprocess Q 13 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.52 3f39.1.301 reprocess Q 200 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    14-Mar-2009 11:12:45.52 3f39.1.301 reprocess Q 200 [email protected] rfc822;[email protected] [email protected] Temporary lookup failure: [email protected] Temporary lookup failure: [email protected]
    If I resolve the same mail address on mailstore host machine, it work.
    Can anyone help me fix the problem?

    >
    Please always provide the exact version of Messaging Server that you are using (./imsimta version).
    ]# /run/msg/imsimta test -rewrite [email protected]
    address channel = tcp_local
    forward channel =
    backward channel = tcp_local
    unique identifier = [email protected]
    header forward address = [email protected] (route (TCP-DAEMON,TCP-DAEMON)) (host yahoo.com.hk)
    header reverse address = [email protected]
    envelope forw address = (route (reprocess-daemon-error,reprocess-daemon-error)) (host yahoo.com.hk)
    envelope rev address = [email protected] (route (TCP-DAEMON,TCP-DAEMON)) (host yahoo.com.hk)
    name =
    mbox = hoilau
    Extracted address action list:
    [email protected]
    Extracted 733 address action list:
    [email protected]
    Address list expansion:
    -13 expansion total.
    Submitted address list:
    Address list error -- 4.0.0 Temporary lookup failure: [email protected]
    Messaging server attempts to search the LDAP server for the domain of the email address (in this case yahoo.com.hk) to see if it is a locally defined domain. As Chris already noted, you will see the "Temporary lookup failure" message if your LDAP server is not operating correctly or the MTA is performing an invalid query (an MTA configuration problem).
    I suggest you review the access logs on your LDAP server to see if there are any errors reported.
    You will also get additional debug logging by using the -debug switch with your earlier command e.g.
    ./imsimta test -rewrite -debug [email protected]
    If I resolve the same mail address on mailstore host machine, it work.Is the mailstore host system pointed to the same LDAP server for address resolution?
    Regards,
    Shane.

  • How do I  Send HTML formatted email  using  class in  javax.mail pkg

    How do I Send HTML formatted email using javax.mail pkg class ?i mean is thr any class available in this package to do this ?

    Please see
    http://javaalmanac.com/egs/javax.mail/SendApp.html
    for Quintessential Program to Send E-Mail.
    Then substitute line
    msg.setText(content);
    /with this one
    msg.setContent( content , "text/html");
    it should do in simplest form.

  • Failed to load IMAP envelope

    Hi All,
         I have encountered a problem with JavaMail API, when a message exists on the Mail Server that has �null� for recipient field, JavaMail API throws an Exception when ever we try to retrieve getFrom() method, and also it returns �null� when I was retrieving BCC list.
    Is there any thing wrong in this code, Pls. help me?
    My Sample code:
    import java.util.Properties;
    import javax.mail.Folder;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.NoSuchProviderException;
    import javax.mail.Session;
    import javax.mail.Store;
    import javax.mail.internet.InternetAddress;
    import javax.mail.Address;
    public class InboxSearch
         public static void main(String[] args)
              String           host          =     "XX.X.XXX.XX"; //Host
              int               port          =     143;     //Port No          
              String           user          =     "XXXXXX";     //Username
              String          password     =     "XXXXXX"; //Password
              Properties      props          =      new Properties();
              Store          store          =     null;
              Folder          inbox          =     null;
              try
                   Session session = Session.getDefaultInstance(props, null);
                   store = session.getStore("pop3");
                   store.connect(host,user,password);
                   inbox = store.getFolder("INBOX");
                   inbox.open(Folder. READ_WRITE);
                   Message[] inboxMessages = inbox.getMessages();
                   for (int counter = 0; inboxMessages!=null && counter <inboxMessages.length; counter ++)
                        Address from[] = inboxMessages[counter].getFrom();
                        //when i was retrieving it throws javax.mail.MessagingException:Failed to load IMAP envelope
                        String retriveBcc=null;
                        Address bcc[] = inboxMessages[counter].getRecipients(Message.RecipientType.BCC);
                        for (int bcccount = 0; bcc != null && bcccount < bcc.length; bcccount++)
                             retriveBcc = retriveBcc + bcc[bcccount];
                             if ((bcccount + 1) < bcc.length)
                                  retriveBcc = retriveBcc + ", ";
                             System.out.println("BCC->"+retriveBcc);
                        //retrieving with BCC field it return null so it will throws NullPointerException
              catch (NoSuchProviderException nspe)
                   System.err.println("invalid provider name"+ nspe.toString());
              catch (MessagingException me)
                   System.err.println("messaging exception"+ me.toString());
              catch(Exception e)
                   System.err.println("exception"+ e.toString());
              finally
                   try{ if(store!=null){store.close();}}catch(Exception e){}
                   try{ if(inbox!=null){inbox.close(true);}}catch(Exception e){}
         }//main end
    }//class end
    Thanks & Regards
    Mohan

    Hi All,
    Thanks for your replay, Is there any way to find out which column is causing �inserted value too large for column� the problem? I'm trying to insert the data into a table by using Prepared Statement.
    Note that I don't require like email_id length>column length then column name=�EMAIL_ID�
    Appreciated ur help,
    My Sample Code:*
    import java.util.*;
    import javax.mail.*;
    import java.io.*;
    import java.sql.*;
    public class InboxSearch
         public static void main(String[] args)
              String host = "XX.X.XXX.X"; //Host
              int port = 143; //Port No
              String user = "XXXXXXX"; //Username
              String password = "XXXX"; //Password
              Properties props = new Properties();
              Store store = null;
              Folder inbox = null;
              String msgId[] = null;
              boolean debug = true;
              Connection connection = null;
              PreparedStatement psmt=null;
              try
                   Session session = Session.getDefaultInstance(props, null);
                   session.setDebug(debug);
                   store = session.getStore("imap");
                   store.connect(host,user,password);
                   inbox = store.getFolder("INBOX");
                   inbox.open(Folder. READ_ONLY);
                   Message[] inboxMessages = inbox.getMessages();
                   String serverId =null;
                   Address from[]=null;
                   String toAddress = "";
                   String ccAddress = "";
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   connection = DriverManager.getConnection("jdbc:oracle:thin:@XX.X.XXX.XXX:1521:DEV", "XXXX", "XXXX");
                   String query = "INSERT INTO EMAIL_ARCHIVED_MAILS VALUES(?,?,?,?)";
                   for (int counter = 10; inboxMessages!=null && counter <15; counter ++)
                        msgId=inboxMessages[counter].getHeader("MESSAGE-ID");
                        if (msgId!=null)
                             psmt = connection.prepareStatement(query);     
                             from = inboxMessages[counter].getFrom();
                             Address to[]= inboxMessages[counter].getRecipients(Message.RecipientType.TO);
                                  for (int count = 0; to != null && count < to.length; count++)
                                       toAddress = toAddress + to[count];
                                       if ((count + 1) < to.length)
                                            toAddress = toAddress + ", ";
                             Address cc[] = inboxMessages[counter].getRecipients(Message.RecipientType.CC);
                                  for (int count = 0; cc != null && count < cc.length; count++)
                                       ccAddress = ccAddress + cc[count];
                                       if ((count + 1) < cc.length)
                                            ccAddress = ccAddress + ", ";
                             psmt.setString(1, msgId.toString());
                             if (from[0].toString()!=null)
                                  psmt.setString(2,from[0].toString().toUpperCase());
                             }else
                                  psmt.setNull(2, Types.VARCHAR);
                             if (toAddress!="")
                                  psmt.setString(3,toAddress);
                             }else
                                  psmt.setNull(3, Types.VARCHAR);
                             if (ccAddress!="")
                                  psmt.setString(4,ccAddress);
                             }else
                                  psmt.setNull(4, Types.VARCHAR);
                             psmt.execute();
                             System.out.println("counter-->"+counter);
                        }else
                             System.out.println(�No MESSAGE-ID�);
              catch (NoSuchProviderException nspe)
                   System.err.println("invalid provider name"+ nspe.toString());
              catch (MessagingException me)
                   System.err.println("messaging exception"+ me.toString());
              catch(Exception e)
                   System.err.println("exception"+ e.toString());
              finally
                   try{ if(psmt!=null) psmt.close();}catch (Exception e){}
                   try{ if(connection!=null) connection.close();}catch (Exception e){}
                   try{ if(inbox!=null){inbox.close(true);}}catch(Exception e){}
                   try{ if(store!=null){store.close();}}catch(Exception e){}
         }//main end
    }//class end
    Protocol Trace:*
    ---------- java ----------
    DEBUG: setDebug: JavaMail version 1.4ea
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    * OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.6944.0 (testmail.mailtest.com) ready.
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    DEBUG: protocolConnect login, host=XX.X.XXX.X, user=XXXXXXXX, password=<non-null>
    A1 LOGIN XXXXXX XXXX
    A1 OK LOGIN completed.
    DEBUG: connection available -- size: 1
    A2 EXAMINE INBOX
    * 221 EXISTS
    * 0 RECENT
    * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
    * OK [PERMANENTFLAGS ()] Permanent flags
    * OK [UNSEEN 13] Is the first unseen message
    * OK [UIDVALIDITY 88] UIDVALIDITY value
    A2 OK [READ-ONLY] EXAMINE completed.
    A3 LIST "" INBOX
    * LIST (\Marked \HasChildren) "/" INBOX
    A3 OK LIST completed.
    A4 FETCH 11 (BODY.PEEK[HEADER.FIELDS (MESSAGE-ID)])
    * 11 FETCH (BODY[HEADER.FIELDS (MESSAGE-ID)] {80}
    Message-ID: <[email protected]>
    A4 OK FETCH completed.
    A5 FETCH 11 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 11 FETCH (ENVELOPE ("Mon, 31 Jan 2005 14:27:44 +0530" "Blessed with a baby girl" ((NIL NIL "radha.krish" "wipro.com")) ((NIL NIL "radha.krish" "wipro.com")) ((NIL NIL "radha.krish" "wipro.com")) ((NIL NIL "undisclosed-recipients" NIL)) NIL NIL NIL "<[email protected]>") INTERNALDATE "31-Jan-2005 14:28:19 +0530" RFC822.SIZE 2505)
    A5 OK FETCH completed.
    counter-->10
    A6 FETCH 12 (BODY.PEEK[HEADER.FIELDS (MESSAGE-ID)])
    * 12 FETCH (BODY[HEADER.FIELDS (MESSAGE-ID)] {66}
    Message-ID: <31579113.1112822648060.JavaMail.orbit@phys-indus>
    A6 OK FETCH completed.
    A7 FETCH 12 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 12 FETCH (ENVELOPE ("Thu, 7 Apr 2005 02:54:08 +0530" "Account to Account Transfer" ((NIL NIL "CitiAlert.India" "citicorp.com")) ((NIL NIL "CitiAlert.India" "citicorp.com")) ((NIL NIL "citialert.india1" "citicorp.com")) ((NIL NIL "vishalk" "xxxx.com")) NIL NIL NIL "<31579113.1112822648060.JavaMail.orbit@phys-indus>") INTERNALDATE " 7-Apr-2005 02:25:27 +0530" RFC822.SIZE 3060)
    A7 OK FETCH completed.
    counter-->11
    A8 FETCH 13 (BODY.PEEK[HEADER.FIELDS (MESSAGE-ID)])
    * 13 FETCH (BODY[HEADER.FIELDS (MESSAGE-ID)] {65}
    Message-ID: <8725992.1112822649508.JavaMail.orbit@phys-indus>
    A8 OK FETCH completed.
    A9 FETCH 13 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 13 FETCH (ENVELOPE ("Thu, 7 Apr 2005 02:54:09 +0530" "Account to Account Transfer" ((NIL NIL "CitiAlert.India" "citicorp.com")) ((NIL NIL "CitiAlert.India" "citicorp.com")) ((NIL NIL "citialert.india1" "citicorp.com")) ((NIL NIL "vishalk" "xxxx.com")) NIL NIL NIL "<8725992.1112822649508.JavaMail.orbit@phys-indus>") INTERNALDATE " 7-Apr-2005 02:25:29 +0530" RFC822.SIZE 3063)
    A9 OK FETCH completed.
    counter-->12
    A10 FETCH 14 (BODY.PEEK[HEADER.FIELDS (MESSAGE-ID)])
    * 14 FETCH (BODY[HEADER.FIELDS (MESSAGE-ID)] {80}
    Message-ID: <[email protected]>
    A10 OK FETCH completed.
    A11 FETCH 14 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 14 FETCH (ENVELOPE ("Thu, 7 Apr 2005 10:28:17 +0530" "512K IPLC" (("Santosh Kumar Singh" NIL "Santosh.Singh" "xxxx.com")) (("Santosh Kumar Singh" NIL "Santosh.Singh" "xxxx.com")) (("Santosh Kumar Singh" NIL "Santosh.Singh" "xxxx.com")) (("XxxxIndia" NIL "All_India" "xxxx.com")(NIL NIL "all_india" "siti.com")(NIL NIL "all_india" "digiprise.com")) (("Sai Gundavelli" NIL "sai.gundavelli" "xxxx.com")) NIL NIL "<[email protected]>") INTERNALDATE " 7-Apr-2005 10:28:17 +0530" RFC822.SIZE 1534)
    A11 OK FETCH completed.
    exceptionjava.sql.SQLException: ORA-01401: inserted value too large for column
    A12 CLOSE
    A12 OK CLOSE completed.
    DEBUG: added an Authenticated connection -- size: 1
    A13 LOGOUT
    * BYE Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.6944.0 signing off.
    A13 OK LOGOUT completed.
    DEBUG: IMAPStore connection dead
    DEBUG: IMAPStore cleanup, force false
    DEBUG: IMAPStore cleanup done
    Output completed (33 sec consumed) - Normal Termination
    Table Structure:*
    CREATE TABLE EMAIL_ARCHIVED_MAILS
    MAIL_ID VARCHAR2(100 BYTE),
    EMAIL_FROM VARCHAR2(100 BYTE),
    EMAIL_TO VARCHAR2(100 BYTE),
    EMAIL_CC VARCHAR2(100 BYTE)
    Thanks & Regards
    Mohan

  • 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

Maybe you are looking for

  • Enabling upgraded Excel version in BW/Bex

    Hi all - quick (and hopefully dumb easy-to-answer) question. I've trawled through the forums but cannot find the answer. We are running BW 3.1 with Bex queries coming through into Excel 2000. If we remove Excel 2000 and install Excel 2007, Bex pick t

  • CA-159 and CA-161 cables

    I too received a CK-200 as a present, only to notice it was an ISO version and not the direct input version. As both kits are the same except the cables, I only need to find the direct input cable CA-161. I would also like to be able to charge the ph

  • Widnows 8.1 keeps crashing and re-starting.

    Hi there, Windows 8.1 keeps crashing and re-starting on my Asus laptop. The problem is getting worse and worse to the extent that it is happening every 15 minutes or so. I have run all the windows troublshooting applications via my control panel and

  • Hi,  I don't really know wether I should post this message in the iPad sect

    Hi, I don't really know wether I should post this message in the iPad section or in this section... Anyway. Here is my problem : I would like to stream music from my iPad to my living room soundsystem, so I bought an Airport Express. BUT my router is

  • SVN E17001 trying to commit to PAM

    Hello, In JDeveloper 12c I have created a PAM connection and I have checked-in my project. The operation was successful. Now, after modifying some files, I want to commit the modifications but the following exception is raised: [2015-01-22T19:10:48.3