Want to use jdk1.4 logging api with weblogic 6.0

Hi Everybody,
Can anybody help me in configuring login configuration . Actually when i change the java_home in weblogic to jdk1.4, it starts throwing security exception like this:-
java.lang.SecurityException
at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:229)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:393)
at weblogic.security.internal.ServerAuthenticate.main(ServerAuthenticate.java:76)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:167)
at weblogic.Server.main(Server.java:35)
if somebody can help in this regard,
The following links can be used to refer to login configuration
http://java.sun.com/j2se/1.4/docs/api/javax/security/auth/login/Configuration.html
Regards,
Neetika

I am not sure what you mean by 'plug-in', but it sounds to me like you want to run weblogic with 1.4.
And that probably isn't a good idea in a production system. 1.4 is still beta and there are suggestions that it still includes debugging code. And if bea hasn't certified it then you loose all support from them when running under that. This will all lead to extra time spent figuring out if the problem is in your code, in weblogic or in 1.4.

Similar Messages

  • How come logging is so hard? - JDK1.4 Logging API

    Have a small project on hand. A standalone java program trigged by unix cron job and do some data cleaning. Need to implement a very simple logger. Tried to use JDK1.4 Logging API, here's my code:
    public class MyLogManager {
         public final static String NAME = "mylog";
         public final static String LOG_FILE_NAME = "C:/my.log";
         private static Logger logger;
         static {
              try {
                   logger = Logger.getLogger(NAME);
                   Handler fh = new FileHandler(LOG_FILE_NAME);
                   fh.setFormatter(new SimpleFormatter());
                   logger.addHandler(fh);
                   logger.setLevel(Level.ALL);
              } catch (Exception e) {
                   System.out.println("Unable to initialize logger: " + e.toString());
                   System.exit(1);
         public static Logger getLogger() {
              return logger;
    and use MyLogManager.getLogger().info("message") to log message.
    It works and my.log was generated with log message. However, the problem is everytime a new job (java myprogam ...) runs, it deletes the old log file and create a new one.
    I want the message to be appended by the end of old log file. What should I do? Any help?

    Use log4j (google for it - it's on http://jakarta.apache.org).
    If log4j.jar is in your classpath, the JDK 1.4 logging framework will use it automatically. Then all you have to do is to configure a log4j.properties file in your classpath to log wherever you want it to.
    And log4j is sorta-smart about multiple programs logging to the same file.

  • Practical use of Java Logging API

    There was a recent technical tip about the Java Logging API, but after reading it I still don't understand how to use it in a real situation.
    Can anyone help me with this with a practical example?
    At the moment I have try-catch clauses that catch exceptions and print a message in a System.err log that I can consult if there's a specific problem.
    How should I be using the Logging API? I feel sure that it can help me, but can't see how.
    Thanks for any practical information.

    What if you don't want to write to system.err anymore? What if you need to write something to the windows event log? What if system.err is irrelevant (nt service), ...
    Btw, lots of examples on the JDK1.4 logging api:
    http://www.esus.com/docs/GetIndexPage.jsp?uid=265

  • Is this logging code faster than using a standard logging API like log4J

    is this logging code faster than using a standard logging API like log4J or the logging API in java 1.4
    As you can see my needs are extremely simple. write some stuff to text file and write some stuff to dos window.
    I am thinking about using this with a multi threaded app. So all the threads ~ 200 will be using this simultaneously.
    * Tracer.class logs items according to the following criteria:
    * 2 = goes to text file Crawler_log.txt
    * 1 = goes to console window because it is higher priority.
    * @author Stephen
    * @version 1.0
    * @since June 2002
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    class Tracer{
    public static void log(int traceLevel, String message, Object value)
    if(traceLevel == 1){
    System.out.println(getLogFileDate(new Date()) +" >" + message+ " value = " + value.toString()););
    }else{
    pout.write(getLogFileDate(new Date()) +" >" + message + " value = " + value.toString());
    pout.flush();
    public static void log(int traceLevel, String message )
    if(traceLevel == 1){System.out.println(message);
    }else{
    pout.write(message ) ;
    pout.flush();
    //public static accessor method
    public static Tracer getTracerInstance()
    return tracerInstance;
    private static String getLogFileDate(Date d )
    String s = df.format(d);
    String s1= s.replace(',','-');
    String s2= s1.replace(' ','-');
    String s3= s2.replace(':','.');
    System.out.println("getLogFileDate() = " + s3 ) ;
    return s3;
    //private instance
    private Tracer(){
    System.out.println("Tracer constructor works");
    df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);
    date = new java.util.Date();
    try{
    pout = new PrintWriter(new BufferedWriter(new FileWriter("Crawler_log"+getLogFileDate(new Date())+".txt", true)));
    pout.write("**************** New Log File Created "+ getLogFileDate(new Date()) +"****************");
    pout.flush();
    }catch (IOException e){
    System.out.println("**********THERE WAS A CRITICAL ERROR GETTING TRACER SINGLETON INITIALIZED. APPLICATION WILL STOP EXECUTION. ******* ");
    public static void main(String[] argz){
    System.out.println("main method starts ");
    Tracer tt = Tracer.getTracerInstance();
    System.out.println("main method successfully gets Tracer instance tt. "+ tt.toString());
    //the next method is where it fails - on pout.write() of log method. Why ?
    tt.log(1, "HIGH PRIORITY");
    System.out.println("main method ends ");
    //private static reference
    private static Tracer tracerInstance = new Tracer();
    private static Date date = null;
    private static PrintWriter pout = null;
    public static DateFormat df = null;
    }

    In general I'd guess that a small, custom thing will be faster than a large, generic thing with a lot of options. That is, unless the writer of the small program have done something stupid, og the writer of the large program have done something very smart.
    One problem with java in this respect is that it is next to impossible to judge exactly how much machine-level processing a single java statement takes. Things like JIT compilers makes it even harder.
    In the end, there is really only one way to find out: Test it.

  • I have 2 macbooks each with an account for me and one for my wife. I use one Macbook logged in with my account and my wife uses the other Macbook only loged in on her account. We both make regular time-machine back-ups each on a separate external disk

    I have 2 Macbooks each with an account for me and one for my wife. I use one Macbook logged in with my account and my wife uses the other Macbook only logged in on her account. We both make regular time-machine back-ups each on a separate external disk. Is it possible to update her account on my macbook using her external disk without overwriting my stuff on the same Macbook and vice versa?

    Time Machine does not do individual accounts. It records the complete drive. So if you were to use her TM backup on your Mac it would make your Mac just like hers. Both yours and her account on your MAC.
    Just copy the missing files over from her Mac to yours. If there are differennt programs on each then they would need to be installed on both.

  • I have just bought a macbook pro and i want to use an ext hard drive with it which i previously used on a windows computer, but when i plug it in it doesn't show up on my macbook pro, I've wiped it and just need to format it but don't know how, help

    i have just bought a macbook pro and i want to use an ext hard drive with it which i previously used on a windows computer, but when i plug it in it doesn't show up on my macbook pro, I've wiped it and just need to format it but don't know how, any help would be much appreciated

    Try the other USB port. If it still doesn't show up in Disk Utility then there may be something wrong with your Mac. Try something else in each USB port and see if it is seen. If the other thing, like a USB thumb drive, does show up in disk utiltiy then the USB ports are fine.
    Power down the system and restart with the drive connected, go to DU and see it it is seen.

  • Can I get an Ipad with wifi and cellular but no contract with a carrier in the US?  I want to use it overseas in Africa with a local SIM card and use the cellular signal for all my internet.

    Can I get an Ipad with wifi and cellular but no contract with a carrier in the US?  I want to use it overseas in Africa with a local SIM card and use the cellular signal for all my internet. 

    Yes you can.  All Ipad's are unlocked and can be used any where in the world. Buy the AT&T version which is GSM in other countries

  • TS1702 I no longer want to use the Pandora one app with automatic renewal how do I quit it so it stops charging my credit card??

    I no longer want to use the Pandora one app with automatic renewal how do I quit it so it stops charging my credit card??

    http://support.apple.com/kb/ht1918
    http://support.apple.com/kb/ts5366

  • Mail wants to use the restricted Service "Search With Google."

    This is the response/error I see when I try to do a Google search from an email message - "Mail wants to use the restricted Service “Search With Google.”"

    Interesting - I just created a new user account I named "Test", and tried "Search With Google" in Notes and it worked fine in this new account.  Without any additional change, I went back into my normal user account, and tried to use "Search with Google" on the highlighted word, and it pulled up the Google search fine as well.  No reason I can think of that these actions would have resolved the problem - e.g., either the creation of the "Test" account, or switching between this "Test" account and my normal account.  Possibly creating new account caused a cleanup of the Safari preferences to point to version 6.0.(essentially reset the default)
    Would be curious if droow007 solution works for others.  Definitely quicker than the route I went :~)

  • Get option back - "I want to use a work email account with a BlackBerry Enterprise Server"

    Hello,
    I have a Virgin Mobile USA blackberry.  When I go into the Setup Wizard - Email setup the only option I get is "I want to create or add and email address". 
    How do I get the other option that says "I want to use a work email account with a BlackBerry Enterprise Server" back?  This option was there before I activated the phone but is gone now.  No email accounts have been setup yet.
    I am trying to use this phone with a work account.  I have my Enterpise Activation Password but I have no place to enter it.
    Thanks
    Scott
    Solved!
    Go to Solution.

    Hi and Welcome to the Forums!
    Have you tried here:
    Homescreen > Options > Advanced Options > Enterprise Activation
    scott852 wrote:
     This option was there before I activated the phone but is gone now.  No email accounts have been setup yet.
    Given this, I suspect actually that your account, from your carrier, does not include BES. If the above mentioned item is not in your menus, then that would likely confirm this. I suggest you contact your carrier to ensure you have a BES-level account from them.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Want to use G4 as storage device with G5

    I have a G4 with a firewire 400 port and haven't used it since getting my G5 with 400 and 800 firewire ports. Rather then have my G4 sit around doing nothing I wanted to use it as a storage device linked to my G5. How do I do this?
    G 5 single   Mac OS X (10.3.9)   Also have a G4 not in use

    FeatherWolf-
    Greetings and welcome to the Apple boards.
    I have a G4 that I have managed to add a couple of controller cards and a total of 6 hard drives stashed inside. Because it has gig ethernet it makes a great central storage device.
    Luck-
    -DaddyPaycheck

  • I want to use 1 itunes account but with 3 different iphones 2 for the kids and one for me, what is the easiest way to do that?

    I want to use 1 itunes account but sync 3 different iphones, 2 for the kids and 1 for me.  So I would like to have different programs, songs, apps etc for each phone.  What is the easiest way to do that

    Agreed heather. Also, if you have three users on the same account how do you keep phone calls and messages from going to all three phones?

  • I want to use a customized photoshop button with my composition and have rollover effect

    I'm trying to place a photoshop button into a blank composition widget trigger. When I cut a paste the image into the trigger it looses its fuctionality and no longer switches colors during rollover. It works fine in the lightbox composition, but the problem with lightbox composition is that it does not have rollover options to display the target only click. How do I get around this problem. I want to have my own customized button with the composition effect within muse cc.

    You should check the design layout and states defined for the trigger , if the state is defined properly then it should show the rollover state, but the target container corresponding to the trigger is on the page then it would show you the active state not the rollover state.
    Thanks,
    Sanjit

  • Using StoneBeat WebCluster load balancing with WebLogic

              Hi,
              I have done some testing of WebLogic Server with my company's StoneBeat WebCluster
              distributed load balancing software. This might be one more option to consider
              as a load balancing solution for WLS. It is advanced in the sense that load balancing
              is really dynamic, there are no single-points of failure (distributed architecture)
              and there is a very good, configurable test subsystem that runs on each cluster
              node to check for overload situations, HW/OS failures, ...
              In the initial testing, the WebCluster load balancing works with WebLogic replication,
              although there are some cases that need mroe consideration (please see below).
              I had to get a patch to WLS6SP1 on NT to make WLS' multicast work when there are
              several NICs on the cluster nodes.
              However, there is one case which causes problems:
              - I have 3 cluster nodes
              - P: 2, S: 3 (SessionServlet = 1)
              - 2: offline - P: 3, S: 1 (SessionServlet = 2; WebCluster randomly selected a
              new node to handle the connection)
              - 2: online - P: 2, S: ? (SessionServlet = 3, WebCluster redistributes the load
              when a node goes online)
              - 2: offline
              - P: 3, S: 1 (__SessionServlet = 1__) NB!
              The log messages show that when node 2 comes back online it retrieves the replica
              from the secondary (node 1) and not from the primary (node 3). After a while (5-6
              minutes), node 3 tries to update the replica on node 1. Node 1 considers this
              a stale update request and removes the Primary 16... (node name) and then the
              secondary for 16... (the replicated object). Then there's a message (still on
              node 1) that it is unable to find object 16... Back on node 3 the primary for
              16... is removed.
              From the WLS6 documentation (under the discussion of using replication with external
              HW load balancing solutions) I thought that this case would have been handled:
              - it is stated that after the failure of a node, if the HWLB box sends the next
              request to a node where there is no replica, WLS is able to retrieve the replica
              - to be fair, this is what happens: when node 2 came back online, it retrieved
              the replica from node 1 (the secondary) - I suppose that there is an assumption
              that if a request arrives to a node without a replica, the primary __must have
              failed__
              Is there any way to get around this problem?
              Admittedly, WebCluster has a problem in that the stickyness of connections is
              not perfect: - when a node goes online, a connection that was correctly persisted
              (based on either source-ip or source-network address) may be moved to a new node
              since the load is redistributed. Our load balancing is very dynamic, but doesn't
              maintain a list of who is connected to which node when resistribution takes place
              Regards,
              Frank Olsen
              Stonesoft
              

    Rick,
    You may want to look at the Alteon and F5 configuration we have on edocs.
    Take a look at the following URLs for a possible solution
    http://edocs.bea.com/wls/docs61/cluster/alteon.html#591902
    http://edocs.bea.com/wls/docs61/cluster/bigip.html#591902
    Chuck Nelson
    DRE
    BEA Technical Support

  • How to resolve setPrefix() in SOAP(saaj API) with weblogic/webservices jar?

    Hi,
    I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
    My environment is as below:
    1) Weblogic 8.1 SP2 server
    2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    3) A method is exposed as web-service
    4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
         MessageFactory mf = MessageFactory.newInstance();
         SOAPMessage sm = mf.createMessage();
         SOAPPart sp = sm.getSOAPPart();
         sp.setPrefix("soapenv");
         SOAPEnvelope se = sp.getEnvelope();
         se.addNamespaceDeclaration("soapenv","http://orion:7001");
    giving the following error at runtime:
    Exception in thread "main" java.lang.AbstractMethodError:
    weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
    at Client.main(Client.java:39)
    I am able to compile without any error/warning all the time.
    This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
    I am able to run the same application(outside Web-application as a stand-alone java program) without
    any error while not using weblogic/webservices jar in the classpath.
    The saaj jars needed to run without any error are:
    saaj-api.jar
    saaj-impl.jar
    mailapi.jar
    activation.jar
    xercesImpl.jar
    xalan.jar
    dom.jar
    jdom.jar
    I thinks this is a compatibility issue. Please suggest to resolve it.
    Thanks in advance,
    pal_sk

    Hi,
    I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
    My environment is as below:
    1) Weblogic 8.1 SP2 server
    2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    3) A method is exposed as web-service
    4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
         MessageFactory mf = MessageFactory.newInstance();
         SOAPMessage sm = mf.createMessage();
         SOAPPart sp = sm.getSOAPPart();
         sp.setPrefix("soapenv");
         SOAPEnvelope se = sp.getEnvelope();
         se.addNamespaceDeclaration("soapenv","http://orion:7001");
    giving the following error at runtime:
    Exception in thread "main" java.lang.AbstractMethodError:
    weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
    at Client.main(Client.java:39)
    I am able to compile without any error/warning all the time.
    This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
    I am able to run the same application(outside Web-application as a stand-alone java program) without
    any error while not using weblogic/webservices jar in the classpath.
    The saaj jars needed to run without any error are:
    saaj-api.jar
    saaj-impl.jar
    mailapi.jar
    activation.jar
    xercesImpl.jar
    xalan.jar
    dom.jar
    jdom.jar
    I thinks this is a compatibility issue. Please suggest to resolve it.
    Thanks in advance,
    pal_sk

Maybe you are looking for

  • Freight Charges In Purchase Order

    Hello Friends,                I m working on Purchase order.I am using Freight charges which is given in the footer of PO form.I want to know about where this amount get stored and what is object ID of Freight Charges??The same functionality I want t

  • What kind of transaction in procedure?

    Hello, I have a procedure to reset sequences in tables: CREATE OR REPLACE PROCEDURE reset_sequence AS BEGIN      LOCK TABLE table_name_1, table_name_2 IN EXCLUSIVE MODE NOWAIT;      EXECUTE IMMEDIATE 'DROP SEQUENCE SEQ_1';      EXECUTE IMMEDIATE 'CRE

  • Please help me what other way i can tune this select query..

    Hello Guru, I have a select query which retrieve data from 10 tables and around 4 tables having 2-4 Lac record and rest are having 80,000 - 1 Lac record. It is taking around 7-8 seconds to fetch 55000 record. I was strictly told by the client that i

  • "Partner function CA can only occur 1 times in procedure TA (Sales Document

    Dear Experts, I have a requirement where I need to capture the Partner function more than once.... Say  i need to capture the two or more commission agents in one sales order.... But when I enter the second comm agent the system triggers "Partner fun

  • Creating an Enhancement Set

    Does anyone know how to create an enhancement set. Ive tried checking the menu's but i cannot find how to do this anywhere.