Extending ProfileImages.java for custom selectors

I am trying to extend ProfileImages servlet from /libs/foundation/src/impl/src/main/java/com/day/cq/wcm/foundation/profile/impl/ProfileIma ges.java
and bundling as an OSGI service.
I have the following annotations
@Component(immediate=true)
@SlingServlet(
    resourceTypes = {"nt:file"},
    methods = {"GET"},
    selectors = {"adjust","adjust.small"},
    extensions = {"res", "jpg", "png", "gif"}
I see my service in bundles and Services in OSGI console. However it is not doing as ProfileImages servlet used to do
ProfileImages create the thumbnail if we invoke the following URL
http://localhost:4502/content/dam/geometrixx/portraits/scott_reynolds.jpg.prof.thumbnail.1 00.100.jpg
If my servlet is invoke, I should get the same response
http://localhost:4502/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.100 .100.jpg
However I am getting is 404 which is from the DefaultGetServlet
It seems that Sling servet is not able to resolve my servlet
One thing I need to know is how to get my service updated in
Apache Sling Servlet Resolverorg.apache.sling.servlets.resolver
My servlet is doing the same thing as the following service in  sling servlet resolver
Service ID 843    Types: org.apache.sling.api.resource.ResourceProvider
Description: ServletResourceProvider for Servlets at [/libs/foundation/components/primary/nt/file/prof/thumbnail.gif.servlet, /libs/foundation/components/primary/nt/file/prof.gif.servlet, /libs/foundation/components/primary/nt/file/prof/thumbnail.res.servlet, /libs/foundation/components/primary/nt/file/prof.jpg.servlet, /libs/foundation/components/primary/nt/file/prof.png.servlet, /libs/foundation/components/primary/nt/file/prof/thumbnail.png.servlet, /libs/foundation/components/primary/nt/file/prof/thumbnail.jpg.servlet, /libs/foundation/components/primary/nt/file/prof.res.servlet]
My service should be listed in sling resolver  with id and something like
...../adjust.small.jpg.servlet, ..../adjust.res.servlet
Is there any configurations I have to do to get my service in  over resource resolver?

Looks like to me Duplicate of http://forums.adobe.com/thread/1215666

Similar Messages

  • Extended withholding tax for customer tds

    I WANT CONFIGURATION STEPS FOR CUSTOMER TDS ( CREDIT MEMO)

    Hi Srinivas,
    No additional customization required for customers credit Memo TDS except this one. All configuration setting for Vendor withholding Tax procedure also applicable to Customers.
    Go to ASSIGN WITHHOLDING TAX TYPES TO COMPANY CODES
    then select subject to w/tx check box under customer data
    Sunitha.

  • How to activate Extended Rebate Processing in Customizing for billing?

    sap gurus:
    How to activate Extended Rebate Processing in Customizing for billing?

    SAP Knowledge Base Article
    1520390 - Activation of Enhanced Rebate Functionalities - IMG Customizing Transactions - SAP Menu
    Version 1 Validity: 19.10.2010 - active
    Language English
    Symptom
    Enhanced Rebate Functionality is not available and should be activated
    In the customizing IMG (Transaction SPRO) the node for Extended Rebate with the relevant customizing transactions are not visible
    The SAP Menu does not include the transactions for Extended Rebate
    Environment Enterprise Function EA-ISE must be available in the system (visible in transaction SFW5).
    Reproducing the Issue
    Call transaction SPRO
    Node Extended Rebate Processing is missing:
    IMG
    Sales and Distribution
       > Billing
            > Rebate Processing
                 > .................
    Resolution To activate the Extended Rebate Processing and make the node and customizing transactions visible proceed in the following way:
    Call transaction SFW5   
    In the folder ENTERPRISE_EXTENSIONS choose the function EA-ISE
    Activate this enterprise extension
    Thereafter the menu path in SPRO for Extended Rebate Processing will be visible:
    IMG
    Sales and Distribution
       > Billing
            > Rebate Processing
                > Extended Rebate Processing
                            * Settings for Agreement Types
                            * Set up Variable Key for Rebate Settlement
                            * Check Variable Key for Rebate Settlement
                            * Activate Extended Rebate Processing
                            * Simulate And Execute Reorganization of Statistical Data
    Furthermore the users will have the relevant transactions available in the SAP Menu:
    SAP menu
      > Logistics
         > Sales and Distribution
              > Billing
                   > Rebate 
                        > Extended Rebate Processing
                             * RBT_ENH_VB7 - Extended Rebate Settlement
                             * RBT_ENH_ACT - Update of Indirect Sales
                             * RBT_ENH_PLAN - Update of Indirect Planning Data
    For futher infomation on the extended rebate process please refer to the following links of SAP help portal:                     
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/5a/5b9b3c0f4da40ee10000000a11405a/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/79/a5ee3c1f63a518e10000000a11405a/frameset.htm
    Keywords
    Extended rebate agreement, extended rebate processing, erweiterte Bonusabwicklung, Menü, Pfad nicht vorhanden, aktivieren, erweiterter Bonus, Bonusabsprache
    Header Data
    Released On
    21.10.2010 08:01:20
    Release Status
    Released to Customer
    Component
    SD-BIL-RB-ENH Enhanced Rebates
    Other Components
       SD-BIL-RB Rebate Processing
    Priority
    Normal
    Category
    How To
    Product    
    Product
    Product Version
    SAP ERP Central Component
    All versions
    SAP R/3 Enterprise 4.7
    All versions

  • I need to extend the schema for iPlanet Dir. 5.0 and add custom objectclasses and atributes. I do this by adding entries in the 99user.ldif file. Its not working. Any ideas?

    Hi
    I need to extend the schema for iPlanet Dir. 5.0 and I do not want to do so from the console. As per the documentation, I need to either add entries in the 99user.ldif file or define my own custom [00-99]myname.ldif file. I tried this but its not working.
    I have made the assumption that there is no explicit import step for the 'user defined' schema files (as it is for user data ldif files). I assume that on start (or on opening the console), I'd be able to see the new schema after the server has read the schema file.
    I have verified that entering new objectclasses and attributes from the console adds entries into the 99user.ldif file. So why is the reverse process not working. Can anybody throw some light on this? Also in case my assumptions are faulty, please let me know.
    I did not change the aci entries in the existing ldif file. Is any modification needed there? I was logged in as the Directory Manager during this testing process.
    regards
    Sikka ([email protected])

    Hi Sikka,
    The server reads its schema configuration on startup. If you manually modify the schema files while the server is running, it will not have any effect. You have to restart the server.
    The console adds the new schema elements over LDAP (you could do that as well, you only have to modify the cn=schema entry), so the server is aware of the changes immediately and thus restarting is not needed.
    I hope this helps.
    Bertold

  • Extended warranty for customer equipment

    Dear All,
             In CS, how to map the Extended warranty? For eg..I sell a equipment to a customer with 1 year warranty say from 01.01.2008 to 01.01.2009.After this period Customer wants to extend the warranty period for 1 more year.So,How we can capture this extended warranty? As per my understanding we can go and change the warranty end date,but the client requires proper information on extended warranty start and end date.
    Regards
    Arun

    Hi Pete,
            Can u pls tell me in depth about classification for Extended warranty?
           As per my understanding is Creating a Characteristic naming "Extended warranty" and entering the value and assigning to a calss and then  to Equipment Right?
    Regards
    Arun

  • Custom iterator for custom list.

    I'm trying to write a custom iterator for custom linked list. What I don't understand is, whether the iterator should be in the link(node) inner-class or in the linked-list outer-class.
    I seem to be getting errors in the outer-class, but in the inner-class it compiles fine. Whether or not it works is another story.
    The code below is without errors in eclipse, however it doesn't make much sense to me to have the next() and hasNext() methods in the Node when the Iterator needs to iterate the list.
    import java.util.*;
    public class OctoList<T> extends AbstractCollection<T> implements Iterable<T>
        // Inner Class
        private class Octo<E>
            // Octo will be a Node with 8 elements not including size, and links.
            public Octo<T> next()
              if (!hasNext())
                throw new NoSuchElementException();
              current = current.next();
              return current;
            public boolean hasNext()
              return (current.next() != null);
        // outer class
        private Octo<T> head;
        private Octo<T> tail;
        private Octo<T> current = head;
        private final int ARRAY_SIZE = 8;
        @Override
        public Iterator<T> iterator()
            return null;
        @Override
        public int size()
            return 0;
        @Override
        public boolean isEmpty()
            return size() == 0;
    }

    Gcampton wrote:
    I'm trying to write a custom iterator for custom linked list. What I don't understand is, whether the iterator should be in the link(node) inner-class or in the linked-list outer-class.In the list class. After all, you're iterating a list, not a node.
    I seem to be getting errors in the outer-class, but in the inner-class it compiles fine. Whether or not it works is another story.Then you'll have to fix those errors so it both compiles and works as intended.
    You can create the iterator as an inner class in the list.

  • Function module for customer open item aging report

    Hi all,
    Please let me know the FM for customer open item aging or which FM is used in tcode S_ALR_87012178 to get the age wise open item of customer.
    Thanks in advance
    Regards
    Puneet

    <b><u>Part4</u></b><br />
    <br />
    <pre class="jive-pre"><code class="jive-code jive-java"><font color="red">&quot;&#38;----</font>
    <font color="red">&quot;*&#38;      Form  process_data</font>
    <font color="red">&quot;&#38;----</font>
    FORM PROCESS_DATA .
      DATA : L_TOTAL_TMP(15). <font color="red">&quot; LIKE BSID-DMBTR. </font>
      CLEAR :  L_TOTAL,LPD_TOTALS.
    <font color="red">&quot;* As per Customer accumulate the amount.</font>
    <font color="red">&quot;* For overdue items.</font>
      CLEAR : L_TOTAL_TMP.
      LOOP AT L_OPENDUE_LT.
      CONDENSE L_OPENDUE_LT-DMBTR NO-GAPS.
      L_TOTAL_TMP = L_TOTAL_TMP + L_OPENDUE_LT-DMBTR.
        AT END OF KUNNR.
          LPD_TOTALS-KUNNR = L_OPENDUE_LT-KUNNR.
          LPD_TOTALS-LPD_TOTAL = L_TOTAL_TMP.
          APPEND LPD_TOTALS.
          CLEAR : L_TOTAL_TMP.
        ENDAT.
      ENDLOOP.
      CLEAR :  L_TOTAL,LOA_TOTALS.
    <font color="red">&quot;* As per Customer accumulate the amount.</font>
    <font color="red">&quot;* For Open Items.</font>
      CLEAR : L_TOTAL_TMP.
      LOOP AT L_OPENDUE_LE.
        CONDENSE L_OPENDUE_LE-DMBTR NO-GAPS.
        L_TOTAL_TMP = L_TOTAL_TMP + L_OPENDUE_LE-DMBTR.
        AT END OF KUNNR.
          LOA_TOTALS-KUNNR = L_OPENDUE_LE-KUNNR.
          LOA_TOTALS-LOA_TOTAL = L_TOTAL_TMP.
          APPEND LOA_TOTALS.
          CLEAR : L_TOTAL_TMP.
        ENDAT.
      ENDLOOP.
    <font color="red">&quot;* Get ageing data based slabs, and duedate.</font>
      PERFORM AGEING_DATA.
      LOOP AT L_BSID.
    <font color="red">&quot;* Move the data to final internal table.</font>
        MOVE L_BSID-KUNNR TO FINAL_DATA-KUNNR.
        MOVE L_LANDX TO FINAL_DATA-LANDX.
        MOVE L_PSTLZ TO FINAL_DATA-PSTLZ.
        MOVE L_NAME TO FINAL_DATA-NAME1.
        MOVE L_PHONE TO FINAL_DATA-PHONE.
        MOVE L_SORTL TO FINAL_DATA-SORTL.
        MOVE L_BSID-ZTERM TO FINAL_DATA-ZTERM.  
        MOVE L_BUSAB TO FINAL_DATA-BUSAB.        
        READ TABLE LPD_TOTALS WITH KEY KUNNR = L_BSID-KUNNR.
        IF SY-SUBRC EQ 0.
          MOVE LPD_TOTALS-LPD_TOTAL TO FINAL_DATA-LPD_TOTAL.
        ENDIF.
        READ TABLE LOA_TOTALS WITH KEY KUNNR = L_BSID-KUNNR.
        IF SY-SUBRC EQ 0.
          MOVE LOA_TOTALS-LOA_TOTAL TO FINAL_DATA-LOA_TOTAL.
        ENDIF.
        READ TABLE AGE_DATA WITH KEY KUNNR = L_BSID-KUNNR.
        IF SY-SUBRC EQ 0.
          MOVE AGE_DATA-CURAMT TO FINAL_DATA-CURAMT.
          MOVE AGE_DATA-AMT1 TO FINAL_DATA-AMT1.
          MOVE AGE_DATA-AMT2 TO FINAL_DATA-AMT2.
          MOVE AGE_DATA-AMT3 TO FINAL_DATA-AMT3.
          MOVE AGE_DATA-AMT4 TO FINAL_DATA-AMT4.
          MOVE AGE_DATA-AMT5 TO FINAL_DATA-AMT5.
          MOVE AGE_DATA-AMT6 TO FINAL_DATA-AMT6.
        ENDIF.
        ENDIF.
        APPEND FINAL_DATA.
        CLEAR: FINAL_DATA.
      ENDLOOP.
    ENDFORM.                    <font color="red">&quot; process_data</font>
    </code></pre>

  • Usage of SAP Event Management as backend for custom mobile applications

    Hi,
    I'm am looking for an appropriate implementation approach for custom mobile applications as complement for warehouse processes with SAP Extended Warehouse Management.
    Possible scenarios:
    i) Goods issue - loading process
    There are requirements like capturing of various data about the vehicle and load per RF handheld computer. The goal is to trace and archive them for analysis and reporting purposes.
    ii) Goods receipt -production process
    The production supply and goods receipt from production are realized in SAP EWM. The request is to collect data about the production process for quality reasons by use of RF devices.
    You can picture oneself the additional mobile data entry activities during the various processes as predefined question catalogues with answer options.
    The frontend - the additional mobile transactions can be realized with the EWM-Radio-Frequency-Framework, too. But I feel confindent that there is a better way to track, trace, store, analyse, report and archiv of the collected data to Y-TABLES.
    Would you recommend to use SAP Event Management for this purpose to complement the SAP EWM processes?
    The existing requirements as described above is in my understanding only a little fraction of the capabilities of SAP Event Management. The data collection and evaluation process is local within the warehouse. At first there is not requested any automatic system behaviour to particular events...
    There are a lot material and information about SAP Event Management. But I havent found an easy getting started for my simple business scenario to enhance the EWM processes with the EM capabilities. How I could realize a question/anwer catalogue with the EM tools?
    Thanks in advance!
    Best regards,
    Laura

    Hello Laura,
    principally the process would fit for EM. But EWM is not integrated up to now to EM i.e. you would have to do the connection from EWM to EM by your own.
    How to generally connect an application to EM is described here:
    service.sap.com/scm
    -> Event Managament
    -> Technical Information
    -> Connect SAP objects to SAP EM
    Best regards,
    Steffen

  • What is it with Verizon lately and their lack of concern for customer satisfaction?

    I am increasingly frustrated with Verizon and their lack of concern for customer satisfaction.  I have been with them since they began and through the years they have become less and less customer friendly.  All I want to do is do an early upgrade to the IPhone 6, I have one line that is out of contract, two that will be up in May and one in October.  All the lines are eligible for early edge but only if we take a Motorola phone we do not want because they have some contact with them to push phones no one wants.  Seriously Verizon what the heck is wrong with you, trying to force people who have been loyal to you to take a phone they don't want because they paid you to do so.  I'm not trying to leave for the competition but at this point I may have to.  I had even checked back in November when I saw we were eligible for the early edge and was told we could only do the Motorola phone but that promotion would be over Dec 31 and after that we could upgrade to any phone we wanted.  Imagine my disappointment when we go to a verizon store to find out that was a lie and they entered into another lame contract with Motorola to push a diffent phone (last years model that didn't sell) and we would be forced to take one.  I contact customer service and was told to bad, sorry we lied to you but it's either that phone or wait out your contract.  Well maybe it's time to switch because it's very obvious that Verizon no longer cares about their customers, hey Verizon can you hear me now?

    I'm not trying to get out of my contract, I have been with Verizon for 15+ years and have always been able to do an early upgrade, we just forgo the discount $50 or $100 we would get off the new phone.  I have been told several times by Verizon employees that if I am within 6 months of my contract end I could do an early upgrade I just would not get the additional money off.  I was also told in November that I could do the edge up for any phone after Dec 31st.   I was lied to and that seems to be happening more and more.  Verizon has been changing its practices to the detriment of its loyal customers.  One of the reasons I liked Verizon and stayed with them for so long was because they were always willing to work with their customers and Verizon can change or alter their agreements anytime they want.  I wish they would train their emploves not to be deceptive and tell people one thing and then do another. I can understand if I was trying to cancel my contract but I am not and would be extending my contract by two years as opposed to leaving in the next 6 months.

  • Hi masters, want bapi for customer balance report

    HI Masters,
                   please can any one give reply about bapi whch one is using for developing customer balance report in webdynpro java
    I want to see the customer balance report in portal through developing webdynpro java application only. for developing , i need bapi regarding customer balance report. Customer when he login the portal he has to view his ledger balance in portal.please  give reply about the bapi to see customer ledger balance . we can do by transactional iview. but i need only through webndynpro java application
    reply will appreciated.

    Hi surya,
    The tcode for customer balance report is FBL5N
    BAPI_AR_ACC_GETKEYDATEBALANCE -
    >Customer account balance at a key date .
    Regards,
    srikanth

  • Annual tax report for customer/vendor (Italy) - RFIDITCVL program

    Hello,
    we're using the Annual tax report for customer/vendor (Italy) in the ECC 6.0 version but we've the following problems:
    - We only see a list of records in the List error section, where the field "Group" is not valued, so we don't know if the list is really an error list or not.
    - We don't see anything in the results list
    Do you know if there is some OSS Note we can apply or some customizing activity we have to do. Thank you.
    Maria

    Hi,
    Use Report MIR5
    MIR5 - Display List of Invoice Documents
    You can use the report Display List of Invoice Documents (RMMR1MDI; transaction code MIR5) to display a list of the invoice documents.
    In addition to the existing program Invoice Overview (transaction code MIR6), here you have extended selection criteria and display options:
    o   Gross invoice amount
    o   Unplanned delivery costs
    o   Currency key
    o   Exchange rate
    o   Entry date
    o   Entry time
    o   Choice between invoice and credit memo
    o   One-time customer with a one-time account
    In the Invoice Overview program you can also change invoices, whereas in this report you only have display options.
    By entering the following data you can increase your selection criteria:
    o   Entry type
    o   Invoice status
    o   Restrictions
    Output: -
    In the output list, the report displays the numbers of the posted and the parked invoice documents. The system does not display invoice documents that do not have a corresponding FI document, for example, invoice documents that are planned for verification in the background, or that have already been verified with errors.
        From the output list, you can display the following:
        o   Invoice document
        o   FI document or list of FI documents
            If more than one FI document is assigned to an invoice document, then you can display a list of all corresponding FI documents.
        o   List of all follow-on documents for an invoice document.

  • Withholding Tax for Customer Down Payment F-29

    Dear all,
    I have configured the withholding tax and it works fine for the AP: invoice, payment, advance payment.
    However I encountered problem for AR side: customer down payment (F-29). During the payment there is a "withholding tax" button that once you click a pop-up window will appear to enable you enter the withholding tax data.
    My problem is no withholding pop up window appear and no error message as well. Thus I am unable to enter the withholding tax data.
    The customer has been assigned with withholding tax type and withholding tax code. I follow the follow documentation for the configuration steps and it works well on AP side.
    http://www.sapficoconsultant.com/Bonus/Extended%20Withholding%20tax%20configuration.pdf
    Can you please kindly advise if there is any missing step need to be performed for withholding tax configuration for customer? How to solve the above issue?
    thank you very much in advance.
    Dahlia

    Hi Umesh,
    Thank you very much for your quick respond.
    Yes, I forget to mentioned in my previous email, I have done the following in the customer master:
    1. Assigned withholding tax type and withholding tax code.
    2. Enter the validity date from and to.
    3. Check the withholding tax checkbox in customer master.
    However the F-29 still do not have a withholding tax window pop-up.
    Any other things that I need to do?
    Thanks a lot.
    Dahlia

  • Tables for customer rebate

    Hi Gurus,
                   Could any1 tell me the Tables for customer rebate. I am using the T-Code VBO3.
    Regards,
    Ashok...

    Hi Ashok
    here below the relevant tables:
    KONA-->agreements
    KONH-->header rebate conditions
    KONP--> Item rebate conditions
    S060-->Statistical data on accrual settlements etc..
    S136-->relevant invoices
    S469--> if u use extended rebate
    Pricing tables relevant are theones with prefix KOTE before i.e. KOTE005
    anyway i suggest to use FM to retrieve relevant values
    SD_BONUS_SETTLEMENT
    SD_BONUS_KONPD_FILL
    SD_BONUS_TURN_OVER
    SD_BONUS_VALUE_CALCULATION
    etc...
    Bye
    Carmine

  • How to use Cache Management Library (CML) for custom applications?

    Hello,
    We are planning the migration of multiple applications (J2EE, Portal, Web-Dynpro for Java) from 7.01 to 7.3 and we would like to replace some custom cache implementations with a central cache management provided by the SAP Web-AS Java.
    Several SAP standard services (e.g. UME, Configuration Manager, Scheduler) seems to use the "Cache Management Library" (CML):
    [http://help.sap.com/saphelp_nw73/helpdata/en/4a/f833eb306628d2e10000000a42189b/frameset.htm]
    Such caches can be monitored using SAP Management Console (AS Java Caches).
    Portal Runtime (cache_type=CML) and Web Page Composer can also be configured to use CML:
    [http://help.sap.com/saphelp_nw73/helpdata/en/49/d822a779cf0e80e10000000a42189b/frameset.htm]
    [http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/13/76db395a3140fcb17b8d24f5966766/frameset.htm]
    So our questions:
    How to use CML for custom applications?
    Is there any example or documentation available?
    Kind Regards,
    Dirk

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • Log4j not logging messages out to weblogic console for custom automatplugin

    Hi,
    We have a custom automation plugin for the OSM application build 381 in our environment(HP-UX Itanium platform). The plugins are bundled in a single ear application "A.ear" which is a mixed bag of pre-defined automation plugins of type XsltSender, XsltAutomator(both InternalReciever as well ExternalReceiver) as well other custom automators(java). For logging of messages in order to aid debugging of custom automators, we are using a logger "com.xyz.osm.plugin" which is also declared in log4j.xml file that is within omslogging.jar. You must already be aware that the build scripts of assembling, deploying ansd registering plugins also includes omslogging.jar are part of the application ear.
    <category name="com.mtsa.osm.plugin">
    <priority value="debug"/>
    </category>
    Below java code snippet is taken from our custom automation plugin classes indicating how the above logger is being used for printing messages.
    //Declaration
    private static Log log = LogFactory.getLog("com.mtsa.osm.plugin");
    mthod1(){
    log.info("xyz");
    In addition to the above logger, the pre-defined automators XsltSender, XsltReceiver also enable logging from xsl files by making the "log" parameter available. Thus we have lines such as the one below in our xsl files that should print messages to the weblogic console.
    <xsl:variable name="addLog1" select="java:info($log, 'transformSiebelActivationRequest: ***** Starting *****')"/>
    The logger that allows printing of these lines is "com.mslv.oms.automation".
    <category name="com.mslv.oms.automation">
    <priority value="info"/>
    </category>
    These configurations should have ideally allowed one to see messages such as one below getting printed out to weblogic console:
    <16-Mar-2012 8:59:36,931 CDT PM> <INFO> <plugin.XSLTReceiver> <ExecuteThread: '19' for queue: 'oms.automation'> <transformSiebelActivationRequest: ***** Starting *****>
    Unfotunately after having done all the above configuration, we are still unable to see any such log messages in the console apart from those emitting from SOP and from <xsl:message> inserted in java & xsl files respectively.
    I also checked if the log4j sub-system is able to correctly initialize after parsing the log4j.xml. It does and one can confirm it by setting system property log4j.debug=true in setDomainEnv.sh file.
    $$$$$$$$ log4j initialization by application classloader for oms.ear application $$$$$$$$$$$$$$$$$$
    log4j: Trying to find [log4j.xml] using context classloader weblogic.utils.classloaders.GenericClassLoader@1592141 finder: weblogic.utils.classloaders.CodeGenClassFinder@1112e85 annotation: oms@.
    log4j: Using URL [zip:/home/osmwl/bea/user_projects/domains/dev04/servers/osmdev04/tmp/_WL_user/oms/amuube/omslogging.jar!/log4j.xml] for automatic log4j configuration.
    log4j: Preferred configurator class: org.apache.log4j.xml.DOMConfigurator
    log4j: System property is :null
    log4j: Standard DocumentBuilderFactory search succeded.
    log4j: DocumentBuilderFactory is: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
    $$$$$$$$ log4j initialization by application classloader for custom automation plugin xyz.ear application $$$$$$$$$$$$$$$$$$
    log4j: Trying to find [log4j.xml] using context classloader weblogic.utils.classloaders.GenericClassLoader@1b7a8c5 finder: weblogic.utils.classloaders.CodeGenClassFinder@10bc849 annotation: xyz.ear@.
    log4j: Using URL [zip:/home/osmwl/bea/user_projects/domains/dev04/servers/osmdev04/tmp/_WL_user/xyz.ear/ah0eeq/omslogging.jar!/log4j.xml] for automatic log4j configuration.
    log4j: Preferred configurator class: org.apache.log4j.xml.DOMConfigurator
    log4j: System property is :null
    log4j: Standard DocumentBuilderFactory search succeded.
    log4j: DocumentBuilderFactory is: weblogic.xml.jaxp.RegistryDocumentBuilderFactory
    log4j: debug attribute= "false".
    Ironically, logging levels for loggers defined in log4j.xml of oms.ear could be dynamically changed from log4jAdmin.jsp page and the results are immediately visible. However for some reason, loggers defined in log4j.xml of custom plugin application were completely getting ignored. I don't see any warnings or erro messages in the logs indicating that log4j configuration failed for custom application failed. We want to refrain using SOP and <xsl:message> but I am afraid we have no option other than filling up our sources files with them.
    Bottomline, how do we get application B(which in our case is the custom plugin) to log messaged the console just like that done by application A(oms.ear).
    I am sure OSM developers would like to leverage log4j bundled with OSM SDK to log messages that would aid in trouble-shooting during development cycles. Both application ear files have commons-logging-1.1.jar,log4j-1.2.13.jar, omslogging.jar available in their classpaths. In other words, META-INF/MANIFEST.MF file of oms.war(web module within oms.ear) and xyz.jar(ejb module within xyz.ear) has references to these jars.
    Appreciate if one can reply and let me know if they could get log messages to print from custom plugin.
    Thanks
    Edited by: user3693508 on Mar 18, 2012 11:38 AM

    Hi,
    We have a custom automation plugin for the OSM application build 381 in our environment(HP-UX Itanium platform). The plugins are bundled in a single ear application "A.ear" which is a mixed bag of pre-defined automation plugins of type XsltSender, XsltAutomator(both InternalReciever as well ExternalReceiver) as well other custom automators(java). For logging of messages in order to aid debugging of custom automators, we are using a logger "com.xyz.osm.plugin" which is also declared in log4j.xml file that is within omslogging.jar. You must already be aware that the build scripts of assembling, deploying ansd registering plugins also includes omslogging.jar are part of the application ear.
    <category name="com.mtsa.osm.plugin">
    <priority value="debug"/>
    </category>
    Below java code snippet is taken from our custom automation plugin classes indicating how the above logger is being used for printing messages.
    //Declaration
    private static Log log = LogFactory.getLog("com.mtsa.osm.plugin");
    mthod1(){
    log.info("xyz");
    In addition to the above logger, the pre-defined automators XsltSender, XsltReceiver also enable logging from xsl files by making the "log" parameter available. Thus we have lines such as the one below in our xsl files that should print messages to the weblogic console.
    <xsl:variable name="addLog1" select="java:info($log, 'transformSiebelActivationRequest: ***** Starting *****')"/>
    The logger that allows printing of these lines is "com.mslv.oms.automation".
    <category name="com.mslv.oms.automation">
    <priority value="info"/>
    </category>
    These configurations should have ideally allowed one to see messages such as one below getting printed out to weblogic console:
    <16-Mar-2012 8:59:36,931 CDT PM> <INFO> <plugin.XSLTReceiver> <ExecuteThread: '19' for queue: 'oms.automation'> <transformSiebelActivationRequest: ***** Starting *****>
    Unfotunately after having done all the above configuration, we are still unable to see any such log messages in the console apart from those emitting from SOP and from <xsl:message> inserted in java & xsl files respectively.
    I also checked if the log4j sub-system is able to correctly initialize after parsing the log4j.xml. It does and one can confirm it by setting system property log4j.debug=true in setDomainEnv.sh file.
    $$$$$$$$ log4j initialization by application classloader for oms.ear application $$$$$$$$$$$$$$$$$$
    log4j: Trying to find [log4j.xml] using context classloader weblogic.utils.classloaders.GenericClassLoader@1592141 finder: weblogic.utils.classloaders.CodeGenClassFinder@1112e85 annotation: oms@.
    log4j: Using URL [zip:/home/osmwl/bea/user_projects/domains/dev04/servers/osmdev04/tmp/_WL_user/oms/amuube/omslogging.jar!/log4j.xml] for automatic log4j configuration.
    log4j: Preferred configurator class: org.apache.log4j.xml.DOMConfigurator
    log4j: System property is :null
    log4j: Standard DocumentBuilderFactory search succeded.
    log4j: DocumentBuilderFactory is: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
    $$$$$$$$ log4j initialization by application classloader for custom automation plugin xyz.ear application $$$$$$$$$$$$$$$$$$
    log4j: Trying to find [log4j.xml] using context classloader weblogic.utils.classloaders.GenericClassLoader@1b7a8c5 finder: weblogic.utils.classloaders.CodeGenClassFinder@10bc849 annotation: xyz.ear@.
    log4j: Using URL [zip:/home/osmwl/bea/user_projects/domains/dev04/servers/osmdev04/tmp/_WL_user/xyz.ear/ah0eeq/omslogging.jar!/log4j.xml] for automatic log4j configuration.
    log4j: Preferred configurator class: org.apache.log4j.xml.DOMConfigurator
    log4j: System property is :null
    log4j: Standard DocumentBuilderFactory search succeded.
    log4j: DocumentBuilderFactory is: weblogic.xml.jaxp.RegistryDocumentBuilderFactory
    log4j: debug attribute= "false".
    Ironically, logging levels for loggers defined in log4j.xml of oms.ear could be dynamically changed from log4jAdmin.jsp page and the results are immediately visible. However for some reason, loggers defined in log4j.xml of custom plugin application were completely getting ignored. I don't see any warnings or erro messages in the logs indicating that log4j configuration failed for custom application failed. We want to refrain using SOP and <xsl:message> but I am afraid we have no option other than filling up our sources files with them.
    Bottomline, how do we get application B(which in our case is the custom plugin) to log messaged the console just like that done by application A(oms.ear).
    I am sure OSM developers would like to leverage log4j bundled with OSM SDK to log messages that would aid in trouble-shooting during development cycles. Both application ear files have commons-logging-1.1.jar,log4j-1.2.13.jar, omslogging.jar available in their classpaths. In other words, META-INF/MANIFEST.MF file of oms.war(web module within oms.ear) and xyz.jar(ejb module within xyz.ear) has references to these jars.
    Appreciate if one can reply and let me know if they could get log messages to print from custom plugin.
    Thanks
    Edited by: user3693508 on Mar 18, 2012 11:38 AM

Maybe you are looking for

  • Error when syncing with iTunes and Windows 7 64Bit(AMD)

    I keep getting this error: Attempting to copy to the disk " Your Name Here's IPhone" failed. The Device timed out... It works fine on my Netbook ( Wind 7 32 Bit) I am sure someone has this issue... I tried running in XP mode, Shut off my Pass lock, U

  • Enhancement for free goods ratio

    Hi, standard free goods are in the ration 1:1 how  do we enhance the free goods for 1:2 ratio(if  customer purchase one meterial , two different meterials are  free) Can anybody tell me how i can do the enhancement. Thanks & Regards. Praveen.** Edite

  • TREX sapccmsr agent not working

    HI.      We have TREX7.0 system. In trex mmc sapccsr agent is not running. As per some guides we registered sapccmsr agent using  sapccmsr pf=<instprofile> -j2ee -r to central solution manager system in services sapccmsr agent is registerd and starte

  • [SOLVED] Chrome OS + Arch w/ full system encryption: Is it possible?

    I want to dual boot Chrome OS and Arch on a Chromebook. More importantly, I want to run Arch with full system encryption, such as with dm-crypt. As I understand it, in order to use full disk encryption, /boot must be a non-encrypted partition. If I d

  • M515 errors summary wont clear

    I use an m515 and have an issue where, when I hot sync, I get a balloon that shows I have synced but have messages from the sync - when I look it tells me about an error from 2 weeks ago that I know about, and lists the issues (there was a connection