Imported Archive

Hi,
Can anyone tell me where does XI actually make a copy of the Imported Archive?
eg. the jar aii_map_api.jar is available @ usr/sap/X01/DVEBMGSOO/j2ee/cluster/server0/apps/sap.com/com.sap.xi.services
on the XI server.
So there must be a location where XI stores the imported archives also
Actually I am trying to access a .xsd file in a java code
for this the suggested solution is to include the .xsd also in the jar file which will finally be imported in to the Imported archives in XI
But now when I run the java code/mapping it throws an error saying hte .xsd cud not be found.
So please tell me whether there is any special care I have to take for this.
Ranjit

Hi,
Could you please try by importing the xsd file in external definitions instead of imported archives. Please make sure you are importing in the same SWCV. I dont know if this is the correct reason. Just give a try.
Regards,
Sudheer.

Similar Messages

  • What is main diff b/w imported Archives and External Defination in IR

    What is main diff b/w imported Archives and External Defination in IR

    Hi Vijay,
    ED-standard schema for describing the message structure.If you have the structure provided to you from some external application you can use it in PI directly without recreating in PI.you can import following formats which are used to describe message schema
    WSDL (Web Service Description Language),
    XSD (XML Schema Definition Language),
    DTDs (Document Type Definitions)
    Imported Archives: its used basically for java and xslt mapping where you create the required mapping externally using some tools
    (java-eclipse/NWDS .XSLT-stylus studio).You can also implement XSLT and Java mappingsf and save them as archives in the Integration Repository.
    read More details here
    [ED|http://help.sap.com/saphelp_nwesrce/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/content.htm]
    [Imported Archives|http://help.sap.com/saphelp_nw04/helpdata/en/4c/b2ad3de2d76b3be10000000a114084/content.htm]
    Regards,
    Srinivas

  • The import archive file does not contain a metadata archive.

    when i am trying to upload template on webceter portal administrative console i am getting following error , so how to clear it "The import archive file does not contain a metadata archive."
    stack trace is
    SiteResourceValidateImportOperation> <doValidateImport> Operation aborted because of an exception thrown by subunit (oracle.webcenter.lifecycle.metadata.InitializeUnit)
    oracle.webcenter.lifecycle.InvalidEARException: The import archive file does not contain a metadata archive.
         at oracle.webcenter.lifecycle.metadata.InitializeUnit.extractTransportSet(InitializeUnit.java:372)
         at oracle.webcenter.lifecycle.metadata.InitializeUnit.doImport(InitializeUnit.java:232)
         at oracle.webcenter.lifecycle.metadata.InitializeUnit.doValidateImport(InitializeUnit.java:211)
         at oracle.webcenter.lifecycle.siteresource.operation.SiteResourceValidateImportOperation.doValidateImport(SiteResourceValidateImportOperation.java:107)
         at oracle.webcenter.lifecycle.LifecycleSiteResourceService.doValidateImport(LifecycleSiteResourceService.java:139)
         at oracle.webcenter.lifecycle.LifecycleSiteResourceService.doValidateImport(LifecycleSiteResourceService.java:110)
         at oracle.webcenter.lifecycle.view.siteresource.LifecycleSRMImportBean.doImport(LifecycleSRMImportBean.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal-admin and version v1.2. We will use the skin portal-admin.desktop.

    As in your other post, {forum:id=354} is a better place to ask

  • Import archive file does not contain metadata archive file

    i am trying to upload a skins css file from local system on to webcenter portal application its throwing this error "The import archive file does not contain a metadata archive." this is stack trace
    <SiteResourceValidateImportOperation> <doValidateImport> Operation aborted because of an exception thrown by subunit (oracle.webcenter.lifecycle.metadata.InitializeUnit)
    oracle.webcenter.lifecycle.InvalidEARException: The import archive file does not contain a metadata archive.
    at oracle.webcenter.lifecycle.metadata.InitializeUnit.extractTransportSet(InitializeUnit.java:372)
    at oracle.webcenter.lifecycle.metadata.InitializeUnit.doImport(InitializeUnit.java:232)
    at oracle.webcenter.lifecycle.metadata.InitializeUnit.doValidateImport(InitializeUnit.java:211)
    at oracle.webcenter.lifecycle.siteresource.operation.SiteResourceValidateImportOperation.doValidateImport(SiteResourceValidateImportOperation.java:107)
    at oracle.webcenter.lifecycle.LifecycleSiteResourceService.doValidateImport(LifecycleSiteResourceService.java:139)
    at oracle.webcenter.lifecycle.LifecycleSiteResourceService.doValidateImport(LifecycleSiteResourceService.java:110)
    at oracle.webcenter.lifecycle.view.siteresource.LifecycleSRMImportBean.doImport(LifecycleSRMImportBean.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal-admin and version v1.2. We will use the skin portal-admin.desktop.

    Hi again
    Official doc about export resource: http://docs.oracle.com/cd/E17904_01/webcenter.1111/e10148/jpsdg_srm.htm#CFHDJBAC
    Official doc about Skin as Portal Resource: http://docs.oracle.com/cd/E25178_01/webcenter.1111/e10148/jpsdg_skin.htm#BAJFAHFG
    You have to put your path + file name to export your ear file.
    If you don't see your created file in the path that you configured then see Messages - Log of JDeveloper if you have permission problems to write.
    Regards.
    PD: Sorry i mistake talking about .mar file instead of EAR file

  • Accessing a file in Imported Archive from Adapter module

    Hi,
    I am designing a module for File/FTP and Mail adapters. Is it possible to retrieve data from a CSV or TXT file uploaded in the Imported Archive from the Java code in the module? If this is possible, do I use the same approach as accessing the CSV data from the mapping using a UDF? If this is not possible, can you suggest other ways were I can access a CSV or TXT configuration file from an adapter module?
    I would like to avoid using Module key, Parameter name and Parameter value as I would like to make the adapter module generic and the data I will be reading might be too much to be specified in this location. However, I would use the Module key, Parameter name and Parameter value to specify the CSV or TXT filename which the adapter module will be using.
    Thanks in advance for any help that you can provide.
    Regards,
    Elbert

    Imported archives are part of mapping flow and adapter modules are more part of routing. Therefore I don't think imported archive could  be made accessible anywhere outside mapping.
    but my CSV or TXT file would be updated regularly by the developer.
    So were you planning to import this file again and again under imported archive? This doesn't seems to be a good solution when you think about changin Design part in Production environment. It would be better to give access to certain folder to developer to put the file there and access it using some code. You may refer this
    /people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi
    Regards,
    Prateek

  • Imported Archive not visible

    Hi Guru,
    I have imported into XI a XSLT Mapping in IMPORTED ARCHIVE; now I have to use thi mapping in my Interface Mapping, but the imported Archive (the XSLT Mapping...) is not visible! How is it possible?
    Thanks to all!

    hi,
    1. Make sure that the XSLT program .zip or jar format.
    2. If the mapping program it' not showing then forceble you need to push your interface mapping.
      If the mapping program it is not showing mean particular source message particular target message couldn't defind the mapping program..this is not complesary any mapping program we can push through forceble .
    Regards,
    Venu.

  • Imported archives

    How to import externally defined mapping programs in to Imported archieves? could anybody help me....
    Thanks in advance,
    Manoj

    Hi Manoj,
                XI supports 4 types of mappings
                            1. Message mapping
                            2. XSLT MApping
                            3. JAVA Mapping
                            4. ABAP Mapping.
                     If you go with message mapping or ABAP mapping no need to use imported archive. If you want to implement XSLT or JAVA mapping then only you need to import those programmes into imported archives. when import the external programms(XSLT or JAVA) to the Imported archives then should keep those file as a ZIP. The ZIP files only can import to the Imported Archives. 
    Thanks,
    Satish

  • Using imported archive in UDF using import statement

    Hello Expert,
    I am trying to use the class of keystore_api.jar which is impoted in imported archive in my UDF using the import statement
    com.sap.engine.interfaces.keystore.KeystoreManager but I am getting the error
    package com.sap.engine.interfaces.keystore does not exist
    import com.sap.engine.interfaces.keystore.*;
    Appreciate your valuable replies.
    Kind Regards,
    Kubra fatima

    Hi,
    as ur import statement  states
    com.sap.engine.interfaces.keystore
    You need to import the jar in directory hierarchy as above manner.
    com[sap[engine[interface[]keystore[JAR]]]]
    Regards
    Ashu

  • What is the Use of Imported Archives in Mapping Objects

    Hi All,
    What is the Use of Imported Archives in Mapping Objects ( IR )
    Regards
    Vamsi

    Hi Vamsi,
    When we are doing JAVA , XSLT mappings we have to do import archievs
    after developing the JAva mapping in NWDS and create jar file come back to IR under imported archieves we will import the jar file.
    Similarly XSLT als make the zip and import under imported archieves
    Also when we have any java packages ,import it under archieves and make them to use in UDF
    See the below links
    XSLT Mapping
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    XSLT Mapping with java enhancement
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fxi%2fxi-design_configuration%2ffileValidationsinSAPXI-ACaseStudy.pdf
    Check this thread...
    Reusability of User-defined Functions
    Check this thread...
    Re: User-defined function in multiple Message Mappings
    Using external JARs in Web Dynpro Dev.Component
    see sap documentation:
    http://help.sap.com/saphelp_nw04s/helpdata/en/4c/b2ad3de2d76b3be10000000a114084/frameset.htm
    Cheers...
    Vasu
    <b>** REward POints if found useful **</b>

  • Issue in .class file in imported archive ESR - after upload using eclipse

    Dear Friends,
    My requirement here is too change existing java mapping. Here I am exporting zip file from imported archive and after making changes in eclipse upload the .JAR file again. Here .class file is not opening after upload in Imported Archive.
    Error is
    Setup I am having on my system.
    -> JDK version on my system JDK 1.6_34
    -> JRE on my system – JRE 6
    -> Using eclipse SDK 4.2.2
    SAP PI servers settings.
    I searched online blogs but no help. Can anybody guide me what wrong am I doing here?
    Thanks.
    Sumeet.

    Thanks for reply..Hareesh.
    -> In Eclipse only 1 warning is coming and no error. I guess Eclipse automatically compile .class file. Is there any way in eclipse to see if compilation is done properly?
    -> I imported few external JAR files and already few JAR files are there in Eclipse(JRE1.6), as shown in fig below. Which JAR file is being user? How can I make sure?
    -> When using Run as option I am not getting any option. Is it normal or did I have to activate some option?
    Please give your views on this.
    Thanks.
    Sumeet.

  • Access Imported Archive in User Defined Function

    Hi!
    I want to access a XML file in an user defined function in a message mapping. The XML file is included in an imported archive. I need the information out of this XML file for configuring an extended receiver determination.
    Does anyone know how to solve this?
    Best regards,
    Daniel

    Hi Krishna,
    a property file will be a solution but is has to be stored in the filesystem. In my scenario I prefer a file (not neccessary xml) which is editeable in the IR.
    I tried something in this way (just for testing):
    try {
         DocumentBuilderFactory factory = null;
         DocumentBuilder builder = null;
         Document document = null;
         Element element = null;
         factory = DocumentBuilderFactory.newInstance();
         builder = factory.newDocumentBuilder();
         document =  builder.parse(Container.class.getResourceAsStream("routing.xml"));
         element = (Element)document.getElementsByTagName("BUSINESS_SYSTEM").item(0);
         return element.getNodeValue();
    } catch (Exception e) {
         return "Crash: "+e.getMessage();
    But it crashes, because the resource "routing.xml" cannot be found. I tried to add the namespace or the name of the imported archive or both as prefix, but it don't work. How can I find out under which address/url I can open the xml document?
    Best regards,
    Daniel

  • Problem in recognising the imported archives

    Hi All,
        Inorder to increase the reusability, I've created a JAR file for some of the user defined functions (like lookup, etc) and imported that JAR (under imported archives) into XI from my local machine. But, in the UDF when I try to instantiate an object for the class in the JAR file, I get an error saying that package com.abc.xyz (which I've mentioned in the import statement of the UDF, because in my JAR class, I had mentioned the same package) doesn't exist.
    Doesn't XI recognise the Jar files imported under archives? Should I keep the JAR file in the J2EE server of XI? Please suggest.
    Thanks in advance.
    Thanks,
    Joe.

    Hi,
    What tool are you using to create the jar files?
    The jar file should also have the model folder present in it.
    for importing if your class name is Abc
    in the package com.company then type
    import com.company.Abc;
    While importing in the Imported Archives make sure the jar created by you has the .project and .classpath files also in it..
    Edited by: Progirl Progirl on Dec 8, 2008 12:25 PM

  • Brainstorming imported Archives (JAVA) versus Z-TABLEs (ABAP)

    Hi everybody,
    we got very complex processes and I would like to ease them:
    Instead of fixedValues in Message-Mapping we use CSV-files and store them in the imported archives.
    In different message-mappings we read the CSVs via UDF.
    The problem is that the CSV get often updated by the R/3-agents. So we have a lot of administrative work to communicate with the agents, import the files, transport and so on.
    Thats the reason I am thinking of creating z-tables where the agents can maintain the values instead of updating the CSV. Also the agents would be able to transport the z-table entries.
    But as the z-tables are resided on the ABAP-stack we would have change our graphical message mappings to ABAP-Mappings. This would be to much work for us and is not practicable.
    Do you see a workaround or a best practice I do not see?
    Thanks Regards
    Mario

    Hi,
    Instead of doing all this work, you can do in simple
    Use RFC LOOKUp in XI Mapping to pull the values based on the input value and Maintain the ZTable in ABAP Stack of XI or in R/3 itself.
    RFC Lookups
    The specified item was not found.
    Use this crazy piece for any RFC Mapping Lookups!
    REgards
    Seshagiri

  • Static initialization of java code included in the Imported Archives jars?

    Hi
    Does SAP PI 7.0 support static initialization of java code included in the Imported Archives jars?
    Static block of a java class included in the Imported Archive jars throws a Runtime Exception called ExceptionInInitializationError while trying to run.
    Regards,
    RDS

    Have you tested the code outside PI?

  • Again: UDF: Load file from "imported archives"

    Hi everybody,
    I tried to read a txt-File from the "imported archives".
    The following does not work:
    try {
    +     FileInputStream fstream = new FileInputStream(Filename);+
    +     DataInputStream in = new DataInputStream(fstream);+
    +     BufferedReader br = new BufferedReader(new InputStreamReader(in));+
    } catch (Exception e) {// Catch exception if any
    +     return "Error: " + e.getMessage();+
    }//catch
    return "test";
    I get the error:
    abc.txt (No such file or directory)
    Any ideas?
    regards Mario

    Hi roberti,
    it is possible!
    I found some coding that works:
         String returnString="";
         byte[] buffer;
         try {
              InputStream is = this.getClass().getClassLoader().getResourceAsStream(filename);
              buffer = new byte [is.available()];
              is.read (buffer);
              returnString = new String (buffer, "ISO-8859-1");
         catch (Exception e) {
              returnString = e.getMessage();
         return returnString;
    Unfortunately this coding gets the whole file in once. But I need the single lines.
    Thats why I tried to use FileInputStream instead on InputStream
    Any idea?
    Regards Mario

Maybe you are looking for