IIS, Javascript, Signed Applet and ASP Blank Page Problem

Hi,
I'm having a problem using a Signed Applet in a site that runs in a IIS (Windows Server 2003).
My aspx web page uses the applet to read my smart card and get information from it.
This applet uses an auxiliar dll (stored in a second Signed Jar file) in order to read the information from my smart card.
The way the solution is design:
1) Aspx page is asked from server
2) Internet Explorer recieve the page and asks the server for it content (images, applet, javascripts, etc)
3) After this the JVM runs (console opens)
4) After the Aspx page render fully a javascript register onload fires and call an applet method
5) Applet receive the call and run the logic of the method:
     - reads the smart card;
     - calls Javascript function in order to fill aspx fields with information from smart card
     - calls Javascript function the simulates a click in a botton of aspx page (in order to call server side part sending data readed from smart card to server)
5) The server makes some logic with the information receive and responds to client registering in aspx page a call to another Javascrit function
6) The client received the asnwer from server and runs the Javascript function registered on step 5)
     This Javascript calls another method from applet and runs the following logic:
     - reads more information from smart card;
     - call javascript function in order to fill more fields of aspx page with the information readed
     - calls Javascript function the simulates a click in a botton of aspx page (in order to call server side part sending data readed from smart card to server)
7) The server makes some logic and call another pages with no Applets
8) Client asks for a second page with the same applet and we start with another logic express on steps 1);2);3),4);5) and then 7).
This is all ok, until sometimes the server stop responding correcly for requests regarding this two pages with the Applet.
When this happens the server just responds with a blank page.
     - with fiddler I can seer the request for the aspx page (that uses the applet)
     - but server responds with a blank html page
The JVM doesn't fire.
The IIS log don't show errors.
The eventviewer doesn't show errors.
The problem is solved with an IIS reset or a Application Pool reset.
After a while the problem returns.
This problem occours for other user in another machine, the server just stops responding correcly to request regarding pages with applets, the other pages still continue to work.
If we disable Java Control Panel->Advanced->Java Plug-in->Enable the next-generation Java Plug-in the problem seend to stop, but we can't force all clients to disable this option right?
Or there is a way to force the Applet to run with this option disabled?
As anyone experience similar problem?
Regards,
OF

This is all ok, until sometimes the server stop responding correcly for requests regarding this two pages with the Applet.
When this happens the server just responds with a blank page.
- with fiddler I can seer the request for the aspx page (that uses the applet)
- but server responds with a blank html pageWell, if http requests look identical in case of success and failure (pay attention to cookies, etc) then it has to be something on the server side.
It could be that server gets into this wrong state because of previous requests made by applet but it is hard to tell.
I am not clear how old/new plugin can make a difference unless your applets run in the legacy mode (i.e. you are actually trying to reuse SAME instance of the applet when
it is loaded next time).
I'd start with
1) carefully comparing good/bad sessions
2) checking whether server will serve correct response to another client when it serves "bad" page for current client
3) add debug statements to aspx - it is scripted page, may be some condition is not met and then it returns blank?
4) record all http requests in one session until you get to "error" state and then use any http server testing tool to "replay" this set of requests.
You should be able to get server into the same state without use of applet. Then you can try to tweak set of requests to see what makes a difference.

