Error sending mail via JSP in weblogic 5.1

Hi,
I am running weblogic 5.1. I am trying to send an email via a JSP page and I get
the following error in the browser:
Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling
the request.
and the following error in the weblogic command console:
Fri Oct 18 18:25:17 EDT 2002:<E> <ServletContext-General> Servlet failed with
Exception
java.lang.NoClassDefFoundError: javax/mail/Message
at jsp_servlet._jmail._jspService(_jmail.java:91)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129).
I am using a jsp page and a bean in that. Bean has the java mail code.
If I put the same code in a JSP page instead of a bean, it is working fine.
I take the same code files to another instance on weblogic, I dont get any errors.
Any help will be greatly appreciated.
Thanx
Raju

how is the weblogic.properties configured?
how do you run the BWLS ? memory (M)?
is the documentroot and the WEBLOGIC JSP PROPERTIES right ?

Similar Messages

  • App tries to send mail via Thunderbird, "PostMail error# 2" is shown. All my collegues with the same installation do not have this problem. Thanks for your time

    When a external application tries to send an email via Thunderbird i get an error message, roughly translated it says: "Something went wrong with PostMail, error number 2"
    My collegues have the same setup, they have no problem what so ever when sending mail via this way. Any tips would be most welcome. Thanks for your time.

    Continue at your other thread.
    https://support.mozilla.org/en-US/questions/1053959

  • Surname not recognized when sending mail via FM

    Hi SDN,
    I am on WAS 6.20. SRM System.
    I have a BSP, which sends mail via FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    when putting a normal dialog user in the ICF Service of the BSP I get a mail in my email client, which shows as sender the forename, surname of the corresponding SU01 SAP User. When putting service user in the ICF service the sender, which shows up in my email-client is always 'www' even though I changed fore- and surname of this service user. Why is that?
    regards, matthias
    Message was edited by: Matthias Kasig
    Message was edited by: Matthias Kasig

    I am with you. I think they still have a dud server in their farm and when you get it you get the error message. How to get to level two support is the trick I think.

  • Sending mail via forms no longer working

    Recently, on one of our servers (XServe G4 - 10.3.9) was running both web and mail. Mail was moved off of the server 2 days ago onto a newer server (10.4.7)
    The web server has: php4.3.11 and is ONLY running AFP/OD/Web
    Since the transfer of the mail server to the new machine, all web sites can no longer send mail via their scripts (either by sendmail, php's mail(), or by connecting to SMTP server via php).
    The web logs do not show errors when it attempts to send the mail...
    A look at mail.log shows
    "relay=cyrus, delay=2558, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_)
    As far as I'm aware, the web server/sendmail shouldn't be attempting to use cyrus at all. For the record, Cyrus master is not running.
    All users can access the mail server without any difficulty. DNS entries have been checked and double checked.
    Does anyone know why sendmail and php mail functions stopped working? I really need to get these web forms functioning again. Is the problem with apache, php, sendmail or something else?

    Hi Camelot,
    Thanks for the quick reply and useful suggestion. I did as you mentioned and fired up the mail server.
    The mail "delivered" however, I notice a couple issues in the logs (mail.log)
    issue #1: I have to start cyrus master manually via > sudo /usr/bin/cyrus/bin/master SA and command line start/stop of mail does not start master. Also, when starting master from command line as mentioned, terminal hangs.
    issue #2 (from mail.log) - still getting the same lmtpd error (but messages do finally get delivered):
    Jan 14 03:58:24 www postfix/pipe[2914]: 3503858502D: to=<[email protected]>, relay=cyrus, delay=5327, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmptd_ )
    Jan 14 03:59:39 www postfix/cleanup[2906]: B60AE58572B: to=<[email protected]>, relay 123.123.123.123[123.123.123.123], delay=0, status=sent (250 Ok: queued as 9FBF41BCBCA)
    Do you think these are "issues" to contend with or are they "normal" occurances?

  • Write error. [Error sending mail message to SMTP server. Return code: [].]:

    Hi ,
    I am getting the below error when scheduling a report which is larger in size in excel format.
    write error. [Error sending mail message to SMTP server. Return code: [].]: [CrystalEnterprise.Smtp]  
    The same error does not come up when sending the same report in XLS format using outlook.
    Can some one confirm if this error is because of the size of the report as I see a different error in XIR2 incase the size the exceeds the email server limit.
    ~Neethi

    Hi,
    this could be
    Maybe you have different limits for service smtp account (which the BO Server should use) and User smtp accounts.
    Thats why you can sent it via outlook and not from the BO Server.
    Regards
    -Seb.

  • Cant Send Mail via DSL

    Im Apple Mail using iMac G4 and G4 tower. Both will recieve an send mail find via dial-up but will not send mail via dsl connection.
    We get our mail via ethernet > router > antenna > atenna > another router > antenna > ten miles away at another antenna then to dsl source.
    So our dsl connection/signal is going threw three other antennas and at least one router here in office before we get it.
    My ISP provider says we need to talk to our DSl provider.
    Any ideas? Our computer tech is out of office touch for a week.
    Ran

    Thanks but this doesn't answer my question.
    Allan, I am 99% percent sure that my ISP is not the same ones who supply our ethernet/broadband/DSL.
    Is your internet service provider (ISP) for your
    dial-up connection different from the ISP for the DSL
    connection?
    Yes, I believe that they are differrent, however, I have new info.
    At first my G4 tower with Earthlink account would not send out over etherner/broadband/DSl, but now it does! I, nor anyone else, has made any changes to the outgoing address that works for dial-up connection and is what we have always used until yesterday when we first tried the dsl/braoband
    Kind of a different situation and not typical or the
    norm to have a company that provides a DSL connection
    not be the internet service provider for the
    connection.
    Someone new came into our building for office space. He had the router, ethernet cables and antenna installed. He/we get electro-magnetic radiational signal from a larger business across the street who has a tower --soon to be a taller tower-- and they get there radiational signal from 10 miles away.
    Knowing who your ISP is for connecting to the
    internet regardless if using a dial-up connection or
    a DSL connection (DSL is considered a broadband) is
    important and if the email account and SMTP server
    being used is provided by the ISP being used for your
    internet connection or by a different email account
    provider not associated with the ISP used for
    connecting to the internet.
    Yes, I understand that is the case. Maybe I'm wrong and by some coincidence the DSL provider is Earthlink and that is why the G$ tower account began working for the outoging mail.
    Im still having the sam problem on the G4 iMac which is a local.com account they have told us the same as you have, that we need to know who the DSL provider is and what info they require in the outgoing( smtp ) line.
    You mentioned Earthlink which is an internet service
    provider that offers dial-up access and/or DSL access
    so does the Earthlink protocol you mentioned mean you
    are having problems sending with an Earthlink email
    account and SMTP server?
    Earthlink account is working now so again perhaps the DSL provider is coming through Earthlink and ergo we didnt need to make changes to the outgoing( smtp ) info line.
    Thats the only way that one can be explained.
    I take it you use the dial-up connection at home
    (which is provided by Earthlink?) and the DSL
    connection is used at the office?
    Thats correct. The inital DSl source for the business that is 10 miles away, must use Earthlink. I'm now presuming this is the case with this new info.
    However, there is another --3rd-- business on other side of street and he uses --Apple mac just like me-- and his ISP is "host centric". I looked at his mac preference accounts outgoing ( smtp ) line and his is
    "mail.the business name.com:his email address",
    i.e. he does not use Earthlink but he has no problem sending out mail via the same DSl/broadband connections we have
    The only reason he has his address in the outgoing mail liine is bceause he too is in larger business building with several differrent computers and email address's.
    I've tried all kinds of combinations that are similar to the Earthlink outgoing and the hostcentric outgoing
    but none work for the local.com account.
    The exact error message provided when trying to send
    messages is also pertinent information.
    "message delivery failed" "the attempt to read data from the server 'server-name' failed"
    Then it gives me option to try differrent server names.
    Thanks for your efforts Allan and ohters.
    Ran

  • Sending mail via Javascript.

    It is possible to send mail via a Javascript. If so can anyone support me with the code to do so.

    you use the Windro$$ scripting host, and use an ActiveXObject to access the Outlook (not express) poroperties.
    I used to do them a lot because they save me time... all automated is always better.
    For example, here is a script that changes the read-only, etyc file properties on a windro$$ box. (I used it when copying CDs)
    /* Changes the file attributes in a batch of files starting in
    * the current directory and progressing according to parameters
    /*  LOGIK:
        -get the path to a file in folder
            change attribute of file/dir.
            repeat until there are no more files
                go to next folder
                start again
    *                     VARIABLE PARAMETERS                      *
    * includeSubDirectories {true | false}                         *
    *     Should the subdirectories' files be changed too?         *
    * numberOfLevelsDeep {0 | 1..99999999999}                      *
    *    The number of levels of subdirectories that should be     *
    *    affected (0 = all)                                        *
    * onlyFilesWithExtension {"" | "extension" | ["extension",     *
    * "list"]}                                                     *
    *    Only the fies with this extension are to be changed       *
    *    ("" = all, no regexp) (arrays can be used ["htm", "html", *
    *    "gif", "jpg", "jpeg"])                                    *
    * NewAttributes:                                               *
    *   readOnly {true | false}                                    *
    *      Set files to read only?                                 *
    *   hidden {true | false}                                      *
    *      Set files to hidden?                                    *
    *   archive {true | false}                                     *
    *      Set files to archive?                                   *
    *   system {true | false}                                      *
    *      Set files to system files?                              *
    var includeSubDirectories  = true;
    var numberOfLevelsDeep     = 0;
    var onlyFilesWithExtension = "";
    var NewAttributes = {
        readOnly : false,
        hidden   : false,
        archive  : false,
        system   : false
    //MAIN FUNCTION
    function main(){
        chmod(path, 0, numberOfLevelsDeep, includeSubDirectories);
    //OBJECTS
    //FUNCTIONS
    // This arguments are here just to pass information around during
    // runtime
    function chmod(dir, browseNumber, levels, subdirs){
        //If the number of levels deep has been reached and
        //the number of levels is not 0 then end
        if(browseNumber > levels && levels != 0){
            return;
        }else{
            browseNumber++;
        //get directory as a folder object
        dir = FSO.GetFolder(dir);
        var FILES = new Enumerator(dir.files);
        var DIRECTORIES = new Enumerator(dir.subFolders);
        for(; !FILES.atEnd(); FILES.moveNext()){
            try{
                //Change file settings
                var currentFile = FSO.getFile(FILES.item());
                //if we have an extension array...
                if(extensionIsArray){
                    for(var i in onlyFilesWithExtension){
                        if(onlyFilesWithExtension[i] == ""
                        || FSO.getExtensionName(currentFile).toLowerCase(
                        ) == onlyFilesWithExtension.toLowerCase()){
    changeAttributes(currentFile);
    break;
    }else{
    if(onlyFilesWithExtension == ""
    || FSO.getExtensionName(currentFile).toLowerCase(
    ) == onlyFilesWithExtension.toLowerCase()){
    changeAttributes(currentFile);
    }catch(error){
    WSH.popup("Unable to change file '" + currentFile + "'\n" + error.description, 0);
    for(; !DIRECTORIES.atEnd(); DIRECTORIES.moveNext()){
    if(subdirs){
    chmod(DIRECTORIES.item(), browseNumber, levels, subdirs);
    changeAttributes(DIRECTORIES.item());
    }else{
    return;
    function changeAttributes(filename){
    var err = "pagefile.sys";
    if(("" + filename).substring(("" + filename).length - err.length, ("" + filename).length).toLowerCase() == err){
    return; // The file is the virtual memory buffer... ignore!
    //Try to use the filename as if it was a file.
    //If operation fails, then we have a folder.
    //In either case the change of properties should work.
    try{
    filename = FSO.getFile(filename);
    }catch(error){
    filename = FSO.getFolder(filename);
    //Change the file/folder attributes if necessary
    for(var i = 0; i < 4; i++){
    if(filename.attributes & modes[i]){
    if(!newca[i]){
    filename.attributes = filename.attributes - modes[i];
    }else{
    if(newca[i]){
    filename.attributes = filename.attributes + modes[i];
    //CONSTANTS
    var FSO = new ActiveXObject("Scripting.FileSystemObject");
    var WSH = new ActiveXObject("WScript.Shell");
    //VARIABLE DECLARATIONS
    //geth the location of the script
    var path = FSO.getParentFolderName(WScript.scriptFullName);
    //If this is an array, element 0 will not be undefined
    var extensionIsArray = onlyFilesWithExtension[0] + "" != "undefined";
    //Convert object to usable array
    var newca = [NewAttributes.readOnly, NewAttributes.hidden, NewAttributes.archive, NewAttributes.system,];
    //[readOnly, hidden, archive, system]
    var modes = [1, 2, 32, 4];
    //changeAttributes("c:\\autoexec.bat");
    //Go!!!
    main();
    dave.

  • Sending Mail via BSP

    hi all,
    i have a problem in sending mail via bsp.
    the case is i want to send reminder from e-portal. in order to do that i made a new bsp page and a new function modul.
    the bsp page is used for user interface and the function modul is used for the process for sending mail.
    in the function modul i send the mail via api.
    the bsp page and function modul is already finish. but when i testing them, the mail is not sent into mail inbox.
    if i checked in sap outbox, the mail sent via bsp is exists.
    i try to debug it the code for bsp page and function modul is already ok, no error occured.
    is there any clue why this happened ?
    is there any thing else that need to be config or set ?
    please help
    regards
    eddhie

    hi Raja,
    i have solved the problem sending mail via bsp.
    many thanks for your help, i rewards point for your answer.
    about the sap notes that you told me before, is it the way for setting how to send mail / messages via web application server right ?
    could please you give little explaination for the notes, because i think 80% of the notes is for basis configuration and i don't have authorization.
    beside that, what i have to do if in transaction SCOT there is a lot document still waiting for transmitted ?
    please help
    regards
    eddhie

  • Fixing :there was an error sending mail"

    I am using Adobe Reader 9 and Acrobat 8 Pro on a Lenovo, Windows 7, 64bit machine. When I right-click pdf files from my directories, and select "send", the file attaches itself to a new e-mail (from Outlook) and I can send - no issues. However, if I am viewing an open pdf and I select the e-mail or send icon from the toolbar, I get an error message (first box just says "error", then second box says "there was an error sending mail". I have Googled this issue and, in turn checked my Windows settings for Outlook, etc. I see no issues. I have run Adobe updates - still doesn't work. Any ideas?
    Thanks, Wayland

    What I'm trying to say, that when I update my App there an error appears

  • How to send mail using jsp program

    am very new to jsp and doing my final year project. i need to send mails using my jsp program.can anyone say wht to do that is wht to include to send mails using jsp program. n also a sample code to send mail using jsp program.
    Thanx in advance

    Use below script.
    <%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
    <%
    Properties props = new Properties();
    props.put("mail.smtp.host", "mailserver.com");
    Session s = Session.getInstance(props,null);
    InternetAddress from = new InternetAddress("[email protected]");
    InternetAddress to = new InternetAddress([email protected]");
    MimeMessage message = new MimeMessage(s);
    message.setFrom(from);
    message.addRecipient(Message.RecipientType.TO, to);
    message.setSubject("Your subject");
    message.setText("Your text");
    Transport.send(message);
    %>{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need to Send Mail from JSP...

    Dear Team,
    I Need to Send Mail from JSP, have Designed user Interface to enter
    to, from, subject, and message text .
    Have Downloaded mail.jar and activate.jar file..... and placed in tomcat lib directory and WEBAPPS/WEB-INF/lib Directory too
    How do i send a mail to user ?
    do I require something else apart from things that i have mentioned?
    do i have to Configure SMTP, POP3 or Something like this....
    Now If I Create a object of Type MimeMessage and Set Recipient, from, subject and if i say transport.send(message) will this do My JOB???

    Dear Team,
    I Need to Send Mail from JSP, have Designed user
    Interface to enter
    to, from, subject, and message text .
    Have Downloaded mail.jar and activate.jar file.....
    and placed in tomcat lib directory and
    d WEBAPPS/WEB-INF/lib Directory too
    How do i send a mail to user ?
    do I require something else apart from things that i
    have mentioned?
    do i have to Configure SMTP, POP3 or Something like
    this....
    Now If I Create a object of Type MimeMessage and Set
    Recipient, from, subject and if i say
    transport.send(message) will this do My JOB???Yup! in addition to all the above i need to know my mail box outgoing mail server. and that's enough...... i am able to do that.
    Regards,
    Jagadeesh HS.

  • Alias address from iCloud alias address cannot be used to send mails via iPad

    Alias address from iCloud alias address cannot be used to send mails via iPad

    If you still have this concern: You can only use the alias address linked to the main iCloud account that you backup your iPad to. You can check that going to Setting-iCloud and check the Account email address.
    I think this restriction is rather rediculous. I don't see why we can't configure an alias from a different iCloud account the same way we do for a Gmail account. I hope Apple fixes this in iOS 6.

  • Write error. [CrystalEnterprise.Smtp]: [Error sending mail message to SMTP

    Hi,
    The below error messgage i am getting while scheduling report in CMC. My report getting refreshed successfully but while posting refreshed file(Excel) it is not posting and throwing below error.
    Error Message:
    write error. [CrystalEnterprise.Smtp]: [Error sending mail message to SMTP server. Return code: [].]
    please provide some help on this.
    Thanks
    Vivek

    Hi Vivek
    Mails to the destinations are delievered by SMTP server. Size of the file in the mail depends on the SMTP server.
    For example, If SMTP server does not permit file size more than 2MB then that file won't be delievered.
    For testing purpose copy the instance generated in Filestore to your local drive and send this instance using your mail client to
    desired destination.
    You can try sending large size file from your mail client to test SMTP server capacity of sending large size file.
    Thanks,
    Hrishikesh Parasnis

  • I send mail via SMTP server with Hebrew text, and I get it gibberish on my iphone

    I send mail via SMTP server with Hebrew text, and I get it gibberish on my iphone

    What mail program from what kind of computer are you sending your email?  It sounds like an encoding problem that would have to be solved on the sending end.   If you want, send me an example of the kind of email which arrives as gibberish on your iphone (tom at bluesky dot org).

  • Can't send mail via mail

    Greetings O Wise Ones,
    The smtp setting are correct. I can receive mail. The mail app was working fine one minute and the next I couldn't send mail. Tried a new smtp and it didn't work either, Created a new login user and new mail. The smtp work with the new user but not with the old one. Any ideas that don't delete the com.apple.mail.plist? If that's the only way. How do I save my mail boxes?

    This is happening to my wife's Leopard 10.5.8 upgraded machine right now.
    We've been using Apple Mail for years and it works, but suddenly stopped working
    and refuses to send mail via any SMTP server at all. It just spins forever and eventually
    complains it can't.
    The account is configured to send via comcast (smtp.comcast.net), DSL (smtp.sbcglobal.yahoo.com), and gmail, as choices. Two of them require authentication, Comcast doesn't require authentication, only that the e-mail be sent via the Comcast cable router, which it is.
    I've tried removing the SMTP accounts and carefully re-adding, removing the Gmail IMAP mail account itself in Apple Mail and re-adding, and even moving aside the /Users/<user/Library/Mail folder so it can be re-added. I've even used the sqlite3 index vacuum command.
    On my own Mac Pro, 10.5.8, I'm able to send e-mail, but on the notebook mail is wedged up for good and it seems to be associated with the upgrade. I am now re-installing 10.5.8 from the 'combined' download, and I'll see if it fixes it. What a hassle.

Maybe you are looking for

  • Insert statement does not insert all records from a partitioned table

    Hi I need to insert records in to a table from a partitioned table.I set up a job and to my surprise i found that the insert statement is not inserting all the records on the partitioned table. for example when i am using select statement on to a par

  • How to insert rows from an  xml file to a table

    im Using Oracle 11g It is showing below error when i execute.. declare charString varchar2(80); finalStr varchar2(400) := null; rowsp integer; v_FileHandle UTL_FILE.FILE_TYPE; begin -- the name of the table as specified in our DTD xmlgen.setRowsetTag

  • Bug? ORA-01008: not all variables bound when using DB LINK

    This SQL runs fine in SQL*Plus but returns ORA-01008 in Apex. If I replace the bind variable with a literal, it works fine in Apex. Using OracleXE 10.2.0.1.0, Apex 2.1.0.00.39 with ixc as (      select ic.table_name, ic.index_name, ic.column_name, ic

  • Configure Windows Server Essentials Fails with Please Click Retry. If the Issue still exsists........

    I had a Windows 2003 SBS that i am migrating to a new Windows 2012 R2 Essentials machine.  I had to upgrade the Domain and Forrest from 2000 to 2003 to be able to add my new 2012 server to the existing domain.  Once it was replicated i demoted the Se

  • Problems using PDF Generator QPACs

    I have PDF Generator 7.2 running under JBoss on one server and Workflow 7.0.1 on another. I am trying to use the PDF Generator QPACs that came with the Workflow SDK 7.0.3 but when the ConvertPDF QPAC is invoked I get the following error... 16:42:45,9