Creating a par file

Hello All,
I am a newbie to SAP Netweaver platform. I am trying to create a webservice to be deployed to Enterprise Portal to be called from a .NET application. I have SAP NetWeaver Developer Studio and SAP NetWeaver 7.1 Composition Environment SP03 PAT0000 on my laptop.
I have used the Enterprise Portal Application perspective to create the project to create a portal application. I have written the code necessary ( not functional just to test) andI am trying to see how to deploy it toEnterprise Portal. Going thru the forums and docs I see the way to do this would be to generate a par file and deploy to the server. The common options I came across are to right click on the project and do "Quick Par Upload". The problem is that when I right click on the project in the studio I do not see this option. I am at a total loss at this point to figure out why.
The other option I saw was to do Right click on project and then do a export of type par. Again I do not see this option but only see SAP WAR and SAP EAR - nothing which says par.
Reading thru the forums I saw suggestions which says where I should go to Window->Preferences to set up J2EE servers. Again I do not see that option. IS there something obvious that I am missing?
Help would be greatly appreciated.
Thanks,
Sujith

Hi Sujith,
Please Check these,
To deploy a par file into potal you have to select "Export" option when u right click on the project
Your  project should be in Enterprise Portal Perspective
to do this ,
Click on the icon with + symbol  near by Package explorer
Select other -> choose  EP -> hit OK
Now you can see the  EP icon under the icon with + symbol. click that
Now you are in EP perspective
Follow these steps to upload par into portal:
Rightclick ur project -> Export ->Next -> Select ur project ->
configure server settings -> add
Give these details:
Alias: AnyName (Eg: DEV)
Host: ur portral server name (eg: mydevserver u can pick this from portal url path)
Port: portal sever port (ex:50000)
Login:portal user name
Description: (optional)
click ok and enter the password
Hit Enter.
Now ur par file uploaded into portal
Check:
You can check this in ur portal system admin --> support -> portal deployemenyt -> serch for tur project name
Regards,
Ramganesan K
Keane Inc

