How to let Weblogic to load log4j.jar from application?

Hi all,
Our company planed to move an application from WebSphere to WebLogic server (10.0.2). I am responsible for the technique aspect on this moving. But this is my first time to work on WebLogic, so it seems everything is new for me. Currently, I am encountering a very tough issue. In our project, it has an old log4j.jar (2001). I put the jar in APP-INF/lib. However, after I deployed the project to server, system always run the new log4.jar from server, and gave exception, as follows. The old log4j.jar has this method, but new log4j.jar doesn't.
Anybody can give me help? I really appreciate. Thanks.
####<Aug 5, 2009 10:28:06 AM CDT> <Error> <HTTP> <msn043074c> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1249486086015> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@1988902 - appName: 'ampi', name: 'ampi', context-path: '/ampi'] Root cause of ServletException.
java.lang.NoSuchMethodError: org.apache.log4j.Category.getInstance(Ljava/lang/String;Lorg/apache/log4j/spi/CategoryFactory;)Lorg/apache/log4j/Category;
     at com.lilly.atlas.frameworks.logging.AtlasServerCategory.getInstance(AtlasServerCategory.java:182)
     at com.lilly.atlas.frameworks.logging.Log4JAdapter.<init>(Log4JAdapter.java:103)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at java.lang.Class.newInstance0(Class.java:350)
     at java.lang.Class.newInstance(Class.java:303)
     at com.lilly.atlas.frameworks.logging.AtlasLogger.initialize(AtlasLogger.java:110)
     at com.lilly.atlas.frameworks.logging.AtlasLogger.<init>(AtlasLogger.java:93)
     at com.lilly.atlas.frameworks.logging.AtlasLogger.getInstance(AtlasLogger.java:129)
     at com.lilly.atlas.frameworks.logging.AtlasLogger.info(AtlasLogger.java:329)
     at com.lilly.tox.ampi.actions.LoginAction.perform(LoginAction.java:145)
     at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3404)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(Unknown Source)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

Hi David,
According to the link you posted, I put the following codes in the weblogic-application.xml, then my ear file can be successfully deployed on WebLogic. Thank you soooooo much, I sincerely appreciate it.
<wls:prefer-application-packages>
          <wls:package-name>org.apache.log4j.*</wls:package-name>
</wls:prefer-application-packages>
Best regards,
Sheng
Edited by: gus888 on Aug 5, 2009 11:34 AM

