Copying XCM Customer Application Configuration

Hi,
is there a way to copy an XCM customer application configuration from one environment to another. We want to copy the development configuration to QA and production without redoing the configuration in every environment as this could easily lead to errors.
Thanks.
Thierry

Hi Benny,
Thanks for your reply and time spent..
Here is location I found htmlb.ear
C:/usr/sap/J2E/JC00/SDM/root/origin/sap.com/com.sapportals.htmlb.ear/SAPAG/6.4011.00.0000.20050121164722.0000
htmlb.sda files
C:/usr/sap/J2E/JC00/SDM/root/origin/sap.com/com.sapportals.htmlb/SAPAG/6.4011.00.0000.20050121164722.0000
After moving these htmlb.ear and htmlb.sda into a temp folder. I tried to deploy it using SDM.
SDM complains that it already have deployed version of both of them.
But, I am not able to trace them any where else under
C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/
Or ~/server0/bin/ext folders.
Even I thought of removing and install it again. But, SDM complains that I have to remove the whole ISA packge.
Benny, Is'nt J2EE server can excess SDM repository.
What's the right way of deploying it.
Thanks for your kind help.
regards,
solvant

Similar Messages

  • Custom Application Configuration not pulling the data in E-Recruiting

    Hello,
    My requirement is to make some fields 'required', hide some buttons, change button texts & hide some columns in standard wd component (ERC_A_REQ_MGMT) delivered by SAP. So I created an application configuration and component configuration and did the layout customization. Now in the application I am passing this new configuration name with the parameter (sap-wd-configId)(......sap/bc/webdynpro/sap/erc_a_req_mgmt?sap-wd-configId=ZZERC_A_REQ_MGMT)
    As this is a portal environment, in LPD_CUST, In the application parameters, I've used this parameter (sap-wd-configId=ZZERC_A_REQ_MGMT). The custom application is displayed, however, the data is not being passed to this custom configuration, so when I open a exisiting requisition from dashboard, this is shown as empty screen (like a new requisition), but when I take off this parameter from the lpd_cust, the standard app is working fine. Can you please help me understand why the data is not being passed to the custom application configuration?
    Really appreciate your insights.
    Thank you.

    Hi,
    We faced the same issue in SAP E-recruiting EHP4 solution. The reason is, the configuration which is assigned statically in FPM editor is loaded after the OVERRIDE_EVENT_OIF and thus discards all context nodes which have been already initialized. Afterwards, the context node of has no value anymore and the field on UI doesnu2019t display anything.
    Remove the static component configuration in the FPM editor and use the following code in the wddoinit method of the view V_GEN_JOB_INFO. This assignment happens at the runtime.
      data: lo_api_controller          type ref to if_wd_component,
            lo_pers_manager            type ref to if_wd_personalization,
            ls_configuration           type wdy_config_key,
            lt_config_table            type wdy_config_table,
            ls_config_header           type wdy_config_header,
            lo_fpm                     type fpm_s_runtime_info,
            ls_fpm                     type fpm_s_runtime_info.
          lo_api_controller = wd_comp_controller->wd_get_api( ).
         lo_pers_manager = lo_api_controller->get_personalization_manager( ).
         lo_fpm = wd_comp_controller->go_fpm->get_runtime_info( ).
        ls_configuration-config_id    = u2018ZERU_REG_REQ_MGMT_UIu2019 u201C Your Component configuration name
        lo_pers_manager->load_config_by_key( ls_configuration ).
       Thanks,
       S Rajkumar.
    Edited by: Rajkumar S on Aug 24, 2010 7:54 AM

  • No XCM application configuration has been passed

    Hi,
    We are configuring ISA in ECC 5.0(ERP).
    When trying the URL http://<host>:<port>/shopadmin/shopadmin/init.do we are getting a message "ISA Framework: Internal Error No XCM application configuration has been passed and there is no default XCM application configuration defined. Check XCM configuration".
    Please help us regaring this.
    Thanks,

    HI,
    Go to your XCM page for B2B application  - http://<host>:port/b2b/admin/xcm/init.do and activate Application Configuration in Application Configuration => Customer,
    Hope this helps,
    Regards,
    Mike

  • Application error while testing the custom application

    Hello Experts,
    I've an Enterprise Apllication project named TEST (which is of standard source code of icss)
    The test.EAR file is deployed successfully.
    While testing the custom application link I'm getting the below error,
    like,
    https://host:50001/test/indexStandalone.jsp
    Kindly let me know how to resolve this.
    Any pointers will be appreciated.
    bold
      Application error occurred during request processing.
      Details:   Error [javax.servlet.ServletException: Initialization of Extended Configuration Management failed.
    Could not initialize XCM configuration in Database.
    Check if you have deployed the Software Component 'SAP JAVA DATA DICTIONARY 5.0'].
    Exception id: [001372F65D2500570000008900000F6C000462B4700DAC9F]
    bold
    Thanks & Regards,
    Senthil.

    Hi senthil,
                      I think it is application.xml file. for example it should be look like this after modification.
    <application>
        <display-name>home/(customAppName)</display-name>
        <description>EAR description</description>
         <module>
          <web>
            <web-uri>sap.comcrmicsswebicss_b2b.war</web-uri>
            <context-root>customAppName</context-root>
          </web>
        </module>
    </application>
    check this once.......
    Regards,
    Anil.

  • Custom Application in CRM 5.0 SP13

    We have made changes as per note 1017761 to get a custom application working ...
    In the attached file I have made a summary of the errors related to
    the "sap.com/home~syn_crm" application.
    Overall we have 3 missing references to classes or classes definition
    - we have to check again the project and what jars are added to the
    project.
    And one JNDI error, for making a lookup by name: "SAP/CRM/b2b".
    All those errors I think are caused by wrong project construction, that is:
    wrong references or jar files not added to the project
    wrong project xml configuration files
    Log details ::: Can anyone throw some light on this ??
    1. ClassNotFoundException: com.sapportals.htmlb.taglib.BaseTagTEI
    #1.5 #001A4BF537B000220000023F0000397500046D3C180A7AC7#1246004776215#com.sap.engine.services.servlets_jsp.Deploy#sap.com/home~syn_crm#com.sap.engine.services.servlets_jsp.Deploy#J2EE_GUEST#0##n/a##04409270622b11de8247001a4bf537b0#SAPEngine_Application_Thread[impl:3]_45##0#0#Error##Plain###application [syn_crm] Error parsing a tag library descriptor. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebWrongDescriptorException: TagExtraInfo class [com.sapportals.htmlb.taglib.BaseTagTEI] no
         at com.sap.engine.services.servlets_jsp.descriptor.taglib.TagLibDescriptorDocument.getTagInfo(TagLibDescriptorDocument.java:515)
         at com.sap.engine.services.servlets_jsp.descriptor.taglib.TagLibDescriptorDocument.loadDescriptorFromElement(TagLibDescriptorDocument.java:444)
         at com.sap.engine.services.servlets_jsp.descriptor.taglib.TagLibDescriptorDocument.loadDescriptorFromDocument(TagLibDescriptorDocument.java:100)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.parseTagLibListaners(ApplicationThreadInitializer.java:256)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:103)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.ClassNotFoundException: com.sapportals.htmlb.taglib.BaseTagTEI
    Loader Info -
    ClassLoader name: [sap.com/home~syn_crm]
    Parent loader name: [Frame ClassLoader]
    References:
       com.sap.engine.services.servlets_jsp.descriptor.taglib.TagLibDescriptorDocument.getTagInfo(TagLibDescriptorDocument.java:512)
         ... 8 more
    2. NoClassDefFoundError: com/sap/engine/lib/jaxp/DocumentBuilderFactoryImpl
    #1.5 #001A4BF537B00022000004440000397500046D3C1826B6BC#1246004778064#com.sap.isa.core.init.InitializationHandler#sap.com/home~syn_crm#com.sap.isa.core.init.InitializationHandler#J2EE_GUEST#0##n/a##04409270622b11de8247001a4bf537b0#SAPEngine_Application_Thread[impl:3]_45##0#0#Error#1#/Applications/BusinessLogic#Java###Initalization of failed.
    [EXCEPTION]
    #2#com.sap.isa.core.xcm.init.ExtendedConfigInitHandler#java.lang.NoClassDefFoundError: com/sap/engine/lib/jaxp/DocumentBuilderFactoryImpl
         at com.sap.isa.core.xcm.init.ExtendedConfigInitHandler.setTraceLevel(ExtendedConfigInitHandler.java:924)
         at com.sap.isa.core.xcm.init.ExtendedConfigInitHandler.initialize(ExtendedConfigInitHandler.java:161)
         at com.sap.isa.core.init.InitializationHandler.performInitialization(InitializationHandler.java:252)
         at com.sap.isa.core.init.InitializationHandler.performInitialization(InitializationHandler.java:313)
         at com.sap.isa.core.init.InitializationHandler.initialize(InitializationHandler.java:223)
         at com.sap.isa.core.ActionServlet.init(ActionServlet.java:115)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.addServlet(WebComponents.java:139)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.loadServlets(ApplicationThreadInitializer.java:386)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:110)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    2. NoClassDefFoundError: com/sap/jmx/monitoring/api/MBeanManagerException          at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    3. NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/SAP/CRM/b2b
         #1.5 #001A4BF537B0003A0000002A0000397500046D3C1DD19175#1246004873143#com.sap.isa.core.xcm.init.ExtendedConfigInitHandler#sap.com/home~testsyn#com.sap.isa.core.xcm.init.ExtendedConfigInitHandler#J2EE_GUEST#0##n/a##3e069c70622b11de8d29001a4bf537b0#SAPEngine_Application_Thread[impl:3]_13##0#0#Error#1#/Applications/BusinessLogic#Java###An exception occurred when initializing extended configuration management:
    [EXCEPTION]
    #2#Synchronization of configuration data units to FS failed#com.sap.isa.core.db.DBException: <Localization failed: ResourceBundle='com.sap.isa.core.db.DALResourceBundle', ID='com.sap.isa.core.db.DBException_2', Arguments: ['Path to object does not exist at java:comp, the whole lookup name is java:comp/env/SAP/CRM/b2b.']> : Can't find bundle for base name com.sap.isa.core.db.DALResourceBundle, locale en
         at com.sap.isa.core.db.DBHelper.getPersistenceManagerFactory(DBHelper.java:96)
         at com.sap.isa.core.xcm.init.ExtendedConfigInitHandler.syncConfigDataUnitsToFS(ExtendedConfigInitHandler.java:394)
         at com.sap.isa.core.xcm.init.ExtendedConfigInitHandler.initialize(ExtendedConfigInitHandler.java:214)
         at com.sap.isa.core.init.InitializationHandler.performInitialization(InitializationHandler.java:252)
         at com.sap.isa.core.init.InitializationHandler.performInitialization(InitializationHandler.java:313)
         at com.sap.isa.core.init.InitializationHandler.initialize(InitializationHandler.java:223)
         at com.sap.isa.core.ActionServlet.init(ActionServlet.java:115)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.addServlet(WebComponents.java:139)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.loadServlets(ApplicationThreadInitializer.java:386)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:110)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/SAP/CRM/b2b.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.getLastContainer(ServerContextImpl.java:261)
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:624)
         at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:344)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:254)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:271)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at com.sap.isa.core.db.DBHelper.getApplicationSpecificDataSource(DBHelper.java:132)
         at com.sap.isa.core.db.DBHelper.getPersistenceManagerFactory(DBHelper.java:89)
         ... 14 more
    4. ClassNotFoundException: com.tealeaf.capture.LiteFilter
         #1.5 #001A4BF537B00025000004680000397500046D3C227B2A30#1246004951372#com.sap.isa.core.jmx.ext.ExtBootstrapper#sap.com/crm~b2b#com.sap.isa.core.jmx.ext.ExtBootstrapper#J2EE_ADMIN#7655##n/a##5d242820622b11deab29001a4bf537b0#SAPEngine_Application_Thread[impl:3]_48##0#0#Error#1#/Applications/BusinessLogic#Java###Error in CCMS reporting:
    [EXCEPTION]
    #2#unable to register MBeans#com.sap.jmx.monitoring.api.PartialRegistrationException: Registration of 2 MBeans failed. Switch on the trace for com.sap.jmx in order to see detailed exceptions.
         at com.sap.jmx.monitoring.api.MBeanManager.registerMBeans(MBeanManager.java:114)
         at com.sap.isa.core.jmx.ext.ExtBootstrapper.init(ExtBootstrapper.java:130)
         at com.sap.isa.core.jmx.ext.ExtBootstrapper.initialize(ExtBootstrapper.java:184)
         at com.sap.isa.core.MonitoringServlet.init(MonitoringServlet.java:43)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.sap.engine.services.servlets_jsp.server.security.PrivilegedActionImpl.run(PrivilegedActionImpl.java:59)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:379)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.addServlet(WebComponents.java:141)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.loadServlets(ApplicationThreadInitializer.java:386)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:110)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Loader Info -
    ClassLoader name: [sap.com/home~syn_crm]
    Parent loader name: [Frame ClassLoader]
    References:
       common:service:http;service:servlet_jsp
       service:ejb
       common:service:iiop;service:naming;service:p4;service:ts
       service:jmsconnector
       library:jsse
       library:servlet
       common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
       library:ejb20
       library:j2eeca
       library:jms
       library:opensql
      Possible errors include: Tlfilter.jar cannot be located or Tealeaf server unreachable#

    Hi Priya,
    you're welcome. Thank you for the points. Can you have a look in CRM 5.0 how they realized the download functionality of search results to excel. There is a long thread Download to Excel on this toppic.
    Regards
    Gregor

  • Application Configuration changes not showing in Portal

    Hello Guru's,
    We are on EP 7.02 and EhP6 on backend.
    We are using WDA based ESS Applications.
    We have a requirement to hide Directory and Index tabs on ESS Homepage .
    So followed the below steps to do the same:
    1. SE80 - FPM_OVP_COMPONENT
    2. Application  HRESS_A_MENU - Application Configuration ZHRESS
    3. Start Configurator - and click on Component Configuration to hide the tabs.
    4. Done with the changes and modified Overview page in Portal to have the new Aplication Configuration.
    The issue is, for me it is working fine, it is hiding the tabs and showing only the Map. But for other users it is showing all the tabs Map, Directory, and Index.
    Please help. And also when a user does personalization in Portal where do the changes  go ?
    Thanks,
    Pramod

    Hi Pramod,
                     How were you able to solve this issue. I am having the same problem. I did the Z copy for all the standard configuration and assigned the custom role ZESS to ZHRESS_CC_MENU_AREA_GROUP. When i change the the options in general settings to invisible for MAP and Index , I can see the tabs getting hidden in the preview mode.In portal the changes are not getting reflected. You said about enhancement. Could you please explain what you did ? . Your help is greatly appreciated.
    Thanks,
    Vishnu

  • Create Custom Application Loader

    I don't know whether this is the right forum to post the question or not.
    My question is :
    Can I write a custom class loader in Weblogic App server ? My basic requirement is to write a custom application loader with will first load some jar files from some remote machine and then will be loading the application. This jar files should not be made visible by any other application deployed in the the server. The class loader should also be a component of the application itself.
    Say for example : The application name is "App1".
    Ideal scenario
    1) WLS boots up
    2) It tracks all the applications
    3) Reads some conf (or xml file) to trace the class loader name from App1
    4) Adds the class loader to the Loader Repo, if any
    5) When WLS feels it should load the applications i.e application loading step comes, it should detect that there is a custom loader associated to the application App1 and transfers control to it.The loader will load accordingly.
    I really have no idea how this can be achieved. But if app servers provides extension to there class loader repo then each application can have their custom loaders if needed.
    Any suggestion would be highly appreciated.

    Hello Pradeep, <p>
    I am trying to configure the "Single session Trace" (OSS Note 1090753) but I am not able to see the second Tabs 'Single Session trace"
    when I select the logging link in the Administration console of my application.
        - I modified as described the  attribut  "ForceSingleTraceFile" in the visual Admin. 
        - I modified the appinfo and logFileDownload attributs to TRUE in the XCM
        - I rebooted the cluster
    Extract of OSS note 1090753
    4. Choose the 'Logging' link.
    a page with two tabs 'Log Configuration' and 'Session Tracing' is displayed.
    The Session Tracing doesn't appear for me !!
    do you not why I am not able to see the Single session trace ?
    Currenty, the only way is to retrieve trace in the file defaultTrace10.log.  (see my previous log capture)
    Thanks for your help

  • Customizing Applications with MDS

    I have been investigating static customization using MDS and have read through [Customizing Applications with MDS|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/customize.htm] (and the seemingly identical copy in JDeveloper's Help Center). However, I have been unable to customize my application because I get this error (some parts have been abbreviated) when starting JDeveloper with the Customization Developer Role:
    Error initializing MDS configuration for application "file:/C:/Documents and Settings/..._adf_main.jws". Customizations disabled for this application. MDS-00035: cannot load the class: oracle....uiview.IndustryCC.
    The problem is that I do not know how to add the particular class to JDeveloper's classpath as instructed in section 33.2.1.4 of the documentation. I have added my class to JDeveloper's classpath via dropping a .jar into lib/ext of the JRE but then had horrible dependency troubles.
    While walking through the documentation, I discovered that Example 33-1 and its surrounding documentation are out-of-date because getIDPrefix() is final in CustomizationClass and thus cannot be overridden as the documentation instructs.
    I am using JDeveloper Version 11.1.1.1.0 Build JDEVADF_11.1.1.1.0_GENERIC_090421.1521.5361.
    How do I successfully enter customization mode for my application?

    Thank you. I got it working.
    All I needed was the path provided at Create and Deploy a Customization Class, item 7.
    I will note that the documentation does not have any slashes in its path:
    <JDEVELOPER_HOME>jdeveloperjdevlibpatches<jar_file_name>
    I got it to work after I copied the jar file I had already prepared to:
    <JDEVELOPER_HOME>/jdeveloper/jdev/lib/patches/<jar_file_name>

  • How Tou2026 Create Custom Application in E-Commerce 7.0?

    Hi all,
    We want to set up SAP E-Commerce for ERP 7.0. For SAP E-Commerce for ERP 5.0 the following configuration guide is available:
    How Tou2026 Create Custom Application in E-Commerce 5.0
    What about SAP E-Commerce for ERP 7.0? Is this guideline also valid for 7.0?
    If not, where can I find the corresponding configuration guideline for SAP E-Commerce for ERP 7.0 (on the SAP Service Marketplace?)?
    Thanks in advance.
    Regards,
    AV

    Hello Av,
    Please see the Development and extension guide @
    http://service.sap.com/crm-inst
    => Release 7.0
    => Operate
    Regards
    Mark

  • How to include custom application.xml in JDev9i project

    Can anybody explain to me how to include a custom application.xml file when deploying to an .ear file? I need to include application wide security roles, and I can't see where in Jev9i how to do this.
    After searching this forum, I see that jdev9i can't include the orion-application.xml, but I want to include just the standard J2EE application.xml. Is this possible?
    Thanks,
    matt

    The standard application.xml file unfortunately can't be customized in JDev 9.0.2. The reasons why this capability was left out of JDev 9.0.2 are same reasons why the other EAR-level XML files were excluded. The OTN thread
    Re: Regarding 11i and E-business suite
    has a summary of those reasons, which you've probably seen. We know this is an area in need of improvement and will be adding this functionality in the JDev 9.0.3 release. Until then, you'll have to go with a work-around like an Ant build file, batch file, Java application, or some other kind of script.
    Below is a sample Java application which can be used to insert <security-role> elements into an EAR file's application.xml. Modify the main() method to customize for your purposes, and put xmlparserv2.jar on the classpath (in a JDev project, add the "Oracle XML Parser v2" library):
    package mypackage4;
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import oracle.xml.parser.v2.*;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    public class PostProcessEAR
    public static void main( String[] args ) throws IOException
    final String earFile = "C:\\temp\\myapp.ear";
    final PostProcessEAR postProcess = new PostProcessEAR( earFile );
    postProcess.addSecurityRole( null, "first_role" );
    postProcess.addSecurityRole( "Description for the second role", "second_role" );
    postProcess.commit();
    System.out.println( "Done." );
    private final File _earFile;
    private final ArrayList _securityRoles = new ArrayList();
    public PostProcessEAR( String earFile )
    _earFile = new File( earFile );
    public void addSecurityRole( String description, String roleName )
    if ( roleName == null )
    throw new IllegalArgumentException();
    _securityRoles.add( description );
    _securityRoles.add( roleName );
    * Write out modified EAR file.
    public void commit() throws IOException
    if ( _securityRoles.size() == 0 )
    return;
    final ZipFile zipFile = new ZipFile( _earFile );
    final Enumeration entries = zipFile.entries();
    final File outFile = new File( _earFile.getAbsolutePath() + ".out" );
    final ZipOutputStream out = new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( outFile ) ) );
    while ( entries.hasMoreElements() )
    final ZipEntry entry = (ZipEntry) entries.nextElement();
    final InputStream in = zipFile.getInputStream( entry );
    if ( "META-INF/application.xml".equals( entry.getName() ) )
    final XMLDocument modifiedApplicationXml = insertSecurityRoles( in );
    final ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
    modifiedApplicationXml.print( byteOutput );
    final int numBytes = byteOutput.size();
    entry.setSize( numBytes );
    if ( entry.getMethod() == ZipEntry.STORED )
    entry.setCompressedSize( numBytes );
    final CRC32 crc32 = new CRC32();
    crc32.update( byteOutput.toByteArray() );
    entry.setCrc( crc32.getValue() );
    out.putNextEntry( entry );
    byteOutput.writeTo( out );
    else
    // Copy all other zip entries as they are.
    out.putNextEntry( entry );
    copy( in, out );
    in.close();
    out.close();
    private XMLDocument insertSecurityRoles( InputStream in ) throws IOException
    final DOMParser domParser = new DOMParser();
    domParser.setAttribute( DOMParser.STANDALONE, Boolean.TRUE );
    try
    domParser.parse( in );
    final XMLDocument doc = domParser.getDocument();
    final Element docElem = doc.getDocumentElement();
    final Iterator iter = _securityRoles.iterator();
    while ( iter.hasNext() )
    final String desc = (String) iter.next(); // might be null
    final String roleName = iter.next().toString(); // must not be null
    final Element securityRoleElem = doc.createElement( "security-role" );
    if ( desc != null )
    securityRoleElem.appendChild( createPcdata( doc, "description", desc ) );
    securityRoleElem.appendChild( createPcdata( doc, "role-name", roleName ) );
    docElem.appendChild( securityRoleElem );
    return doc;
    catch ( SAXException e )
    e.printStackTrace();
    return null;
    private Element createPcdata( XMLDocument doc, String elemName, String pcdata )
    final Element elem = doc.createElement( elemName );
    elem.appendChild( doc.createTextNode( pcdata ) );
    return elem;
    private final byte[] buffer = new byte[4096];
    private void copy( InputStream in, OutputStream out ) throws IOException
    while ( true )
    final int bytesRead = in.read( buffer );
    if ( bytesRead < 0 )
    break;
    out.write( buffer, 0, bytesRead );

  • Text is not copied from Customer masterdata to sales document header

    Hi Friends,
    Text was maintained in customer masterdata, that should be copied in to sales order header. In Quality server its working as per requirement. But in production its not copied from customer master data.
    Same configuration settings are in production as well as quality(VOTXN)
    Please suggest me regarding this

    Hi Durga,
    Please go to SD> Basic function > text control> Define and Assign Text Determination Procedures and in that screen, check the customer sales and distribution change view customer sales text and sales note for customer and its assignment .
    I hope these will be helpful for you.
    Regards,

  • Using rich text editor (RTE) for custom applications

    Our users enter texts on two places:
    1) In Oracle Portal in text-items using the Rich Text Editor.
    2) In text-fields in a custom application using html-tags <textarea>blabla</textarea>. For formatting the users currently have to type in html-tags themselves. Now we want to provide them an html-editor.
    We would prefer to use the Rich Text Editor also for the custom application. However, that is integrated in Portal and the java-scripts are not easy to follow.
    Have you tried something similar? So, did you use the Rich Text Editor for your own application? If yes, how?
    If not, a very good alternative would be the qwebeditor (see http://www.qwebeditor.com). Did anybody replace the standard Portal rich text editor with the qwebeditor? In the Portal guides there are instructions about replacing the Portal rich text editor by another editor, but it is not clear if this will also work with the qwebeditor.
    Thanks for your respons !
    Best regards, Jan Willem Vermeer

    Hi Jan,
    I have configured FCKeditor in a few clients, and the process it's pretty straight forward, you can use the steps in the document (http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_1014_features.pdf) .
    Basically you download FCKeditor and put it in your apache server (you can put it unde rthe htdocs folder) after that, all you need to do is modify $ORACLE_HOME/portal/images/webword/buildUIHTML.html to reference the FCKeditor JS and CSS, and you can do the same type of reference for your custom apps.
    Regards,
    Juan

  • 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

  • How to call the Application configuration in run time.

    hi guru,
    i have created two  Application configuraton   and it working fine.
    my question how to call the application configuration in run time.
    Example :
    Based on the user i want to change the Application Configuration.like Super user and Normal user.
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    Please try out this way-
    Have a look at this table -
    WDY_CONF_APPLU - (Customizing Data for Web Dynpro Applications).
    after you are done with the configuration--
    Ge the config id for the given application from this table. And depending on the user get an entry from this table and display accordingly.
    Please refer to these links -
    different default layouts for different CONFIG_IDs
    Get WDCONFIGURATIONID
    Regards
    Lekha

  • How to set application configuration so that it shows up in Portal

    Hi,
    In the Floorplan Manager component (FPM_OIF_COMPONENT), I copied an existing component configuration RPM_INITIATIVE_DETAILS_OIF to ZRPM_INITIATIVE_DETAILS_OIF_V01.
    And then under application RPM_INITIATIVE_DETAILS I created a new application configuration ZRPM_INITIATIVE_DETAILS_OIF_CFG assigning to it ZRPM_INITIATIVE_DETAILS_OIF_V01. 
    What is the next step I need to do so that when I run the application in Portal it will show the new application configuration?
    Thanks.
    Giscard Rous

    You can export anything including the photos in an album but anytime you export you end up with the photos on disk (smart to put them in a folder)
    Or you can select photos to upload using the media browser in the lower left hand corner of the uppload window under media ==> photos ==> iPhoto (although this does not allow you to resize photos as export does)
    What exactly are you trying to ask?
    LN

Maybe you are looking for

  • How to parse the output of a JSP?

    Hi, I need to parse the generated contents of a JSP file from within the web application (i.e. another JSP). Any ideas how this might work? It seems that XPath will not parse a file which doesn't end in .xml, and even if it did, I get the feeling it

  • I have ver 10.5.8 with 4Gb of memory, can I upgrade to snow leopard?

    I have a Mac Pro running version 10.5.8 with 4Gb of memory, can I upgrade to snow leopard?  My info is: Processor 2x2.8 Ghz Intel Memory 4GB but when I saw the upgrade for Snow Leopard it said something about needing 5GB? I'm not the best with tech s

  • Headset for use w/Skype?

    Best headset (head phones & microphone) for use with Skype? In Mexico (La Manzanilla, Jalisco, sm town) for 5 months. Do not have phone (landline, cell, nada) & will depend on Skype for incoming/outgoing calls. Also, no stores nearby (radioshack @ 60

  • How can I get max, min & average (hours with minutes) of fast 30 days data

    Table name: run_log TYPE VARCHAR2(10), SUBTYPE VARCHAR2(10), PROGRAM VARCHAR2(100), STATUS VARCHAR2(20), START_TIME      DATE, END_TIME      DATE How can I get max, min & average (hours with minutes) of fast 30 days data ?

  • Why can I not download the Creative Cloud

    I am getting an error that: I am the only user on my MAC. Why is this coming uP?