Problem with jaas config

i new in jaas and stuck when develop jaas aplication using myeclipse
i have follow the tutorial, create MyCallbackHandler class, MyLoginModule class dan some principal class and auth.conf
my problem is where and how can i setting my jaas application so it can refrence to auth.conf
thx

where must i put this code (-Djava.security.auth.login.config=jaas.conf) in my application, because i using myeclipse ?
or can i set this in web.xml? if i can how to do that?

Similar Messages

  • Problem with reading config file

    Hello,
    I have problem with reading config file from the same dir as class is. Situation is:
    I have servlet which working with DB, and in confing file (config.pirms) are all info about connection (drivers, users, passw, etc.). Everything work fine if I hardcoded like:
    configFileName = "C:\\config.pirms";I need to avoid such hardcoding, I tryied to use:
    configFileName = Pirms.class.getClassLoader().getResourceAsStream ("/prj/config.pirms").toString();but it isn't work.
    My config file is in the same directory as Pirms.class (C:\apache-tomcat-5.5.17\webapps\ROOT\WEB-INF\classes\prj)
    Also I tryied BundledResources, it isn't work fo me also.
    Can anybody help me to solve this problem? with any examples or other stuff?
    Thanks in advance.
    Andrew

    Thanks, but I am getting error that "non-static method getServletConfig() cannot be referenced from a static context"
    Maybe is it possibility to use <init-param> into web.xml file like:
    <init-param>
      <param-name>configFile</param-name>
      <param-value>/prj/config.pirms</param-value>
    </init-param>If yes can anybody explain how to do that?
    I need to have that file for:
    FileReader readFile = new FileReader(configFile);Thanks in advance.

  • Problems with Qt Config (Xfce 4.6)

    Hi
    I have problems with QT Config .
    I use Desktop Environments XFCE , when you save settings QT Congif (set size fonts etc ) .
    Setting do not save
    I have set chmod in catalog QT config .
    How to fix  ?
    Last edited by nocentis (2009-03-16 12:00:29)

    Welcome to the Apple discussion forums.
    As Joeuu stated, assuming you don't have an Intel-based MacBook Pro, that means that your PowerBook is PowerPC-based. There are several steps that should get you back on track.
    First, reset your power management unit (PMU). Follow directions at http://docs.info.apple.com/article.html?artnum=14449
    Next, repair permissions by running Disk Utility, located in your mac hd, application/utilities folder. Highlight your hard drive and repair permissions.
    Did you use the software update function or did you download the update from the Apple support site? In any event, download the combo update 10.4.6 from http://www.apple.com/support/downloads/macosx1046comboforppc.html Updates through the software update function have recently created some unique 'situations', that use of the combo update have solved.
    After the update, repair disk permissions again. This is good housekeeping to do before and after any major software installation.
    PB G4 1.67ghz 1.5gb; mini G4 1.5ghz 1gb   Mac OS X (10.4.6)  

  • PROBLEM: loading jaas.config in the web application

    Hi,
    my problem was load jaas.config in the web application, the way that I suppose was best it's to load a configuration file in the web.xml of my application, but I they are not a veteran of xml and I have a problem of implementation for this solution.
    I hope you know a solution of my problem because I was deprived of hope!
    HELP ME PLEASE!

    Hi,
    I hope that replay me on my new quesion.
    I have find a class "Configuration" that load a configuration file of jaas, but I don't understand how use it. Because I want pass it to LoginModule in the costructor.
    Can you help me with an example code?
    Thanks

  • Problem with TMS config

    Hi all,
            I have a problem with my TMS config.
    When I adjust the transport queue, the "No system found in another group for import queue QAS" message appears.
    My landscape includes a DEV-QAS and a PRD systems.
    can somebody help me?
    thanks in advance.

    Hello,
    I have the same problem.  I just forund the alert from RZ20.  When we are doing transport and checking RFC connections from SM59, seems to be all working fine.  So I am not sure where this alert is coming from. 
    Command  TMS_MGR_READ_TRANSPORT_QUEUE
    Service  Transport Service
    Start    Online
    Function TMS_MGR_TRANSMIT_TR_QUEUE
    Message  TRANSMIT_QUEUE_FAILED
    No system found in another group for import queue <SID>
    I run into this thread but there is no information on how the problem got resolved.  Please let me know if you have any ideas. 
    Regards,
    Tony

  • Build shared problem with configure / config.guess

    Hi,
    I'm constructing some 3rd party libraries from source level with configure/automake in Suse 9.2. A common mistake in all libs is done by config.guess: it prints out "i686-pc-linux-gnuaout" which switch off the shared support at all. It's easy to workaround by print "i686-pc-linux" instead directly from configure:
    ac_config_guess="echo i686-pc-linux"
    Then the shared support is enabled and there left some minor problems with linker options -soname and --rpath. Then some libs can create the shared libs, for instance the apr and xml2.
    Others do not, for instance log4cxx and acetao, but they do not produce any error. It looks like that simply the shared link step is not done, however the symbolic links to the release version are done. I also tryed with LD=CC and LD=cc instead of the gnu ld, but then already in config.log the shared support is not recognized. If I build by hand:
    cc -shared *.o -o libACE.so
    it seems to work and the result usable by applications. Since acatao includes lots of libraries to build, the manual creation is not handy / possible. So any hint to solving that are welcome. I'm using the latest sunstudio version (feb2007).
    thanx rolf

    It really depends on autoconf/libtool version those libs are using.
    Till the most recent versions libtool had absolutely no clue that SunStudio exists on Linux. And default fallback happened to be gcc.
    If you give me some specific lib (source URL or name/version) I can tell you why this lib does not configure with Sun Studio :)
    Most recent version of autoconf is wize enough to handle Sun Studio on Linux. So one of the solutions for the libs might be to upgrade to a newer autoconf. Not what common user would commonly do though...
    regards,
    __Fedor.

  • Problem with the config.xml

    Dear all,
    After doing a wscompile on the config.xml file (JWSDP1.6), I am able to generate the wsdl for the interface defined.
    But now the config.xml shows an error
    "Cannot find the declaration of element 'configuration' "
    for the attribute xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"
    Any idea what is the problem as "http://java.sun.com/xml/ns/jax-rpc/ri/config" is no longer available on the sun site.
    Any alternate references to be made to this xml namespace declaration.
    Rgds,
    Seetesh

    My point above is that Project 2007 was extremely buggy and unless files are saved using Project 2007 SP3 first you are likely to experience problems with the files when opening in project 2010. Project 2007 to 2010 with no service packs is problematic.
    With SPs applied you should have far fewer problems.
    Doesn't look like a exe with SP2 is available yet so you need to add the service pack separately, probably in the updates folder.
    If all Project 2007 installs are already at SP3 then no need for this.
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Itunes7 does not let me start up because detected problem with audio config

    hi,
    i have had itunes for a while now but i just upgraded it to version 7. i restarted my computer afterwards but when i tried to start up itunes for the first time it said there was a problem with the audio configuration.
    this is the message,
    itunes cannot run because it has detected a problem with your audio configuration.
    i am using windows xp and would be very grateful for any help, thanks!
    lenovo 3000, N100   Windows XP  

    this is the message,
    itunes cannot run because it has detected a problem with your audio configuration.
    That one is most commonly caused by a problem with your QuickTime. (iTunes uses QuickTime for audio and video playback.)
    The following document may be of some assistance:
    iTunes 7 for Windows: iTunes has detected an audio configuration problem

  • New Version error - problem with audio config

    iTunes has been working great on Vista so when I was prompted to download the new version I thought why not. It unloaded the old version and then loaded the new without a hitch. Went to run the new version and I get the error:
    iTunes cannot run because it has detected a problem with your audio configuration.
    But nothing has changed! Can anyone shed any light on this?

    I can't help you but I have the same problem but with windows xp.
    *** really..

  • Vista - Problem with Audio config!!! please help!!!

    I just finished a clean install of Vista and installed iTunes. When I try to open iTunes an error message pops up saying "iTunes has detected a problem with youraudio configuration.Audio/Video playback may not operate properly." I have looked on teh forums and all I have seen is something about uninstalling QuickTime and then reinstalling it. I have tried that twice and I still get the same error message. If anyone could help that will be great.

    Try this -> http://docs.info.apple.com/article.html?artnum=304424

  • Problem loading jaas.config file

    Hi,
    i've built an rmi server that works as an authentication server.
    It uses jaas and an nt login module to manage authentication on windows.
    But when i try to load the jass.config file, i get errors : it tells that there is a security exception and that the file jaas.config was not found!!
    I set all necessary properties in my application :
    System.setProperty("java.security.auth.login.config", "jaas.config")
    Do you know where do i have to put my jaas.config file for it to be found by the application?
    In the classpath?
    Thanks,
    Philippe

    HI, I am not sure this will help you, but you can try putting your .conf where your java_home is pointing.
    Example : D:\j2sdk1.4\jre\lib\ext\test.conf

  • Problem with audio config.?

    I've had this iPod...Video? Is that a 5th-generation? Whatever. Since...July or so last year. Maybe longer.
    And suddenly I'm getting this weird "iTunes cannot run because it has detected a problem with your audio configuration."
    Checked the audio. Works fine. Tried the "unknown error" FAQ. Still isn't working.
    What's up?!
    iPod Video 80 GB   Windows XP   ...accidentally got candle wax on it.

    Try this -> http://docs.info.apple.com/article.html?artnum=304424

  • Problems with JAAS setup in WL 8.1 SP3

    Hi all,
    I have WL 8.1 SP3 installed on a XP Prof box with JDK 1.4.2
    I have an application that makes use of the JAAS. I keep getting the following error
    javax.security.auth.login.LoginException: No LoginModules configured for <XXXXXX>
    at javax.security.auth.login.LoginContext.init(LoginContext.java:189)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:350)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:465)
    I know that this means that it couldnt find the login modules defined in the configuration file. But I have it defined there. The following is what I am doing
    1. I have the startWebLogic.cmd as below.
    %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=%JAVA_HOME%\jre\lib\security\java.policy weblogic.Server
    2. In the Java policy file located in security folder of the JDK home, I changed the security file to point to config file as below
    login.config.url.1=file:${JAVA_HOME}/jre/lib/security/jaas.conf
    Can someone suggest me a solution ?
    Thanks
    meka toka

    Did you ever find a solution to this?
    I am having the same problem.

  • Problem with JAAS Form Based Auth

    Hello
    I have JAAS form based auth almost working. I have an app and when I try to access it the login page comes up as planned. So far so good. Then problem is when I feed it a bad login password, it comes up with a 403 forbidden error (you are not authorized). What I want (and expected) to have happen was my custom jsp AuthFailed.jsp to come up.
    If i go directly to /AuthFailed.jsp it comes up just fine (without logging in). Is there something else i need to do to get this to come up? Any help greatly appreciated. I configured these two forms by right clicking web.xml and choosing properties then under the proper menu I picked form based.
    Thanks
    troy

    Hi,
    You'll want to add something similar to the following in your web.xml file:
      <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
          <form-login-page>Login.jsp</form-login-page>
          <form-error-page>LoginError.jsp</form-error-page>
        </form-login-config>
      </login-config>

  • Problem with X -config (freeze + black screen)

    Hi, everyone. I'm a newbie in linux, so dont punch me .
    I was following the beginners guide & after X -config /root/xorg.conf.new got freeze + blackscreen (alt + ctrl + bckspc or alt + Fn dont works).
    I have created /X11/xorg.conf & can start X server, but X -config /root/xorg.conf.new or /etc/X11/xorg.conf gives black screen (with signal).
    My VGA is HD3850.
    Any ideas how i can fix it?
    Here is my xorg.conf
    Section "ServerFlags"
    Option "AllowEmptyInput" "off"
    EndSection
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Razer" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "InputDevice"
    Identifier "Razer"
    Driver "mouse"
    Option "Name" "Razer Lachesis Optical Mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "Buttons" "9"
    Option "Resolution" "1250"
    Option "ZAxisMapping" "4 5"
    Option "ButtonMapping" "1 2 3 6 7 8 9"
    Option "Emulate3Buttons" "true"
    Option "SampleRate" "1000"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "microsoftmult"
    Option "Xkblayout" "us,ru"
    EndSection
    Section "Module"
    Load "glx"
    Load "dri"
    Load "drm"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    HorizSync 31.0 - 81.0
    VertRefresh 56.0 - 75.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "radeonhd"
    VendorName "ATI Technologies Inc"
    BoardName "RV670PRO [Radeon HD 3850]"
    Option "AccelMethod" "exa"
    Option "DRI" "on"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1280x1024" "1024x768" "800x600"
    EndSubSection
    EndSection
    Section "Extensions"
    Option "RENDER" "enable"
    Option "DAMAGE" "enable"
    Option "Composite" "enable"
    EndSection
    /var/log/Xorg.0.log contain no errors or warnings (except ACPI & font paths)
    Thx 4 help.
    P.S Can add log if it helps
    P.P.S Its one of my xorg.conf files, also i've used variant 4 xf86-video-ati
    Last edited by InsaneDevice (2010-02-27 06:32:32)

    My english is fine (i read well at least)  .
    At first message i said
    I have created /X11/xorg.conf & can start X server...
    I =can= start x server --- its mean that startx works fine & i can see 3 windows with clock . And if you mean that i dont want use x -config, then for what all this manipulations with reinstalling was?
    Besides "Xorg -configure" & "x -config /etc/xorg.conf" are different things for me, because one create the basic config, while second test this config. So i thought you mean that i have to create it from scratch without using any commands
    ... Damn.. i just have read english & russian beginner guides. Russian says: "after installing xorg u have to create conf file, using Xorg -configure, then test it with command X -config /root/xorg.conf.new & IF IT WORK - copy to /etc/X11/xorg.conf. I didnt find that in english version .
    Well, thank you for your patient & help . I think, that problem is solved (i think - say me if i wrong)
    But i still want to know, why x -config /etc/xorg.conf give me that black screen + freeze, so if anybody knows - plz, message me.
    Last edited by InsaneDevice (2010-03-01 07:36:42)