Similar Messages

  • Loading Exception.jar from NERP

    Hi everyone,
    I am getting XI started on my sytem first time but i have had some problems.
    After i try to start Integration repository , Java webstart is starting and immediately i get this message
    it says " Loading Exception.jar from NERP".
    Read 53k of 11.6M.
    Any suggestions ,
    Thanks
    Deepthi

    Hey everyone,
    I have resolved this on my own.
    I have cleared the IE cache and connected to it through LAN.
    Thank you
    Deepthi

  • How to make a button load a sprite from library??

    PLEASE HELP!!
    Hey everyone.. iv been looking for help for a few weeks but cant seem to find the awnsers
    I am trying to create a newspaper that consists of four pages. Each   page i have created and are sitting in the library as sprites. Each page   has buttons that need linking so that when pressed it loads the next   page or page that i want. This is the part i am confused with =/ how do i   make the buttons on each page load the next page (sprite) from the   library??
    Basically i want to no how to make a button load a sprite from the library when clicked. Does anyone no the script for this?
    Thanks for any help

    A question arises as to whether or not you are posting in the right forum.  Sprites are AS3 objects.
    If you want to add movieclips to the stage from the library using AS2, then you need to assign them each an Identifier via right clicking them in the library and selecting the Linkage option... from there you slect the option to Export for Actionscript and then assign the Identifier.
    You then use the attachMovie() method to make use of that Identifier to dynamically load the library object.

  • Infopackage-Load Many Files from Application Server and later Archive/Move

    Hi All..
      I have a doubt,   I have a requirement of take many files to load into BI 7.0..  I used the infopackage before with option:
    Load Binary File From Application server
      I load information successfully... only with one file ...but If I can load many files (with different names) like the next list.. I think it's not a good idea modify the file name (path) on infopackage each time).. :
    *All of this files will be on one server that itu2019s map into AL11.. Like
    Infopfw
    BW_LOAD_20090120.txt
    BW_LOAD_20090125.txt
    BW_LOAD_OTHER_1.txt
    u2026.
    Etc..
    This directory it's not in BW server.. It's other server..but I can load form this location (one file by one)
    Could you help me with this questions:
    -     How can I Use an infopackage with routine that take all the files..one by oneu2026 in order of creation dateu2026and load into Target? Is it possible?.. I have some knowledge of ABAP.. but I don´t know exactly how I can say to system this logicu2026
    -     In addition is it possible move this files to other locationu2026 like into Infopfwarchive u2026 just to have an history of files loaded.
    I saw that in infopackage you have an option to create a routine.. in ABAP codeu2026 Iu2019m a little bit confused because I donu2019t  know how I can specify all the path..
    I try with:
    Infopfw
    InfopfwFile.csv
    Infopfw
    This is the abap code that automatically you see and you need to modifyu2026
    Create a routine for file name
    This routine will be called by the adapter,
    when the infopackage is executed.
              p_filename =
              p_subrc = 0.
    Thank you for your ideas or recommendations.
    Al

    Hi Reddy, thank you for your answer
    I have some doubuts.. when you explain me the option:
    All the above files are appending dates at the end of the file....
    You can load the files through infopackage by using Routines and pick the files based on date at the end of the file..***
    I need to ask you if you think that when you know the date of the file and the infopackage pick each file... thi can work for many files??... or how it's possible control this process?
    About this option, I want to ask you If when you menction Unix code... where it's programed this code?.. in the routine of BW Infopackage??
    ****Or
    Create two folders in your BW in Application server level, in AL11 (ask Basis team)
    I call it is F1 and F2 folders.
    First dump the files into F1 I assume that the file name in F1 is "BW_LOAD_20090120.txt", using Unix code you rename the file and then keep in the same foleder F1 or move to F2.
    Then create InfoPackage and fix the file name (i.e. you renamed), so you don't need to change everyday your file name at infopackage level.Because in AL11 everyday the file are overwrite.
    To I get BW_LOAD_20090120.txt file in F1, then I renamed to BW_LOAD.txt and loaded into BW, then tomorrow I get BW_LOAD_20090125.txt in F1, then I renamed to BW_LOAD.txt....
    so in this way it will work.You need to schedule the Ubix script in AL11.
    This is the way how to handle the application server...I'm using the same logic.
    Thank you soo much.
    Al

  • How to synamically choose and load a JAR at runtime

    Hi all,
    I have an application that uses an API to communicate with a backend system. There are five API jars that each support a different version of the backend system.
    I want to be able to select the jar at runtime. I can't put each in my CLASSPATH because they are not compatible.
    I need to either edit the CLASSPATH at runtime (which I don't think I can do) or pick and load the appropriate JAR into the class loader.
    I know how to load individual classes into the class loader but can't find anything for a complete JAR. Anybody have any suggestions?
    Thanks,
    Shane

    Hi,
    Even I was facing same kind of problem. And I used URLClassLoader to load the classes from the jars. I've a Context class which has parameterized constructor and which is used to create a context to connect to back-end.
    But when I try to execute, I get
    <Error>
    Exception in thread "main" java.lang.NoClassDefFoundError: matrix/db/Context
    at com.validator.Validator.createEProjectContext(Validator.java:90)
    at com.validator.Validator.validateMigration(Validator.java:52)
    at com.validator.Validator.main(Validator.java:120)
    </Error>
    This is a piece of code which is giving error. EProjectClassLoader is a subclass of URLClassLoader which has only one method findClass which calls the findClass of URLClassLoader.
    <code>
    EProjectClassLoader epldr = new EProjectClassLoader(epClsPathList);
    System.out.println("Loader Created == "+epldr);          
    Class[] classtypes = {String.class, String.class};
    //Class ctxClass = epldr.loadClass("matrix.db.Context");
    Class ctxClass = epldr.findClass("matrix.db.Context");
    System.out.println("Class Loaded ==== "+ctxClass);
    Constructor cnstr = ctxClass.getConstructor(classtypes);
    System.out.println("Constructor Created === "+cnstr);
    Object[] params = {"", rmiServer};
    Object obj = cnstr.newInstance(params);
    System.out.println("Instance Created ===== "+obj);
    context = (Context) obj;
    System.out.println("Context ===== "+context);
    context.setUser(user);
    context.setPassword(pwd);
    context.connect();
    System.out.println("Context created ===== "+context.getUser());
    </code>
    I'm getting error when I typecast the object back to Context.
    <GeneratedLog>
    Path of the Jar :: C:\eMatrix9074RMI\java\classes\eMatrixServletRMI.jar
    Object == file:/C:/eMatrix9074RMI/java/classes/eMatrixServletRMI.jar
    List Created == [Ljava.net.URL;@1ea2dfe
    Loader Created == com.validator.EProjectClassLoader@f4a24a
    Class Loaded ==== class matrix.db.Context
    Constructor Created === public matrix.db.Context(java.lang.String,java.lang.String) throws matrix.util.MatrixException
    Instance Created ===== matrix.db.Context@13c5982
    Exception in thread "main" java.lang.NoClassDefFoundError: matrix/db/Context
    at com.validator.Validator.createEProjectContext(Validator.java:90)
    at com.validator.Validator.validateMigration(Validator.java:52)
    at com.validator.Validator.main(Validator.java:120)
    </GeneratedLog>
    Thanks in Advance,
    Pradeep

  • Error Loading the file from application server

    Hi Team,
    I'm trying to load the .CSV file from application server and I'm getting the error message.
    In the data package
      Update to PSA --Green
      Transfer Rule -- Green
      Update Rule -  error ABORT was set in the customer routine 9998
                            Error 1 in the update
    Please help me to provide the solution.
    But when I try to load the other files there are no issues. thanks.
    Regards,
    Senthil

    Raj
      check the below links, which can helps to solve your issues
    Flat file data load
    flat file Data loading issue
    Mahesh

  • TS3297 I upgraded my IPhone and lost some of my songs. I have tried everything the guide is telling me to do but have not hald any results. The other problem is because of this it won't let me down load any songs from my PC. If you can help me out Plzzz.

    What can you do on your end to fix this problem??

    Not sure if this helps:-
    The music files, were they bought from your iTunes account or did someone gift them to you after buying from the iTunes account? If they are yours you can download them again if you clear or de-authorise the ipod, it has to be done by whoever gave you the ipod to do this (the registered  owner). If they were bought for you on another itunes account I don't think Apple let you use them as they are copyrighted and they don't belong to you, they belong to the person who bought them. If the music files where ripped from music cd's then click and drag them to a new folder on your desktop and have the person who gave you the ipod to de-authorise and unregister it. Then you re register it and put your files back from your desktop folder in your iTunes folder and synch. Hopefully that would work.  Any files which you did not buy, I would not know how get around this, best bet is to take it to you nearest Apple  Store and explain that they were gifted to you and ask how you can use them.  The best way to gift music files is to buy the gift tokens and give these. Hope above helps.

  • How to let SAP user use SSO to access Application in DMZ?

    Hi All,
    Our J2EE application is running on a system in DMZ which can not be connected with LDAP. So I am wondering if it's possible to let SAP user use SSO to access our application.
    After talking with my colleague I think the only way is to import SSO public key to our WebAS and create user in UME and then assign user to the corresponding public key, but anybody know where to download SSP verification file or is it allowed to download and import into another system at all?
    Regards,
    Bin

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • How to protect my files in a jar from extraction

    I want to protect my jar files (using a password )from extraction.
    When a user wants to extract, password must be asked alike password protection in a zip file.
    Can i do it using java itself or i need a external tool.
    Thanx

    i am trying to find it out

  • How do I close content loaded in IE from Cornerstone OnDemand?

    My organization has recently transitioned into the Cornerstone OnDemand system and I've found that when you launch a Captivate training within IE, the close button doesn't work and neither does any button set to the Exit action. If you launch the training in FireFox or Chrome then the close button works correctly, it's just IE that has the problem. (Although in Chrome the exit button doens't activate right away.) I've found that this js code works for FireFox and Chrome when modifying the DoCPExit() coding in the Utilties.js file due to the change Adobe made in CP6.
    function DoCPExit()
        if(window != window.parent && window.parent && window.parent.hasOwnProperty("DoCPExit"))
            window.parent.DoCPExit();
        else
            window.parent.close();
    The attached images show the HTML code that's running the content when it's loaded in FireFox, which is the top image, and IE, which is the lower image. (Sorry for the tall IE grab as the code view had the extra div after the id="CaptivateContent" div.
    The solution at the moment is to disable the Captivate close button so it doesn't show in the nav bar.

    Hello ,
    Instead of that you can use a button on last slide of your project to close the project window
    Insert 3 buttons or smart shape used as buttons (as Finish course buttons).
    On the first button apply an action to execute javascript and in the script window, use this script: parent.close()
    On the second button apply an action to execute javascript and in the script window, use this script: top.window.close()
    On the third button, execute a standard action and assign "cpCmndExit" (system variable) with 1.
    Then publish the course and upload it to your LMS and check whether any one of these work for you?
    Then in the final project you can use that button which works in previous step
    Thanks.

  • Error loading csv file from application server

    Hi all,
    While uploading a csv file from the application server to psa we are getting the following error,
    Error 2 while splitting CSV data record
    Message no. RSDS_ACCESS011
    Diagnosis
    Error 2 occurred while splitting the CSV data record 1
    1 = Could not find a closing escape character
    2 = Invalid escape character
    3 = Conversion error
    4 = Other error
    System Response
    The function was terminated.
    Procedure
    Check the values of the data separator and escape sign, and try again.
    But i've checked the file and the escape sign, data seperator in it also. Everything is fine.  The same file we are able to load successfully in quality system.
    How to solve this error??
    Thanks in advance.

    Hi BI consultant:
       Could you please provide more details?
    For example:
    1.Is your P application server a UNIX flavor? (Solaris, AIX, UX, Linux)
       If yes..
             2. Are you able to see the contents of the file correctly with a "cat" or "vi" command? (at operating system level).
                   If no...
                         3. Did you upload the csv flat file to the server via FTP?
                                If yes...
                                     4. Did you use the "binary" or the "ascii" parameter on the FTP command used to upload the file?
    Probably you need to upload the CSV file again to your application server and make sure you can se the file contents ("cat" or "vi" command) before trying to execute the InfoPackage.
    Regards,
    Francisco Milán.
    Edited by: Francisco Milan on Jun 3, 2010 11:13 AM

  • How can RoleMapper and Authorization providers be called from application code?

    "isUserInRole" is available in EJB and Web-application contexts. This goes to the
    RoleMapping provider.
    How can I call the Authorization providers or make a FULL authorization check
    (rolemapper + authorization + adjudication) "manually" from my application (JSP,
    EJB) code?
    I know it's possible with the Authorization-class in P13N package when using the
    Portal but isn't that portal-specific functionality? I need to be able to do this
    with a non-portal Weblogic Server.

    "Peter" <PeterB> wrote:
    >
    "Pete Hakkarainen" <[email protected]> wrote in message
    news:3f4736e3$[email protected]..
    "isUserInRole" is available in EJB and Web-application contexts. Thisgoes
    to the
    RoleMapping provider.
    How can I call the Authorization providers or make a FULL authorizationcheck
    (rolemapper + authorization + adjudication) "manually" from my application(JSP,
    EJB) code?
    I know it's possible with the Authorization-class in P13N package whenusing the
    Portal but isn't that portal-specific functionality? I need to be ableto
    do this
    with a non-portal Weblogic Server.
    This is not currently possible with WLS. There is no public api to define
    your own resources
    or manually call isAccessAllowed on container resources.Will there be a public API for this in the future and how soon, if so?

  • How do I re-instate my default profile from Application Support?

    Firefox updated automatically to 9.0.1 when I re-started my Mac (OS X 10.6.8) but now I have lost the previous session and I have no bookmarks or passwords. Using Help I have found my default profile in Application Support but how do I re-instate Firefox with this information? I can't find any mention of this last step!

    and if these dvds aren't readily available, are there any steps to re-install directly off of the apple website? i've tried downloading the software installer and it says that the application cannot be installed. are there any steps from there?

  • How to clear memory in MVC when exiting from application using BACK ?

    Hi Friends ,
                I am using the JavaScript back function to exit from my application to the calling page . My BSP application is stateful and MVC based . I am calling my application using the SYSTEM application sample pages for session management - session_single_frame.htm & session_default_frame.htm .
    I am observing that if i run my application in Portal whenever i hit back ..i do return to the calling page but again if i come to my BSP application the old data is seen . If i do the testing outside portal environs it is cleared ..i believe as the session close popup is seen and executes completely .But within portal as the popups are not enabled may be the session clean up is not happening .
    How can I overcome the situation . i dont want to exit as i want the user a way to go back to the calling page directly .
    Appreciate your help in advance.

    it could be because of the caching property of the BSP iview.
    set "Allow Client-Side Caching" of BSP iview to "NO" and try.
    Regards
    Raja

  • How can I restore the iPhoto app deleted from applications by accident?

    I am trying to restore the app iPhoto that was deleted. I restarted the computer using the Mac OS X v10.2 upgrade Install disc 1 and the response was, "you have a newer version of this system on your iMac" or something like that. How can I reinstall the original app or even an updated version that is compatible with OSX 10.2.8 (6R73)?
    Thanks

    Use the restore disks that came with your computer - do a custom install of bundled software only
    click here for the MacWorld article on this - it may be helpful.
    LN
    Message was edited by: LarryHN

Maybe you are looking for

  • How can I find the serial number for my Photoshop?

    Hello All. this is my fisrt post here, so please excuse me if I have posted in the wrong area. I have bought Photoshop from a local dealer in my country (Hungary). I have lost the product key for this software and now I need to re-install it. I have

  • Hard Drive Failed - Is there a seperate warranty?

    My Hard drive just failed. It is a Toshiba, and I am wondering if the apple warranty is for everything in the Hard drive, or if there are seperate manufactor warranties that apply to their components? I really don't want to have to buy a new hard dri

  • HT1766 How do I back up onto an external Hard drive?

    I am trying to back up my iphone 4 but my computer does not have enough space. I need to back up onto an external hard drive. How do I do that?

  • Default buttons not defaulting

    Hello. I am on the tail end of a DVD project and just begain encountering some unusual behavior with certain menus. This is a multiple-menu, multiple-video clips promotional DVD. Up to last week, the DVD has been working as expected in the simulator,

  • Link to external file doesn't show path

    Hi, a friend of mine has a problem with a CD that works fine for me. Embedded in a pdf file are links to shockwave-Skripts. Clicking on the link should start the default Internet Browser. I'm using Adobe Reader version 8.1.4. If I click on a link a w