Where to put JAAS classfiles (loginmodules) when using it from a web app

Hi,
I am using JAAS authentication from a web application, the problem is that the login modules that I use, and all the classes that the LoginModule uses are not loaded from the WEB-INF/classes or WEB_INF/lib folder. I have to put them on the jdk/jre/lib/ext. The problem is that the classes I put there collide with other applications that use the same installed JDK.
I have developed it using jdk1.3.1 and JAAS 1.0.
Is there a way to put specify where login module classes should be loaded that does not interfere with other applications (that is, I do not want to put any class on the jdk/jre/lib/ext folder).
Cheers

Unfortunately, the only alternatives are to put all resources required by JAAS in jre/jre/lib/ext OR on the system classpath when the JVM is started.
This is apparently due to a bug in JAAS. The implementers of JAAS have the LoginContext written so that it loads resources only from the system classpath. Unless this was, for some reason intentional. I don't know what the plans are for JAAS going forward with respect to this.
Has it been fixed in J2SE 1.4?
I'll have you know this wreaks havoc with attempting to have your LoginModule use an EJBs to authenticate a user and add Principals to the Subject.

Similar Messages

  • Where to put page redirect code when using htp.prn

    Apex 4.0 oracle 11g.
    The user starts on page 7, chooses rows from a list and clicks a Run button which redirects them to page 10 which has a process (on load before header) using htp.prn to create a text file which the user then can save. The end of this process has apex_application.g_unrecoverable_error := true; because if it doesn't have this, the HTML gets put into the text file too.
    Anyway, when the user is done saving this text file, to all appearances they are still on page 7 (since page 10 doesn't really load, just runs that process) but I want them to go to page 14 after saving, not stay on page 7. I can't figure out where to put the redirect. The branching on page 7 doesn't seem to get activated after they hit the save button of the popup file save window, page 10 never loads for a branch on that page to work and I tried to put
    htp.init;
    owa_util.redirect_url('f?p=&APP_ID.:14:&APP_SESSION.');
    after the htp.prn call in but then the popup file download window doesn't come up at all and the user is immediately redirected to page 14.
    This is the process - I've tried the redirect inside its own begin end; and it didn't make any difference. If I put it in a separate process, it never gets run because as soon as the htp.prn is done, all processing stops. Any ideas on how I can get this file created and then redirect user to page 14? Thanks!
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="this_file_add.txt"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    -- Loop through all rows in CLIENT_TABLE
    for x in (select HEADER_TRANS_TYPE
    , HEADER_FILLER
    , TRANS_TYPE_CD
    , SOURCE_DEPT_NBR
    , DEST_DEPT_NBR
    , ENV_TYPE
    , FILE_SEQ_NBR
    from TEMP_CRA_EXTRACT
    loop
    -- Print out rows
    htp.prn(x.HEADER_TRANS_TYPE|| x.SOURCE_DEPT_NBR|| x.DEST_DEPT_NBR|| x.TRANS_DATE || x.ENV_TYPE || lpad(x.FILE_SEQ_NBR, 4, '0') || rpad(x.HEADER_FILLER, 48) || x.TRANS_TYPE_CD || rpad(x.XREF_NBR, 12) || chr(13) || chr(10) );
    end loop;
    -- Send an error code so that the rest of the HTML does not render
    apex_application.g_unrecoverable_error := true;
    htp.init;
    owa_util.redirect_url('f?p=&APP_ID.:14:&APP_SESSION.');
    end;

    I would recommend using Thread Safe Queues. Your acquisition callback can place items in the TSQ and then you can process the data in a separate thread. TSQs are nice because they allow you to install a callback function to run for certain events. Most importantly, you can install a callback for the Items in Queue or Queue Size Changed event which will run the callback if a certain number of items are in the queue. This lets you take advantage of multithreading in a simple and safe way using a standard Producer/Consumer architecture. However, you may still run into problems with this architecture if your acquisition thread is running much faster than the consumer thread. You could eventually overflow the queue. In that case, your only options are to either get a faster system, slow down the acquisition or do the data handling post process.
    National Instruments
    Product Support Engineer

  • Hi, I upgraded my girlfriend's iPad 2 using my iMac, however, her iPad was sync with her PC. Although I've made backup earlier, when I restore from backup the apps doesn't sync back, neither her documents on pages. How can I put then back to her iPad?

    Hi, I upgraded my girlfriend's iPad 2 using my iMac, however, her iPad was sync with her PC. Although I've made backup earlier, when I restore from backup the apps doesn't sync back, neither her documents on pages. How can I put then back to her iPad?

    The backup saves many settings, but it copies photos and other files from the computer back to the iPad after IOS5 wipes the disk.   Plugging it into her computer will re-sync it.

  • Where is my Mac App. I purchased a MacBook Pro about two years ago while in Okinawa.  I recently moved to St Louis.  When using the "find my Mac" app, it still says my Mac is located in Okinawa.  How do I get it to recognize that it is now in St. Louis?

    I purchased my MacBook Pro 2 years ago in Okinawa.  I recently moved to St Louis.  When using the "find my Mac" App, it still says my Mac is in Okinawa.  How do I get it to accurately show my Mac is now in St Louis?

    Open System Preferences using the menu item " > System Preferences" then select the "Security & Privacy" pane.  selec the "Location Services" on the left and enable using the checkbox:
    Just noticed you details show you are running OS X 10.7.5 so I am not sure this is exactly correct.

  • When using the built in web server, is there a way to specify a different

    When using the built in web server, is there a way to specify a different error handler when you try to access a NON .CFM file? Right now I get the standard:
    java.io.FileNotFoundException: filename.ext
    Is there any setting to override this and direct the message to your own .cfm template? The missing template handler in the CF Admin work only for .cfm files.
    Thx

    The in-built web server for ColdFusion 8 is JRun. I am on ColdFusion 10, however, and so cannot offer hands-on advice. (CF10 replaced JRun with Tomcat.)
    My guess is that you have to modify the file {CF_ROOT}/WEB-INF/web.xml. Don't forget to create a back-up first!
    You may then proceed as follows.
    1) In the ColdFusion root (CF_ROOT), create the file myCustomFileNotFound.cfm. Give it some content, like
    My custom File Not Found page. Current time: <cfoutput>#now()#</cfoutput>
    2) Open the file {CF_ROOT}/WEB-INF/web.xml in a text editor. Add the following error-handling specification just before the end tag </web-app>:
    <error-page>
    <error-code>404</error-code>
    <location>/myCustomFileNotFound.cfm</location>
    </error-page>
    Save the file web.xml.
    3) Restart ColdFusion. Test by browsing to a URL requesting filename.ext

  • How stop PS6 from removing the DPI value from an image when using "save for the web"?

    How stop PS6 from removing the DPI-value from an image when using "save for the web"?
    Example:
    - Open a tif image, that contains a dpi value (resolution).
    - Use the splice tool in PS6.
    - Export the slices with "Save for web", as gif-files.
    Then the dpi value is removed, the gif files has no dpi value (it's empty).
    How can we stop PS6 from removing the dpi value when using "save for web"?
    OR:
    When using the slice tool, how can we save the sliced pieces without PS removing the dpi value?

    you can make your art go a little bit over the bounds. or you can make sure your artboart and art edges align to pixels

  • When using the internet, my web browser window goes blank

    It does this quite often:
    When using the internet, the web browser screen will go completly blank after 2 secs of loading.
    I will see the page, then after two seconds it is gone, and the web browser is completely white.
    Once, one page or tab does it, all the others start doing it.
    It is very frustrating, and happens quite often.
    Does this happen to anyone else, and does anyone know why or how to fix it??

    The next time you have the problem, note the exact times when it starts and ends: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Scroll back in the log to the time you noted above. Post any messages timestamped during that interval – the text, please, not a screenshot.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • I just enrolled in CC and I can get the app on my desk but when I navigate from home to apps to download apps, it just goes around and around in a blue circle (I'm on a mac).  help

    I just enrolled in Creative Cloud and I can get the app installed on my desk but when I navigate from Home to  Apps to download apps, it just goes around and around in blue circle (freezing).  Im on a MAC. 
    Thank you!

    Mac Spinning Wheel https://forums.adobe.com/message/5470608
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • When i cut from the web and paste onto pages, i am missing half the article, unless i change it to a smaller font.

    when i cut from the web and paste onto pages, i am missing half the article, unless i change it to a smaller font. Even then the rest of the article is not continuing onto the next page, it seems like it is stuck in a text box but it wont expand. I must be missing something i just not figuring it out.

    Many web pages uses a table system and when you copy you get the table too. Pages 09 retains the table. PAges 08 don't.
    Tryy this: When you have pasted into a Pages document select some text and then hit Cmd + A to select all text. Paste into a new blank document. Tha tshould help.

  • TS3899 When sending email from the Mail App or through other Apps, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design.

    When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design, especially since I had already checked the From: address.
    iPad 4 running iOS 8.1.3

    3rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
    Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
    LJ
    http://www.facebook.com/The.Cowboy.Party

  • Where can I find the purchases that were made from itunes and apps?

    Where can I find the purchases that were made from itunes and apps?

    You can view the full purchase history on your account via your computer's iTunes : log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases.
    On an iOS device you can only view the last 90 days purchases (and optionally contact iTunes Support if you have a problem with one of them) via http://reportaproblem.apple.com

  • Use iMessage from the web?

    Good morning,
    I'd like to know if any development is underway to use iMessage from a web browser?  I work in an environment that prohibits me from bringing my iPhone to my desk.  I use iMessage consistently to communicate with family and friends; creating this capability would be of great use to a very large portion of my coworkers.
    Thank you!

    Apple has said nothing about it, so no way to know.

  • Where to put data processing routine when acquiring data using DAQmx

    I have a program that is aquiring data using the DAQmx Acquire N Samples mechanism with automatic reset and a data handler callback routine. DAQmx acquires N samples (usually 1024) from the board, calls the handler to do something with it, and then resets to get the next batch of data. The program acquires a number of lines of data, say 512 lines of N points each, with one callback call per line. Triggering is done by a hardware trigger at the start of each line of data. So far so good.
    The issue is that the time that it can spend in the callback is limited, or else the callback is not finished when the next batch of data is ready to be transferd from the DAQmx buffers and processed. There is a substantial amount of analysis to be done after the entire frame has been acquired, and it ends up taking far longer than the time between lines; so where to put the processing? The data acquisition is started from a control callback callback that exits back to the idle loop after it starts the data acquisition process, so there is no code waiting to execute, to return to, when the data acquisition is finished.
    I could try to put the data analysis routine into an idle-time routine and trigger it with a semaphore, or I could put it into a timer control callback with, say, a 10 millisecond repetition rate and poll a flag, setting the flag when all of the data has been acquired. Any suggestions would be appreciated.

    I would recommend using Thread Safe Queues. Your acquisition callback can place items in the TSQ and then you can process the data in a separate thread. TSQs are nice because they allow you to install a callback function to run for certain events. Most importantly, you can install a callback for the Items in Queue or Queue Size Changed event which will run the callback if a certain number of items are in the queue. This lets you take advantage of multithreading in a simple and safe way using a standard Producer/Consumer architecture. However, you may still run into problems with this architecture if your acquisition thread is running much faster than the consumer thread. You could eventually overflow the queue. In that case, your only options are to either get a faster system, slow down the acquisition or do the data handling post process.
    National Instruments
    Product Support Engineer

  • Computer does not put itself to sleep when used in lid-closed mode

    Hi. I'm having a small problem when using my macbook pro with the LED display, lid closed and with external keyboard and mouse. If I leave the computer unattended, the display goes to sleep at the time specified in system settings under energy saver. The computer, however, does not go to sleep - the white power indicator remains solid and noises for new email etc can still be heard.
    I should probably just try to remember to put it to sleep manually but I keep forgetting. Does anybody know what settings I need to adjust?

    I tried cycling the old battery many times, and the computer would still shut down unexpectedly instead of going to sleep when it ran out of power. I got a free replacement from the supplier [http://myworld.ebay.com/cbkusaelectronics>, but I have cycled this new battery twice now, and it still does not go to sleep when it runs out of power. The capacity of the battery is fine (4.9 Ah), and the timing calibration seems fine as well. I have two older batteries from NewerTech and they allow sleep every time, so I think my computer is fine. Can anyone enlighten me about the cause of this problem? Does my battery lack some 'sleep battery' cell in it for use after the other 4 cells discharge? Or does my battery lack a chip that communicates with the computer? Is there any hope of getting this battery to support sleep when discharged?
    Has anyone else seen this problem consistently in a brand of battery? Does anyone have a recommendation for a cheaper battery that does not exhibit this problem? I have been happy with NewerTech, but they cost over $130.
    (I only paid $44 plus $10 shipping, so I probably got what I paid for. It is maybe still worth it to have a high capacity battery for such a low cost, but I can't rely upon it in those last few minutes or I may lose work.)

  • Where Is File Stored On Computer When Using: File.applicationStorageDirectory

    When using the File.applicationStorageDirectory function, where is Adobe storing the program on an Windows/Apple computer? I know what it means, but I would just like to be able to verify for myself that the file is being created when I'm developing my application.

    Adobe Flash Platform * Working with File objects in AIR
    Windows: C:\Documents and settings\userName\ApplicationData\applicationID\Local Store
    Mac: path/Library/Application Support/applicationid/Local Store (AIR 3.3 and later), where path is is either /Users/userName/Library/Containers/bundle-id/Data (sandboxed environment)                     or /Users/userName (when running outside a sandboxed environment)

Maybe you are looking for