Unable to use JCE providers with OC4J server

I am trying to use a JCE encryption provider. I am able to execute the following code inside a standard class just fine. But when I move it into a jsp and run it on the OC4J server the getInstance() line throws the following exception.
java.lang.SecurityException: The JCE framework is invalid.
Security.addProvider(new com.sun.crypto.provider.SunJCE());
ObjectInputStream in = new ObjectInputStream(new FileInputStream("C:\\Key\\EIKey.ser"));
key = (Key)in.readObject();
in.close();
cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");

Hi Rozek,
See CRM Modules and OA Framework for alternative encryption methods on Oracle, but this does not help me because my code is not written for Oracle only.
It seems to me that I can't use Oracle Application Server for this project. This is a big flaw in the OC4J not to be able to use standard api from Sun!!!!. I think Oracle staff has to do some refactoring of its code, because it Stinks.
I am looking for alternative Application Server, Iam trying out BEA Weblogic now.
See my question also @ (http://forums.oracle.com/forums/message.jsp?id=864619)
-Bjorn Brynjar Jonsson
Software Engineer @ Calidris Ltd
email: [email protected]

Similar Messages

  • I have a Macbook with OS X 10.5.8. I am unable to use my iPhone with the iOS 6 upgrade on iTunes.

    I have a Macbook with OS X 10.5.8. I am unable to use my iPhone with the iOS 6 upgrade on iTunes.  Apparently I cannot downgrade to iOS 5 on my iPhone. Please tell me I don't have to pay anything to be able to use my products......

    Which version of iTunes?
    iTunes 10.6.3 - http://support.apple.com/kb/DL1575
    Unless this is a new iPhone 5 I believe the older ones will work with iOS6 and iTunes 10.6.3.  If it won't, you will need to upgrade operating system version.

  • I am unable to use my keyboard with out a delay, how do I fix this

    I am unable to use my keaboard with out a delay. How do I fix this?

    when just using safari to watch streaming television, my computer gets really slow, and locks up, and the dock appears blank
    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output andWi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Sybase  Connectivity Issues with OC4J Server

    I am trying to access a Sybase Database using JDeveloper.
    I have downloaded the sybase Jconnect product(version 5.5) and am able to access the database through the IDE.
    I have created a test jspx document to validate the DB connectivity. When I attempt to run the document. I am getting the following error from the OC4J server: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver".
    The document code is as follows:
    <sql:setDataSource
    dataSource="AgileSCM"
    driver="com.sybase.jdbc2.jdbc.SybDriver"
    password="password"
    url="jdbc:sybase:Tds:server_name:4002/db_name"
    user="uer_name" var="myDs"
    scope="session"/>
    <sql:query var="company" dataSource="myDs">
    SELECT * FROM dbo.company
    </sql:query>
    I am new to using Jdeveloper so I would appreciate any help.
    Thanks,
    Brian Muraco

    I created a db connection called AgileSCM in JDeveloper which is accessing the Sybase database. I tried coding the document with and with out specifying the datasource with the same result. Am I not doing something really simple?

  • Foreign JMS Providers with WebLogic Server does not close connection

              Hello All,
              We tried to use wlsmqseries.zip classes (specially JNDI Mapper) for integrating
              WebLogic Server with MQ so that we can incorporate XA transactions. We use LDAP
              context factory to bind MQ.
              We found a number of LDAP connections are getting opened by JNDIMapper, but it's
              not getting closed.
              Can some one give some clue to this ?
              Also any suggestion to serve the current purpose is welcome.
              Thanks,
              Sudarson
              

    What version are you using? "wlsmqseries.zip" does enlisting of MQ JMS
              sessions in XA transactions, but WLS 8.1 does that for you out of the box.
              If you're using 8.1, it would be better to use the new 8.1 features for
              foreign JMS providers.
              A place to start is the "Using WebLogic JMS with EJBs and Servlets" section
              of the JMS programming documentation for 8.1, and there have been many other
              posts on this newsgroup with details. (There also appear to be quite a few
              customers using this feature in their own systems, judging from the number
              of posts.)
              greg
              "sudarson" <[email protected]> wrote in message
              news:40bf05ea$1@mktnews1...
              >
              > Reposting the message. Awaiting response from newsgroup or BEA
              > Thanks,
              > Sudarson
              > "sudarson" <[email protected]> wrote:
              > >
              > >Hello All,
              > >
              > >We tried to use wlsmqseries.zip classes (specially JNDI Mapper) for
              integrating
              > >WebLogic Server with MQ so that we can incorporate XA transactions. We
              > >use LDAP
              > >context factory to bind MQ.
              > >
              > >We found a number of LDAP connections are getting opened by JNDIMapper,
              > >but it's
              > >not getting closed.
              > >
              > >Can some one give some clue to this ?
              > >
              > >Also any suggestion to serve the current purpose is welcome.
              > >
              > >Thanks,
              > >Sudarson
              >
              

  • Unable to use 'copy' feature with registered version of quicktime pro.

    Hi.
    I have a registered version of Quicktime pro (7.1.6), and i am unable to use the copy feature. I captured several videos from work using a windows box and an application whose name escapes me at the moment. Due to the windows app being garbage, i was only able to capture in MPEG1 format (MPEG2 caused the app to crash, of course). I have brought the files home and am now unable to copy selections of it for exporting into smaller files. I can highlight lengths of the video (no audio, just video) but the 'copy' feature is grayed out still. Any ideas on what is causing this? The video format is as follows:
    MPEG1 Muxed, 640 x 480
    FPS: 29.97
    Data rate: 4066.42 kbits/sec
    I'm running 10.3.9, but have also had no success on a 10.4 macmini, so the OS doesn't seem to be the issue.
    I'm trying to get this video into imovie, but since it's over 600 megs, imovie cops out after a few hours and says it can't import it.
    Help?

    Not all multiplexed videos come with AC3. They don't have to have audio in the first place. Some of them come with Linear PCM, which is the case for iDVD's VOB files, and MP2. If a multiplexed video is equipped with AC3, you are right, and the resulting modified sub-clip won't contain audio. But if it's Linear PCM or MP2, the edited sub-clip will contain audio.
    I'm finished with this case.
    Message was edited by: Horror in Oklahoma

  • How to use lexical parameters with Sql Server Stored Procedure?

    Hi,
    I'm developing a BI Publisher report on a sql server database. I need to execute a stored procedure to dynamically build the query by replacing the lexical parameters with the values of varaibles of the stored procedure. With Oracle stored procedures, I have used data template and had reference the varaiable in SP by prefixing it with '&'.
    It doesn't work if I try to do the same thing with SQL server. Is there anyone who has come across the similar situation? Please let me know if anyone has got any ideas...
    Thanks in Advance
    Rag

    TopLink currently doesn't support multiple ResultSets. Multiple ResultSets support is considered for a future release.

  • Can't use sqltaglib.tld with oc4j

    I can't get sqltaglib.tld to work on oc4j(9.0.2.1).
    I've added sqltaglib.tld to default-web-app\WEB-INF, with ojsp.jar, ojsputil.jar and xmlparserv2.jar on both oc4j\lib and oc4j\j2ee\home\lib. However, I always get HTTP 500 Internal server error. The oc4j server runs JSP fine without sqltaglib.
    Do I miss anything?
    Thanks,

    Matthew,
    There should be any need to copy the jar files.
    The tld file would be under /web-inf
    Could you please check the ojspdemos which are available with oc4j standalone and test the sql tag lib examples.
    Please find the ojspdemos.ear under /j2ee/home/demo directory.
    -Prasad

  • ODeliveryNotes serial nbr error when using sales BoM with DI server

    Hi all,
    we're trying to create a delivery note with DI server for items managed by serial number and sales bom.
    This is a sample xml:
    <?xml version="1.0" encoding="utf-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
    <SessionID>F6166595-C4E0-4B5E-B44C-85CB04FAA0C9</SessionID>
    </env:Header>
    <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="ConsegnaOpen">
    <BOM>
    <BO>
    <AdmInfo>
    <Object>oDeliveryNotes</Object>
    </AdmInfo>
    <Documents>
    <row>
    <CardCode>C9999</CardCode>
    </row>
    </Documents>
    <Document_Lines>
    <row>
    <ItemCode>S610STW-220</ItemCode>
    <Quantity>220</Quantity>
    </row>
    </Document_Lines>
    <SerialNumbers>
    <row>
    <InternalSerialNumber>AD00003</InternalSerialNumber>
    <SystemSerialNumber>3</SystemSerialNumber>
    <BaseLineNumber>1</BaseLineNumber>
    </row>
    </SerialNumbers>
    </BO>
    </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    And this is the returned error: "You should use existing serial/batch numbers for this document type [(----) 29-51]"
    Any idea why?
    Thanks
    Fabio

    Hello Fabio,
    I have tested your problem with DI API, and I got the same error you have.
    This is an uncovered system functionality or system limitation
    Report this issue to SAP Support.
    My DI API COde
    Dim oDN As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oDeliveryNotes)
            oDN.CardCode = "1013"
            oDN.DocDate = Date.Today()
            oDN.DocDueDate = Date.Today()
            oDN.VatDate = Date.Today()
            oDN.TaxDate = Date.Today()
            oDN.Lines.SetCurrentLine(0)
            oDN.Lines.ItemCode = "TBOM"
            oDN.Lines.WarehouseCode = "2"
            'oDN.Lines.SetCurrentLine(2)
            oDN.Lines.SerialNumbers.SetCurrentLine(0)
            oDN.Lines.SerialNumbers.ManufacturerSerialNumber = "1"
            oDN.Lines.SerialNumbers.InternalSerialNumber = "1"
            oDN.Lines.SerialNumbers.SystemSerialNumber = "1"
            oDN.SaveXML("c:TEMPDNWITHBOOM.xml")
            If oDN.Add <> 0 Then
                sbo_application.MessageBox(oCompany.GetLastErrorDescription)
            End If
    Where TBOM is a sales kit, for 12 peices, components TNM item no serial number 12 peice, TSN item using serial number 1 piece.
    Sales Factor 1 for TBOM is 12 piece
    This sample code results the same issue you hev reported.
    Edited by: János Nagy on Apr 14, 2010 4:49 PM

  • Use of PVKConverter with SQL Server 2012 SP2

    I am trying to convert a certificate that was exported from our database server to be used by SQL Server for database encryption.  When I run the PVKConverter, not Private Key File (PVK) is generated.
    The certificate has Server and Client Authentication as the purposes of the certificate. 
    What purpose or purposes does the certificate need in order to be able to be used by SQL Server 2012 SP2?
    Why doesn't the PVKConverter generate a private key file?
    I can use the command makecerts to generate a self signed certificate and have it work with SQL Server database encryption.
    Thanks.
    DJ

    Hi DJ,
    Based on my research, SQL Server supports the importing of existing security certificates, specified as a pair of files that are encoded in PVK/DER format. Below Transact-SQL script displays the basic key file format for SQL Server database encryption.
    CREATE CERTIFICATE <Certificate name>
    FROM FILE = '<PVK/DER format file>.cer'
    WITH PRIVATE KEY (FILE = '<PVK/DER format file>.pvk',
    DECRYPTION BY PASSWORD = '<Encryption password>');
    According to your description, PVKConverter doesn’t generate a private key file. PVKConverter is used to generate PVK/DER encoded security certificates from existing PFX encoded security certificates. Thus, please ensure that your certificate is encoded in
    PFX format and make sure you perform all the steps properly as described in the
    KB article.
    There is also a related blog for your reference.
    http://blogs.msdn.com/b/sql_pfe_blog/archive/2014/02/04/generating-a-trusted-tde-certificate-in-the-proper-format-from-a-certificate-authority.aspx
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Unable to Use Star Rating With JPG

    I have been unable to use the star rating with a certain batch of jpgs. I am able to use the star rating with dng files, and other jpgs, but there is a batch that I got off of my friends computer that I am unable to use the star rating with. I have tried clicking on the stars, and also through the label tab, but nothing is working.  Its really annoying because rating the pics is part of my workflow and I want to get these picture done.
    I'm using CS5 on a Mac running 10.6.8

    but there is a batch that I got off of my friends computer that I am unable to use the star rating with.
    Still strange things going on in the digital world...
    Recently I had the same with jpeg from other (to me unknown) sources. I managed with opening in PS and again save as max quality (not ideal but it worked). Those were only a few files.
    You might first try a few files to open and close in PS, if no luck make a duplicate (select some files for testing and with right mouse click choose duplicate) try those first. If still out of luck try the open and save as option. If this is the only solution the you can create a temporarily  action for this in PS (don't change the filename when in save as but leave it untouched and choose a new folder for destination so you won't loose the originals). When in Bridge select the files for the action, choose tools/photoshop/batch and run the action, piece of cake.

  • Unable to use iphone 4s with sony ICFCS10ip

    I am unable to use my new iphone 4s with sony ICFCS10ip dock speakers.
    My old 3gs phone works with it. Can anyone help with this issue.

    BELOW IS THE RESPONSE FROM SONY.....
    Thank you for contacting Sony Support.
    I'm sorry to inform you that the Sony FM/AM Clock Radio is not compatible with iPhone4S. Also, at present there is no update available for the Clock Radio which will make it compatible with iPhone4S.
    Thank you for your time.
    I AM DISAPPOINTED. Apple can get away with anything because of a lacking Android OS and its apps!

  • For 2 weeks, I have been unable to use sync & it says that server maintenance is underway & will resume automatically; need to transfer history to a new laptop

    For about 2 weeks, I have been unable to use sync. I keep getting a message that says server maintenance is underway & will resume automatically. How long will this maintenance last? I urgently need to transfer my history to a new laptop and return the one I am currently. My deadline for this is tomorrow as I have run out of time to complete this process

    I have reset sync and the messages have stopped coming (I hope I have not messed things up). However, I still don't think sync is working (how do I confirm?).
    I don't recall all of the exact words of the error message but it was similar to this: sync operation failed server maintenance is underway and will resume automatically. To check server status (click on something). Each time I clicked on the button provided, I was directed to a mozilla page which informed me that most people are able to use firefox sync and that additional capacity was on the way.
    To confirm if rectification of the error had occurred, I tried getting sync on my other laptop to update and I got a similar error.
    Yes this has been going on everyday for 2 weeks. I have been given a new laptop where I work and was given some time to transfer all my files. The deadline expires today and am to return the old one tomorrow.
    Is there a way I can permanently reset sync to just take in my most recent history and passwords?
    Thanks for responding

  • Problems using Outlook 2013 with Exchange Server Small Business Server 2003

    Hello,
    We have just upgraded our Office suite from Office 2007 Pro to Office 2013 Pro.  When I try to configure Outlook 2013 to connect to Exchange Server 6.5 (SMS 2003) I get an error "Outlook 2013 being blocked by current version of Exchange Server".
     Outlook 2013 at present is not communicating with Exchange server 6.5
    Are there any fixes I have to install on our SMS 2003 server to allow Outlook 2013 to work with SMS 2003 Exchange Server?
    Any configuration changes I need to make?  Any help is appreciated.
    Thx
    John G.
    John Grace

    Hi
    Outlook 2013 is not supported with exchange 2003:
    http://technet.microsoft.com/en-us/library/ee624351.aspx#section10
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Unable to use IN clause with omniportlet

    I am attempting to use a stored procedure with omniportlet. I have put together an IN clause in my sql statement that will not work. I think it is because of the way omniportlet handles tics, or something.
    I had a similar post on using an ORDER BY with omniportlet that I suspect is a related error.
    I am trying to use omniportlet, but I must confess that I am not very impressed. The SQL part of omniportlet leaves a lot to be desired.
    Does anyone know when there will be a new version?

    Thanks for your response. Do you know if the new portaltools/omniportlet contains the fix for the problem in this thread? I have an open tar and I know there is a bug report on it, just don't know status.
    need help using stored procedure with omniportlet
    I try to use an IN clause like this ('item1','item2','item3'). If I type it in, it works. I am feeding it via a picklist from a dynamic page. If I choose 1 item, it works. If I pass more than one item and try to build my string in the stored procedure for the IN to use, I can't get it to work. I have tried creating a list with the tics and commas, leaving off the first and last tics and just using the ones in the rest of the string.
    NOTHING WORKS. I have an insert inside my stored procedure that puts the string I am building inside a test table, so I know what I am using works in SQL/PLUS. Just not omniportlet. I suspect it is the same kind of problem referenced in the above url.
    There is a bug with using omniportlet when your IN clause is a variable.

