Realm and NullPointerException

I am attempting to create a custom realm following the JDBC Realm as an example.
I have done the following:
-update the login.config file to include my new realm
-added the realm under the security tab
-set the new realm as default
-compiled my realm classes into a jar file and added that to my classpath
When I attempt to start the server, I still get the following error:
WARNING ( 2348): SEC1100: Disabled realm [PPSO] due to errors.
WARNING ( 2348): SEC1000: Caught exception.
com.sun.enterprise.security.auth.realm.BadRealmException: java.lang.NullPointerException
     at com.sun.enterprise.security.auth.realm.Realm.doInstantiate(Realm.java:350)
     at com.sun.enterprise.security.auth.realm.Realm.instantiate(Realm.java:284)
     at com.iplanet.ias.security.RealmConfig.createRealms(RealmConfig.java:95)
     at com.sun.enterprise.security.RealmManager.init(RealmManager.java:91)
     at com.sun.enterprise.server.J2EEServer.startAuthenticationService(J2EEServer.java:1211)
     at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:391)
     at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:1415)
     at com.iplanet.ias.server.ApplicationServer.onInitialization(ApplicationServer.java:212)
     at com.iplanet.ias.server.J2EERunner.confPreInit(J2EERunner.java:114)
Any suggestions will be greatly appreciated.
TIA
Matt

never mind - figured it out.
To my custom realm, I needed to add the
'jaas-context' property.

