Fetching Portal Server Time in Par file

Hi All,
I had a requirement where i am customizing the Masthead par file and the client wants Time on the Masthead, that should be from portal Server. I could successfully show the time on masthead using javascript but that time is from client system.
But my client wants the time of Server.
Please help me in this.
Regards
Raghu

Hi Micheal,
First of all thanks for replying me.
Let me clear my requirement.
Now i am modifying Headeriview.jsp file in Masthead par file.
In this when i instantiate new Date(). This will fetch me client system date, but not server date.
Can u please ellaborate your answer.
Thanks
Raghu

Similar Messages

  • How to allow Portal server to parse shtml files stored in KM

    Hello,
    I've created a KM repository and stored shtml files in the folder. Currently when I link to one of those files a prompt window is displayed asking me whether I would like to download or view file instead of launching in the browser as an HTML file. The server is not able to interprete shtml files. If the file was an html file, the file is properly displayed in the browser as a web site.
    How can we configure the Portal server to serve/parse SHTML pages.
    Your help would be gretaly appreciated. I would be glad to display you my problem if you open a webex session.
    Thanks in advance
    Rabih

    Hello Paul,
    Thanks for your response.
    A file extension that is also sometimes known as SSI, SHTML is a HTML file that includes server instructions or server side includes, and is similar to an ASP file.  This file is commonly used as a method of identifying files that include server instructions. For example if you have static html page and you would like to add a common header you can use server side includes.
    Is it possible to enable SSI on SAP J2EE server to be able to parse shtml files?
    Thanks
    Rabih

  • Portal server time out

    Hi
    EP 7.0, 4 instances, 1 dispatcher
    The below error is coming frequently in the portal server and it is really difficult to restart the production server every time.
    ERROR -
    "The iView has timed out. There is no cached content to display. Click 'Reload' to retrieve updated content. You may need to wait for the cache to retrieve the content from the source. Reload"
    Is there sap note available or workaround solution other than restart the server.
    Thanks in advance.
    Regards,
    Sanjeev Mourya

    Hi Sanjeev,
    The answer for this issue other than Restarting the server can be due to properties of Expiration time. Well it can be tried.
    This is the setting has to be done in NWDS.
    Go to ur NWDS, double click on ur wd application, go to application porperties tab . click on new -> select predefined property -> browse-> select expiration time . specify the expiration time .
    Hope this helps,
    Regards,
    Shailesh Nagar

  • Portal masthead messed up - par file needed

    Hi
    I recently performed a transport of the masthead from
    NW7.0 EP SPS13 to NW 7.0 EP SPS14
    I was careless enough to have overridden the original com.sap.portal.navigation.masthead on the target system. 
    Apparently the transport messed up the masthead and now my logoff link would give me a javascript error.
    can someone provide me the original SPS14 masthead par file or suggest another solution to fix this.

    Hi,
    send me an email to [email protected] so i can send you the par file you need

  • Server Time Machine vs File Sharing TM

    For a couple of years I have used file sharing on my Mac Mini to provide Time Machine backup space for the Mac Books in my collection. This has worked well, with multiple hard drives and partitions providing redundant backup space (every Mac has at least two concurrent Time Machine backups, each in different hard drives attached to the MM). I have been examining OS X Server, and am wondering what benefit Server Time Machine service offers over my current arrangement. I can see no functional difference. Is there any?

    Functionally, I don't believe so. If you're able to back up and restore your Macs over your LAN using File Sharing then the Time Machine Service in OS X Server won't do you any good.
    I use OS X Server and the Time Machine Service for back ups/restore. I know I can restore any Mac client as long as the server (Mac Mini) is up and running. I simply select the network back up while in the Recovery HD of the client, log into it and select the date I want to restore. I don't know how File Sharing works if you have to restore one of your Macs from the Recovery HD.

  • Converting old server time check batch file to PowerShell

    Hi Guys,
    I have batch file that checks the offset between our time servers and two external ones.  This batch file works in XP, but not in Windows 7 pro.  Where it breaks down is it doesn't display the offset correctly.  Can this batch be converted
    to Powershell, so that it would be compatible?  Here is the batch code:
    CLS
    @ECHO OFF
    @ECHO.
    @ECHO.
    @ECHO ************************* Time Checking Script *************************
    @ECHO *** Check the offset between government time server, our internal
    @ECHO *** time server and domain controllers.
    @ECHO.
    @ECHO *** time.nist.gov:
    @w32tm /monitor /computers:time.nist.gov /domain:cooley-dickinson.org |FIND "offset"
    @ECHO.
    @ECHO *** time.cooley-dickinson.org:
    @w32tm /monitor /computers:tock.usno.navy.mil /domain:cooley-dickinson.org |FIND "offset"
    @ECHO.
    PAUSE
    @ECHO.
    @Net Time \\server1 | find "Current"
    @Net Time \\server2 | find "Current"
    @Net Time \\server3 | find "Current"
    @Net Time \\server4 | find "Current"
    @Net Time \\server01 | find "Current"
    @Net Time \\server02 | find "Current"
    @Net Time \\server03 | find "Current"
    @Net Time \\server04 | find "Current"
    @Net Time \\server05 | find "Current"
    @Net Time \\server06 | find "Current"
    @Net Time \\server07 | find "Current"
    @Net Time \\server08 | find "Current"
    Below is the output we get from the batch file in Windows 7.  Where it says delayoffset, is normally where the offset is in seconds.
    *** time.nist.gov:
    Analyzing:Analyzing:Analyzing:Analyzing:Analyzing:delayoffset from DC01.coole
    y-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    *** time.cooley-dickinson.org:
    offset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    The rest of the script displays the date/time for individual servers correctly.  If this could be converted to powershell, it would be a whole lot easier to deal with.
    Thank you!
    Larry

    Hi Bill,
    My main concern is getting a means script-wise to mimic the functionality of the batch I posted.  The syncing has never been an problem for our engineers (that I know of).  The batch is but a task we can only run on xp, so I wanted to be able to
    try to migrate the task over to windows 7.  If the task is outdated and unnecessary, as I told jrv, I'll suggest that it is to the sys admin.  To me it is a scripting question, I'm a programmer at heart and look to find ways of automating tasks with
    code.  I'm new to Powershell and not experienced with system architecture design. 
    Thank you!
    Larry
    Again - there is no way to do what you are asking. w32tm is the only utility that matches time but you are not using it correctly.  You are reporting the offset but not the delay.  The only accurate way to test sync quality is by running a tape. 
    This is a function of w32tm.   THe tape will show you the variance over time.  The other way I have used is to set the time service to generate a log and scan the log.
    Win32_UTCTime will tell you the time at remote servers but it cannot tell you the network delay.
    If you are only interested in matching seconds then you can use it as well as the w32tm query that returns network time.  These can be extracted and converted into time objects.
    As an exercise to learn PowerShell this could be useful.  Just capture the output of w32tm and parse it in PowerShell.
    See the "Learning" resources on this site for examples.
    You should also use your search engine to learn more about what is available and how it is used.
    A simple search for me returned this:
    http://gallery.technet.microsoft.com/scriptcenter/Get-Network-NTP-Time-with-07b216ca
    There are many more things available including GUIs that report in real time.
    You desktop guys need to get out more often.  Learn to use computers.  They can be very helpful.  Stop plating with hardware.  Desktop support will be gone within a few years as we move to the cloud.  Only application support will
    remain.  The classic PC and member server are pretty much obsolete.
    ¯\_(ツ)_/¯

  • Problem during uploading of .par file in Portal

    Hi,
    I am downloading a properly working .par file from portal in my local system. But whenever I am uploading the same par file back into the portal through NWDS, the .par file is not running properly and its Giving error.
    Here is the error:
    "Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.tmobile.compSumm.CompSumm of Portal Component com.tmobile.CompSumm.CompSumm because: Could not find implementation class "
    Any Idea what is the problem?????

    Hi,
    I have unzipped the .jar file from the .par file. Then I imported the .par file into NWDS. After that I have added the extacted .jar file as external jar into the project(Proerties->Java Build Path->Libraries->Add External Jars). After that I had uploaded the project into the portal.
    But still its showing the same error:
    "Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.ibm.test of Portal Component testing.test because: Could not find implementation class"
    Any solution.....
    Message was edited by: Debasish Sarkar

  • Par file "com.sap.portal.navigation.detailedtree.DetailedNavigationTree"

    hi,
    can any one tell me where this par file is present.
    "com.sap.portal.navigation.detailedtree.DetailedNavigationTree"
    i have to modify delailed navigation ..i got iview for delailed navigation but i am not able to get code link for that.
    please help me in that.
    good ans will be rewarded.

    cant we get from portal.
    i mean all par file we can download from portal.
    path is
    system admin/support/portal_runtime/browse_deployment....
    is it present there.?
    thanks
    jayesh talreja

  • Problems redeploying portal logon par file

    Hi,
    We customized the portal logon page within a custom par file and modified the authschemes.xml to make it work.
    Once it worked on our DEV portal we moved the par file to the QA environment.
    At this point the par file is having problems and doesn't execute. When we change the Authschemes.xml the portal even crashes because it tries to execute the custom par file and it fills up the log files.
    The only difference in the deployement I could get from the log files it that it doesn't create a "work" directory during the deployement in QA while it does in DEV.
    Any reasons why the par file would work in DEV and not in QA?
    the portal releases and patch levels are exactly the same.
    Thanks,
    Johnny

    Hi,
    1. create ur custom parfile
    2. change all occurences of the the old par file name with the new custom parfile name in authschemes.xml.
    3. <b>delete or rename com.sap.portal.navigation.masthead.par.bak</b>
    3. move the new custom parfile to the PCD location
    4. <b>delete the .bak file of new parfile or old parfiles if any</b>
    5. restart the portal.
    check whether there are any discrepancies in authschemes.xml while changing the name of old parfile.
    Hope this helps
    Thanks,
    Praveen
    PS. Dont forget to reward point if useful/solved.

  • Uploading par files in nwds and deploying back

    Hi all,
    I wanted to work with the masthead iview in nwds, so found it on the server as the par file and imported it into NWDS. Changed the headeriview jsp and deployed it back to the portal. But it is not working. Saw in another sdn thread that when you create the project in nwds, it does not bring up all the components from the par file as required and some class files are missing. I think this is the problem in my case. The solution to it was not given in that thread.
    Would anybody help please.
    thanks.
    Lm

    Hi
    the following are the steps to modify a masthead.
    1.Find the PAR file and copied to a temporary directory and renamed to the customer namespace taking off .bak extension.
    2.Import the PAR file now using File->import option.
    3.make necessary modifications.
    4.once the JSP is edited, the PAR file needs to be created ans uploaded to the portal.If JDK is installed just login into portal and deploy the pAR file otherwise use PortalAnywhere to deploy it.
    5.Now goto Content Administration->Portal Content->right click the folder you wish to create the mastheadiView.Select New from Portal Archive-?iView from the context menu.Select new masthead.
    6. select poratal component Default and choose next.
    7.enter the properties for masthead and next.
    8.edit the Iview and saved it.
    9.add the iView to Framework Page in portal catalog and edit page layout.
    10.select iView from catalog and add it as Delta link and position it accordin to your need.
    Hope this helps you to modify the masthead.
    Regards
    Victoria

  • Importing a .par file

    Hi all,
    Can anyone explain in detail How to import a .par file into nwds webdynpro perspective and how can i upload/export it to PCD after commiting changes.
    The proper answer will be awarded with 10 points
    Thanks and Regards
    sam

    HI,
    Open NWDS,
    Go to File->Import
    Select PAR file
    It will say create a portal application using a par file..
    After you do all your changes..
    You can deploy the par file on the j2ee engine(WAS) on which your portal is present..
    For this you need to configure the j2ee engine.
    Go to Windows-> preferences
    Select SAP j2ee engine.
    Now there are two options here.
    Select the option you want depending on whether you are working on the server machine or some remote machine.
    Fill in the details accordingly.
    Click on apply.
    Now when you deploy the par file you can see this on your portal if you create a iview from a par file..
    Hope it helps
    Regards,
    Nikhil

  • Flash clock and server time

    Hi Guys, desperately need help here!
    I have created a flash clock using Actionscript 2.0. I have configured it to fetch the server time using a basic ColdFusion time and date script.
    At first the clock worked fine, accept for the afternoons where it would add extra hours onto the time. The clock is now completely out of sync and I have been trying to solve the problem for over two weeks! This clock will be used for a major client so it has to be working perfectly.
    I would really appreciate someone having a quite look at the actionscript as im sure its nothing major.
    Actionscript - http://pastebin.com/3ny6dBt4
    Coldfusion - http://pastebin.com/R2QcWtvE
    Kind Regards
    Jack

    -Thanks for the info, I am running an older version of the firmware.
    Actaully, now that I think about it Im running the 4305g with the lates firmware upgrad...So would this only be available in the 4400's?

  • Problem  with importing par file in portal server 6.2

    Hi everyone,
    I got the following error when trying to import IFRAME provider into portal server 6.2.
    Operation failed.
    ERROR: provider element has no version attribute
    Below is the command I used. I run it as a file - I supply the password at the command line.
    /opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscollier,dc=com" password $1 IFRAMEProvider.par dc=accesscollier,dc=com provider=IFRAMEProvider.
    This used to work in Portal Server 6.0. I looked through the Portal Server 6.2 Desktop Customization Guide and the Developer guide for portal 6.2 but did not find any reference to version number.
    Thanks.
    Klara Hribkova
    I

    Hi Ulf,
    here is the command + options. It is in a file, I supply the password on the command line. This used to work fine with PortalServer 6.0.
    !/bin/ksh
    echo "----------------------------------"
    echo "USE: import_providers.sh password "
    echo "----------------------------------"
    #echo "Importing IFRAMEProvider ..."
    #/opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscolier,dc=com" password $1 IFRAMEProvider.par
    dc=accesscollier,dc=com provider=IFRAMEProvider
    echo "Importing IFRAMECalendarProvider ..."
    /opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscollier,dc=com" password $1 IFRAMECalendarProvi
    der.par dc=accesscollier,dc=com provider=IFRAMECalenderProvider
    echo "Importing IFRAMEMailProvider ..."
    /opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscollier, dc=com" password $1 IFRAMEMailProvider
    .par dc=accesscollier,dc=com provider=IFRAMEMailProvider
    echo "Importing JSPWebAppProvider ..."
    /opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscollier, dc=com" password $1 JSPWebAppProvider.
    par dc=accesscollier,dc=com provider=JSPWebAppProvider
    These are the errors I get:
    # ./import_providers1.sh solurute
    ./import_providers1.sh: !/bin/ksh: not found
    USE: import_providers.sh password
    Importing IFRAMECalendarProvider ...
    AUTHENTICATING
    uid=amAdmin,ou=People,dc=accesscollier,dc=com
    solurute
    AUTHENTICATED - Setting DN - dc=accesscollier,dc=com.
    Initializing for operation - dpnode=dc%3Daccesscollier%2Cdc%3Dcom,provider=IFRAMECalenderProvider.
    Operation failed.
    ERROR: provider element has no version attribute.
    Importing IFRAMEMailProvider ...
    AUTHENTICATING
    uid=amAdmin,ou=People,dc=accesscollier, dc=com
    solurute
    AUTHENTICATED - Setting DN - dc=accesscollier,dc=com.
    Initializing for operation - dpnode=dc%3Daccesscollier%2Cdc%3Dcom,provider=IFRAMEMailProvider.
    Operation failed.
    ERROR: provider element has no version attribute.
    Importing JSPWebAppProvider ...
    AUTHENTICATING
    uid=amAdmin,ou=People,dc=accesscollier, dc=com
    solurute
    AUTHENTICATED - Setting DN - dc=accesscollier,dc=com.
    Initializing for operation - dpnode=dc%3Daccesscollier%2Cdc%3Dcom,provider=JSPWebAppProvider.
    Operation failed.
    ERROR: provider element has no version attribute.
    This is the build_par.xml file:
    <?xml version="1.0"?>
    <project name="Provider" default="all" basedir=".">
    <property name="par.dir" value="./pars"/>
    <property name="iframe.dir" value="iframeprovider"/>
    <property name="iframecalendar.dir" value="iframecalendarprovider"/>
    <property name="iframemail.dir" value="iframemailprovider"/>
    <target name="iframe">
         <jar jarfile="${par.dir}/IFRAMEProvider.par"
              basedir="${iframe.dir}"
              includes="**/*">
              <manifest>
              <attribute name="PS-Version" value="1"/>
                   <attribute name="PS-DefaultEntry" value="IFRAMEProvider"/>
                   <attribute name="PS-PBFileRoot" value="pbfiles"/>
                   <attribute name="PS-StaticRoot" value="static"/>
                   <attribute name="PS-DPRoot" value="dp"/>
                   <section name="dp/IFRAMEProvider.xml">
                        <attribute name="PS-EntryName" value="IFRAMEProvider"/>
                        <attribute name="PS-Include" value="pbfiles/providerClassBaseDir/k20portal.properties(1),com/hangingvalley/sunportal/util/K20PortalProperties.class(1),com/hangingvalley/sunportal/util/OrgProperties.class(1),pbfiles/templateBaseDir/default/IFRAMEProvider/iframecontent.jsp(1),pbfiles/templateBaseDir/default/IFRAMEProvider/iframedoedit.jsp(1),pbfiles/templateBaseDir/default/IFRAMEProvider/iframeedit.jsp(1)"/>
                   </section>
              </manifest>
         </jar>
    </target>
    <target name="iframecalendar">
         <jar jarfile="${par.dir}/IFRAMECalendarProvider.par"
              basedir="${iframecalendar.dir}"
              includes="**/*">
              <manifest>
                   <attribute name="PS-Version" value="1"/>
                   <attribute name="PS-DefaultEntry" value="IFRAMECalendarProvider"/>
                   <attribute name="PS-PBFileRoot" value="pbfiles"/>
                   <attribute name="PS-StaticRoot" value="static"/>
                   <attribute name="PS-DPRoot" value="dp"/>
                   <section name="dp/IFRAMECalendarProvider.xml">
                        <attribute name="PS-EntryName" value="IFRAMECalendarProvider"/>
                        <attribute name="PS-Include" value="pbfiles/templateBaseDir/default/IFRAMECalendarProvider/iframecontent.jsp(1),pbfiles/templateBaseDir/default/IFRAMECalendarProvider/iframedoedit.jsp(1),pbfiles/templateBaseDir/default/IFRAMECalendarProvider/iframeedit.jsp(1)"/>
                   </section>
              </manifest>
         </jar>
    </target>
    <target name="iframemail">
         <jar jarfile="${par.dir}/IFRAMEMailProvider.par"
              basedir="${iframemail.dir}"
              includes="**/*">
              <manifest>
                   <attribute name="PS-Version" value="1"/>
                   <attribute name="PS-DefaultEntry" value="IFRAMEMailProvider"/>
                   <attribute name="PS-PBFileRoot" value="pbfiles"/>
                   <attribute name="PS-StaticRoot" value="static"/>
                   <attribute name="PS-DPRoot" value="dp"/>
              <section name="dp/IFRAMEMailProvider.xml">
                        <attribute name="PS-EntryName" value="IFRAMEMailProvider"/>
                        <attribute name="PS-Include" value="pbfiles/templateBaseDir/default/IFRAMEMailProvider/iframecontent.jsp(1),pbfiles/templateBaseDir/default/IFRAMEMailProvider/iframedoedit.jsp(1),pbfiles/templateBaseDir/default/IFRAMEMailProvider/iframeedit.jsp(1)"/>
                   </section>
              </manifest>
         </jar>
    </target>
    <target name="all" depends="iframe,iframecalendar,iframemail"/>
    </project>
    Thank you very much for your assistance and for your time.
    Klara

  • Portal Run time error after deploying custom logon page par file in portal

    Hi Experts,
       We have customized the standard portal logon par file for client XYZ and imported it with the same name (com.sap.portal.runtime.logon.par)  in portal.
       It is working fine for XYZ . And another client ABC wants the same customization for them also. So we took the par file from XYZ and imported it in ABC system. But in ABC system, we are getting Portal Run time Error. When we checked the logs, it is showing error in LogonBean class.Wwe have included the necesary jar files. Could anyone help us in identifying what is missing?
    Thanks
    VJ

    Hello Vijay,
    Please paste or attach the error log.
    Regards,
    Haseena

  • Runtime exeception after deploying PAR file in portal

    Hi ,
    I am facing an issue during the deployment of PAR file in our  Quality portal. I have download the PAR file from the system-->import to the NWDS--> did the modification (only to the properties files as part of my requirement) -->Export as PAR file. I then undeploy the previous earlier PAR file and then upload the modified PAR file in portal. When i test the application , i received portal runtime error.
    I have also tried by downloading the PAR file for the same application from the production portal and tried importing to Quality system without making any modification to the PAR. I still face the same issue.
    Due to this issue, i am not able to bring the application back as its not getting deployed properly. Can anyone help me on this.
    Regards
    Ray

    Hi Ray,
    Are you sure your file is getting deployed properly. Can you verify if the time stamp of the PAR file is getting updated on each deployment or after you upload it through Portal.
    Also, please check the PAR file (size and it's contents by unzipping the PAR file) that you've downloaded from PROD and deploying on QAS to ensure that the file is not corrupted by any means during downloading.
    You can also ask your BASIS team to provide the PAR file directly from PROD server and try to upload it on QAS instead of you downloading it from PROD portal.
    Also, you can follow the below steps to download the PAR file yourself from PROD portal with Administrator ID:
    Browse to the following location : System administration->Support->Portal Runtime->Browse deployment->ROOT/WEB-INF/deployment/temp
    1. Find and Identify the PAR file and Copy the name of PAR file.
    2. Click on view instead of download link to save the PAR file. Keep the name of PAR file same while saving with .par extension.
    3. Deploy this file on QAS Portal.
    Please let us know the results.
    BR,
    Anurag

Maybe you are looking for

  • How can i print from android 2.2 to photosmart c 4788 all in one printer

    Dear sir, my os is window xp, my HP photosmart C4788 all in one printer is unable to visible in my android phone with installed software HP eprint Home and biz. when requested to search wi fi enabled printer. This printer do not have facility of epri

  • Excel 2007 Merge Rows

    How can I merge rows together to go from this: 1 2 3 A F A G A D H B I B J C K C L C M C E N To this: 1 2 3 A D F, G, H B I, J, K C E L, M, N

  • How to not display the file path when converting a file to pdf from the context menu

    When I right click an html file and choose convert to pdf, Acrobat puts the original file's path and creation date at the bottom of the pdf, how do I stop it doing this?

  • HT1595 When the phone is charging, wifi can't use

    first, I can  connect to wifi.then I take my iPhone4s to charging .after a while ,I want to play iPhone4s again,I found it can't connect wifi. I restart iPhone4s and it can connect to wifi. this is the second time it happen.

  • Master data data sources

    Hai, experts, i have an doubt ,for master data v have any special cockpit is there as LO, if som of the master data supporting delta means, how the delata mechanism work for that data souces? how the master data arrives from table to PSA? take for ex