Maybe you are looking for

  • ITunes Won't Recognize My Music Library on Ext Hard Drive

    Hey All, Just got a iBook G4 and I'm trying to access my music on iTunes, but I can't. Is there a trick I'm missing here? I set the folder location to the Ext Drive, but still nothing. Everything work with out issue on my old iBook G3. Any suggestion

  • My Skype won't load.

    My skype just won't load, I click on it and it comes up and just says Skype and a picture of Clouds and Rainbows and what-not. On my task bar it shows the skype icon with a Offline mark next to it. I'm using windows and my Internet speed is fine.

  • Using Xcontrols in the user defined express vi's

    Hi All,                         I am actually using a Xcontrol inside a user defined express that we develop. The xcontrol is working as expected when i use it in the standard vis. But when i use it in the express, simply it crashes the LabVIEW and i

  • Recursive Sub-query Factoring... bug? or my own personal ignorance?

    I was trying to create a list of all dates in the current month using a recursive sub-query factor. (Oracle 11.2) I know how to do this by other methods; the question is, what's going on with this "WITH" example? Here's my attempt at generating the l

  • Informatica - Workflow Logs: How to remove INFO "VAR_27014 [Warning!...

    Hi, this is my first post here, so plz excuse any mistakes :) I'm using Informatica PowerCenter 7.1.4. Every time there is a new workflow log created, for each session, there is set of parameters logged with the name and value pairs. INFO : TM_6292 :