Difference between prefer-application-packages in weblogic.xml and weblogic-application.xml?

Hi!
When deploying a WAR to WebLogic 10.3.5, what is the difference between the prefer-application-packages element in the files weblogic.xml and weblogic-application.xml?
In my WARs WEB-INF/lib/ I have a JAR that contains classes that are already provided by the container (but older versions).
If I do not use prefer-application-packages then my app gets the classes provided by the container.
If I use prefer-application-packages in weblogic.xml then I get the classes from WAR/WEB-INF/lib which is expected.
But if I use prefer-application-packages in weblogic-application.xml then I get the container versions. Why?
Is there a difference between those two options?
The exact data I use is:
(foo.bar.* is the conflicting package; I add or remove the linex marked with XXXX)
WEB-INF/weblogic.xml :
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
    xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
    <wls:container-descriptor>
        <wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
        <wls:prefer-application-packages> <!-- XXXX -->
            <wls:package-name>foo.bar.*</wls:package-name> <!-- XXXX -->
        </wls:prefer-application-packages> <!-- XXXX -->
        <wls:prefer-application-resources>
            <wls:resource-name>META-INF/services/some....</wls:resource-name>
            <wls:resource-name>META-INF/services/unrelated...</wls:resource-name>
            <wls:resource-name>META-INF/services/stuff...</wls:resource-name>
        </wls:prefer-application-resources>
    </wls:container-descriptor>
    <wls:jsp-descriptor>
        <wls:page-check-seconds>-1</wls:page-check-seconds>
        <wls:precompile>true</wls:precompile>
        <wls:precompile-continue>true</wls:precompile-continue>
        <wls:keepgenerated>true</wls:keepgenerated>
    </wls:jsp-descriptor>
    <wls:session-descriptor>
        <wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type>
    </wls:session-descriptor>
</wls:weblogic-web-app>
META-INF/weblogic-application.xml :
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-application
    xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
    <application-param>
        <param-name>webapp.encoding.default</param-name>
        <param-value>UTF-8</param-value>
    </application-param>
    <xml>
        <parser-factory>
            <saxparser-factory>
                org.apache.xerces.jaxp.SAXParserFactoryImpl
            </saxparser-factory>
            <document-builder-factory>
                org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
            </document-builder-factory>
            <transformer-factory>
                org.apache.xalan.processor.TransformerFactoryImpl
            </transformer-factory>
        </parser-factory>
    </xml>
    <prefer-application-packages>
        <package-name>foo.bar.*</package-name> <!-- XXXX -->
        <package-name>javax.jws.*</package-name>
        <package-name>javax.xml.ws.*</package-name>
        <package-name>org.apache.cxf.*</package-name>
        <package-name>antlr.*</package-name>
        <package-name>org.xmlsoap.schemas.wsdl.*</package-name>
    </prefer-application-packages>
</weblogic-application>

weblogic-application.xml has no meaning in WARs, it is only used in EARs.