Similar Messages

  • URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem

    I have tried the Security Realm of Tomcat. Since I do not have
    an LDAP server, I decided to use the Tomcat-users.xml file in
    Tomcat\conf directory.
    I added the following lines of code in the web.xml file.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>webviewer</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
    </login-config>
    The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
    <tomcat-users>
    <user name="test" password="password" roles="webviewer" />
    </tomcat-users>
    So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
    But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
    Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
    URGENT HELP NEEDED ... I need to get back to my client on this.
    Help would be v. much appreciated.

    In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
    Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
    Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept).

  • [Fwd: Re: rdbms realm and connection pool]

    Hi,
    One reason why I would like to use the connection pool for the RDBMS
    realm is because there is the retry machanism built into the connection
    pool. With this retry, I don't need to re-start WebLogic if the DB
    server is somehow re-started. With the current implementation, all the
    connections maintained by the realm will become invalid if the DB server
    has been restarted independently.
    -------- Original Message --------
    Subject: Re: rdbms realm and connection pool
    Date: Wed, 27 Sep 2000 09:32:47 +0100
    From: "Terry" <[email protected]>
    Reply-To: "Terry" <[email protected]>
    Organization: BEA SYSTEMS Inc
    Newsgroups: weblogic.developer.interest.security
    References: <[email protected]>
    I believe not- the realm restricts access to connection pools to those
    who
    are allowed it, so if the realm needs the connection pool to start up,
    and
    you can't open the connection pool without the realm then you have a bit
    of
    a no-chicken and no-egg situation, which is I believe one of the reasons
    why
    there is no use of connection pools, ejbs, jndi, servlets etc. in the
    realm
    (along with other reasons, like why would it be provided with a servlet)
    The delegate pool acts somewhat similarly to a connection pool, and can
    even
    use the same database, so I'm not sure what the advantage would be
    Terry
    Nirmala devi <[email protected]> wrote in message
    news:[email protected]..
    >
    I think the rdbms realm uses different connection as it need to be setbefore
    the connection pool for Database.Is there any that i can point my rdbmsrealm to use
    the connection pool for Database instead
    Thanks in advance
    Nirmala

    I believe not- the realm restricts access to connection pools to those who
    are allowed it, so if the realm needs the connection pool to start up, and
    you can't open the connection pool without the realm then you have a bit of
    a no-chicken and no-egg situation, which is I believe one of the reasons why
    there is no use of connection pools, ejbs, jndi, servlets etc. in the realm
    (along with other reasons, like why would it be provided with a servlet)
    The delegate pool acts somewhat similarly to a connection pool, and can even
    use the same database, so I'm not sure what the advantage would be
    Terry
    Nirmala devi <[email protected]> wrote in message
    news:[email protected]..
    >
    I think the rdbms realm uses different connection as it need to be setbefore
    the connection pool for Database.Is there any that i can point my rdbmsrealm to use
    the connection pool for Database instead
    Thanks in advance
    Nirmala

  • Linear linked list and NullPointerException

    its a cd archive.
    the CDnode
    public class CDnode {
        public CD data;
        public CDnode neste;
    }The LinkedList class
    public class LinkedList {
        int length;   
        public CDnode firstNode;
        /** Creates a new instance of nesteedList */
        public LinkedList() {
            firstNode = new CDnode();
            length = 0;
        public int size(){
            return length;
        public void insertNewLastNode(CD data){
            CDnode N = new CDnode();
            N.data = data;
            N.neste = null;
            if(firstNode==null){
                firstNode = N;
            }else{
                CDnode P = firstNode;
                while(P.neste != null){
                    P = P.neste;
                P.neste = N;
            length++;
    }The cdarchive class
    import java.io.*;
    import java.util.*;
    * CDlengde.java
    * Created on 24. januar 2003, 17:54
    * @author  Standard
    public class CDArkiv2{
        //Klassevariablar
        LinkedList L = new LinkedList();
        static int lengde = 0;
        private CDnode forste;
        private final static char FELT_SLUTT_TEGN = '#';
        public CDArkiv2(){
        public void lesCdArkiv(String fil){
            lengde = 0;
            try{
                FileInputStream innFil = new FileInputStream(fil);
                DataInputStream innStrom = new DataInputStream(innFil);
                int anCD = innStrom.readInt();           
                for(int i = 1; i <= (anCD); i++){
                    CD nyCD = new CD();               
                    nyCD.lesCDData(innStrom);
                    leggTilCD(nyCD);
                innStrom.close();
            catch(IOException unntak){
                System.out.println("Feil ved unntak: " + unntak);           
        public void leggTilCD(CD ny){                     
            L.insertNewLastNode(ny);
            lengde++;       
        public void lagreCDArkiv(String fil){
            try{
                FileOutputStream utFilStrom = new FileOutputStream(fil, false);
                DataOutputStream utStrom = new DataOutputStream(utFilStrom);
                utStrom.writeInt(lengde);           
                for(int i = 0; i <= lengde; i++){
                    forste.data.skrivCDData(utStrom);
                utStrom.close();
            }catch(IOException unntak){
                System.out.println("Feil ved Unntak: " + unntak);
            }catch(NullPointerException u){
                System.out.println("Feil ved unntak: " + u);
        public void leggInnCD(){
            CD r = new CD();
            r.lesCD();       
            leggTilCD(r);
        public void slettCD(CD fjern){
        public void sokTittel(String sok){
            StringBuffer delstreng = new StringBuffer();
            StringBuffer temp = new StringBuffer();
            delstreng.append(sok);
            int w = 0;
            System.out.println("Du s�ker etter strengen " + sok + " i Cd titlane.");
            for(int i = 0; i <= lengde; i++){
                temp.append(forste.data.sTittel);
                boolean fins = sjekkStreng(delstreng, temp);
                if(fins == true){
                   forste.data.visCD();
                    w = 1;
                temp = new StringBuffer("");           
            if(w == 0){
                System.out.println("Det finst ingen cdar med den strengen.");
        public boolean sjekkStreng(StringBuffer sok, StringBuffer tittel){       
            int a = 0;
            boolean ermed = false;
            int lengd = tittel.length();
            int soklengd = sok.length();
            for (int i = 0;i < lengd; i++){
                if(tittel.charAt(i) == sok.charAt(a)){
                    a++;
                    if(soklengd == a){
                        ermed = true;
                        i = lengd;
            return ermed;
        public void skrivUtArtist(String artist){
            while(!(forste.neste == null)){           
                boolean erlik = artist.equals(forste.data.sArtist);           
                if(erlik == true){
                   forste.data.visCD();
                forste = forste.neste;
        public void skrivStat(List sj){
            int[] temp = new int[20];       
            System.out.println("\nDet er " + L.size() + " cdar i lengdeet\n\nFordelt i sjangrar:\n");
            while(L.firstNode.neste != null){           
                int e = L.firstNode.data.iSjanger;
                temp[e] += 1;
                L.firstNode = L.firstNode.neste;
            for(int i = 0; i <= 11; i++){
                if(temp[0] == 0){
                }else{
                System.out.print(temp);
    System.out.print(" " + sj.get(i) + " \n");
    When I try to access data in the cd list I get an nullpointereception error, like assiging int e = L.firstNode.data.iSjanger; Or when I try to save the list, I get a nullpointerexception, I seem to be able to create cd in the list but when I try to access the data its not there.

    It is an assignment I cant use the premade LinkedList package.
    While that did solve it, I can now add CDs to my archive but as I have found out when i try using other methods(like write to disk lagreCdArkiv() ) I get and nullpointerexception. I tried letting it rest and try another part of my assignment which included another linekd list. Same problem I can create a Hobby in a Hobbylist but when I try to compare and work with the data I get nullpointerexception.
    I must be doing something consistently wrong.
    Let me supply some more classes for comparison.
    public class Hobby {
        /** Namn p� hobbyen
        public String hobbyNamn;
        /** Noden i hobby
        public Hobby nesteHobby;
        /** Lager en ny hobby
         * @param hobby Namn p� hobbyen
        public Hobby(String hobby) {
            hobbyNamn = hobby;
            nesteHobby = null;
        /** lagar ein ny instans av hobby
        public Hobby(){
            hobbyNamn = "";
            nesteHobby = null;
    * nesteHobbyedList.java
    * Created on 5. februar 2003, 01:15
    /** klassen Hobbylist som inneheld metodar for manipulering av kjeda liste
    * @author Pote
    public class HobbyList {
        /** lengda p� lista
        int length;   
        /** den f�rste noden i lista
        Hobby firstNode;
        /** Konstrukt�r
        public HobbyList() {
            firstNode = null;
            length = 0;
        /** returnerer st�rrelsen til lista
         * @return returnener st�rrelsen
        public int size(){
            return length;
        /** Setter inn node sist i lista
         * @param data hobby objekt
        public void insertNewLastNode(Hobby data){
            Hobby N = new Hobby();
            N = data;
            N.nesteHobby = null;
            if(firstNode==null){
                firstNode = N;
            }else{
                Hobby P = firstNode;
                while(P.nesteHobby != null){
                    P = P.nesteHobby;
                P.nesteHobby = N;
            length++;
        /** set inn ein node alfabetisk
         * @param data hobby objekt
        public void insertAlfa(String namn){//insert  a hobby into the alfabetically
            if(firstNode != null){
            Hobby N = new Hobby(namn);
            N.nesteHobby = null;
            Hobby A = new Hobby();
            A = firstNode;
            Hobby G = new Hobby();
            G = firstNode;
            int o = 0;       
            while(A.nesteHobby != null){
            int i = N.hobbyNamn.compareTo(A.hobbyNamn);//compare the two hobby names
            if(o == 0){
            }else{
                G = G.nesteHobby;
            if(i < 0){
                if(o == 0){//if i < 0 N name coems ebfore A.name  and I insert N before A  G is my way of keeping track of the node before A and then inserting N between
                    N.nesteHobby = firstNode;
                }else{
                    G.nesteHobby = N;
                    N.nesteHobby = A;
                return;
            if(i == 0){
                System.out.println(N.hobbyNamn + " er registrert.");
                return;
            if(i < 0){           
                N.nesteHobby = A.nesteHobby;
                A.nesteHobby = N;
            A = A.nesteHobby;
            o = 1;
            length++;
        }else{
            Hobby N = new Hobby(namn);//if hobbylist is empty, make new hobby with parameter namn and set first
            firstNode = N;
    * Medlem.java
    * Created on 5. februar 2003, 21:34
    /** Klasse medlem som inneheld data om ein medlem.
    * Namn p� medlem, ei kjeda sortert liste, antal hobbyar som
    * vedkommande har og eit indeks nr som angir plass til eit
    * anna medlem med same interesser.
    * @author Pote
    public class Medlem {
        /** Namn p� medlem
        private String namn;
        /** int som held oversikt kor mange hobbyar medlemmet har, gjer samanlikining enklare
        public int antalHobbyar;
        /** angir indeks nr til medlem med like hobbyar ellers -1
        private int statusIndeks;
        /** Lagar ein Hobby node
        public Hobby hobbyListe;
        /** Lagar ei hobbyliste som inneheld metodar for liste manipulering
        HobbyList L = new HobbyList();
        /**Nr til medlemmet i datakontakt arrayen
        private int nr;
        /** Lager ein ny medlem med argumentet namn som er String
         * @param na Namn p� medlemmet
        public Medlem(String na) {
            namn = na;       
         /** Sett inn eit hobbynamn i lista til medlemmet i alfabetisk rekkef�lge
          * @param hobby Namn p� hobbyen
        public void insettHobbynamn(String hobby){       
            L.insertAlfa(hobby);
            antalHobbyar++;
        /** Sjekker om 2 medlemmer har same interesser
         * @param medlem2 Det medlemmet me skal sjekka mot
         * @return returnerer indeks nummeret p� medlemmet som passsar ellers
         * s� returneres -1
       public int passer2Sammen(Medlem medlem2){
            boolean lik = false;
            if(antalHobbyar == medlem2.antalHobbyar){//check if the number of hobbies match in case not terminate
                while(hobbyListe.nesteHobby != null){
                   if(L.firstNode.hobbyNamn == medlem2.hobbyListe.hobbyNamn){
                       hobbyListe.nesteHobby = medlem2.hobbyListe.nesteHobby;//if the hobbyname match lik(similar) is set to true for now
                       lik = true;
                   }else{
                       lik = false;//If it dont match  thne lik = false
                if(lik == false){
                    return -1;
                }else{
                    statusIndeks = medlem2.nr;//a way of making the 2 mebers referign to each other will be used in another class
                    medlem2.statusIndeks = nr;
                    return medlem2.statusIndeks;
            }else{
                return -1;
    import java.util.*;
    * Test.java
    * Created on 9. februar 2003, 18:02
    * @author  Standard
    public class Test {
        /** Creates a new instance of Test */
        public Test() {
         * @param args the command line arguments
        public static void main(String[] args) {
            Medlem a = new Medlem("K�re");
            Medlem b = new Medlem("Kari");
            a.insettHobbynamn("Aking");
            a.insettHobbynamn("AAking");
            b.insettHobbynamn("Aking");
            b.insettHobbynamn("AAking");
            int i = b.passer2Sammen(a);
            System.out.println(i);
    }

  • Creating users in Caching Realm and not FileRealm

    Hey,I was wondering if there was anyway a user ( whose username password) i retrieve from a database can be created only in the caching realm and the createUser not propogate to the fileRealm..caz when the server is stopped, i want all the cached user entries to be deleted..and if the createUser propogates to the fileRealm, they will become persistent..Thanx for help in advance,Tapan

    Step 1) (As Andreas explained): create an extra realm; navigate to the your.servername/oiddas page. Select the third tab "Directory". Notice an extra picture appears in the upper right corner, called "Realms". Click that, and create the realm.
    Step 2) Reconfigure your SSO server to allow for the extra realm
    Step 3) Configure Application Server Hosting
    Step 4) Add the subscriber
    Step 5) Add user(s) - note the extra option "Realm" in the basic data part
    It's a lot more complicated than rpelies on this forum allows; the documentation describes it quite well - note that the enblhstg.csh misses the "-mode sso" switch (at least for 10.1.2 on HP-UX)
    Bottom line: create users is simply the Create button on the users page - you shoud have the option to select the default realm there, not on the realm pages

  • Using RDBMSRealm as backup realm and filerealm as primary realm

    I want to use filerealm as primary realm and RDBMSRealm as backup realm in
    my custom realm. How can I do that?
    Or how can I get access to filerealm from RDBMSRealm so that I can call
    filerealm.getUser() before I try to get it from database.
    Thank you.
    Tero Järvinen.

    What I've done does set the RDBMSRealm as the default realm.
    What had me worried and doubting this was that if there is an authentication
    problem, the console still says that there was a problem in "realm
    weblogic" -- a little misleading.
    "fnord" <[email protected]> wrote in message
    news:[email protected]..
    >
    I could have sworn that setting the RealmClass in weblogic.properties set
    the default realm for the server (or for the cluster in the
    weblogic.properties in mycluster), as this seemed to be how it worked with
    our test cases....
    Now that I've set up a webapp on its own and am trying to test our beansin
    it, it appears that the beans/webapp are trying to use the weblogic realm.
    Here's the error:
    principal: 1234
    javax.naming.AuthenticationException. Root exception is
    java.lang.SecurityException:
    Authentication for user 1234 denied in realm weblogic
    at weblogic.security.acl.Realm.authenticate(Realm.java:183)
    Here's what I have in weblogic.properties:
    weblogic.security.realmClass=examples.security.rdbmsrealm.RDBMSRealm
    Should this set the RDBMSRealm as the default realm, or do I have to domore
    to set the RDBMSRealm as the default for the webapp?
    thanks,
    John Stotler

  • Setting realm and kdc for kerberos authentication

    Hi there,
    I was wondering if it's possible to set the default realm and kdc from within the code or do they have to be specified when starting the program? I know that they can be specified in a configuration file, but then the config file must be specified every time the program is run. If I can't set the realm and kdc, can I at least set the config file in my code?
    Thanks in advance

    For example, to start up my code that uses JAAS to authenticate against kerberos, I have to type:
    java -Djava.security.auth.login.config=sampleConfig.conf MyClass
    I need to have a servlet do the authentication, so how can I tell my servlet to use the specified configuration file, since it won't be launched from the command line.

  • Configuring JDBC Realms and session mangement

    Hello All,
    I want to provide authentication to my application.
    Eg.
    There are users in "User" table in my Java DB.
    There is home page having login form and other features.
    When the user enter his credentials in the login form, his credentials will be checked against the "User" table. iIf the credentials are right then, the next page containing his account information and shopping cart will be displayed and his session ID will be maintained. This session id will be used for other operations performed by this user.
    I have achieved the above task easliy with my normal JDBC and JSP,Servlet.
    I am learning Securities, and i want to accomplish this task using JDBC Realm with Netbeans IDE. Means Credentials will be checked, Session will be maintined, session id will be tracked and user page(account information and shoping cart) will be displyed.
    How to achieve this?
    Please help me out with the codes or example.
    Please provide me the link if any article is mentioned for the same.
    Thans & Regards,
    Gaurav Dighe

    ok thanks....
    but thats what i exacltly need. How to configure Servlet Container and Glassfish server to achieve the task. Second thing is that by doing so i want to achieve the session management. To be precise i want to configure by glassfish server and application for JDBC Realm and then achieve Session management/tracking.
    I there any way to achieve this. I am new to Security.
    Please help..
    Edited by: user8687589 on Jan 27, 2011 11:33 AM

  • Fatal Error and NullPointerException in Oracle XML Transformer

    Hi,
    I'm building a dom tree in memory with oracle xml parser. Then I transform the dom document into a string to send xml to the client. But I get an fatal error on calling transform.
    I don't know what could be the problem, because apache and weblogic parser works, an when I create a dom document with org.w3c.dom elements and statements then the xml document can't be invalid,
    because the document implementation would throw an exception if wrong nodes or something like this should be inserted...
    I'm using oracle xml parser 9.2.0.4 for java, bea weblogic 7.0 and win2k.
    Thanks for help.
    XSL-1900: (Fatal Error) An internal error condition occurred.
    javax.xml.transform.TransformerException: XSL-1900: (Fatal Error) An internal error condition occurred.
    at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:681)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:309)
    java.lang.NullPointerException
    at oracle.xml.parser.v2.XSLSAXPrintDriver.printAttributes(XSLSAXPrintDriver.java:394)
    at oracle.xml.parser.v2.XSLSAXPrintDriver.startElement(XSLSAXPrintDriver.java:322)
    at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:993)
    at oracle.xml.parser.v2.XMLNode.reportChildSAXEvents(XMLNode.java:1014)
    at oracle.xml.parser.v2.XMLDocument.reportSAXEvents(XMLDocument.java:942)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:294)

    Hi,
    I'm having that problem to:
    I'm getting the following exception
    javax.xml.transform.TransformerException: XSL-1900: (Fatal Error) An internal error condition occurred.
         at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:723)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:340)
         at com.ac.mqif.control.Handler.handleLong(Handler.java:835)
         at com.ac.mqif.control.Handler.run(Handler.java:951)
    Caused by: java.lang.NullPointerException
         at oracle.xml.parser.v2.XPathStep.getSelectedNodes(XPathStep.java:380)
         at oracle.xml.parser.v2.PathExpr.getValue(XSLNodeSetExpr.java:483)
         at oracle.xml.parser.v2.XSLExprBase.getStringValue(XSLExprBase.java:363)
         at oracle.xml.parser.v2.XSLValueOf.processAction(XSLValueOf.java:99)
         at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:367)
         at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:199)
         at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:214)
         at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:207)
         at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:207)
         at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:120)
         at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:367)
         at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:199)
         at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:471)
         at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:448)
         at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:246)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:327)
         ... 2 more
    when using a stylesheet which has a template match condition of more than 1600 characters.
    The second thing is that the Oracle XML transformer is
    NOT threadsafe. I was using several threads using different templates to transform an incoming XML simultaneously but was ALWAYS getting internal XSL errors
    and Nullpointer Exceptions. I solved this by synchronizing the transformation, but I don't like it.
    I'm using the following versions on Windows XP:
    Oracle IDE: 9.0.3.10.35
    Business Components Version: 9.0.3.10.7
    SCM Support Version: 9.0.3.9.4
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Thanx,
    Ellcrys

  • Using Oracle Users in Realms and DataSource.getConnection

    Is it possible to authenticate using an Oracle User via JAASRealm and also retrieve connections specific to that user from a DataSource?
    I currently have an application which doesn't use either, but rather sets up a OracleDataSource. So basically I just want to allow the container to administer both the authentication and data source setup, while still allowing the getConnection(user,password):
    CODE
    ocpds = new OracleConnectionPoolDataSource();
    ocpds.setURL(connectionString);
    ocpds.setConnectionProperties(props);
    ods = new OracleDataSource();
    ods.setURL(connectionString);
    ods.setConnectionCachingEnabled(true);
    ods.setConnectionProperties(props);
    // Pool and Cache
    Properties poolProps = new Properties();
    poolProps.setProperty("AbandonedConnectionTimeout", "60");
    poolProps.setProperty("InactivityTimeout", "5");
    poolProps.setProperty("TimeToLiveTimeout", "60");
    poolProps.setProperty("ConnectionWaitTimeout", "60");
    ods.setConnectionCacheProperties(poolProps);
    ods.setConnectionProperties(props);
    Util.logln("Connection Cache Properties");
    cache = OracleConnectionCacheManager.getConnectionCacheManagerInstance();
    cache.createCache(cacheName, ods, poolProps);
    cache.setConnectionPoolDataSource(cacheName, ocpds);
    ........later in the BatCave (JSP or a servlet).....
    conn = (OracleConnection) ods.getConnection(username, password);
    ENDCODE
    This section from OAS Containers for J2EE Services Guide worries me:
    (from: http://download-east.oracle.com/docs/cd/B14099_19/web.1012/b14012/datasrc.htm#sthref572 )
    Using Different User Names for Two Connections to a Single Data Source
    When you retrieve a connection from a DataSource object with a user name and password, this user name and password are used on all subsequent connection retrievals within the same transaction. This is true for all data source types.
    For example, suppose an application retrieves a connection from the jdbc/OracleCMTDS1 data source with the scott user name. When the application retrieves a second connection from the same data source with a different user name, such as adams, the second user name (adams) is ignored. Instead, the original user name (scott) is used.
    Thanks for reading all of this, and I appreciate any help!

    Update:
    I'm still not quite sure what to do. Where I am now:
    1. I don't know how to authenticate against Oracle database users (non-ldap) via JNDI/JAAS/whatever
    2. Proxy authentication (ALTER USER...CONNECT THROUGH...) seems to be promising for using connection pools, and in addition, once realm authentication happens, I can just pass the username and piggyback on the middletier connection without knowing the password used in authentication
    3. I'm not sure if proxy addresses the issue that OAS Containers for J2EE Services Guide talks about in the original post
    4. I'd prefer not to use OID
    Again, if you have any little information, I'd really like to hear it.

  • ImageIcon can not be drawn and NullPointerException was thrown

    I have a dialog that displays list of items whose cell renderer is customized using ImageIcons. Permissions have been granted properly, I think. The dialog can be shown but it can not draw it's children element correctly. And java.lang.NullPointerException was thrown:
    java.lang.NullPointerException
            at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
            at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
            at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
            at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
            at javax.swing.ImageIcon.paintIcon(Unknown Source)
            at javax.swing.plaf.basic.BasicToggleButtonUI.paintIcon(Unknown Source)
            at javax.swing.plaf.basic.BasicToggleButtonUI.paint(Unknown Source)
            at javax.swing.plaf.ComponentUI.update(Unknown Source)
            at javax.swing.JComponent.paintComponent(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
            at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
            at javax.swing.JComponent._paintImmediately(Unknown Source)
            at javax.swing.JComponent.paintImmediately(Unknown Source)
            at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
            at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
    n Source)
            at java.awt.event.InvocationEvent.dispatch(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.run(Unknown Source)The same app. can be run without problem in normal environment.(comp. in secure mode). It would be very nice if u can give me some advices about that.
    (Possibly I have not understanden any important aspects about JSE in this field.)
    Thanks!

    Done. I should have read through the usage of Icons in Java Tutorial first. If anybody has this similar problem, that is a good source for clearing.

  • REALM and WL6

    PS: Here is the "ppsldaprealm.properties" and the
    "weblogic.properties" files:
    ***** ppsldaprealm.properties ****************************************
    # Properties for the LDAP realm used for user authentication.
    com.nortel.pps.api.ldaprealm.factory=\
         com.sun.jndi.ldap.LdapCtxFactory
    com.nortel.pps.api.ldaprealm.authentication=\
         simple
    com.nortel.pps.api.ldaprealm.principal=\
         cn=dmanager
    com.nortel.pps.api.ldaprealm.credential=\
         dmanager
    com.nortel.pps.api.ldaprealm.root=\
         o=ISPServer Services Inc., c=US
    # Properties for the LDAP directory
    com.nortel.pps.api.directory.hostname=\
         47.128.208.226
    com.nortel.pps.api.directory.port=\
         889
    # Properties for the INA database
    com.nortel.pps.api.database.hostname=\
         47.128.208.226
    com.nortel.pps.api.database.port=\
         80
    ***** weblogic.properties ****************************************
    # CORE SECURITY-RELATED PROPERTIES
    # Read important information about security at:
    # http://www.weblogic.com/docs51/admindocs/properties.html
    # REQUIRED: The system password MUST be set in order to start the
    # WebLogic Server. This password is case-sensitive, at least 8
    characters.
    # The username for the privileged user is ALWAYS "system".
    # This username and password also includes httpd access (see
    # HTTPD properties below).
    weblogic.security.realmClass=\
         com.nortel.pps.api.util.ldap.LdapRealm
    # ADMINISTRATOR PROPERTIES
    weblogic.administrator.name=Preside Policy Services
    weblogic.httpd.session.cookie.name=PresidePolicyServices
    # PRESIDE POLICY SERVICES EJB PROPERTIES
    # CLUSTER USERS: Note that ALL EJB deployment should be done in the
    # per-cluster properties file ONLY.
    # Deploys EJBeans.
    weblogic.ejb.deploy=\
         EJBs/ppsejb.jar
    weblogic.system.nativeIO.enable=false
    # DocumentRoot configuration
    # The documentRoot is by default set to this directory; change
    # as desired. FileServlet, SSIServlet, PageCompileServlet
    # and JSPServlet use it.
    weblogic.httpd.documentRoot=public_html/
    # Servlet reload properties
    # Put servlets and classes they depend on below this directory to take
    # advantage of dynamic reloading. (WebLogic classes don't belong
    # here, and NO directories can be both in your system/environment
    # CLASSPATH and in the servlet classpath.) WebLogic checks for
    modified
    # servlets every reloadCheckSecs and reloads servlets and classes they
    # depend on as needed. If reloadCheckSecs is set to -1, classes will
    # never be reloaded.
    weblogic.httpd.servlet.classpath=\
         webgui/ppswebgui.jar
    weblogic.httpd.servlet.reloadCheckSecs=1
    # WEBLOGIC JSP PROPERTIES
    # Sets up automatic page compilation for JSP. Adjust init args for
    # directory locations and uncomment to use.
    weblogic.httpd.register.*.jsp=\
    weblogic.servlet.JSPServlet
    weblogic.httpd.initArgs.*.jsp=\
    pageCheckSeconds=-1,\
    compileCommand=D:/javasoft/jdk1.3/bin/javac,\
    workingDir=public_html,\
    verbose=true
    # PRESIDE POLICY SERVICES SERVLET REGISTRATIONS
    # Set ACLs for these as desired
    weblogic.httpd.register.PPSFrontComponent=\
         com.nortel.pps.webgui.base.FrontComponent

    Alain,
    It looks like you're using a custom realm which needs
    to be ported to WLS 6.0. Please consult the
    WLS 6.0 documentation on how to implement a custom realm.
    One trick you could try is:
    1) create a custom realm via the console
    2) set the custom realm's realmclassname to the
    classname of your custom realm (get this from
    your old weblogic.properties file)
    3) use the console to set this custom realm as
    the active realm - that is:
    a) make a caching realm
    b) make the caching realm use this custom realm
    c) make the realm use the caching realm
    4) copy your custom realm's properties file to the
    directory you boot WLS from in each of your servers
    (like you had to do in WLS 5.1)
    5) Boot wls (making sure your custom realm is in
    the classpath) - hopefully everything will just work.
    If not, you'll need to port your custom realm
    (which you should do anyway)
    -Tom Moreau

  • ParticipaneFeed and NullPointerException

    Hi,
    I am trying to test LDAP integration in StandAlone Enterpricese server. I have added the following line to webconsole.properties:
    fuego.webconsole.userFeed.enabled=true
    When I go to the BPM Proess Administrator and Organizational Settings/Enable Participant Feed, I get the NullPointerException.
    When I return to Organizational settings after this, I See the Participant Feed Settings, but can not "Save" them, because I get another null pointer exceptions.
    I am attaching the stack trace bellow.
    Any ideas what is going wrong?
    RUNTIME:javax.faces.el.EvaluationException: java.lang.NullPointerException
    RUNTIME:     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
    RUNTIME:     at javax.faces.component.UIInput.broadcast(UIInput.java:492)
    RUNTIME:     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
    RUNTIME:     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
    RUNTIME:     at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
    RUNTIME:     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    RUNTIME:     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    RUNTIME:     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at fuego.servlet.multipart.BaseMultipartFilter.doFilter(BaseMultipartFilter.java:63)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at fuego.web.CharsetFilter.doFilter(CharsetFilter.java:48)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    RUNTIME:     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    RUNTIME:     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    RUNTIME:     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    RUNTIME:     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    RUNTIME:     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    RUNTIME:     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    RUNTIME:     at java.lang.Thread.run(Thread.java:595)
    RUNTIME:Caused by: java.lang.NullPointerException
    RUNTIME:     at fuego.webconsole.model.JSFParticipantFeed.typeChanged(JSFParticipantFeed.java:180)
    RUNTIME:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    RUNTIME:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    RUNTIME:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    RUNTIME:     at java.lang.reflect.Method.invoke(Method.java:585)
    RUNTIME:     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    RUNTIME:     ... 37 more
    RUNTIME:6.2.2007 9:40:28 com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
    RUNTIME:SEVERE: java.lang.NullPointerException
    RUNTIME:javax.faces.el.EvaluationException: java.lang.NullPointerException
    RUNTIME:     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
    RUNTIME:     at javax.faces.component.UIInput.broadcast(UIInput.java:492)
    RUNTIME:     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
    RUNTIME:     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
    RUNTIME:     at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
    RUNTIME:     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    RUNTIME:     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    RUNTIME:     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at fuego.servlet.multipart.BaseMultipartFilter.doFilter(BaseMultipartFilter.java:63)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at fuego.web.CharsetFilter.doFilter(CharsetFilter.java:48)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    RUNTIME:     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    RUNTIME:     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    RUNTIME:     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    RUNTIME:     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    RUNTIME:     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    RUNTIME:     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    RUNTIME:     at java.lang.Thread.run(Thread.java:595)
    RUNTIME:Caused by: java.lang.NullPointerException
    RUNTIME:     at fuego.webconsole.model.JSFParticipantFeed.typeChanged(JSFParticipantFeed.java:180)
    RUNTIME:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    RUNTIME:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    RUNTIME:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    RUNTIME:     at java.lang.reflect.Method.invoke(Method.java:585)
    RUNTIME:     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    RUNTIME:     ... 37 more
    RUNTIME:6.2.2007 9:40:33 com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
    RUNTIME:SEVERE: java.lang.NullPointerException
    RUNTIME:javax.faces.el.EvaluationException: java.lang.NullPointerException
    RUNTIME:     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
    RUNTIME:     at javax.faces.component.UIInput.broadcast(UIInput.java:492)
    RUNTIME:     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
    RUNTIME:     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
    RUNTIME:     at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
    RUNTIME:     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    RUNTIME:     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    RUNTIME:     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at fuego.servlet.multipart.BaseMultipartFilter.doFilter(BaseMultipartFilter.java:63)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at fuego.web.CharsetFilter.doFilter(CharsetFilter.java:48)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    RUNTIME:     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    RUNTIME:     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    RUNTIME:     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    RUNTIME:     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    RUNTIME:     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    RUNTIME:     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    RUNTIME:     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    RUNTIME:     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    RUNTIME:     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    RUNTIME:     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    RUNTIME:     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    RUNTIME:     at java.lang.Thread.run(Thread.java:595)
    RUNTIME:Caused by: java.lang.NullPointerException
    RUNTIME:     at fuego.webconsole.model.JSFParticipantFeed.typeChanged(JSFParticipantFeed.java:180)
    RUNTIME:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    RUNTIME:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    RUNTIME:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    RUNTIME:     at java.lang.reflect.Method.invoke(Method.java:585)
    RUNTIME:     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    RUNTIME:     ... 37 more

    I am getting the same error, when I migrated the web application from Tomcat to Weblogic. It looks like it is JSF related.

  • OS X realms and internet explorer v6 and v7

    Hi,
    I have set up and configured a site that uses realms to secure a section of the site. I can use safari and firefox for os x to navigate to this page and get the authentication box to log in to the realm.
    However if i use IE 6 or 7 it just comes up with page cannot be displayed. Is it a config issue or a problem with the browser not supporting the realms?
    The password is sent in clear text and the page is not under https. I am running the web service on OS X 10.4.11 but this also happens under OS X 10.5.1. Under 10.5.1 the realm is sent encrypted under a https site.

    On inspecting the apache error logs, whenever a user tries to access the secured directory through the realm authentication the following error appears.
    moddigestapple: Request for URI /download/index.php does not contain Authorization header, referer: https://
    This is a base install xp with Sp2 and ie6. No updates installed apart from ie6. I asked someone else who has ie 7 to test the authentication. They had a fully up to date version of ie 7 and logged into the secured directory fine.
    Does anyone know if ie has had a problem in the past with apache realms. I have read that it usually sends an unauthenticated request first and then an authenticating header afterwards. Is this the issue i am seeing. If so how can i force ie to ask to authenticate?
    Hope you can help.
    Thanks.
    Message was edited by: Newbie-2-macs

  • NT Realm and Properties Files

    Hi,
    Does anyone experience similar problem. I am using NT Realm using a user already define in my NT domain. The properties File for WLS required that password be present for the system user.
    Having this when I start weblogic, I can log onto WLS with password define for the system user in NT domain as well as the funny password I put in the properties file just to fill the requirement.
    I thought that the password define in NT domain should prevail over the one define in the properties file. Is there any solution around this? Any help will be greatly appreciate?
    Thanks.
    Amen Akakpo

    hi,
    use PreferredMaxBytes=0 in the config.xml something like.
    <NTRealm Name="MyNTRealm" PreferredMaxBytes="0"
    PrimaryDomain="xyz.com"/>
    thanks
    kiran
    "Marco Righetti" <[email protected]> wrote in message
    news:3cc745f8$[email protected]..
    >
    I´m facing a problem with JVM when configured my NT Security Realm in WLS6.1 SP2.
    NT server 4 SP6a. When WLS started, I got message reporting ACCESSVIOLATION at module
    NTAPI32.DLL (outside JVM) in Function: LocalGroupEnum. After teh WLS isterminated.
    The user that start WLS has rights in Domain as part of system and tokensand he
    is member of Administrators (both Local and Domain groups)
    Does anyone know what is happening ?
    Regards
    Marco

Maybe you are looking for

  • Can you down load the new IPHONE 4.3 with our usinf Itunes

    how can I down load the new update for my Iphone 4

  • Unicode character insertion

    We changed one of the column to NVARCHAR2 (200) to support the multi language implementation. This is what our nls_database_parameter has NLS_NCHAR_CHARACTERSET,AL16UTF16 NLS_LANGUAGE,AMERICAN NLS_TERRITORY,AMERICA NLS_CHARACTERSET,US7ASCII NLS_NCHAR

  • HOW TO TURN OFF NAP TO ELIMINATE WHITE NOISE?

    RE: HOW TO TURN OFF NAP TO ELIMINATE WHITE NOISE Ive discovered that when ever I attempt to record audio in Logic pro 8 I get a constant white noise in the back ground. I've seen proevious posts regarding this and have downloaded the xcode developer

  • Bar Code  in laguage

    Hi, How to undarstand this bar code in SAPScript SE71 ? What is FT55 ,FS,FN  ? Like below code DFR:SSFMT000.ZPLFS / ^FT55,108 / ^CI0 / A0N,34,47FDShip To Party8 : ^FS / ^FT55,375 / A0N,34,47FDSupplying Site :^FS / ^FT54,504 / A0N,59,81FDHU Nos :^FS /

  • About Viewer Builder [1.3] ?

    hi all i just want ask about Viewer Builder , is that for money ??? i mean the program for only who pay to adobe or for any one to use ?and if its for free any V for windows ?? , the second thing is that i  use indesign cs5.5 with DBS tools but  when