SAP App Server 7 does not recognize DOM mechanism of XML security provider

Hi all,
I am trying to do XML signature by Java servlet, and am using Sun WSDP 2.0 (WebServices Developers Pack) for this purpose.
SAP Netweaver 7.0 (which implements Servlet API version 2.3) on Windows2003
JRE 1.4.2
SAP Developers Studio
SWSDP 2.0
Code snippet:
import javax.xml.crypto.dsig.XMLSignatureFactory;
XMLSignatureFactory sigFactory =
XMLSignatureFactory.getInstance("DOM", new org.jcp.xml.dsig.internal.dom.XMLDSigRI());
This gives an exception:
javax.xml.crypto.NoSuchMechanismException: Cannot find DOM mechanism type
This means that the SAP app server cannot get DOM mechanism from the provider (org.jcp.xml.dsig.internal.dom.XMLDSigRI).
I tried the same code in a stand-alone Java program, and it worked perfectly. Again, the same program when loaded on tomcat also worked. I tried with JWSDP 1.5 and the results were same (ie. worked on tomcat, worked in a stand-alone java program, but failed in SAP app server).
Does anyone know or have any idea of this issue? Why is the SAP app server rejecting the DOM mechanism of other provider? Is this a bug?
To recreate this issue, just download the xmldsig.jar for the package JWSDP2.0 (or 1.5) and write the above 2 lines in the servlet.
Thanks in advance.

This problem is solved. I am putting the reply here so that others who stumble upon this error can benefit.
Add the following line to explicitly include the provider before the getInstance
Security.addProvider(new org.jcp.xml.dsig.internal.dom.XMLDSigRI());
XMLSignatureFactory sigFactory =
XMLSignatureFactory.getInstance("DOM", new org.jcp.xml.dsig.internal.dom.XMLDSigRI());