Similar Messages

  • Differences between Weblogic Server and Weblogic Server Suite?

    Hi
    What is the differences between Weblogic Server and Weblogic Server Suite, beside licens costs?
    Regards
    /Martin

    WebLogic server standard edition, you get the WebLogic with no clustering.
    Clustering is available in the WebLogic Enterprise Edition.
    The WebLogic Suite also gives you Coherence and JRockit real-time
    A desciption of the various products can be found here: http://www.oracle.com/us/products/middleware/application-server/index.html

  • Differences Between Weblogic 10 and Weblogic 11g

    Hi,
    I like to know the differnces b/w Weblogic 10 and Weblogic 11g, can someone provide those information.
    your help will be highly appriciated!!
    Regards,
    Sarath

    Here is a list that I understand as critical/major differences:
    1. JDK has changed from 1.5 to 1.6 (WLS10.0 uses JDK 1.5 and WLS10.3 uses JDK 1.6)
    2. Console has been improved with great improvements in performance and when it is deployed
    3. WLS10.3 is fully JEE5.0 EJB compliant while WLS10.0 is only JEE5.0 Entity bean compliant
    4. New deployment features like fast-swap and on-demand
    5. WLDF enhancements
    6. ASML2.0 support was introduced in 10.3 in terms of Security enhancements
    7. JDBC4.0 supportability
    AND a lot more (but the above are more significant to me)
    (This is not a comprehensive list of all the differences)
    Arun

  • How to measure time difference between zero crossing of a sine wave and rise time of a pulse on a same graph?

    I have a 50Hz sine wave and a pulse signal on a same graph. The phase difference between two is between 0-90 degrees.
    Now I need to calculate the time difference between (when the sine wave crosses zero volts) and (when the pulse rises). The frequency will stay approximately same for both signals.
    The application is for a three phase generator. In simple words, when the time difference between the zero-crossing of sine wave and the pulse rises increases, that means that the load on the generator has increases.
    I am a beginner user of LabView (version 9, 2009), maybe it is a very simple problem but I've been pulling my hair out for the last few days and coudln't figure anything out. Any help would be greatly appreciated. I am using DAQ USB-6008 to measure these voltages and pulse from the generator and a sensor
    I have attached a jpg (a graph that i just made with excel to explain). The time 't' is what I am trying to measure
    Cheers
    Awais 
    Message Edited by awais.h on 03-30-2010 11:20 PM
    Message Edited by awais.h on 03-30-2010 11:21 PM
    Solved!
    Go to Solution.

    Hi
    Thanks for the code but I'm afraid it won't work. Like you said the probability of choosing a value that is on both graphs may not happen. This is something that I would like the code to do automatically.
    But I did use the previous code posted and made some modifications to it and it seems to work perfectly. Now the next thing is to be able to get just that one value that tells you the first time difference.
    Here is what I get using that code.
    As you can see from the t Values. I only need the one that is highlighted. If there is a way to filter out the rest it would be great.
    I was thinking of a while loop and as soon as the value is higher than 3E-5 it would store the number and stop the loop, but I'm not too familiar with arrays in labview.
    Here is the the code modified.
    As you can see, it wasn't that big of a modification and it still is your code.
    I will keep trying.
    Thanks for the help
    Attachments:
    FinalShockSpeed.vi ‏55 KB

  • Differences between Oracle Forms 11.1.1.6  and 11.1.2

    Hello !
    Which version should I choose 11.1.2 or 11.1.1.6
    11.1.2 must me the latest one aka 11gR2
    11.1.1.6 must be 11gR1 PS5
    Am i right ?
    but in the forms home page it seems that the 11.1.1.6 is the latest version ??
    Oracle Forms 11.1.1.6 Released
    The latest version of Oracle Forms (11.1.1.6) has been released.
    This can be downloaded from My Oracle Support (MOS)
    23-Feb-2012
    Oracle Forms 11g Release 2 has been released. Read about the new features.
    Oct-2011
    I suppose that in a MiddleWare stack : SOA suite + BI publisher + Forms, the 11.1.1.6 (11gR1 PS5) is the best choice.
    Can somebody explain me the differences between Oracle Forms 11.1.1.6 and 11.1.2 ?
    Thanks
    Regards
    Jean-Yves

    Michael Ferrante (Oracle) wrote:
    There are many new features in 11.1.2.0 that do not exist in 11.1.1. Some of the most significant new features are listed in the 11gR2 New Features documentation found on this page:
    http://www.oracle.com/technetwork/developer-tools/forms
    Additional information about new features and changes can be found in the product documentation for 11gR2, which is here:
    http://docs.oracle.com/cd/E24269_01/index.htm
    One important thing to note is that FMw 11.1.2 (11gR2) does not include Portal or Discover. So if you need either or both of these you will need to stick with 11.1.1.Hi Michael,
    One of the features which is very very important in my point of view is
    Reduced Installation Footprint
    In order to reduce the resource requirements on development machines, you can perform an
    installation specifically tailored for development. This will limit the number of software products
    and servers installed on the machine whilst still allowing a developer to build, run and test their
    Forms application.
    If this feature is only available for the 11.1.2 release then the choice is made !
    Thanks !
    Jean-Yves
    ps : and we don't use any portal or discoverer :-)
    Edited by: JeanYves Bernier on 30 nov. 2012 23:54

  • DIfference Between User Exits, Screen Exits, Menu Exits And BADI

    Could any one let me know the exact/practical dIfference Between User Exits, Screen Exits, Menu Exits And BADI. ? And why BADIs are more proned to use?

    Hi,
    User Exits:
    A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP.   XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user.  XX represents the 2-digit exit number
    Menu Exits:
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Screen Exits:
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    BADIs:
    Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software. 
    And why BADIs are more proned to use?
    In contrast to above customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.
    SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
    The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example).
    All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard. A single Business Add-In contains all of the interfaces necessary to implement a specific task.
    The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects.
    Regards,
    Ferry Lianto

  • Difference between do-while, do-when, do-until and do-select in app engine.

    Hi can anyone please tell me the difference between do-while, do-when, do-until and do-select in app engine.
    I read the peoplebooks, but i was not able to keep up with that.
    I know like do-while is like WHILE loop in any programming language.
    here my question starts. WHILE has a condition inside the parenthesis and it will check whether that condition is true or not. where do we have that condition in do-while(is it the where conditions inside the do-while)?
    Please clarify me.
    Thank you,
    Bye.

    Hello user609854,
    Do-While
    in simple words it is like, keep doing specified task , up to / when the condition is matching. once this is over, terminate the loop and come out. :)
    If the Do While does not return any rows, the step is complete.
    DoWhen - Select statement that allows subsequent actions to be executed if any rows of data are returned.i.e.when a particular conditions is matched like emplid='A2200' or may be a role based criteria etc
    A Do When statement runs before any other actions in the step. If the Do When statement returns any rows,the next action is executed.
    If the Do When conditions are not met, the remaining actions within that step are
    not executed. Your program executes a Do When action only once when the owning step executes.
    The only property that you can specify for the Do When action is the ReUse Statement property, which applies to all SQL-based actions.
    Do-Until
    Keep performing certain task , every time a particular task is being performed. its like keep doing task B until task A is accomplished.
    A Do Until action is a Select statement that runs after each action when a step completes. Use aDoUntil action if you want the processing actions to execute at least once, and to execute over and over until a certain condition is true, such as until a Select statement returns some rows.You can also use a Do Until action to stop a Do Select action prematurely.
    Do-Select
    a) Select/Fetch : AE performs a Fetch statement for each iteration of the loop to get each row from the Select statement
    b) Re-Select : For each Iteration , opens a cursor and fetches the first row. The cursor is reopen for each iteration. we put certain criteria by which the conditions should not match else this can be a deadlock
    c) Restartable : This is same as ReSelect accept, Restartable flexibility.
    We can restart this select/fetch as AE performs a checkpoint in the middle of the step. SQL in this mode,during restart will recognize where the previous run failed&where to restart processing.
    Please Note: When AE is not set up for restartability, then commits are not controlled, monitored, or restricted by PeopleSoft Application Engine.
    In Do Actions & Do Select we can specify ReUseStatement ~ SQL-based actions.
    Please , let me know if this is fine with you.
    SM Sachdeva

  • Differences between BI Mobile 4.0 for iPad  and SAP BO Mobile 3.0

    Hi:
    What's the difference between BI Mobile 4.0 for iPad  and SAP BO Mobile 3.0
    I need something licence for BI Mobile 4?
    Mobile 4.0 is only for All in one?
    I have SAP BO 8.81.
    Thanks.
    Christian.

    Hello everybody,
    thanks to Deepu I managed to get the iPad app connecting with our BOXI server now, too.
    Once again, you need to have/install
    >> BOXI 3.1 SP4
    >> BOXI 3.1. Mobile Server SP4 ( First I was not aware of this product - be sure to install SP4 for this component as well!)
    Having that you find MobileBIService.war within the folder <installation folder>\Business Objects\BusinessObjects Enterprise 12.0\java\applications. Copying this war file to Tomcat's webapps folder should automatically result in the deployment of the corresponding Web application.
    One additional remark: I could not open the MobileBIService web application via my browser, i.e. calling the URL http://<server name>:<port number>/MobileBIService/ lead to an error. I ignored this because I guess the web application serves only as a kind of middleware between the app and the "classic" BOXI server.
    After deploying the WAR you have a folder <installation folder>\Business Objects\Tocat55\webapps\MobileBIService where you can find the mobi.properties file in subfolder WEB-INF. I let the properties file unchanged, i.e. the only category is "Mobile".
    The idea of the categories is, that all Web Intelligence files which are "tagged" with this category can be downloaded/displayed in the iPad app. All other WebI reports are not accessible via iPad.
    On iPad I specified <server name>:<port number> as "Server URL", i.e. I did enter nor "http://"neither the name of the web application (MobileBIService), just server name and port number! I specified the "CMS Name" together with the port number (normally 6400), i.e <CMS name>:<port number>.
    And then it works...
    ...finally!
    Michael

  • What is difference btw schema.core.xml and schema.user.xml in OVD

    Hi
    New to OVD, I'm looking at Oracle's OVD configuration properties Docoument
    I'm confused with list of schema files on OVD especially difference between schema.core.xml and schema.user.xml
    In the oracle document it mentioned  as below.
    Typically, the last file identified is schema.user.xml. Any and all changes to schema are applied to the schema.user.xml file to ensure standard files, such as schema.core.xml, remain unchanged between releases, but can also be virtually modified by having the changes in schema.user.xml override default-shipped schema in schema.core.xml.
    If you are installing a manufacturer supplied schema (in DSML form), identify this file in the second to last file in the list of schema files. This will protect the distributed manufacturer file from modification while allowing local customization, which is then stored in schema.user.xml.
    Based on above two paragaraphs i came to one understanding but i just want to hear from you what exactly its trying to say about those two files.
    Not sure what exactly above mean can someone explain lettle in detail

    Hi,
    The LDAP schema used by OVD is shipped as  several XML files such as schema.core.xml, schema.cosine.xml, schema.inetorperson.xml, schema.nis.xml etc. depending on in which RFC the attribute and object classes are defined.
    All changes to these schemas (if any) are always applied to schema.user.xml, so this file contains all the custom attribute types & objetclasses.
    Hope this clarifies a bit
    Sylvain
    When closing a thread as answered remember to mark the correct and helpful posts to make it easier for others to find them

  • What is the difference between the passcode on my iPhone 5 and a password?  I am locked out of my phone.

    What is the difference between the passcode on my iPhone 5 and a password?  I am locked out of my phone.

    Not entirely sure what you are asking, but a passcode to unlock an iOS device is normally 4 digits long (so is a 4 digit code), though you can make it alphanumeric and longer (so effectively becomes a password).
    If you don't know the passcode to unlock your phone or it's showing the disabled screen then there are instructions on this page for how to reset a device : http://support.apple.com/kb/HT1212 - you should then be able to restore/resync your content to it.

  • Differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform

    Hello,
    J would like to know if there are some differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform.
    I know that there are some differences on Oracle 8i Parallel Server and i know that some products are not include like precompiler (Mod*Ada, Pro*FORTRAN) on a Linux Platform.
    Thank you.

    We have installed Oracle 8i on Solaris 8 and it had a great performance, of course that the hardware and licence invested here was costed my the office where i work. Personaly i'd installed linux reh hat 8 and oracle 8i, imagine that, it could be implemented by any individual that has the time to do so.
    By buyinng from a company that has a good background you could be sure that you will have support.
    Bottom line, if you have the $ to buy great hardware go for a unix platform. But if you don't a Red Hat Linux Server Licence with a 1 year sopport and Oracle data base is about 3500Dls.
    Visit www.red-hat.com
    Rewards... Bye

  • Differences between Oracle 8i for a UNIX Platform and a Linux Platform

    I want to know the differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform. And which platform is better?
    Thanks

    We have installed Oracle 8i on Solaris 8 and it had a great performance, of course that the hardware and licence invested here was costed my the office where i work. Personaly i'd installed linux reh hat 8 and oracle 8i, imagine that, it could be implemented by any individual that has the time to do so.
    By buyinng from a company that has a good background you could be sure that you will have support.
    Bottom line, if you have the $ to buy great hardware go for a unix platform. But if you don't a Red Hat Linux Server Licence with a 1 year sopport and Oracle data base is about 3500Dls.
    Visit www.red-hat.com
    Rewards... Bye

  • What is the difference between jdk version 1.3.1-b24 and 1.3.1_02-b02?

    Hi,
    This is a weird question. But I really need to know the difference between jdk vesion 1.3.1-b24 and 1.3.1_02-b02.
    Anyone has a clue?
    Thanks
    Wayne

    This is a weird question. But I really need to know
    the difference between jdk vesion 1.3.1-b24 and
    1.3.1_02-b02.Bug fixes only.
    When reading the strings above, ignore the part saying "-b##" (that's the build number). So you're looking at 1.3.1 (the base release), and 1.3.1_02 (patch 02 on 1.3.1).

  • What is the differences between the older version of Oracle Financials and the 11 i

    What is the differences between the older version of Oracle Financials and 11i?

    Vijay,Thanks for your answer,but I am still not clear about it,I have a instance to describe my question at detail.
        If there is a final product A, and the planning strategy for A is 20(MTO), the procurement type of A is F(external procurement) at the view mrp2 in the material master datas.
    step1: I creat a sales order.
    step2: run MRP for A.
    step3: transfer the purchase requistion into a purchase order,and the field of acc.***.cat. in the purchase order will be filled out M automatically, because the acc.***.cat. in the planning strategy 20(MTO) is set with E.
        Well, the purchase order is created, what is the relationship between the sales order and the purchase order? What will be happened about costing between the SO and the PO?
        If I delete the E, I make the PO become a standard PO, what is difference between standard PO and the PO including E?
    Best Regards
    Bob

  • Differences between Commit work, Logical Unit of Work and Roll back work

    Hi all,
    Can any one explain me in details what is the difference between Commit Work, Logical Unit of Work and Roll back work. Pls explain by providing some example.
    and also explain me where and when these are used and what are the importance of using these.
    Thanks in advance.
    Regards
    Ramana Prasad.T

    Hi Ramana Prasad,
    A Logical Unit of Work (LUW or database transaction) is an inseparable sequence of database operations which must be executed either in its entirety or not at all. For the database system, it thus constitutes a unit.
    LUWs help to guarantee database integrity. When an LUW has been successfully concluded, the database is once again in a correct state. If, however, an error occurs within an LUW, all database changes made since the beginning of the LUW are canceled and the database is then in the same state as before the LUW started.
    An LUW begins
    o each time you start a transaction
    o when the database changes of the previous LUW have been confirmed (database
    commit) or
    o when the database changes of the previous LUW have been cancelled (database rollback)
    An LUW ends
    o when the database changes have been confirmed (database commit) or
    o when the database changes have been canceled (database rollback)
    COMMIT WORK.
    Executes a database commit and thus closes a logical processing unit or Logical Unit of Work ( LUW ) (see also Transaction processing ). This means that
    all database changes are made irrevocable and cannot be reversed with ROLLBACK WORK and
    all database locks are released.
    COMMIT WORK also
    calls the subroutines specified by PERFORM ... ON COMMIT * executes asynchronously any update requests (see CALL FUNCTION ... IN UPDATE TASK ) specified in these subroutines or started just before,
    processes the function modules specified in CALL FUNCTION ... IN BACKGROUND TASK ,
    cancels all existing locks (see SAP locking concept ) if no update requests exist,
    closes all open database cursors (see OPEN CURSOR ) and
    resets the time slice counter to 0.
    COMMIT WORK belongs to the Open SQL command set.
    Return code value
    The SY-SUBRC is set to 0.
    ROLLBACK WORK.
    Closes a logical processing unit by reversing all database changes made since the last COMMIT .
    You use this statement if you cannot be certain that all the database changes have been executed correctly.
    The update routines are not performed.
    ROLLBACK WORK belongs to the Open SQL command set.
    Note
    If the ROLLBACK statement occurs within a SELECT loop, the processing cannot continue because the database cursor is invalid. After the ROLLBACK statement, you should therefore ensure that all SELECT processing has been explicitly terminated.
    <b>Plz. Avoid Duplicate Threads.</b>
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

Maybe you are looking for

  • IDOC-XI-Idoc error in inbound idoc

    Hi all.    We have a Idoc-xi-idoc scenario.    SAP R/3 - Xi - SAP CRM    We have configure the idoc out in SAP R/3. And I use we19 to test the Orders Idoc and check the staus is ok.    But in XI, I cannot see the Orders Idoc is sending in. However, t

  • Sender and receiver

    Dear forum, 1 sender and receiver only can happen in CO? why not in FI? 2 sender and receiver are referring to cost object? 3 when use secondary cost element, the sce must be linked to a sender and receiver only can work? Thanks alot

  • Execute automatically when calling transaction iview

    Hi All, I am navigating to a "Transaction iView" (SAPGUI for Windows) from a WebDynpro application. I am able to fill all screen fields dynamically, but I have a problem executing the transaction. I have tried passing a parameter called "OkCode" (or

  • Macbook pro charger blinking orange

    My 2011 Macbook pro was dead when I got home from work yesterday and when I plugged in the charger, the charger was blinking a soft orange color. I have never had this happen before and it was working perfectly fine before I left for work

  • Mac crashing every week - can anyone help?

    Since June my iBook has been crashing randomly - sometime leaving a DOS like white on black list off exceptiopn state details and sometime showing the multi language "you must restart" fatal error message: Here is the panic.log. Any help appreciated.