Mail.jar is locked when sending a mail using servlet and not releasing

Hi everybody,
The mail.jar is locked in tomcat while sending the first message and not released until the tomcat get restarts.
the problem is not recorded in any logs.
1. Please create a servlet that sends mail
2. Send a mail to any mailid
3. then after the mail is send please try to delete the mail.jar or please deploy the same servlet again with some small changes (for redeploying take place only a few changes is there - please change any strings a little bit)
then try to send mail using this servlet will not send mail becoause it will not redployed correctely.
when i removed Transport.send(msg); from code it works fine. but ??
please help me to recover from this issue. i don't want to turn on tomcat antiJarlocking and antiresourcelocking to true, becaouse this craete many other problems.
please help me to recover from this issue.
Thanks,
Prasad.N

hi friend
I am using advanced version of jdk. i i have used many other jar files like mysqlconnector, logging, commonhttpclient, etc.... the only problem is with mail.jar. that locks are released when its use completed, but the lock holds until tomcat shutdown in mail.jar.
what may be the reason?
Thanks,
Prasad.N

Similar Messages

  • Mail app is crashing when sending e-mail from Yahoo

    When sending an e-mail from the Mail app, the "Sending..." bar shows up, and then the application shuts down and puts me back at the home screen.
    The email gets through though.
    (Using Yahoo to send)

    I, too, was having the same problem of blacking out and returning to home each time I sent an email with Edge. I put the phone to sleep, did a hard reset and re-added my account several times. Each time I came back to mail the message was waiting to be sent again. I finally checked my sent mail and it showed up as being sent 22 times. Apparently you should check the sent folder to make sure if it went through or not before trying again.

  • HT4798 hi, I want too not have to use apple Id when i first start using computer and not to see messages from phone text to show up

    How can I delete the apple Id sign every time I sign in and I do not want texts from phone showing up on computor

    Hey dottiesue,
    Sounds like you're receiving iMessages from your iPhone on your iMac, which you don't want. If that's the case, you can remove your account from the Messages app:
    List all of the email addresses in the “You can be reached for messages at” list. You can find this list by choosing Messages > Preferences, and then selecting iMessage in the Accounts pane.
    Or you can check with your friends and ask them to just send iMessages to your phone number instead of email, as they won't arrive on the iMac that way:
    Check with your friends to see if they’re messaging you at an email address listed in the “You can be reached for messages at” list or if they’re sending messages to a phone number.
    Messages can send messages to a phone number, but it can’t receive messages sent to a phone number.
    If you send messages to a phone number, your friend will receive the message on iPhone, but not in Messages on Mac, iPad, or iPod touch.
    from: Messages (Mountain Lion): Fix iMessage issues
    http://support.apple.com/kb/PH12065
    Welcome to Apple Support Communities!
    Best,
    Delgadoh

  • When sending e-mail, a message says that the sent folder is full,-- even though it is not-- however the mail still gets sent. No problem sending mail to myself

    I am running Thunderbird version 33.1 Recently, when sending e-mail, I get an error message indicating that the sent folder is full and that I should empty or compress it to fix the problem-- so I emptied it-- problem remains. Also, there is no record of sending the e-mail in the sent folder, even though the mail has been sent. No such problems occur when I send mail to myself.
    Any suggestions ???

    If you deleted some of the messages you have done one half of the process. Deleting a message just marks it for deletion and hides it from view. You have to COMPACT the folder to actually delete the messages and free up the space.
    I agree that Thunderbird did a poor job naming this process because it is the subject of much misunderstanding.
    Read about compacting here.
    http://kb.mozillazine.org/Thunderbird_:_Tips_:_Compacting_Folders
    I suggest that you also read this article about maintaining your email system to help prevent problems.
    http://kb.mozillazine.org/Keep_it_working_-_Thunderbird

  • What has happened to the rotating disk when sending e-mails in 6.2?

    What has happened to the rotating disk when sending e-mails in 6.2?

    Fast user switching is on... I use the Name reference but I've tried switching to icon with the same result. If the a account I'm switching to is not logged in I get a blank Blue screen for about 2 seconds then the desktop of the account. If the account is already logged in then from the login window (all accounts have passwords) it just switches directly to the desktop.
    I have spaces turned on on my main account however none of the other accounts do, the same thing happens regardless of which account you are switching from or to.
    If you hadn't said it was working for you I would have believe they just pulled it from Leopard.

  • When sending e-mails to other mac addresses, I get  a message saying that I cannot send this message to iCloud.

    When sending e-mails to other mac addresses, I get  a message saying that I cannot send this message to iCloud.

    * Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    * Trash the current Firefox application to do a clean (re)install.
    * Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • Mail app quit making sounds when sending/receiving mail.

    Mail app quit making sounds when sending/receiving mail. It was fine yesterday and just went mute today. I have Mac OSX 10.7.2 and a MacBook Air. Is there any way to fix this easily?

    I have the same issue. I'm wondering if I'm sending out viruses.
    Is this a common issue?
    Has this been solved?

  • When sending/receiving Mail seems to handl more mails than my traffic

    When I press "Get Mail", or when I send a mail, the send/receive activity shows in the lower left corner of the screen.
    What makes me wonder is the fact that sometimes "mail activity" for instance says: "getting x mails of 10" although I only receive say, 6 mails in my inbox.
    And the same thing happens the other way around. When I send one email, mail-activity could say: "sending 2 of 2 mails" although I am only sending one mail!
    Does anybody have an idea as to why this odd behaviour occurs?

    I have the same issue. I'm wondering if I'm sending out viruses.
    Is this a common issue?
    Has this been solved?

  • I can't bring up my contact list when sending E mails, says error code

    At times I can't bring up my contact list when sending E mail. It says contact list error code. I can bring up my contact list when I use internet explorer. Sometimes fire fox crashes for no apparent reason ....

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Can the contact list be frozen when sending e mails

    When sending e mails can the contact list be frozen while the contacts are added, instead of adding one at time and having to return to list each time

    Hi beverlyfromnull,
    Have you added the recipients to your address book?

  • When sending e-mails, how can I show only the name and not include the e-mail address?

    When sending e-mails, how can I show only the name of the recipient and not include their full e-mail address?

    Hi beverlyfromnull,
    Have you added the recipients to your address book?

  • I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. Some contacts have problems opening files sent by me using Mail too. This was never a problem on pre-Intel. A real Mac **** up !

    I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. And some contacts occasionally have problems opening files sent by me using Mail too. This was never a problem on pre-Intel Mac. A real Mac **** up ! Any ideas ?

    Can you drag and drop the attachments visible in the email to the Desktop OK or does that fail ?
    Re the sending: Are these recipients on Mac's or PC's as the file type could be an issue, if on Mac's then try setting the Mail Preferences Composing setting to Plain Text not Rich Text and see if that improves things.

  • After installing the new Yosemite OS on my iMac I can no longer send email. I can receive email, but not send. I use gmail and can send email on the gmail (google) site, but not on "mail" on my iMac. Any others with this problem? What should we do?

    After installing the new Yosemite OS on my iMac I can no longer send email. I can receive email, but not send. I use gmail and can send email on the gmail (google) site, but not on "mail" on my iMac. Any others with this problem? What should we do?

    My gmail, which is correctly configured for Mail with gmail SMTP and Google IMAP, works for awhile on Mail, which I leave open while working on other applications. But several times a day I get msg from Google: "We recently blocked a sign-in attempt to your Google Account" . . . and requiring me to verify my account details, re-enter passwords, confirm security settings (or change them from "disable" to "enable less secure methods" and so on). In Mail I also have tried "taking all accounts online", and re-entering my gmail password inside Mail account settings. These steps successfully re-set comms between gmail and Mail ... for awhile, then it happens again. Enough occurrences over a work day that I just quit Mail and revert to accessing gmail directly. Apple Care advisor and an Apple knowledge base article say that Apple can't deal with this, as gmail is third-party app, and they refer me to gmail, and so far I've found nothing helpful there.
    From today I also have several instances of a window saying "Mail has unexpectedly closed" and asking me to Re-open it.
    I also use Yahoo mail, which stops working with Mac Mail at the same time as gmail, but I do not receive notices to re-verify from Yahoo.
    I recently upgraded from Mavericks to Yosemite. The Mail problem happened occasionally with Mavericks but is far more frequent with Yosemite.

  • How can i get my password and security questions back? everytime i write my mail in iForgot it doesnt send the mail to  my account, why? someone hacked me but i dont know how.

    how can i get my password and security questions back? everytime i write my mail in iForgot it doesnt send the mail to  my account, why? someone hacked me but i dont know how.
    example;
    my apple mail: [email protected]
    and i write down the account in iForgot [email protected] but i never recieve the mail asking for the new password, why? someone hacked me and change that and the security questions, what can i do?

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • I have four accounts on my mail application. but whenever i send a mail from one account, it goes through other account.

    i have four accounts on my mail application. but whenever i send a mail from one account, it goes through other account.

    Look at Mail / Accounts, then choose the Account icon. See if the Outgoing server box is set to the correct entry for each of your accounts.

Maybe you are looking for

  • How to fix a report textbox aggregate expression error in SQL server reporting with multiple datasets?

    I have a SQL Server Reporting Services report that has a textbox within a Report with variations of the following expression  =Sum(IiF(Fields!RegisterID.Value = 6000, 1, 0)  and  Iif(Fields!PointID.Value = 500, 1, 0)) / Sum(Iif(Fields!PointID.Value =

  • BT trying to charge me for call I have not made.

    Hi Can anyone help me - I have just spent ages on the phone to your billing people none of who seem to have any common sense (also I have been cut off in "transfers" from one helpdesk to another). Apparently I have made a phone call for 18.28 hrs non

  • WMP10 won't detect

    I want to rip a cd on to my computer but it's not being detected as an audio cd. I think it's because it has some extra features on it (video stuff). Can anyone help me? How can I get this bugger to rip if it won't detect it's The cd is Radiohead's '

  • Notes on my iphone

    How can i transfer all my notes on my iphone to my computer and remove them on  my iphone

  • Creating a Netinstall from multiple CDs

    Hi, Is it possible to create a Netinstall image from multiple CDs ? I want to create Netinstall images that are made up of the 2-CD sets that come with new machines. If it is possible, how do I do it ? Thanks.