Similar Messages

  • How to create a PAR file in Web Dynpro

    Hi !!
    Could any one tell me how to create a par file of the java application developed in WebDynpro..
    thanks
    ChandraSekar Maheswaran

    Hi,
    Refer the link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/a-c/creating%20your%20first%20web%20dynpro%20application.pdf
    Webdynpro concepts
    Regards,
    Tamil K

  • How to create a PAR file from EAR file

    Hi,
       I have created an Web Dynpro Application . When i deploy it in Remote J2EE Engine, it will deploy as EAR file. It then runs as normal Web Application in Web browser. My requirement is to create an iView for my Web dynpro appn in EP. That is possible only by creating a PAR file. so How to create an PAR file from EAR in NWDS(NetWeaver Developer Studio).
    How to access the EAR file in NWDS or J2EE ?
    Thanks in Advance ,
    By
    Saravanan

    Hi,
    To create a iview,
    log on to portal, New iView and select SAP webdynpro iview.
    It will ask for namespace which is usually , local/Project Name
    and application name is the name of the application.
    We dont have to create par file for this requirement

  • Srclib.api not created in PAR file

    I updated a bundle file with Labels for Commands for KM the problem is on compiling it the needed srclib.api in the par file is not created. Thus when you go to KM to view the Properties they don't have the labels. Naturally because it can't find the class file with the labels . I have re-install with IDE which is SP15 NW04 version that didn't help.
    Any ideas on why this is happening?

    Hi Henry,
    the srclib part is definitely not needed, as this is only a storage for the sources of the project to be able to restore the whole project from the PAR itself. The parts inside are not used at runtime at all! (The inclusion of the sources can be switched on / off at PAR export / deployment, when not using the "Quick PAR Upload" but the "Create/Export PAR file" function.)
    What you probably need is that the .properties files, which maybe you have touched within the src section, are not copied into the PAR. There is a setting within NWDS to activate this: Window / Preferences / SAP Enterprise Portal / Application Development Studio / Yes, I want the non java sources included into the portal components jars. Activate that and try again...
    Hope it helps
    Detlev

  • How to create a .par file from console apart from tools like eclipse,studio

    Plz reply me if any body knows how to create .par file from Console i.e command prompt.just like creation of .jar & .war file in java.I have created some iViews and making .par files from tool Eclipse/Netweave rstudio etc..I waqnt to create from console..How it is possible?
    Regards
    Sridhar Raju

    Hi Sridhar,
    I'm unsure for what you'd need this, but in general there are at least two possibilities:
    - manually pack everything into the dir structure needed (documented here: http://help.sap.com/saphelp_nw04/helpdata/en/f9/561140d72dc442e10000000a1550b0/frameset.htm ), than create a ZIP with some command line tool (e.g. JAR), naming it to .par.
    - use ANT to do this; with this, you can even deploy the file, see PAR-File deployment with ANT (EP6)
    Hope it helps
    Detlev

  • How to create a par file that includes an image and a .swf file

    Hi everyone,
    I have a requirement to create a <b>.par file which will contain a .swf file and a .gif file</b>.
    Can anyone please tell me the steps to do so.
    Thanks in advance

    Thanks Ranjeet for the quick reply.
    I have created a portal project and placed the .swf file and the .gif file in the images folder and deployed it to the server. I downloaded the .par file and chked that it contained the .swf and .gif files. But when i run the application it <b>does not show me the .swf file</b> . An icon with a cross mark appears instead. I have flash player installed on my PC .The .gif file when run works fine but not the .swf file.
    Can anyone tell me a workaround for this ?

  • Layout Par file name not appearing in list while creating new Layout

    Hi
    I downloaded com.sap.portal.layouts to modify the light_framework page to suit my needs, renamed it to com.mycomp.portal.layouts, modified the page, created a par file and uploaded it thru NWDS.
    When I go to the portal to create a new Layout, I do not see my custom par file in the list.
    I have even uploaded it from the portal: System Administration -> Support -> Support Desk -> Portal Runtime -> Administration Console -> Archive Uploader. Even after it was successful, I was not able to see the par file listed while creating a new Layout.
    How do I get my Layout par file listed do i can create my Layout?
    Thanks
    J

    Hi Bala
    I never had a problem with the JAR files in this par file while opening, nor did I have to manually add anything.
    I know it has been successfully uploaded in the portal, as I can see my par file in the Archive Deployment Checker.
    What could be wrong? Is there something else I have to put in the portalapp.xml to make it visible in the list?
    Thanks
    J

  • Creating data and .par files using SWIFT Integration Package

    Hi,
    I have a requirement to generate a data and .par file using SAP PI Integration package for SWIFT.
    I am following the SAP Note: 1303428.
    I have created 1 sender and 2 receiver comm channels(one for payload and other for par). Used operation mapping SWIFT_payload_parFile_split in the Interface determination.
    I am using the adapter module : localejbs/swift/FileActConversionToSWIFTModule and setting the parameter DetachParameters to true. This adapter module is being used in all the three channels(1 sender and 2 receivers).
    I have used ASMA ans has set the FileName checkbox.
    Now after placing the file in the input directory, the file with the same name gets created in the output directory but the file is exactly same and also no .par file is getting created. I have set the Empty file handling to Ignore, so it shows that there is no data to  create a .par file and only payload file is getting created but the payload file is exactly same.
    Also if I use the adapter module : localejbs/swift/FileActConversionToSWIFTModule in only the sender communication channel, a payload file gets created like below.
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns1:SWIFT_payload xmlns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dHJ5PgogICAgICA8L1BzdGxBZHI+CiAgICAgIDxJZD4KICAgICAgIDxPcmdJZD4KICAgICAgICA8T3Rocj4KICAgICAgICAgPElkPjAwMTUwMDAxOTc8L0lkPgogICAgICAgIDwvT3Rocj4KICAgICAgIDwvT3JnSWQ+CiAgICAgIDwvSWQ+CiAgICAgPC9DZHRyPgogICAgIDxDZHRyQWNjdD4KICAgICAgPElkPgogICAgICAgPElCQU4+TkwxMjAwMzA0NTY3ODkxMjAwMDA8L0lCQU4+CiAgICAgIDwvSWQ+CiAgICAgIDxDY3k+RVVSPC9DY3k+CiAgICAgIDxObT5BTFhOIE5MIERvbWVzdGljIFZlbmRvcjwvTm0+CiAgICAgPC9DZHRyQWNjdD4KICAgICA8Um10SW5mPgogICAgICA8VXN0cmQ+L1BNREQvVEVTVDY4MSw1OTAuMDAsRVVSLDIwMTQwMzI8L1VzdHJkPgogICAgIDwvUm10SW5mPgogICAgPC9DZHRUcmZUeEluZj4KICAgPC9QbXRJbmY+CiAgPC9Dc3RtckNkdFRyZkluaXRuPgogPC9Eb2N1bWVudD4KPC9GaWxlPgo=</payload></ns1:SWIFT_payload>
    But while creating the par file, it shows that the file could not be overwritten and so the .par file is not getting created.
    I need to understand that:
    1)  How do I configure both of my receiver channels i.e. what should be the difference. Currently, I am just setting the
    same Output directory in both and file name schema * and has used ASMA with FileName parameter. So same name files are getting created and so one file gets discarded. How to create a .par file.
    2) Also Is the file above is the correct file required by SWIFT.
    3) Also when I check in SXMB_MONI, I can see that after running the adapter module same payload as given above is going in both payload and par files i.e. also if I am using different names in my receiver communication channels two files are getting created payload and par both are having the same payload. So what exactly should get created.
    Kindly guide on this implementation.

    Hi,
    I am able to generate the .par file by setting the localsecurity to true and the KeyId from the key manager.
    Now two files are getting created .xml and .par. .xml file which is the payload file is the same as the input file with no difference and contains both the overrides and the data parameters. The .par file contains the Algorithm and the Value.
    Is this correct?
    Also suppose the input file name is SEPA.xml, then the payload file is created with the name as
    SEPA.xml and the par file is created with the name SEPA.xml.par. I need only SEPA.par. How to achieve this.

  • Need to create PAR files from JSP

    Hi,
    In my project we are creating portal archives from JSP iviews .
    Using NWDS we can easily create par files by going to Enterprise Portal workspace  .But in my project we are not using NWDS or any other JSP editor .
    Can anybody tell me how to create par files if i am using only notepad to develop my JSP .
    Thanks a lot .

    Hi
    here is the link how to create a par file without using any editor
    http://support.sas.com/rnd/itech/doc9/portal_dev/tasks/dg_portlet_parfile.html
    all the best..
    thanks Regards ,
    Boopalan.M

  • Deployed par file does not show as an iview create option

    Hello Experts,
    I modified the com.sap.portal.runtime.masthead par app and deployed it to the portal as myCustomMasthead.
    I see the par file in under the Support Workset in the portal, but when I'm in content admin and try to create an iview from the deployed par file template, the option for the deployed par does not show? Do I need to request basis to bounce the J2ee engine? What might be wrong?
    Any advice will be appreciated.
    Regards,
    MM

    Hi Nishant,
    Yes the file exists under ROOT/WEB-INF/portal/portalapps.
    And I am not using iview from template option, I am using iview from par file option.
    I did not deploy the par file from NWDS, I created the par file in NWDS and then manually deployed the par file using the par uploader tool in the portal.
    Do I need to do anything in the portalapp.xml file? This is what my portalapp.xml file looks like:
    <application>
      <application-config>
        <property name="ClassLoadingPolicy" value="5.0"/>
        <property name="DeploymentPolicy" value="5.0"/>
        <property name="AuthenticationPolicy" value="5.0"/>
      </application-config>
      <components/>
    <services/>
    </application>
    Then there is also another portalapp.xml in the dist folder that has all this SAP stuff inside it. The top line says not to modify the file.
    I bounced the J2EE Engine but it didnt fix the issue.
    MM

  • PAR file from NWDS

    Hello,
        I'm attempting to change a couple of the images on the log on page by adding them into the PAR file using a project in NWDS. After making the changes, which I believe I have done correctly, in order to create the new par file I've used the export PAR file option. I then rename the new file to our our existing filename and pass it to our BASIS team who have tried to deploy it using SDM. For some reason it won't load. (I have manually added the 2 JAR files so that is not the problem). Any ideas about what is wrong ? Any help would be appreciated.
    Much obliged,
         Phil.

    Hello
    Check while creating the PAR file again after uploading the images,
    is the par file created correctly or not?
    is there any custom jar files added previously when the login par has created.
    make sure all jar files added in PAR file while building PAR.
    If PAR file generated successfully then try to deploy from System Admin as mentioned by above reply.
    Cheers
    Chinmaya
    reward for Helpful answers.

  • Cannot upload PAR file on server

    While creating the PAR file from my SAP Portal application project,
    I try to upload and deploy that PAR on the server.
    And everytime I get a pop up error message as:
    "PAR upload Failed: plz make sure the server is running.HTTPS protocol is not supported.plz ensure server is not using HTTPS"
    All this happens inspote of the servers running fine..
    Plz answer.
    Thanx in advance

    Hi,
    /thread/720439 [original link is broken]
    regards,
    Naga

  • Getting error while uploading the PAR file into SAPEP

    I have created one .PAR file in SAPEP6.0 SP2 and i deployed it is working fine but if i deploy the same PAR file into SAPEP6.0 SP13 it is generating error
    Deployment failed - exception caught: Application upload failed: ConnectorService.par - more detail at: C:\usr\sap\E13\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\pcd\ConnectorService.par.log 
    and in log file it is generating as
    Application upload failed: ConnectorService.par
    com.sapportals.portal.prt.runtime.PortalException: [ApplicationRepositoryService.putArchive] archive: ConnectorService.par
         at com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.putArchive(ApplicationRepositoryService.java:328)
         at com.sapportals.portal.prt.deployment.DeploymentManager._uploadArchive(DeploymentManager.java:813)
         at com.sapportals.portal.prt.deployment.DeploymentManager.uploadArchive(DeploymentManager.java:474)
         at com.sapportals.portal.prt.deployment.DeploymentManager.uploadApplication(DeploymentManager.java:319)
         at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.doUpload(ArchiveUploader.java:116)
         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:324)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleRequestEvent(AbstractPortalComponent.java:700)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:412)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:707)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         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:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    Caused by: com.sapportals.portal.pcd.pl.PlRuntimeException: unexpected SQLException
    Cannot assign a zero-length byte array to host variable 18.
         at com.sapportals.portal.pcd.pl.PlFactory.handleUnexpectedSQLError(PlFactory.java:2490)
         at com.sapportals.portal.pcd.pl.PlContext.createSubcontext(PlContext.java:652)
         at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChildOnPersistence(XfsContext.java:1360)
         at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChildAndNotify(XfsContext.java:1118)
         at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChild(XfsContext.java:1076)
         at com.sapportals.portal.pcd.gl.xfs.XfsContext.createSubcontext(XfsContext.java:846)
         at com.sapportals.portal.pcd.gl.xfs.BasicContext.createBasicSubcontext(BasicContext.java:185)
         at com.sapportals.portal.pcd.gl.PcdPersContext.createSubcontext(PcdPersContext.java:188)
         at com.sapportals.portal.pcd.gl.PcdFilterContext.filterCreateSubcontext(PcdFilterContext.java:244)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:133)
         at com.sapportals.portal.pcd.gl.PcdGlContext.createSubcontext(PcdGlContext.java:500)
         at com.sapportals.portal.pcd.gl.PcdGlContext.bind(PcdGlContext.java:425)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.bind(PcdProxyContext.java:426)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.rebindInt(PcdProxyContext.java:446)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.rebind(PcdProxyContext.java:460)
         at com.sapportals.portal.pcd.gl.PcdGlContext.rebind(PcdGlContext.java:1317)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.rebind(PcdProxyContext.java:501)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.rebind(PcdProxyContext.java:663)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.rebind(PcdProxyContext.java:668)
         at com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.updateObject(ApplicationRepositoryService.java:717)
         at com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.storeApplication(ApplicationRepositoryService.java:389)
         at com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.putArchive(ApplicationRepositoryService.java:306)
         ... 34 more
    Caused by: com.sap.sql.log.OpenSQLException: Cannot assign a zero-length byte array to host variable 18.
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.jdbc.common.dispatch.BlobHostVariable.setBinaryStream(BlobHostVariable.java:143)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setBinaryStream(CommonPreparedStatement.java:776)
         at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setBinaryStream(PreparedStatementWrapper.java:401)
         at com.sapportals.portal.pcd.pl.AttributeHeadersTable.storeAttribute(AttributeHeadersTable.java:431)
         at com.sapportals.portal.pcd.pl.AttributeHeadersTable.insert(AttributeHeadersTable.java:248)
         at com.sapportals.portal.pcd.pl.PlObject.save(PlObject.java:541)
         at com.sapportals.portal.pcd.pl.PlContext.createSubcontext(PlContext.java:616)
         at com.sapportals.portal.pcd.pl.PlContext.createSubcontext(PlContext.java:640)

    Hi,
    The problem might be caused by the version inconsistency of your J2EE and Portal Platform. 
    Please check the version of your J2EE and Portal.
    Best Regards,
    Assaf

  • Problem Undeploying a PAR file

    Hi,
    Let me first give the history of this problem.
    I wrote a small portal application and created a par file named RoyaltiesService.par and tried to deploy it from NWDS, but NWDS got stuck and i was not able to deploy the par file. I also realised that my portal server stopped and my efforts to start the server have gone in vain. Please see the details of that problem at <Re: Problem with protal server>
    So after trying to solve the problem for few days I reformatted my machine and reinstalled the portal now. I was able to deploy other par files and everthing worked fine, but now  I tried to deploy the same par file RoyaltiesService.par (the one that i tried to deploy when the problem occurred for the first time) and the same problem reoccurred i.e., my NWDS got stuck, portal server stopped and i am unable to start it. I am wondering whether my par file has something to do with this. I thought of undeploying the par file from the SDM console but i am not able to find that RoyaltiesService.par file. Then i did a search for the par file in my c:usrsap and found the following results. (File/Folder name - location)
    -> RoyaltiesService - C:usrsapJ2EJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalapps
    -> RoyaltiesService.revision - C:usrsapJ2EJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalsystem
    evisions
    -> RoyaltiesService.par.bak - C:usrsapJ2EJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFdeployment     emp
    -> RoyaltiesServiceapi.jar - C:usrsapJ2EJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsRoyaltiesServicelib
    -> RoyaltiesServicecore.jar - C:usrsapJ2EJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsRoyaltiesServiceprivatelib
    Now i want to remove this par file from the deployment. Can anyone suggest me how to do it ??
    Any help will be very very helpful to me.
    Thanks & Regards,
    Sudhir

    Hi,
    You cannot remove from the file system, because the application is deployed to the PCD (Application Repository), which then replicates the application to all the cluster nodes.
    You have to use the Archive Remover tool. Did you try?
    Even if you cannot get the portal interface, if you can log in and create a session, you can navigate to the archive remove and remove the application.
    Hope this helps.
    Daniel

  • File copy in KM not working from a par file.

    Hi Experts,
                      We created a par file which will copy a file from a folder and copy this onto a seperate folder under the same parent folder. This applications works well on testing system, but is not working when deployed to the portal server where it supposed to work.
    Please give your thoughts and your valuable suggestions on this issue.
    Thanks in advace
    Sateesh

    Hi Raghu,
                   What is CM system and where it needs to be added.
    I am copying the code please check and give your valuable inputs.
    import java.util.Properties;
    import com.sap.tc.logging.FileLog;
    import com.sap.tc.logging.Severity;
    import com.sap.tc.logging.TraceFormatter;
    import com.sapportals.wcm.repository.CopyParameter;
    import com.sapportals.wcm.repository.ICollection;
    import com.sapportals.wcm.repository.ICopyParameter;
    import com.sapportals.wcm.repository.IResourceList;
    import com.sapportals.wcm.repository.ResourceContext;
    import com.sapportals.wcm.repository.ResourceFactory;
    import com.sapportals.wcm.service.scheduler.ISchedulerTask;
    import com.sapportals.wcm.util.uri.RID;
    import com.sapportals.wcm.util.usermanagement.WPUMFactory;
    public class archiveContent implements ISchedulerTask {
         private static final com.sap.tc.logging.Location logger =
              com.sap.tc.logging.Location.getLocation("KMScheduler");
      public void run( String id, Properties properties ) {
         // implement the tasks to be scheduled
         logger.setEffectiveSeverity(Severity.ALL);
         FileLog mFile1 = new FileLog("/usr/sap/EPD/JC00/j2ee/cluster/server0/log/KMScheduler/reportArchiver.log",10485760,5,new TraceFormatter("%d %m"));
         logger.addLog(mFile1);
         String Filename=null;
         int flag=0;
         logger.infoT("Entering Archive Application try block");
         try{
         com.sapportals.portal.security.usermanagement.IUser epUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
         ResourceContext ctx = new ResourceContext(epUser);
    //     Get the path of the bi-broadcast (start) folder and create a resource
         //RID birid = RID.getRID("/bi-broadcast");
         RID birid = RID.getRID("/documents/KMScheduler_test");
    //     Create resource holding the contents of the bi-broadcast/top level folder
         com.sapportals.wcm.repository.IResource bires= ResourceFactory.getInstance().getResource(birid,ctx);
         if(bires!=null)
    //          Create a collection of the bi-broadcast resource and get the child resources i.e. Categories
              ICollection categorycollection=(ICollection)bires;
              IResourceList categorylst= categorycollection.getChildren();                                             
              com.sapportals.wcm.repository.IResource categoryres = null;
              if(categorylst!=null)
                   for(int i=0;i<categorylst.size();i++)
                        categoryres = categorylst.get(i);
    //                    Check if the Category is Template. if it is do not enter the loop
                        //if(!categoryres.getName().equalsIgnoreCase("Template"))          
    //                         Get the path of the Category folder
                             //RID categoryrid = RID.getRID("/bi-broadcast/"+categoryres.getName());
                             //RID categoryrid = RID.getRID("/documents/KMScheduler_test/bi_reports/"+categoryres.getName());
                             //logger.infoT("Folder ""\"/documents/KMScheduler_test/bi_reports/"categoryres.getName()+"\" detected");
                             if(categoryres!=null)
    //                              Create a collection of the Category resource and get the child resources i.e. Area      
                                  ICollection areacollection=(ICollection)categoryres;
                                  IResourceList arealst= areacollection.getChildren();                                                            
                                  com.sapportals.wcm.repository.IResource areares = null;     
                                  if(arealst!=null)
                                       for(int j=0;j<arealst.size();j++)
                                            areares=arealst.get(j);
                                            Filename=areares.getName();                              
    //                                        Get the path of the Area folder
                                            RID arearid = RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"+areares.getName());
                                            logger.infoT("Folder ""\"/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()+"\" detected");
                                            if(areares!=null)
    //                                             Create a collection of the Area resource and get the child resources i.e. Region
                                                 ICollection regioncollection=(ICollection)areares;
                                                 IResourceList regionlst= regioncollection.getChildren();                                        
                                                 com.sapportals.wcm.repository.IResource regionres = null;     
                                                 if(regionlst!=null)
                                                      for(int k=0;k<regionlst.size();k++)
                                                           regionres=regionlst.get(k);
                                                           Filename=regionres.getName();
    //                                                       Get the path of the Region folder
                                                           RID regionrid = RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"+regionres.getName());
                                                           logger.infoT("Folder ""\"/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()+"\" detected");
                                                           if(regionres!=null)
    //                                                       Create a collection of the Region resource and get the child resources i.e. File
                                                                ICollection filecollection=(ICollection)regionres;
                                                                IResourceList filelst= filecollection.getChildren();                                             
                                                                com.sapportals.wcm.repository.IResource fileres = null;     
                                                                if(filelst!=null)
                                                                     for(int l=0;l<filelst.size();l++)
                                                                          fileres=filelst.get(l);
    //                                                                      Check if the file is Archive or Special. if it is don not move it to Archive
                                                                          if(!fileres.getName().equalsIgnoreCase("Archive"))
                                                                               if(!fileres.getName().equalsIgnoreCase("Special"))
                                                                                    flag=1;
    //                                                                                Get the path of the File in the region folder
                                                                                    RID filerid = RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Archive/"+fileres.getName());
                                                                                    logger.infoT("File ""\"/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Archive/"fileres.getName()+"\" detected");                                                                                                              
    //                                                                                Move one child at a time to the Archive folder
                                                                                    ICopyParameter cp=new CopyParameter(true);
                                                                                    fileres.move(filerid,cp);
                                                                                    logger.infoT("Archiving file \""fileres.getName()" from folder /documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"\"");
                                                                               else if(fileres.getName().equalsIgnoreCase("Special"))
                                                                                    RID ar_analysisrid=RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Special");
                                                                                    ICollection aranaylsiscollection=(ICollection)fileres;
                                                                                    IResourceList aranalysislst= aranaylsiscollection.getChildren();                                             
                                                                                    com.sapportals.wcm.repository.IResource aranalysisres = null;
                                                                                    if(aranalysislst!=null)
                                                                                         for(int m=0;m<aranalysislst.size();m++)
                                                                                              aranalysisres=aranalysislst.get(m);
                                                                                              if(!aranalysisres.getName().equalsIgnoreCase("Archive"))
                                                                                                        flag=1;
    //                                                                                                    Get the path of the File in the region folder
                                                                                                        RID arfilerid = RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Special/Archive/"+aranalysisres.getName());
                                                                                                        logger.infoT("File ""\"/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Special/Archive/"aranalysisres.getName()+"\" detected in Special folder");
    //                                                                                                    Move one child at a time to the Archive folder
                                                                                                        ICopyParameter cp=new CopyParameter(true);
                                                                                                        aranalysisres.move(arfilerid,cp);
                                                                                                        logger.infoT("Archiving file \""fileres.getName()" from folder /documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Special/Archive/"aranalysisres.getName()"\"");
    Edited by: Jabi123 on Jan 17, 2011 7:13 AM

Maybe you are looking for

  • E60 Mail for Exchange Calendar Sync Issues

    Hello all, I'm able to sync my email, calendar and my contacts. However I've noticed that some of my calendar items have not been sync'd. For instance, I might have A, B, C, D as appointments in the same day and in that order. I'll only have appointm

  • Intel 7260 does not work on open networks/filtered ports

    Hi Everyone! I made sure to check if this was posted before and tried to fix everything I could before asking you guys. For the past few days, I have been using Android wifi tethering as I was unable to get the speed up above 1000 B/s at my school. T

  • How do I get Safari to open with homepage

    If I quit Safari with a single or multiple pages open, the next time I open Safari all the pages come back, the pages that were open when I quit the application. Even though in preferences I have a homepage selected it doesn't seem to matter.

  • Fuse 1.3

    i'm trying to make a package for fuse (filesystem in userspace) but i'm having troubles compiling it.  here's my preliminary PKGBUILD pkgname=fuse pkgver=1.3 pkgrel=1 pkgdesc="Utility that enables one to mount filesystems in userspace" url="http://so

  • Info box

    when I want more information about a podcast I hit the i for information. But then the box won't go away, or move. It continues to block the center of my screen. How do I get rid of it?