Maybe you are looking for

  • My daughter used my blackberry id can she delete app world

    HI MY DAUGHTER HAS REGISTERED MY BB APP WORLD ID ON TO HER FONE , THE PROBLEM IS WHEN I WANT TO LOG IN TO IT ON  MY FONE IT KEEPS ASKING TO SWITCH PIN AND THE SAME WHEN SHE WANTS TO USE IT , THERE IS NO OPTION ON HER FONE TO DELETE APP WORLD , TO REG

  • Why no 720p25???

    I am occasionally using FCE3.5. There are setups for 1080i for PAL and NTSC but 720p for just NTSC. Why no PAL version at 25fps??? Can I do anything to create a sequence at 720p25? I think version 4 of Final Cut has this sequence setting, plus the ab

  • Using Packages in Unix

    I have many class files that I have been developing in a Windows environment, and I have just recently moved them to a UNIX environment and when I did the package statements are being ignored. When compiling the .java files the .class files are being

  • Photoshop 5.0.2

    Haven't updated in awhile... Moving my workstation box's OS from its sealed-in-aspic W2kPRO-SP4 to Win7 Ultimate 64bit on Oct22. Am finding a distinct dearth of compliance information aound, along with a complete and utter absense of any upgrade disc

  • Z77A GD-65: Windows 7 not installing/running with Intel SATA controller.

    I've been having some weird issues with the Intel SATA controllers on-board. They won't let me install Windows at all. I'm using a Crucial m4 with the 0309 firmware. When I was trying to install Windows with the SSD connected to the Intel SATA contro