Merging two portlet.xml

Hi,
I have a portal application which has a portlet.xml. For this application we added weblogic shared library which includes another portlet.xml. There was a conflict due to two portlet.xml files. I have manually copied portlet entries to form one portlet.xml. This works fine. Is there any other solution to merge (not manually) the two portlet.xml files ?

Hello,
Spring configuration files aren't going to get merged by default; I can list out configuration files that are merged, but it won't help you in your case.
The merging mechanism isn't extensible by end-developers, so it isn't going to be possible to modify it to merge the Spring config files. Many configuration files, such as the portlet.xml file (and, I believe the Spring config files) cannot be automatically merged because the schema for the configuration file is incompatible with automatic merging-- it isn't that it can't be merged, just that the process can't be automated because details of the implementation must be taken into account when the files are merged-- details which only the developer knows.
So unfortunately, I think you will have to merge your Spring configuration files manually.
Kevin

Similar Messages

  • Merging two XML Document Objects

    I'm trying to merge two seperate XML Document Objects into one Object.
    Any suggestions would be very much appreciated.
    This is what the Objects look like when returned.
    FIRST:
    <?xml version = '1.0'?>
    <app>
    <name>Home</name>
    <active>true</active>
    <order-as-sibling>1</order-as-sibling>
    </app>
    SECOND:
    <app>
    <name>Developers</name>
    <active>true</active>
    <order-as-sibling>6</order-as-sibling>
    </app>

    That would work nicely if the XML documents had names, but they are coming back as a list in an XML object. I have about 8 separate XML Objects I'd like to merge into one.
    Thanks

  • How to merge portlet.xml file from shared libraries into an EAR application

    Hi all
    I need some help
    I have some applications as shared-libs referenced by weblogic.xml into a EAR application.
    To see all portlets from that shared-libs, I'm creating a portlet.xml into the EAR application with all portlets from all shared libs. But is terrible for me. I would like to have it merged automatically without having to create it in the EAR application. Is that possible?
    Regards
    Bruno

    In the documentation, I saw this text:
    Overriding Shared J2EE Library Settings in the web.xml File
    At runtime, the web.xml files in all the shared J2EE libraries are merged, along with the web.xml
    file in your portal web project. The content of your WEB-INF/web.xml file overrides anything in
    the shared J2EE libraries, so if you want to change particular settings, you can do it there.
    There are many other files for which file contents are merged; these can be overridden in the same
    way. These files include not only WEB-INF/web.xml but also WEB-INF/weblogic.xml and any
    files mentioned in weblogic-extension.xml from either the users' application or the shared
    libraries.
    It seems to be possible to customize the weblogic-extension.xml. But I haven't seen how to do that
    What do you think about it?
    Regards
    Bruno

  • How to merge two xmls.

    Hi All,
    I want to merge two xmls in my output. My scenario is I am getting two sets of outputs and I want to merge them to get my final output. I my output I have a header and a Lineitem. I my final output I want to keep header only once and all the LineItems one by one.Can anyone suggest something.
    First outout:-
    <outputVariable>
    -<part name="payload" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    -<SiebelOrderQueryByExample_Output xmlns="http://siebel.com/asi/">
    -<ns:SiebelOrderQueryByExample_Output xmlns:ns="http://siebel.com/asi/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    -<ListOfOrderInterface xmlns="http://www.siebel.com/xml/Siebel%20Order">
    <Orders>
    <Id>1-15IXJ</Id>
    <OrderNumber>1012-1234</OrderNumber>
    <ListOfLineItems>
    <LineItems>
    <Id>1-15IY3</Id>
    <OrderNumber>1012-1234</OrderNumber>
    <LineNumber>301</LineNumber>
    </LineItems>
    </ListOfLineItems>
    </Orders>
    </ListOfOrderInterface>
    Second output:-
    <outputVariable>
    -<part name="payload" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    -<SiebelOrderQueryByExample_Output xmlns="http://siebel.com/asi/">
    -<ns:SiebelOrderQueryByExample_Output xmlns:ns="http://siebel.com/asi/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    -<ListOfOrderInterface xmlns="http://www.siebel.com/xml/Siebel%20Order">
    -<Orders>
    <Id>1-15IXJ</Id>
    <OrderNumber>1012-1234</OrderNumber>
    <ListOfLineItems>
    <LineItems>
    <Id>1-15IW2</Id>
    <OrderNumber>1012-1234</OrderNumber>
    <LineNumber>302</LineNumber>
    </LineItems>
    </ListOfLineItems>
    </Orders>
    </ListOfOrderInterface>
    The required output which I want after merging.
    <outputVariable>
    -<part name="payload" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    -<SiebelOrderQueryByExample_Output xmlns="http://siebel.com/asi/">
    -<ns:SiebelOrderQueryByExample_Output xmlns:ns="http://siebel.com/asi/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    -<ListOfOrderInterface xmlns="http://www.siebel.com/xml/Siebel%20Order">
    -<Orders>
    <Id>1-15IXJ</Id>
    <OrderNumber>1012-1234</OrderNumber>
    <ListOfLineItems>
    <LineItems>
    <Id>1-15IW2</Id>
    <OrderNumber>1012-1234</OrderNumber>
    <LineNumber>302</LineNumber>
    </LineItems>
    <LineItems>
    <Id>1-15IY3</Id>
    <OrderNumber>1012-1234</OrderNumber>
    <LineNumber>301</LineNumber>
    </LineItems>
    </ListOfLineItems>
    </Orders>
    </ListOfOrderInterface>
    Thanks

    I am not using file adapter. I am taking inputs from the BPEL client and displaying output to the client. My input xsd is:-
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org/ns/intorder"
    targetNamespace="http://www.example.org/ns/intorder"
    elementFormDefault="qualified">
    <xsd:element name="order" type="orderType">
    <xsd:annotation>
    <xsd:documentation>
    A sample element
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="orderType">
    <xsd:sequence>
    <xsd:element name="Order_Number" type="xsd:string"/>
    <xsd:element name="Line_item" type="LineType" maxOccurs="unbounded" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="LineType">
    <xsd:sequence>
    <xsd:element name="Line_Number" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

  • Merge two XML files From java

    hi,
    i'm in need to merge two XML files from my java code please help me as soon......

    Rajesh42 wrote:
    hi,
    i'm in need to merge two XML files from my java code please help me as soon......Hello Rajesh42,
    While it is wonderful that you have discovered the magically code tags, please consider if it is the right time to use them. Code tags should only go round code. Note used to make your posts "stand out", or used to quote other people. Just code.
    As to your question, what have you tried, what are you stuck on?
    Mike

  • How to merge two XML's with JDOM?

    How to merge two xmls's using jdom? like:
    is there a way to add the complete content one xml into the parent node of another xml?
    //in.xml
    <?xml version="1.0"?>
    <people>
    <person>
      <name>ABC</name>
      <email>[email protected]</email>
    </person>
    </people>
    //out.xml
    <?xml version="1.0"?>
    <address>
    <city> abccounty</city>
    <state> abcstate</state>
    </address>
    Merged XML:
    <?xml version="1.0"?>
    <people>
    <person>
      <name>xyz</name>
      <email>[email protected]</email>
    </person>
    <address>
    <city> abccounty</city>
    <state> abcstate</state>
    </address>
    </people>
    import java.util.List;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.input.SAXBuilder;
    import org.jdom.output.Format;
    import org.jdom.output.XMLOutputter;
    public class MergeXMLS {
         public static void main(String[] args) {
              try{
                  SAXBuilder builder = new SAXBuilder();
                  Document books = builder.build("D:/in.xml");
                  Document onebook = builder.build("D:/out.xml");
                  Element root = books.getRootElement();
                  List rows = root.getChildren();
                  for (int i = 0; i < rows.size(); i++) {
                      Element row = (Element) rows.get(i);
                      onebook.getRootElement().addContent(row.detach());
                      System.out.println(row.getName());
                  new XMLOutputter(Format.getPrettyFormat()).output(onebook, System.out);
              }catch(Exception e){
                   e.printStackTrace();
    }

    The above code only add's the first node.
    I changed the code little differently to
                  SAXBuilder builder = new SAXBuilder();
                  Document books = builder.build("D:/in.xml");
                  Document onebook = builder.build("D:/out.xml");
                 //trying to add second xml into the first
                  books.getRootElement().addContent(onebook.getRootElement().getContent()); 
                  new XMLOutputter(Format.getPrettyFormat()).output(books, System.out);
    here is the exception from the above code:
    org.jdom.IllegalAddException: The Content already has an existing parent "address"
         at org.jdom.ContentList.add(ContentList.java:218)
         at org.jdom.ContentList.add(ContentList.java:140)

  • Merging two xmls

    Hi,
    Just for information..
    How to merge two xmls
    1. convert the xml documents to xml variables using setValue activity. Only equating will convert xmlDoc to xml Variable.
    2. serialize() each xml input variable. Each variable will get converted to string
    3. concatenate both serialized variable and assing it to xml output variable. deserialization is not require. after concatenationg add root nodes if require.
    Regards
    Sunil

    Thanks for the reply!
    Can you please tell me in steps how can i achieve this using JAXP and DOM
    In steps in the sense : first convert xml's to something then do something.
    Thanks in advance.

  • Merge two XML

    10g
    xml1 = "
    <item>
    <name>Book</name>
    <price>12</price>
    <detail></detail>
    </item>"
    xml2 = "
    <title>kids book</title>
    <year>2007</year>"
    I'm using a "DBMS_XMLDOM" to merge two XML to one.
    Would you please help me?
    result:
    <item>
    <name>Book</name>
    <price>12</price>
    <detail>
    <title>kids book</title>
    <year>2007</year>
    </detail>
    </item>

    Or maybe this?:
    SQL> SELECT xml1,
           xml2,
           XMLTYPE (REPLACE (xml1, '</item>') || xml2 || '</item>') merged_xml
      FROM (SELECT '<item>
    <name>Book</name>
    <price>12</price>
    <detail></detail>
    </item>' xml1,
                   '<title>kids book</title> <year>2007</year>' xml2
              FROM DUAL)
    XML1                      XML2                      MERGED_XML                                       
    <item>                    <title>kids book</title>  <item>                                           
    <name>Book</name>         <year>2007</year>         <name>Book</name>                                
    <price>12</price>                                   <price>12</price>                                
    <detail></detail>                                   <detail></detail>                                
    </item>                                             <title>kids book</title>
                                                        <year>2007</year>
                                                        </item>
    1 row selected.

  • No portlet found in portlet.xml

    We have deployed 2 war files that use the WCI jsr-168 container to a WebLogic 10.3 remote portlet server, but can not get them both to work at the same time. The error message that is displayed is just:
    "An error has occured
    No portlet found in portlet.xml for xportletname"
    If I Stop and Start the deployment of the one that displays this error, it starts working again, but then the other one stops working (showing this error).
    It seems that the jsr-168 container may be interfering with other instances of itself running on the same server.
    Any help is appreciated.

    hello
    your post is two years old now, so i am poping it pretty late, but did you get answers to your questions. i believe, we need to configure the oracle workflow engine itself
    regards
    ammar Sajdi
    Oracle consultant
    www.e-ammar.com
    REALSOFT - PALCO
    Amman

  • Merge two History.plist files

    Does anyone know how to merge two Safari History.plist files? I would like to take the history files from two different computers and merge them into one. The files are binary, so I can't just copy/paste the XML like in past .plist files; dragging entries from one to the other doesn't work in Property List Editor; and dragging entries into the History listing in Safari's bookmarks window doesn't work either.
    Message was edited by: Eliot White

    I appreciate your point of view, but to me, merging the history files from two computers would be very helpful. I often need to reference sites I've visited in the past, so for the last several years I have set Safari to only remove history entries manually. I find this more useful than bookmarking because I never know what I might want to reference in the future.
    I've been using two computers for the last year or so, and I am getting rid of one of them, so I would like to take the History.plist files from each computer and merge them into one. Anyone have any ideas?

  • Regarding merging two projects:

    we are doing the project using creator . i had desiged 10 pages of that project as one web application in creator and my collegue had done some pages as sepatare web application in creator. could you please tell me the way to merge these two web application as a single web application in creator.

    The hardest part is probably dealing with the fact that the two different project names have shown up in all kinds of places in the code (as package names).
    So, rename one of the projects to the name of the other. Now merging should be much simpler -- simply copy the jsps, the java files, and merge the navigation.xml and managed-beans.xml files, and you should be set (provided you don't have the same page names in both, e.g. Page1.jsp -- then you'll need to pick one, or rename one. Note that a page rename involves fixing all value binding references in other files too, as well as the managed-beans.xml entry for that page.)
    To find out how to rename a project, take a look a tthis blog entry:
    http://blogs.sun.com/roller/page/tor/20050120#changing_your_creator_package_names
    -- Tor
    http://blogs.sun.com/tor

  • How to Merge two PDF documents orginally created in different programs?

    I am trying to find information on how you can merge a PDF document created in LiveCycle and a PDF created in PageMaker or Microsoft Word?
    I know that you can easily merge two PDF documents created in the same program, but I am specifically looking for how you can merge two PDF documents created from two different programs. A step by step process would be helpful, if you have that information. Thanks.

    You use Assembler for this purpose.
    1) Assembler can be accessed through LC Java API. See http://help.adobe.com/en_US/enterpriseplatform/10.0/programLC/help/index.html
    API Quick Starts (Code Examples) > Assembler Service API Quick Starts
    2) Last week I posted on generating and merging PDF's from PostScript. Take a look at the assembly service instance in the .lca. Assembler uses DDX (Document Description XML) to describe document construction. NOTE the .lca was developed with ES 3 (aka ADEP). The .lca It contains the most basic DDX.
    <?xml version="1.0" encoding="UTF-8"?>
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
    <PDF result="out.pdf">
      <PDF source="inDoc1"/>
      <PDF source="inDoc2"/>
    </PDF>
    </DDX>
    http://forums.adobe.com/message/4019760#4019760
    DDX Reference at http://help.adobe.com/en_US/livecycle/9.0/ddxRef.pdf
    Steve

  • Please help me to merge two places.sqlite to get my old and New history at the same time, every time i rename my two places.sqlite to see my old and new history

    every time i rename my new places.sqlite to see my old history and come back rename old places.sqlite to see my new history, i tired and i found No Way to merge two places.sqlite :( but it's must be found this way for The PPL to see their old and new history :(
    Thank You all in Advance

    You can't merge history otherwise then using Sync to store the history and bookmarks of one places.sqlite on the Sync server and then disconnect.<br />
    Copy the second places.sqlite file to your Firefox profile folder with Firefox closed.
    Then setup Sync once again using that account and merge the content on the Sync server with your computer.
    * Merge this device's data with my Sync data

  • TS3988 how do i merge two icloud accounts - on on my computer and ipad, a different icloud id on my iphone?

    How do I merge two iCloud accounts into one?  One account is on my mac and ipad, the other on my iphone.

    Welcome to the Apple community.
    You cannot merge accounts, you will need to choose one and use it.

  • How do I merge two valid, purchased iTunes accounts into one so all my music is in same account?

    I have two valid, purchasd iTunes accounts.  Older iPod has some great music, I just got a new iPad and set up second iTunes account, bought some more iTunes items for that account.  Just discovered iCloud.  Now I want to put all my music from both accounts onto the cloud so I can access it on all my apple devices.   Can't seem to add from one account to the other.  Can sign onto the new account wiht my old iPod, but it will not let me sync without erasing all the music on the device.  How can I merge these two accounts into one?
    PS  Makes you wonder how helpful support is when the usernames "Frustrated," "really frustrated," and "Help!!!!" are all taken...lol

    HeyStupid wrote:
    how do I merge two valid, purchased iTunes accounts into one so all my music is in same account?
    You cannot. iTunes pruchases remian tied to the account they were purchased with.
    I just got a new iPad and set up second iTunes account,
    Why?
    Remove your info from new account, update old account as needed and use that.

Maybe you are looking for

  • Converting MP4 to AIFF

    I purchased a song to use in Final Cut Express. However, Final Cut Express will not accept MP3 or MP4 formats, only AIFF. But iTines will not convert MP4 to AIFF. Both iTunes and Final Cut Express are Apple products. Isn't one department of this comp

  • Hey ,,,

    since I updated the new iOS 6.1software , and the iPad cannot open any (ppt) formed file, and an error message "an error occured while reading the document" is shown  ,,, NeeD your help & Thanks Alot :D

  • Database Table where MRP Run results are saved-Urgent

    Hi Gurus i need your help in identifying the database table where the MRP Run results are saved , this is needed for creating a custom report similar to MD45(but for entire plant) where i can look and pull the sum of all the receipts and issues, ATP

  • How to set the default button of an ALERT

    Can someone help me how to set the alert propety to change the default button from button1 to button2.Not from the prioperty palette, but inside the code using like set_alert_property.I am using the Oracle Forms 10g. Thanks in advance. Srini

  • Edge Animate Z Axis

    I'm trying to make a pop-up book web site with Edge Animate using pop-up pictures like you would see in a children's book. I need to rotate on the z axis to make the pictures pop up, but I only have options to transform the x and y axis. I can make t