How to tell weblogic server which configuration I want to use

Hi Everyone,
I write the logmodule class, configuration class, Action class, client class
and my policy file my.policy.
I add the VM parameter when I start weblogic server
"-Djava.security.auth.policy=D:\bea\wlserver6.1/lib/my.policy"
But I don't know how to let weblogic server know my configuration class, so
that the server will create it when my client code create LoginContext
object.
Some artical told me that add the configuration class name in java.security
file, like the following
login.configuration.provider=mypackage.myConfig
unfortunately, it don't work :(
I always got the exception message
No Configuration Class Name Supplied
Does anyone kindly tell me how to let the system know my configuration class
name?
Regards,
xlzhou

Hi,
we are facing the same problem, if you get the solution would you please help
us out?
Regards
Sudipto
[email protected] (Joe Zhou) wrote:
I almost got same problem.
I wrote a deme which is using jaas.
The client part:
Properties property = new Properties(System.getProperties());
property.put("weblogic.security.jaas.ServerURL",
"http://localhost:7001");
System.setProperties(property);
// Set configuration class name to load SampleConfiguration, the
//Configuration for the JAAS code example
property = new Properties(System.getProperties());
property.put("weblogic.security.jaas.Configuration",
"test.servlets.TestConfig");
System.setProperties(property);
// Set Configuration file name to load sample configuration policy
file.
property = new Properties(System.getProperties());
property.put("weblogic.security.jaas.Policy",
"C:/bea/wlserver6.1/config/mydomain/Test.policy");
System.setProperties(property);
loginContext = new LoginContext("TestPolicy", new
MyCallbackHandler());
The Test.policy:
TestPolicy
test.servlets.TestLoginModule required debug=true;
And I add "-Djava.security.auth.policy=%WL_HOME%\config\mydomain\Test.policy"
when I start weblogic server.
But when I run the code, I got the exception:
Invalid Configuration Class Name: test.servlets.TestConfig
java.lang.NullPointerException
at javax.security.auth.login.LoginContext.loadLoginModule(LoginContext.j
ava:101)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:54)
at test.servlets.TestSecure.doPost(TestSecure.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Seems the problem is in my TestConfig.
I just copy the SampleConfig.java as my TestConfig.java (modified a
little) and copy the ConfigParser.java (those are in the
samples\examples\security\jaas\examples\security\jaas)
Any suggestion???
BTW, all the necessary classes is in the .war file.
Thanks in advance.
Joe
"Xiao Ling Zhou" <[email protected]> wrote in message news:<[email protected]>...
Hi Everyone,
I write the logmodule class, configuration class, Action class, clientclass
and my policy file my.policy.
I add the VM parameter when I start weblogic server
"-Djava.security.auth.policy=D:\bea\wlserver6.1/lib/my.policy"
But I don't know how to let weblogic server know my configuration class,so
that the server will create it when my client code create LoginContext
object.
Some artical told me that add the configuration class name in java.security
file, like the following
login.configuration.provider=mypackage.myConfig
unfortunately, it don't work :(
I always got the exception message
No Configuration Class Name Supplied
Does anyone kindly tell me how to let the system know my configurationclass
name?
Regards,
xlzhou

Similar Messages

  • "dtutil", how to tell which configuration file for packages using after deployment?

    Hello All, 
    Trying to achieve this feature, 
    Using DOS command to automatic my deployment process--glad I found dtutil. However, it doesnt give you any chance to identify which configuration file to be used by SSIS packages after deployment.
    Deployment Method: file deployment
    Configuration sued: XML file and SQL Table. IN XML file, it tells which DB connection for packages to look up the configuration table.
    Who can share some thoughts on this?
    Derek

    It is NOT about sequence.
    It is about how to point which configuration file to be used by deployed packages as during the "dtutil.exe"
    deployment, you dont have chance to identify which physical location confg files to be used.
    Derek
    That you do only at the time of execution of packages. By default it uses configuration settings created at design time within the package. If you want to override it, you can use \Configfile switch of dtexec for that. You can also set explicit values for
    properties using /SET switch
    http://technet.microsoft.com/en-us/library/ms162810(v=sql.105).aspx
    See this to understand how configs are applied in runtime
    http://technet.microsoft.com/en-us/library/ms141682(v=sql.105).aspx
    and this to understand behaviour difference in ssis 2008 
    http://technet.microsoft.com/en-us/library/bb500430(v=sql.105).aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to install  weblogic server in linux fedora 7  ...?

    hi.. Experts
    i am new to linux os .i am using fedora 7 version of linux. please tell me,,how to install weblogic server on fedora 7 os. i have to run my servlets , jsp pages. on weblogic server.
    plzz i m not able to do practice ...so please suggest me..
    please Reply...
    thanks a lot to all...

    Yes, they can. They installed in different directories and you have to use different ports.
    AFAIK for HTTP for APEX is either part of the installation (eg. in the Oracle Express Edition) or part of the Oracle Installation CDs. For more information see the Oracle Installation Documentation.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to Install WebLogic Server 9.2 MP3 ?

    Hi,
    How to Install WebLogic Server 9.2 MP3 on Linux?
    and as which user we have to install WebLogic server. Whether we have to install as root user or we have to create different user to install weblogic server?
    Please provide me the document to do the installation.
    Thanks

    Just read through the installation guide: [http://e-docs.bea.com/common/docs92/install/index.html] . Look upward in that tree for all relevant WebLogic documentation.

  • How do shutdown the weblogic server from the command line prompt using web logic 8.1

    I%u2019m currently using weblogic 6.1, but I will upgrade to weblogic 8.1. In weblogic 6.1, the following statements will shutdown the weblogic instance from the command line:
    java weblogic.Admin -url t3://hostname:port -username system -password abc SHUTDOWN
    How do I shutdown the weblogic server from the command line prompt using web logic 8.1.
    Any help will be greatly appreciated.
    Maria

    Maria <[email protected]> wrote:
    How do I shutdown the weblogic server from the
    command line prompt using weblogic 8.1?Greetings Maria! Use this document, located here:
    http://edocs.bea.com/wls/docs81/admin_ref/cli.html#1131733
    Hope this helps...
    Brian J. Mitchell
    Systems Administrator, TRX
    email: [email protected]
    office: +1 404 327 7238
    mobile: +1 678 283 6530

  • How do I set up which comics I want on my comics app?

    How do I set up which comics I want on my comics app?

    bonster91,
    If you have already added the app, you will want to log in to your account at ePrintCenter.
    Scroll down to the bottom of the page and you will see all the apps currently installed on your printer. Select the comics app. When it pulls up the page for the comics app, you should see a gray box with a green check mark in it and the words "Added to Printer".
    Underneath that, you will see two buttons, "Setup" and "Remove". Click on "Setup".
    After you click on setup, it will bring you to the options for that app, including being able to select what comics that you want printed off. 
    That should get you where you need to be, but if you have any other questions, feel free to ask!
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • How to get rid of a window which says: CalendarAgent wants to use the "login" keychain

    How to get rid of a window which says: CalendarAgent wants to use the "login" keychain

    I would get free EasyFind (Spotlight will be a total waste of time), and search for caremefile and caremefile.info. If it comes up with anything, right-click and select move to trash, or just destroy. Since you didn't install anything, shouldn't be necessary to authenticate with the admin password before it will move to trash. Could also click on reveal in finder, which will allow you to see the actual location. Set it up as per the screenshot below.

  • HT201250 how do I disable time machine? I want to use my external drive as additional storage. But it mirrors everything I edit. If I remove a document, it removes it from the external drive as well.

    how do I disable time machine? I want to use my external drive as additional storage. But it mirrors everything I edit. If I remove a document, it removes it from the external drive as well.
    I purchased a 1 TB WD passport drive, formatted for Mac. I set it up originally (mistakenly) to backup time machine. I went back and set it to "do not backup"  It still backs up evey document I edit. If I add a document when the drive is disconnected, it automatically adds it to the external drive the next time connect to the passport drive. If I remove a document the same thing happens.
    I need additional storage to free up space on my laptop hard drive. This is not working the way I want it to. Help!

    Do not backup your startup volume to another partition on the same drive. If the drive fails you have nothing. Always backup to another drive or volume on another drive.
    The I/O error usually means there's a problem with the drive. Clone ASAP, then repartition and reformat the main drive. Then restore the clone. Here's the basic process:
    You will have to backup your OS X partition to an external drive, boot from the external drive, use Disk Utility to repartition and reformat your hard drive back to a single volume, then restore your backup to the internal hard drive.
    Get an empty external hard drive and clone your internal drive to the external one.
    Boot from the external hard drive.
    Erase the internal hard drive.
    Restore the external clone to the internal hard drive.
    Clone the internal drive to the external drive
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive and click on the downward pointing arrow button.
    After startup do the following:
    Erase internal hard drive
    Open Disk Utility in your Utilities folder.
    After DU loads select your internal hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.  Do not quit Disk Utility.
    Restore the clone to the internal hard drive
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the internal hard drive. Source means the external startup drive.
    Note that the Source and Destination drives are swapped for this last procedure.

  • In which case i  want to use  inner join  &  for alll entries statement

    Dear all,
    In which scenario i want to use for all entries statement and in which scenario i want to use innerjoin operation in ABAP.
    please give me the solution.
    Regards
    syam

    Dear all,
    In which scenario i want to use for all entries statement and in which scenario i want to use innerjoin operation in ABAP.
    please give me the solution.
    Regards
    syam

  • We were using SP3 for iplanet server. Now we want to use SP4.

    We were using SP3 for iplanet server. Now we want to use SP4.
    When we deploy the EAR on SP4(thru IASDEPLOY), its giving Null pointer
    error but at the end it says deployment complete. Also there are no proper
    entries in the registry.
    If we deploy the same EAR on SP3, then everything is fine.
    In SP4, we are not getting even the EAR folder in APPS.

    What is this application all about.
    May be your ear file has some external dependancy, Can you send the logs for this.
    Since it is not deployed, the ear folder is not being created for you.
    Thanks,
    Rakesh.

  • Is there a way to see the size of my ICloud backup files, so I can determine which one I want to use?

    Is there a way to see the size of my ICloud backup files, so I can determine which one I want to use?

    Go to Settings>iCloud>Storage & Backup>Manage Storage.  Your backups are listed at the top, along with their sizes.  Note: this will only list your most current backup.  You may have your previous two backups available too but you cannot access any size information about them.

  • Everytime i try to open my Firefox i get a window that pops up asking me which browser i want to use to open it. After choosing Firefox it asks to run a C:/Program Files (x86)/Mozilla Firefox/firefox.exe.

    Every time i try to open my Firefox i get a window that pops up asking me which browser i want to use to open it. After choosing Firefox it asks to run a C:/Program Files (x86)/Mozilla Firefox/firefox.exe. But my search bar says file:///C:/Program Files (x86)/Mozilla Firefox/firefox.exe. Never seen anything like this, half tempted to stop using Mozilla for this sole fact. PLEASE someone help me.

    Same error message, I disabled tab mix and made sure I only have the newest version of Java, restarted firefox, now it seems to be fine no error yet on Pogo games or pictures upload to ebay which were the biggest problems besides hanging. I had also had disabled AVG secure search yesterday but that did not solve the issue. Now I will try to add back in AVG search...I have very few adds ons, also the note embedded about re- installing a toolbar went away, my old one did not work with FF4, so I installed Yahoo toolbar but the message still did not go away until I applied this fix. Hopes this helps someone..

  • HT5312 i cant remember either of the answers in my security questions, how can i reset them?i still want to use my apple id

    i cant remember either of the answers in my security questions, how can i reset them?i still want to use my apple id

    The Three Best Alternatives for Security Questions and Rescue Mail
        1. Use Apple's Express Lane.
              Go to https://expresslane.apple.com ; click 'See all products and services' at the
              bottom of the page. In the next page click 'More Products and Services, then
              'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
              ID security questions' and click 'Continue'.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • TS1453 I had my iTunes stored on my external drive which crashed, i want to use the content stored on my 1st gen apple tv,but it won't recognize my new itunes library.

    I had my iTunes stored on my external drive which crashed, i want to use the content stored on my 1st gen apple tv,but it won't recognize my new itunes library.

    I had my iTunes stored on my external drive which crashed, i want to use the content stored on my 1st gen apple tv,but it won't recognize my new itunes library.

  • How dose family sharing work when one person wants to use a gift card?

    How dose family sharing work when one person wants to use a gift card?

    kokogo,
    Purchases made in the iTunes and App Stores will first attempt to use any store credit that exists on the purchaser's account. Barring sufficient credit, the family organizer's card will be used for the purchase.
    First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card. As the family organizer, any receipts generated by the transaction will be sent to you. Learn more about how iTunes Store purchases are billed.
    Family purchases and payments
    https://support.apple.com/en-us/HT201079
    Sincerely,
    Allen

Maybe you are looking for

  • Thread problem on windows xp

    Hi, all I have thread code looks like below. Under linux, I will see 'thread offline!' message when invoke offline method in myTask class. Under windows xp, I didn't see any output message. Does this mean thead still alive? Is it ok to controll a thr

  • 3 apple ids to one account how to delete 2

    apparently i have three different apple ids one being an icloud account.  need to delete 2.  please help iphone 5

  • How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop the fil

    How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop all the files that I had open are there already in the same position as when I closed Photoshop? I've been a Fireworks user for over 10 years and just switch

  • Iphone 4s w/ iOS5 will not sync

    When I attempt to sync my iPhone I keep getting an error message that the required disks can not be found. I have iOS5 loaded currently. It has been working fine up until the past few days. I can't even run a back up to return to factory settings. Do

  • Cannot import some pictures: reported as corrupted

    I receive family pictures from my brother. He uses Photoshop. Some JPEG pictures are reported to be "corrupted" and won't import to iPhoto 08, most will. If I put them through my Photoshop Elements and make them PNG, twice the size, but then they wil