XMLSignatureFactory fails in servlet, but works in a stand-alone program.

Hi all,
I am trying to write a servlet which will do XML signature et al. For the same, I am using JWSDP 2.0 (Java WebServices Developers Pack) on JRE 1.4.2_5. The servlet is hosted on SAP Netweaver 7 platform on Windows.
I am getting an exception:
javax.xml.crypto.NoSuchMechanismException: Cannot find DOM mechanism type
in the "XMLSignatureFactory.getInstance" line. I looked up in the documentation of XMLSignatureFactory and it says that the DOM mechanism should be provided by the provider argument -  org.jcp.xml.dsig.internal.dom.XMLDSigRI in this case.
import javax.xml.crypto.dsig.XMLSignatureFactory;
XMLSignatureFactory sigFactory =
XMLSignatureFactory.getInstance("DOM", new org.jcp.xml.dsig.internal.dom.XMLDSigRI());
I tried the above 2 lines in a stand-alone Java client and they work without any issues.
I also used JWSDP 1.5 and the result was same.
This means that the servlet API or container for SAP is creating some issues to make this fail.
I tried to add the "org.jcp.xml.dsig.internal.dom.XMLDSigRI" in the jre/lib/security/java.security, but then the server0 does not start-up.
Any hints/pointers to resolve this issue?
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

  • Re: Select statement fails under Express, but works underForte when usi

    Hi there,
    I have logged this with Forte and it as been recognized as a bug ( #46554 ).
    The Express methods you need to look at if you want to modify this behavior
    are :
    1 - BusinessQuery.BuildQuery() starting at line 217
    2 - SqlQuery.GetWhereText() starting at line 60
    We have gotten around the problem by modifying what Express generates by
    changing it from ( col1, col2 ) in ( select col1, col2 ... ) to ( col1 +
    col2 ) in ( select col1 + col2 ... )
    Just one thing i'm not sure that the '+' is standard on every DBMS for
    concatenation.
    We are using SQL Server 6.5
    Hope this helps.
    Christian Boult ([email protected])
    Programmeur - Analyste
    Influatec inc.
    -----Original Message-----
    From: Metcalf, Roger <[email protected]>
    To: '[email protected]' <[email protected]>
    Date: Thursday, May 06, 1999 1:55 PM
    Subject: Select statement fails under Express, but works under Forte when
    using DB2
    Express sometimes (e.g. with nested windows) generates SQL with a select
    subquery, e.g.
    select x1, x2 from t1 where (x1,x2) in (select x1,x2 from t2.....)
    This fails on DB2 with a message that the comma in the where clause (x1,x2)
    is not allowed.
    This works on Oracle.
    Does anyone have a workaround or other suggestion?
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    joe.meszaros wrote:
    (SELECT ? AS Id, ? AS UserBytes FROM dual)I suggest that you test to see if that statement and ONLY that statement works at all.
    There are rules for bind variables and that statement certainly looks suspicious.
    If you can't get that to work then the rest of the attempt is pointless.

  • Re: Select statement fails under Express, but works underForte whenusin

    Roger,
    This was a bug with Express and was fixed in Express E.2.0.L.0.
    You might be able to get more details on Forte's website.
    Ajith Kallambella M
    From: "Metcalf, Roger" <[email protected]>
    Reply-To: "Metcalf, Roger" <[email protected]>
    To: "'[email protected]'" <[email protected]>
    Subject: Select statement fails under Express, but works under Forte
    whenusing DB2
    Date: Thu, 6 May 1999 11:55:19 -0400
    Express sometimes (e.g. with nested windows) generates SQL with a select
    subquery, e.g.
    select x1, x2 from t1 where (x1,x2) in (select x1,x2 from t2.....)
    This fails on DB2 with a message that the comma in the where clause (x1,x2)
    is not allowed.
    This works on Oracle.
    Does anyone have a workaround or other suggestion?
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>_______________________________________________________________
    Get Free Email and Do More On The Web. Visit http://www.msn.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    joe.meszaros wrote:
    (SELECT ? AS Id, ? AS UserBytes FROM dual)I suggest that you test to see if that statement and ONLY that statement works at all.
    There are rules for bind variables and that statement certainly looks suspicious.
    If you can't get that to work then the rest of the attempt is pointless.

  • General: can the OAF work as a stand alone application

    hi...
    can the OAF work as a stand-alone application??
    please help

    Thanks.
    OAF provides Developers with templates that utilise Oracle EBusiness technologies, for security, session handling, etc so cannot
    be used outside the eBusiness environment.
    The JDev version for eBiz is a specific eBiz version, but if you have non-eBiz programming requirement, you can still use this JDeveloper environment to create non-eBiz integrated applications. Alternativel
    you can use a seperate install of JDeveloper/ADF

  • Is there a way to get the calculator from the dashboard to appear along with other programs?  Can anyone recommend a calculator which will work as a stand alone app?

    AS it stands now, in order to use the calculator that comes with the Dashboard, you cannot read from a list of numbers in, lets say, word or excel. The dashboard is full screen and nothing can stand along side it. Is there a way to get the calculator from the dashboard to appear along with other programs?  Can anyone recommend a calculator which will work as a stand alone app?

    there is one, just search with spotlight "Calculator".
    It works great!
    Hope this helps.

  • I have Office Mac Home and Student.  Just spoke to Microsoft; they say I cannot but Outlook as a stand alone product.  I cannot upgrade Home and Student to Business.  Any solutions besides Parallel or buying Office Business?

    I have Office Mac Home and Student.  Just spoke to Microsoft; they say I cannot but Outlook as a stand alone product.  I cannot upgrade Home and Student to Business.  Any solutions besides buying Parallel/Outlook or buying Office Business?

    There are other mail programs available. Including the built in mail program. Why do you need outlook.

  • Ive uploaded firefox 4 and now I cant access messenger from the browser, it say unavailable, but it works as a stand alone prog.. cant find a setting to reactivate.. Please advise TY!

    Im on Win 7 Ultimate and had Firefox working fine with messenger in the browser & could use the pop up chat box. Since the upload I get the message that messenger is currently not available, but it works fine when I activate it as a stand alone prog. but I want it back in my browser.. cant find any setting or pref. to activate it... have cleared cache and history, restarted, even reloaded a messenger from Windows essencials.. no difference.. it been like this for 5 days since the update.. anyone got a solution? thanks alot for your help.

    DFU mode:
    http://www.iclarified.com/entry/index.php?enid=1034

  • Cluster Database Connect Works Only in stand-alone OEM

    When I connect to OEM standalone, I can connect to the cluster database with no problem. When I try to connect with the management server, it gives me the ORA-12514 error. The service name works both in SQLplus and in stand-alone mode.
    My console is running on a windows XP machine, the management server and OEM catalog are on a machine running 9.2, the cluster resides on two other machines running 9.2.
    What do I need to change to get OEM to let me open the cluster database using the management server?

    Try to create a service like this one and try:
    joel.us.acme.com=
    (description=
    (load_balance=on)
    (failover=on)
    (address=(protocol=tcp)(host=host1)(port=1521))
    (address=(protocol=tcp)(host=host2)(port=1521))
    (address=(protocol=tcp)(host=host3)(port=1521))
    (connect_data=
    (service_name=joel.us.acme.com)))
    for more information about it you can check these
    documents:
    Real Application Clusters Administration Contents / Search / Index / PDF
    Real Application Clusters Concepts Contents / Search / Index / PDF
    Real Application Clusters Deployment and Performance Contents / Search / Index / PDF
    Real Application Clusters Documentation Online Roadmap Contents / Search / /
    Real Application Clusters Real Application Clusters Guard I - Concepts and Administration Contents / Search / Index / PDF
    Real Application Clusters Real Applications Clusters Guard I Configuration Guide Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, and Sun Solaris Contents / Search / Index / PDF
    Real Application Clusters Setup and Configuration Contents / Search / Index / PDF
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    Joel Pérez

  • Rich Client Login fails from Infoview but works fine if opened from desktop

    Hi Friends,
    When i open WebI Rich Client from my infoview (By changing the preferrance settings in Infoview), it returns an error as "Login Fails" , but if i open the webI Rich Client from my Start->Programs->Business Objects XI 3.0->WebI Rich Client , it works fine. i am not sure why invoking rich client from infoview fails, but the same works fine, if opened directly from the desktop. I have only one user "administrator" Created with no password in the Enterprise.
    Configuration:
    Platform:             Windows Xp
    Type:                  Vertical Installation  (All the servers and Presentation Layer in a single Box)
    Boxi Version:     BOXI 3.0
    Authentication:   BO Enterprise.
    Any help in the regard is appreciated.
    Regards,
    Ram kumar G
    Edited by: Ramkumar Govindasamy on Aug 11, 2009 9:58 AM

    Hi,
    Windows XP is not officially supported for a BOBJ server installation. Can you consider installing BO on a Windows Server machine?
    Have a look prior to the installation at the Support Platforms document for BO XI 3.0. You can find this here:
    [http://service.sap.com/bosap-support]
    Regards,
    Stratos

  • Spatial index creation fails in oracle9i but works in 8i

    Hi--
    i'm using oracle9.0.1.2.0 and arcSDE on solaris 8
    when i create a spatial feature table and index oracle gives me the foloowing error:
    Extended error code(29855): ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13236: internal error in R-tree processing: [failed to cluster in memory]
    ORA-13249: Internal error in Spatial index: [mdrcrclmem]
    ORA-13232: failed to allocate memory during R-tree creation
    ORA-13249: Error in Rtree: [mdrcrrdtbl, select /*+ PARALLEL 4 */ rid , min_d1, max_d1 , min_d2, max_d2  from (select rownum rnum, rid , m(MDSYS.SPATIAL_INDEX)
    this occurs whether i use cov2sde at the command line or Create Index in sqlplus:
    SQL> create index COUNTY_IDX on COUNTY_SDO(shape)
      2  indextype is mdsys.spatial_index
      3  parameters ('SDO_INDX_DIMS=2 tablespace=sde2_idx');
    create index COUNTY_IDX on COUNTY_SDO(shape)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Stmt-Execute Failure: SELECT count(*) from SDE.COUNTY_SDO
    ORA-29400: data cartridge error
    ORA-01116: error in opening database file 14
    ORA-01110: data file 14: '/u04/oradata/GIS2/sde3_idx01.dbf'
    ORA-27041: unable to open file
    SVR4 Error: 24: Too many open files
    Additional information: 3
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
    ORA-06512: at line 1
    the bizarre thing is that everything works tickety-boo in oracle 8i *8.1.7.3)
    has anyone run across this?
    cheers
    --kassim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    thanks for the suggestion, but that didnt work either
    i increased the file descriptor limit from 256 to 2048 (my sysadmin sez that could break lots of things in solaris and had another go:
    elvis{1}% ulimit -a
    time(seconds) unlimited
    file(blocks) unlimited
    data(kbytes) unlimited
    stack(kbytes) 8192
    coredump(blocks) unlimited
    nofiles(descriptors) 2048
    vmemory(kbytes) unlimited
    lvis{2}% cov2sde -o create -l plstrfill_sdo,shape -f $GISDATA/survey.ws/plstr_fill,poly -e a -R 1 -k spatial -a file=$GISDATA/survey.ws/plstr_fields.txt -g SPIDX_RTREE
    ArcSDE      8.2      Build 115 Wed Mar 6 09:48:27 PST 2002
    Coverage to Layer Loading      Administration Utility
    Reading column selection file "/data/jack02/in_put/survey.ws/plstr_fields.txt"
    Library /data/jack02/in_put/survey not found.
    Unable to open library "/data/jack02/in_put/survey"
    Loading feature class/subclass "poly"
    from Coverage "/data/jack02/in_put/survey.ws/plstr_fill"
    sde_layer_plstrfill_sdo: plstrfill_sdo is in LOADONLY mode
    Imported 158399 features into SDE plstrfill_sdo,shape from coverage /data/jack02/in_put/survey.ws/plstr_fill,poly
    SDE Error(-51) Underlying DBMS error
    Extended error code(29855): ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13230: failed to create temporary table [M2_8496$$] during R-tree creation
    ORA-13249: Error in stmt: CREATE TABLE M2_8496$$ NOLOGGING tablespace SDE_IDX STORAGE (initial 4096K next 4096K pctincrease 0 maxextents unlimited) as (select rid , min_d1, max_d1 , min_d2, max_d2 from M0_8496$$ a, (select (min_d2+max_d2) value fro(MDSYS.SPATIAL_INDEX)
    Not able to set layer into Normal-IO mode.
    Cov2SDE completed.
    No libraries currently set.
    SQL> create index plstrfill_idx on plstrfill_sdo(shape)
    2 indextype is mdsys.spatial_index
    3 parameters ('SDO_INDX_DIMS=2 tablespace=sde4_idx');
    create index plstrfill_idx on plstrfill_sdo(shape)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13230: failed to create temporary table [M2_84A5$$] during R-tree creation
    ORA-13249: Error in stmt: CREATE TABLE M2_84A5$$ NOLOGGING tablespace SDE4_IDX
    STORAGE (initial 4096K next 4096K pctincrease 0 maxextents unlimited) as
    (select rid , min_d1, max_d1 , min_d2, max_d2     from M0_84A5$$ a, (select
    (min_d2+max_d2) value from M0_84A5$$ where rowid='AAAISqAAPAAACCYABK') b where
    (((a.min_d2+a.max_d2) < b.value) or (((a.min_d2+a.max_d2) = b.value) and (a.rid
    <= 'AAAISeAAJAAAnvnAASZ'))))
    ORA-13230: failed to create temporary table [M2_84A5$$] during R-tree creation
    ORA-29400: data cartridge error
    ORA-00210: cannot open the specified controlfile
    ORA-00202: controlfile: '/u01/oradata/GIS2/control01.ctl'
    ORA-27041: unable to open file
    SVR4 Error: 24: Too many open files
    Additional information: 3
    ORA-06512: at "MDSYS.SDO_INDEX_METH
    this is really killing me
    my oracle is setup following the esri and oracle guidelines:
    all our tablespaces are with UNLIMITED extent and maxsize on
    any files. All the tablespaces follow Oracle9i best practices
    such as OFA, SAFE, and SAME including Temporary Tablespace.
    any suggestions would be realy helpful
    --kassim

  • I have a small code that fails in FF but works in ie and chrome

    Following is a pop up which fails in FF. works fine in ie and chrome
    <pre><nowiki><a href="audioplayer.php" onClick= "window.open('audioplayer.php?
    mkt=xyz.mp3','myWin','width=430, height=100');return
    false"><img src="img/audioicon.jpg"></a></nowiki></pre>

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Select statement fails under Express, but works under Fortewhen using

    Express sometimes (e.g. with nested windows) generates SQL with a select
    subquery, e.g.
    select x1, x2 from t1 where (x1,x2) in (select x1,x2 from t2.....)
    This fails on DB2 with a message that the comma in the where clause (x1,x2)
    is not allowed.
    This works on Oracle.
    Does anyone have a workaround or other suggestion?
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Here is a fix to this problem I found. Not sure if it will help:
    1. Go to directory $TNS_ADMIN on database tier or database home.
    2. Modify sqlnet.ora file with following.
    tcp.validnode_checking = yes
    Either set above directive value to NO or add machine name where jdeveloper is running to following directive.
    tcp.invited_nodes=(machin-name, machine-name)
    3. Bounce listener using addlnctl.sh under database directory.

  • Applet fails in Linux but works on Windows and MAC

    Hey I've been testing my RMI Chat and everything seems to work fine when I connect to it from a MAC machine or Windows machine but when I try to connect on Linux (openSUSE) the applet gets a connection timeout.
    The applet will load initially but when it connects to the server, I get a connection timeout exception. The exception is:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.ConnectException: Connection refused to host: 192.168.1.103; nested exception is:
         java.net.ConnectException: Connection timed out: connect
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         at java.lang.Thread.run(Thread.java:595)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
         at sun.rmi.server.ActivatableRef.invoke(ActivatableRef.java:124)
         at ds.rmi.server.ChatServerImpl_Stub.registerClient(Unknown Source)
         at ds.rmi.client.ClientUI.start2(ClientUI.java:360)
         at ds.rmi.client.ClientUI.register(ClientUI.java:282)
         at ds.rmi.client.ClientUI.start(ClientUI.java:334)
         at sun.applet.AppletPanel.run(AppletPanel.java:420)
         at java.lang.Thread.run(Thread.java:595)The address to connect to the Chat is: 192.168.1.102:8080/dschat and the 192.168.1.103 is the address for the linux machine.
    Has it got to do with the /etc/hosts?? I also have java.rmi.hostname set in the server class
    Thanks in advance for any help
    Brian

    Check to see if you can access your server from other machines over the internet using telnet. That is in command prompt go to the drive that has the OS. Say it is C:
    Then write:
    C:\>telnet <your servers external ip address> <port number that you are trying to access>
    If everything is fine you will get a blank window with the cursor blinking on the top left hand corner of the window.
    Generally this connection timed out exception occurs when the client can't find the server.

  • Why did DST change fail on iPad but work on iPhone?

    I have an iPhone 4S and an iPad 4, both running 8.1.  Both devices are on AT&T data plans and seem to be working just fine except for this one annoying difference. I was in Central TZ (Austin, TX) during the DST change over but am now back in EST.
    My iPhone saw the change immediately and corrected itself to the proper DST time.  My iPad still is an hour off and continues to ignore the DST change.  Both devices have been on multiple cell networks across TX, NC and VA as well as multiple wireless networks during that time.  Phone is right, iPad is not.

    You know ... when one goes through the support documents and other users' suggestions ... and one still can't find a solution, you've always got APPLE SUPPORT. That's what they're there for ... :-) ...
    Apple Support
    http://www.apple.com/support/
    Apple Retail Store - Genius Bar
    http://www.apple.com/retail/geniusbar/
    Contacting Apple
    http://www.apple.com/contact/

  • IViews fail in role, but work in preview

    When I create an iView, I am able to test it fine in preview mode.  When I add this iview to a role, even a newly created test role that I assign a user to, it appears on their desktop on login, but when they click on it, it gives error:
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    The exception was logged. Inform your system administrator..
    Exception id: 02:45_09/01/06_0011_382058350
    See the details for the exception ID in the log file
    I see no good info in the logs I have gone through.  Any thoughts?

    Without posting the entire unneccesary info from the defaulttrace, here are the crucial messages that occur at the moment I click on the link.  I should add that I am using the standard SAP framework page, no mods.  I am also able to create and view URL iViews in the page.  Just not iViews pointing to other hosts.
    #1.5#0003BADBF0DE002D0000000800000190000409F3AF7DAF66#1136842132793#com.sap.port
    al.portal#sap.com/irj#com.sap.portal.portal#portal#2225#####SAPEngine_Applicatio
    n_Thread[impl:3]_37##0#0#Warning#1#/System/Server#Java###[PortalNode.fireEventOn
    Node.toEventListener] event=onNodeReadyEvent, target=com.sap.portal.dynamicNavig
    ationArea, operation failed
    #1#java.lang.NullPointerException
            at com.sapportals.portal.navigation.NavigationService.getNavURLPrefix(NavigationService.java:530)
    #1.5#0003BADBF0DE002D0000000B00000190000409F3AF7DE09E#1136842132806#com.sap.port
    al.portal#sap.com/irj#com.sap.portal.portal#portal#2225#####SAPEngine_Applicatio
    n_Thread[impl:3]_37##0#0#Warning#1#/System/Server#Java###[PortalNode.fireEventOn
    Node.toEventListener] event=invalidate, target=pcd:portal_content/com.bloomberg.
    sap.bbportal/com.bloomberg.sap.desktops/bbportalmain/frameworkPages/frameworkpag
    e/com.sap.portal.innerpage, operation failed
    #1.5#0003BADBF0DE002D0000000C00000190000409F3AF7DF312#1136842132811#com.sap.port
    al.portal#sap.com/irj#com.sap.portal.portal#portal#2225#####SAPEngine_Applicatio
    n_Thread[impl:3]_37##0#0#Warning#1#/System/Server#Java###Exception in method set
    Detail() of component: null
    #1.5#0003BADBF0DE002D0000000A00000190000409F3AF7DCF6D#1136842132801#com.sap.port
    al.portal#sap.com/irj#com.sap.portal.portal#portal#2225#####SAPEngine_Applicatio
    n_Thread[impl:3]_37##0#0#Warning#1#/System/Server#Java###[PortalNode.fireEventOn
    Node.toEventListener] event=onNodeReadyEvent, target=com.sap.portal.targetsiView
    _, operation failed

Maybe you are looking for