Similar Messages

  • JRE 1.4.x Plugin - Signed Applets and Weird Behaviour (Policy)

    Hello.
    I have recently experienced some strange behaviour related to signed applets and policy files in JRE 1.4.2-b28 ( a friend got the same behaviour in a flavour of 1.4.1-xx as well ). Both tests were on Windows 2000 Professional platforms.
    Initially my unsigned applet, which attempts socket connections to a server different from the download location, fails with security exceptions ( as expected ). Then I did the following to sign the applet jar and configure my environment
    Steps: 1) Import "trusted CA" certificate into ${java.home}/lib/security/cacerts. (JRE home outside the JDK)
    2) Signed the jar using jarsigner and a certificate generated from the "trusted CA" (Entrust CA and certificate).
    3) Imported the signing certificate into the Java plugin using import in the plugin control panel.
    4) Created a new keystore (keytool,jks) and imported the signing certificate into the keystore with alias "developer". The keystore is stored in the user home as .keystore.
    5) Created a .java.policy for the user and attaching the keystore in 4) to it. ( also stored in user home ).
    6) Used the policy tool to grant socketpermissions to the specific codebase ( testing with file:/C:/test/* initially ) signed by "developer"
    After this, when I ran the test page under IE 5.5SP2 and Netscape 7.1 it worked without any security exception. Ditto for using the appletviewer and the policy file I created for the user.
    The weird part occurred when I removed the policy entry from the user policy file. After doing this, Netscape and IE still allow the applet to execute - somehow remembering that it was granted permissions at some point. The appletviewer does not allow it to execute, generating security exceptions.
    It appears the old policy is being cached somewhere, but I cannot find where. If I replace the applet jar with an unsigned version it does fail in IE and Netscape. I tried cleaning the plugin cache and removing the "deployment.certs" files related to the users but still get the same behaviour.
    Does anyone know where the old policy information is being stored ? Does anyone know how to revoke the permissions so that I am restored to my original base environment ( no permissions for "designer" signed applets ) ? Would attempting to utilize the AccessController.doPriveleged( xxxx ) operations in JDK 1.4 avoid all of this confusion with policy files, keystores and certificate storage ? After all the messing about I would like a zero-footprint alternative ( or minimzed footprint anyway ).
    Any ideas would be most welcome.
    Regards,
    James.

    Hello Again.
    I am either enlightened or confused at this point. I found that as long as all of my related Jars are signed ( even by self-signed certificates ) I am granted SocketPermissions for calls outside of the originating server. Unsigned code is refused, but even when the Jars were signed using a self-signed certificate the Socket calls were allowed.
    Am I experiencing the appropriate behaviour in this case ( which would mean not having to utilize policy files to distribute an applet that uses calls to arbitrary servers - e.g. JavaMail ) or am I suffering from something damaged in my environment ?
    It has been a long time since I played with signed applets and I am having difficulty determining what operations require policy file entries/AccessController.doPrivileged() calls and which are granted when a user elects to trust a signed applet without policy.
    Any assistance in clearing up my confusion would be appreciated.
    Regards,
    James.

  • Signed applet and HTML parameters

    I've created a signed applet and everything works fine, except for the fact that i can't add parameters to the applet.
    Without the parameters in the HTML the applet inits and starts and can be used without problems. But when I add paramaters, the applet reports a "class not found exception".
    I used HTML-converter to convert the applet tag to object/embed tags.
    Has anyone had the same problem or knows what I'm doing wrong? I'd really appreciate some help.
    Thanks in advance,
    Erik
    My HTML source:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "600" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = CODE VALUE = "TNA" >
    <PARAM NAME = ARCHIVE VALUE = "TNA.jar" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3.0">
    <PARAM NAME="scriptable" VALUE="false">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3.0" CODE = "TNA" ARCHIVE = "tna.jar" WIDTH = "600" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!--
    <APPLET CODE = "TNA" ARCHIVE = "tna.jar" WIDTH = "600" HEIGHT = "400">
    </APPLET>
    -->

    Try this:
    OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "600" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = "java_code" VALUE = "TNA.class" >
    <PARAM NAME = "java_archive" VALUE = "TNA.jar" >
    <PARAM NAME = "java_type" VALUE="application/x-java-applet;version=1.3.1">
    <PARAM NAME="scriptable" VALUE="false">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3.0" CODE = "TNA" ARCHIVE = "tna.jar" WIDTH = "600" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!--
    <APPLET CODE = "TNA" ARCHIVE = "tna.jar" WIDTH = "600" HEIGHT = "400">
    </APPLET>

  • I have Adobe Reader XI. Is there a way that I can fix skewed pdfs and delete blank pages? If so, How?

    I have Adobe Reader XI. Is there a way that I can fix skewed pdfs and delete blank pages? If so, How?

    Not possible with Adobe Reader.

  • I have itune 10.5 with windows 7, when i click itune store it is not connected and show blank page

    I have itune 10.5 with windows 7, when i click itune store it is not connected and show blank page.

    You can't, Anh.  That's what people are telling you.  At this time there's no way to get out of recovery mode.   You're playing around with beta software and this is what you get.
    Tell your "developer friend" he needs to talk to other developers to see if this can be fixed, or have him replace your devices that you should never have let him play with to begin with.

  • I have a large document which keeps repaginating and adding blank pages. I can no longer use the print preview at all. I have tried all the usual fixes. Nothing works. Can anyone help?

    I have a large document which keeps repaginating and adding blank pages. I can no longer use the print preview at all. I have tried all the usual fixes. Nothing works. Can anyone help?

    Is your printer selected? <br />
    Is '''Print to File''' selected, where the web page is being printed to a file and not being sent to your printer?
    See the screenshot below.

  • Hp photosmart 6510 printing and photocopying blank pages even after putting in new ink cardridges

    Hi there, can anyone help?
    My photosmart 6510 has recently started printing and photocopying blank pages.  The ink cardridges were low and I have replaced them with new ones. I have cleaned the printer head and the test comes out in colour.
    I have no idea what to do other than buy a new one !
    Any advice appreciated.

    Hi @TG13,
    I'd like to help. Please begin with the steps in the following document; Printer Prints a Blank Page or Does Not Print Black or Color Ink for the HP Deskjet Ink Advantage an...  < this applies to the 6510, and 6515 too.
    If you complete, or have already completed all of the steps in the document above and the issue continues, my own personal recommendation, not one of HPs, is to use the solution offered in the following video.  I only suggest doing this if the printer is out of warranty; How to fix a HP Printer, not printing black ink and missing colours 
    Based on the comments, it looks like this will help 
    King_Zog wrote:
    I tried most of the suggestions in this thread, but stopped short of disassembling the print head. Nothing worked until I saw the video referenced in Sunshyn2005's message. That did work, but not on my first try. For the second attempt, I left the wet paper towels in place for a couple of hours to really soak the print heads. That did the trick.
    So, thank you Sunshyn2005, for pointing me to the solution.   - Source
    Although the printer might be out of warranty, if the issue persists, HP may be able to offer you something. Maybe they can offer you a discount on an alternate model. If you are in Canada or US call 800 474 6836, or you can Contact HP Worldwide.
    If this resolves the issue, please let me know so we can help others who may be experiencing the same issue.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Signed Applet and page reloading

    Hello,
    I'm having some troubles with an applet i've developped. It serves listening on the serial port, so i had to sign it and that's what i've done. Right.
    Second i put it in a page with the deploy.js from oracle with a jnlp. The applet works, run on the first time... But when i go on another page the applet doesn't standby but destroys itself ! And when i return on it the applet initializes again !
    What i want is the applet loads the first time and stay loaded on background until the browser is closed. So i'd want run it a first time, change the page and return on the applet's page without initializing again.
    Do you have any ideas ?
    Thank you !

    flo360 wrote:
    Erf , so how could i do that... What i don't understand is that everywhere i saw tutos about applets everybody talked about init() launched ONLY on the first time and then start() every time the user comes back on the page. ..I am pretty sure you have it wrong. <tt>init()/destroy()</tt> are called on page entry/reload & exit, while <tt>start()/stop()</tt> are called if the browser is minimized/restored, or maybe if changing between tabs (I'd have to check that).
    Ultimately though, there had been problems with browsers entirely failing to call the <tt>destroy()</tt> method, or implementing their own decisions about when to call <tt>start()/stop()</tt>. I would not rely on any specific behavior for them.

  • Signed applet and javascript communication

    Hi All,
    I have an (jar) signed applet which I use to access system properties (e.g user.home). I also have a javascript code that communicates (call to a public function) with the applet to get the property "user.home" from the applet. Everything works fine in Java plugin 1.3 but since I have installed the latest plugin 1.4.2_01 from http://www.java.com/en/download/windows_automatic.jsp website I can not access the system properties even though everything in the code is same.
    I can however still access public functions/variables from the same applet which do not access system properties in the new plugin 1.4.2_01.
    The browser I am using is IE and OS is Windows 2000.
    Does anybody know if Sun has changed the security policy for 1.4.2_01, in the new plugin for java-javascript communication to block access to functions which uses system property,fileIO, socket etc. even if they are signed applet??
    Thanks in advance..

    When invokin applet methods via javascript, you are accessing privileged actions from an unsafe source.
    Depending on your needs, you could either load the system variables in applet init into class variables and return the information contained in the class variables to javascript or wrap the method calls inside AccessController.doPrivileged() calls.

  • HELP! hp laserjet prints code and infinite blank pages!

    hey guys,
    ive got an early 2009 imac with 2.66ghz intel core 2 duo and 8gb ram,
    im running latest mavericks and trying to use a hp laserjet 1320tn printer.
    PROBLEM:
    when i press print i get one page with a line of code and then infinite blank pages untill i hold cancel.
    the line of code is :
    %! PS-Adobe-3.0
                                %APL_DSC_Encoding:   UTF8
                                                                                   %APLProducer: (Version 10.9.2  (Build 13c6
    here are some things that i have tried:
    * checked toner - 46% full
    * using the printer set up on a network (unshared)
    * using the printer via usb
    * reseting printing system ( many times )
    * using latest drivers
    * using older drivers
    * using alternate drivers from HP
    * using a generic post script printer driver
    * repair / verify disk permisions ( many times )
    * (last resort) Clean install of osx mavericks with fresh hp updates
    im fresh out of ideas guys
    the printer has been checked with a windows laptop and it printed perfectly and immediately so its an issue with my mac
    i dont really want to buy another printer as a need a small network duplex monochrome laserjet, and this is perfect ( except i cant get it to work !)
    also i checked with the manufacturer and apple and this printer is supposedly supported.
    any help would be awesome!

    OK here goes... (please take a deep breath)
    I'm going to include TONS of details, hoping that something here might help you get to the answer.
    If it's too much for your brain at whatever moment you get time to read all this, I do apologize.
    Maybe come back later when they're sleeping and you're wide awake, if that is ever possible. I was a stay-at-home Dad for one precocious child for a few years, so I have a tiny idea what you're talking about, though our married friends with multiple (usually bickering) children always assured us that having just one child is nothing at all like having children. So bless you! My heart goes out to you!
    Anyway, in Windows, there used to be a generic HPPCL driver and a generic PostScript driver for older printers. You could usually use a "generic" driver just fine, because very few programs (other than page layout and graphic design) used even 1/10th of the capabilities of the lowest-common-denominator oldest version PCL or PostScript command set. Something like that DOES exist in the Mavericks print installation dialogue.
    But back to YOUR printer.
    I tried installing my HP LaserJet 1320 on my iMac running Mavericks*.
    Unlike Windows, you can't install a printer that OS X Mavericks cannot 'see', either directly connected or via a network 'share', or wirelessly.
    My HP is connected via a network share. This should not significantly change what happens when you install your printer, but no guarantees.
    This was my first attempt to install the HP, because my default printer is a Canon inkjet, connected wirelessly via WiFi.
    So the LaserJet is in another room physically connected via USB to a MacBook, and marked 'Share this printer' on the MacBook system preferences. The MacBook has to be awake (not sleeping) and in this case, physically connected for my iMac to 'see' it.
    So, when I clicked the + sign in the , System Preferences, Printers & Scanners to add a new printer,
    I entered the description HP LaserJet 1320 into the search box the first time, then
    1. Mavericks tried to "find" the HP LaserJet on the network, connected to the MacBook.
    2. "This printer requires software that is not installed..."
    3. "Downloading Printer Software Update..."
    4. "Setting up "HP LaserJet 1320 Series @ KoMtB (MacBook's network name)
    5. At that point the printer appeared in this Add window shown below:
    Note the bottom Use: window below Location...
    Note that the third choice is Generic PostScript Printer...
    THIS IS THE ONLY PLACE AND THE ONLY TIME you can apparently select anything about which printer 'language' the Mac is going to use to talk to your printer:
    In searching for about 10 minutes, I did not find any way to ever get BACK to this screen once the printer installation is complete, short of deleting and reinstalling the printer again, or adding the printer a second time with a different name.
    I selected the choice highlighted, HP LaserJet 1320 series. I did a test print from TextEdit, and it worked perfectly the first time. I also tried it from Pages, and again, it worked perfectly, no spewing of PostScript initialization strings...
    My suspicion is that maybe Generic PostScript Printer is getting selected by Mavericks somehow without ever informing the user.
    Maybe 'Auto Select' does it. Don't know.
    In any case, since you've already done a Printing System reset, you have nothing else (custom print job Presets) to lose by trying to reinstall it again.
    I tried it, and It SHOULD also be possible to install the same printer multiple times, PROVIDED THAT you rename each one slightly during the Add process (HP-3200, HP-Auto Select, HP-Generic PostScript... ), so you can give several of them a try until you find one that actually works.
    Now, here's how to find the 'generic' PCL printer driver...
    Add the printer again, giving is a new name.
    In Use: select "Select Software", then search for "HP LaserJet Series PCL 4/5"
    HP LaserJet Series PCL 4/5 driver IS a 'generic' PCL driver, and SHOULD work for basic printing, provided that you DO NOT use the slash between 4/5 in the printer name use a dash - instead. When I tried it with a slash (probably because it was a network share, the printer did NOT install. When I tried again and used a dash, it worked fine.
    The PCL 4/5 driver comes with a disclaimer as shown below:
    Your HP is apparently from the year 2000? (Mine is from 2004.) It's so hard to give up old workhorse friends, especially when one toner costs almost a much as a new printer. The good news it that newer LaserJets are WAAAAAAY faster, and a toner for a new model still costs almost as much as a new printer...
    After years of buying ONLY genuine HP toner, I finally purchased a generic toner cartridge online last year when I needed to print about 1500 pages. The high capacity generic refill cartridge cost 1/3 of price of a genuine HP 'standard capacity', and it works beautifully.
    Of course this is time consuming, especially when you have active kiddos competing for your time, but the last alternative after Gutenprint is to purchase a new printer.
    *DISCLAIMERS & FOOTNOTES:
    I don't use OS X Mavericks much, so I'm really not the best person to ask. But I did answer this thread ages ago.
    So, if none of this helps, please post your question again as a brand new message in the OS X Mavericks forum.
    That way it will likely get far more 'views' than posting your question in an old thread already marked 'solved'. 
    From what I've seen in the Apple Support Communities, those most knowledgable tireless Saints of Mac with tens of thousands of reputation points who frequent these forums most every day usually look for the 'unanswered' and 'unsolved' questions first.
    Mostly I use OS X 10.8 Mountain Lion, because that's what shipped already installed on my iMac that I purchased from Apple as a refurb in Dec 2013. And because 10.8 seemed more 'sorted out' than Mavericks did last December.
    When I got my iMac last December, I immediately installed OS X 10.9 Mavericks on an external drive that I could select at boot time because:
    1) I could get Mavericks for free (wasn't sure if it would be a limited-time thing)
    2) Purchase of a new or refurb Mac then included a free iWorks suite (Numbers, Pages, Keynote) latest versions (wasn't sure if it would be a limited-time thing)
    3) I have Windows 7 installed under Parallels 9 on Mavericks to run basically one legacy Windows application I spent years learning and still use once or twice a year. Honestly, almost the only time I use Mavericks is to run Parallels 9 and Windows 7 and that legacy Windows app.
    4) My original Mac is a mid-2007 MacBook is still running OS X 10.6.8. That's what the HP printer is connected to. I now use the MacBook for email or when I need to take a computer somewhere else. My MacBook is not capable of being upgraded to run Mavericks, and I wanted to at least know about the current version of OS X, even if I NEVER upgraded my main system.

  • WebService call from signed applet and MS Vista

    Hi.
    I'M developing a system that needs to call web services from a signed applet.
    I have made the solution like this.
    The applet starts by checking that the 12 needed libs is present under the <java home>\lib\ext folder. if not it will download the files automatically and restart the browser.
    This works fine in Windows XP because the signed applet gives me read/write access to the whole machine, but in Vista this isn't possible anymore (as i understand it).
    My question: Is it possible to put these libs in another folder that the ext lib? I have tried to define the "archive" tag in my Object tag but i get the class not found exception thrown in my face.
    If there is a solution to this i would very much like some pointers!
    If not what can i do to get access to the <java home>\lib\ext folder under Vista?
    Regards
    Michael Pallesen

    When invokin applet methods via javascript, you are accessing privileged actions from an unsafe source.
    Depending on your needs, you could either load the system variables in applet init into class variables and return the information contained in the class variables to javascript or wrap the method calls inside AccessController.doPrivileged() calls.

  • Applet started with blank page

    Hi all,
    I just installed OAS 10gr2 10.2.0.2 and after configure webutility
    when i try to open forms the browser gives me Applet started but the page is blank
    i am following the document 566628.1 and running the form utility "webutilconf" and there is no errors
    and every thing in its place
    but when i put baseHTMLjinitiator=basejini.htm .. not (webutiljpi.htm nor webutiljini.htm)
    the forms run ok but without webutil functions .. if i run webutil functions it gives me "oracle.forms.webutil.file.filefunctions" message
    any Idea
    by the way
    1.no planing for upgrade or transfer to jre
    2.we already have another server running perfectly with the same configurations
    OS Win 2003 server
    Db 11g
    OAS 10.2.0.2
    Edited by: M.Taher on 16/01/2012 10:09 م

    M.Taher wrote:
    thank you for your time but my issue is
    if i put baseHTMLjinitiator=basejini.htm at formsweb.cfg it works fine but without "webutil" functions
    ,so when i change that parameter to any thing else (like webutiljpi.htm or webutiljini.htm ) it gives me blank page
    so i think it is not a jinit. issue it is about webutil configurations , but i follow a doc from oracle support and every thing in its place
    "it is not my first time to install and configure it ,but first time to face that problem"hmm. try the following code under u'r configuration name like config=test
    WebUtilArchive=frmwebutil.jar,jacob.jar
    baseHTMLjinitiator=webutiljini.htmalso webutil configuration like
    [webutil]
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm---change as your need
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jar
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilTrustInternal=truethen what is the out put ?
    Plz post your configuration
    hope this will help you
    Edited by: HamidHelal on Jan 17, 2012 2:46 PM

  • What EXACTLY is happening when a signed applet loads in a page?

    I'd like to know what happens when a signed applet is loaded in a page with the Java Plug-in. What methods are called, in which order, what happens when the user denies the applet, etc.
    Any links to resources are also welcome.
    Thanks!!

    Hi there,
    Please go thru the following links. I think they are self explanatory and does not need more elaboraion. These links expalin how the Signed Applet is loaded and how does the Class Loader and Code Verifier make it possible for the applet to work within it's security restriction.
    Here are the links:
    1.http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_how.html
    2. http://ntrg.cs.tcd.ie/undergrad/4ba2.96/group2/applets.html
    For more information about policy files you can check the following link:
    http://www.interex.org/pubcontent/enterprise/jan01/14chew.html

  • Signed Applet and native code

    Hi all,
    I have an application which I deploy with webstart and includes native code. This all works perfectly with webstart. I now want to deploy it as an applet. This works accept for the native code. I have done heaps of searching and cannot determine the most appropriate way to make the native code visible to the applet.
    Ultimately I am at the point where i recieve a UnsatisfiedLinkError when calling loadLibrary(...) for the native code. Currently i have the native code (dll's for windows, so's for Solaris etc) in independent jars which are also signed (as needed for webstart).
    Could anyone give me some advise or a reference to more info on this topic.
    I am using Java 1.5 and am happy to use 1.6 if neccessary.
    Thanks,
    Dave

    Andrew - of course you were correct about the signed cert - I misspoke when the CA signed applet didn't show a warning. (You were also right that I must have checked 'always accept' the certificate on the server I had the CA signed cert on).
    I think you guys are on to something about the privileged actions. It would explain where one popup has the icon and the other doesn't. We have Javascript making calls into the applet and we do use JNI (although I don't think there are any calls back). We do wrap these calls in privileged actions but maybe we missed something. What I've seen before is a security exception is thrown if we don't wrap them - but maybe there are areas where we don't and it doesn't throw an exception or it does and we eat it somehow (and for whatever reason doesn't cause anything noticeable).
    Now that I know it could likely be the applet code and not necessarily a build issue with signing the jars, I have another place to look...
    I'll check it out and let you know what I find.

  • Signed applet and security; a question

    I was wondering if you somebody has any experience packaging a signed applet within BEA? If so, Im wondering if I could ask you a few quick questions regarding MYAPP.
    MYAPP uses an applet that needs to be signed. This applet makes use of an external library for some of its client screens. Currently, I have packaged the applet classes, including the library contents as part of the root in the war file (i.e. exploded out of their archive and simply placed in the WAR file as fully path qualified classes).
    To sign the applet normally you would sign the jar file in which the applet is contained. But, when I place the jar file in the WAR file, the client cannot find the applet, even with the codebase and archive attributes filled in on the HTML page.
    My questions are as follows:
    Is there another mechanism for me to package the applet within the EAR file (i.e. a CAR file instead of the WAR?) such that I can package the applet within its JAR files and sign the JAR as I normally would?
    In lieu of anything on (1), how do I sign the applet? Should I be signing the WAR file or the individual classes?
    Please let me know if you would bee able to help, thanks much and again.
    Best regards,

    Thanks.
    The only server available we have is BEA 81 sp3
    appserver. We are not using webservers so we have to
    stick to BEA. Either it has a webserver included or you're screwed.
    Moreover, MYAPP.ear contains a huge amount of other
    JSPs and other stuff. My goal was to create a SINGLE
    ear file with MYWEBAPP and MYAPPLET contained in the
    same EAR file ?The point is that you have to point your applet's code base to a directory on the webserver. With dynamic web-app mapping and stuff you might not know where that is.
    So, is it doable to contain both MYWEBAPP and
    MYAPPLET in the same EAR file .... please correct me
    if iam wrong ?http://info.borland.com/techpubs/jbuilder/jbuilder9/webapps/webapps_context.html
    Look at the bottom of the page. Google is your friend.

Maybe you are looking for

  • Table for SPL screening date

    Hi All We are trying to prepare a report that consists requires give output business partners that are screened for SPL for a given period of time. please provide tables or logic to get this done. Thanks for your time. Thanks & Regards Karthi

  • Final Cut Pro x not appearing in my purchased tab after download

    Purchased Final Cut Pro x from the Mac App store last night and downloaded it to my Macbook Pro. I want to install it on my other Mac that shares an iTunes account, but it does not appear in the Purchased tab in the Mac App store. It has been downloa

  • Allowing incoming connection keeps poping up

    Hello for the last few days within all my Adobe porducts including Lightroom. As soon I do something like exporting, saving or opening. The computer as if I want to allow all icnoming network connection. Now those messeages come up so fast and go awa

  • Hierarchical + Analytical query for organizational unit parameters

    Hello gurus, I try for a couples of hour ago to make a query work as I would like. Our application need to store some parameters for our organization units. These organization units are typically organized in in an hierarchy manner: one top unit with

  • When I sync my ipad 2 I get error message ipad could not be found

    When I sync my ipad photo's and tunes download onto my PC but before the sync is completed I get error message saying ipad can't be found. How do I complete the sync process. I have updated version of itunes but still have problem