Similar Messages

  • App Server Does not recognize the transport Directory

    We have added a new server in the production system , but this server is not able to recognize the transport directory ,
    In the instace profile , this parameter is set as below
    DIR_TRANS = 
    bp1tulap139\sapmnt\trans
    When i check the profile it throws a warning
    W:DIR_TRANS directory
    bp1tulap139\sapmnt\trans does not exist
    Even the transport Directory 
    bp1tulap139\sapmnt\trans
    is mounted on the server but still I am getting this error .
    Please help

    Oh man - that is Windows Security basics.
    I am wondering how people can try to install and administrate enterprise level applications without this knowledge.
    you may try to create SAPSERVICE<SID> as a local user on the machine where the transport directory is stored on and give it the same password on this machine.  After that add it to the local SAP_LocalAdmin group.
    After that the access should work (if both servers are member of the same workgroup).
    peter

  • I suddenly cannot email photos from iphoto. I get a box that says "server does not recognize username or password". I now have to use regular email and cannot re-size my photos.

    Suddenly I can no longer email photos directly via iphoto mail.  The box comes up that says "server does not recognize username or password".  I used to be able to re-size my photos before sending so that they jpeg or pixels were larger for publishing in newspapers or magazines, but I can no longer do that.  Apple tech support told me to change my iphoto "preferences" to using regular email to send.  But that does not allow me to re-size.  Is anyone else having this problem?  I don't know if there was an update that caused this or what?  Please help.

    The box comes up that says "server does not recognize username or password".
    That error message usually will pop up, when there is a conflict between the "From" setting for the mail account you are sending from and the selected outgoing mail server. Probably the outgoing Mail server is receiving a user name and password it does not understand. When the mail returns unsent, do you see the "Try again" panel with the option to select a different outgoing mail server?
    If you do not see this panel, change the Mail "Preferences > General" to "If Outgoing server is unavailable: Show a list of alternate servers". This way, you will know, which server Mail is trying to send from.
    Have you tried to set "From"  pop-up menu to one of your other email addresses?  If that works, change your settings in Mail to always send from this address. You can set this option in the Mail "Preferences > Composing: Send New Messages from". I have my "Send New Messages from" set to "iCloud". That is working best for me with iPhoto.

  • After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    Your advice did not help me. I also installed 10.7.4 combo but the situation is the same.
    my internet connection is ok, mail is ok, but app store after 3 resets does not recognize my ID and it says "connection is not possible". Why? I have the same problem in both my mac mini late 2009 and mac book air 2010? Is it a problem of 10.7.4 update? I have to solve this problem and how can i return to 10.7.3 if my last backup was not with 10.7.3???thank you for your kind collaboration...

  • I keep getting a popup error message in Ical "server does not recognize name/password

    I keep getting a popup error message in Ical "server does not recognize name/password"  This started after they did the change to Icloud and extended our subcriptions. 
    Tricia

    I guess that the server name is incorrect, then.
    Did it ever work?
    Delete the account, reboot the phone, then add it back and be sure you choose Yahoo as the mail server type. Everthing should then fill in automatically except your user name and password.

  • TS3276 I receive a pop up from ICal saying the server does not recognize me user name and password.  This started yesterday.  I have no problems with receiving or sending emails through Mail

    I receive a pop-up from ICal saying the server does not recognize my user name and password for my me.com email address.  This started yesterday and occurs about every 5 minutes or so.  There are no problems with receiving or sending email through Mail.  I did change me email password several days ago but have no problems sending/receiving since then.

    I fixed the problem.  I opened Preferences in ICal and entered my new password.  No more pop-ups

  • Server does not recognize my username password

    Hello   I just tried to change my account on IPHOTO's to email some photo's.  I am still getting the message that the server does not recognize my username/password.
    I am getting really frustrated.  They mention what is my username , using my email address plus smtp server is added to the end of my email address in one place , so I am not sure what this is and why I am having such difficulty.
    Thank you for some help here
    Maureen

    Hi Bob,
    The following is exactly what I do,  I go to IPHOTO and click on the photo I want to send, then I go to the Share menu and insert the email address where I want it sent.  In that message it shows my other account which is my email address that I use all the time for all my correspondance.  So I have that as the address I am sending from
    Then I hit send and a text box comes up saying there is some text related to the photo looks like you could put a description here so I just hit Send anyway.  Then I hit the send key and that is when the message box pops up with my complete email address with ;smtp.me.com" at the end . None of those letters or characters are in my email address.  Any help you can offer I am greatly appreciative!
    Cheers
    Maureen

  • Server does not recognize my username/password when trying to email photos

    I am trying to mail photo's from my Iphoto's through my email account.  However each time I try to send the pics I get a message that the server does not recognize my username/password.  I have a password for my Bell sympatico account which is the account I am trying to use, but when I enter that password I get the does not recognize message.  I then tried to use my Apple password and again same message.
    Thank you to anyone who can help me
    Maureen

    Hi Bob,
    The following is exactly what I do,  I go to IPHOTO and click on the photo I want to send, then I go to the Share menu and insert the email address where I want it sent.  In that message it shows my other account which is my email address that I use all the time for all my correspondance.  So I have that as the address I am sending from
    Then I hit send and a text box comes up saying there is some text related to the photo looks like you could put a description here so I just hit Send anyway.  Then I hit the send key and that is when the message box pops up with my complete email address with ;smtp.me.com" at the end . None of those letters or characters are in my email address.  Any help you can offer I am greatly appreciative!
    Cheers
    Maureen

  • Server does not recognize email address

    I have both an iphone and an ipad until today I was able to send emails from both units using my household internet connection, today when I try to send an email from my ipad I get a pop-up stating server does not recognize the email address, but I can send emails from my iphone using the same internet connection. When I checked the settings both units have the same. Two days ago both units were updated.

    Both devices are using the Home Network. My ISP is  Shaw in Canada. and they will only accept sent email from their subscriber households, for example if I try to send an email from my iphone via 3g it will not be recognized, but will be ok if sent using wi fi at home. I was able to send email prior to doing the last update.

  • Server does not recognize my recipients when sent as group.

    I tried to send a group email and got the following message: "the gmail server does not recognize the following addresses..." followed by a list of names properly separated by commas.  The list of addresses is so long, i can't see the bottom of it and i can't delete the offending addresses or delete the message i was trying to send. The message is frozen on my email screen (i.e. even if i force quit mail, when i reopen mail the message reappears).  i have tried to trash it to no avail.  i have also tried to delete the addresses from the bcc line and from the "does not recognize" message. i can highlight all i want, but nothing happens when i try to delete either by delete button or by "moving it to trash"  This same request for support was posted in 2008 by marygh, but no answer was posted.  I hope I have better luck.  Thanks.

    There's no commonality that I can see in the recipients' addresses...
    The same thing happened with my previous ISP's SMTP (with my current setup), and since it didn't happen with my previous iBook / Panther setup (using the same previous ISP's SMTP and Mail groups), I figured it was a Leopard thing, but as I mentioned at the top, I found a thread in the Tiger-related forum with the same problem (but no resolution apart from making the groups smaller)...

  • Server does not recognize your username/password combination

    server does not recognize your username/password combination

    in the iPhoto preferences ==> accounts delete your e-mail account and reenter it
    OR
    IMHO the better solution is to set Apple mail as the email client in the iPhoto preferences
    LN

  • I get "mail server does not recognize your Apple ID and password" when I try to share a picture via email in iPhoto.  My iCloud email works ok otherwise.  I have check all mail settings for ID and password.

    I get "mail server does not recognize your Apple ID and password" when I try to share a picture via email in iPhoto.  My iCloud email works ok otherwise.  I have checked all mail settings for ID and password.

    In the iPhoto preferences ==> accounts delete the account and re-enter it - sometimes that resolves this
    Or IMHO the best long term solution is to set Apple Mail as the iPhoto e-mail client in the iPhoto preferences and use it - it has a number of advatages and has fewer problems
    LN

  • Can't stop an email from sending, stuck in sending mode, server does not recognize recipients

    Tried to send an email with a long list of recipients, stuck on window for sending that email, can't stop the mode or delete it.  Server does not recognize recipients........, every time I open email account, thismessage reappears and I can't close, delete, etc.
    Please help?

    Ok....figured it out.....Go to check mail, choose out bos, delete the message trying to be sent.....if still there. Force Quit mail and then restart the email and message should gone and not on dock!......Brain synapse today!

  • What do I do when IPhoto says "mail server does not recognize user name/password?

    What do I do when IPhoto says "mail server does not recognize user name/password?

    Fixed by resetting my password to Apple's new protocol!  In my case, I had to add a capitol letter.
    Reset here:
    https://iforgot.apple.com/cgi-bin/WebObjects/DSiForgot.woa/wa/iforgot

  • ICal error:  Server does not recognize your password

    Today I opened iCal on my iMac and I get an immediate error message saying that the "server does not recognize my password for my user name and says to make sure that it's entered correctly." I went to MobileMe in System Settings and everything was OK. I was able to see it on the MobileMe website but it still gives me the error message when I open iCal.

    Today, I had this exact same issue. What helped was quitting iCal, deleting the cal.me.com password in keychain, starting iCal again, then entering it again in iCal preferences. It started syncing right after that.
    People who don't have the cal.me.com password should check their general mobile me settings.
    Ghostlarke: if you sync your calenders, you ARE using MobileMe.

Maybe you are looking for