Which document root from webutil functions?

I have a form where I want to get reports output to the client using the URL_To_Client function from webutil (the report is run with run_report_object). The URL to the reports servlet should best be given as a relative URL, e.g. /reports/rwservlet/etc. But this does not work. The URL seems to be relative to the Forms document root (http://server:port/forms) and not against the HTTP document root! The problem can be solved by prepending '..' before the relative path, but when calling a URL from web.show_document the URL is relative to the HTTP document root.
Can anybody explain the difference?

Actually I mean the document root in webserver. I have put servlet in doc-root/servlet so I would like to find doc-root in an applet when I can get URL from getCodeBase(). So that I can make open a connection to servlet.
Thanks

Similar Messages

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • Can I call a stored procedure which has DMLs from a function ??

    Hello all,
    Here is my req. I Want to use a function which in turn executes a procedure to populate a table. This procedure inserts data into a table .
    How can I make it work.?
    thanks,
    Dnakka

    Hi,
    Here is an example procedure and a function.
    The procedure:
    CREATE OR REPLACE PROCEDURE proc1 AS
    BEGIN
    INSERT INTO tab1 VALUES(1, 'some string value');
    COMMIT;
    END;
    The function which calls proc1:
    CREATE OR REPLACE FUNCTION func1 RETURN VARCHAR2 AS
    BEGIN
    proc1;
    RETURN 'done';
    END;
    Hope that helps.
    Savitha.

  • Word opened from word addin freezing the dialog which has opened from addin and crashing the parent word document

    I have a office addins which works seamlessly in excel, powerpoint and outlook except in word . We have a option to create a word documents using the templates in a dialog which is opened from addin. And we have an option to set the work area  for
    our webapplication either to use filestorage or sharepoint storage.
    Again the same addin works perfectly with filestorage cache but the same doesn't work with sharepoint storage. the problem is when we create the new documents using the templates it produces the new word document, once it is created and opened, the parent
    word document and the intermediate dialog window should get close but  instead it hangs both of them. when i try to close it explicitly it says word has stopped working.
    Issue is with sharepoint 2010+Sharepoint storage and the same is not working with sharepoint 2013 as well as it by default uses sharepoint storage.
    I have posted in the VSTO forum before but I haven't got the response yet. please help me this is a major and critical issue for us.
    PS: irrespective of OS its not working.
    code to produce a file
    function ProduceFile(strFileUrl) {
       var obj = new ActiveXObject('SharePoint.OpenDocuments.3');
       obj.EditDocument(strFileUrl);

    Hi ShilpaSheshadri, 
    if this is a quite urgent, i may suggest to open a ticket directly, so that we can have a remote session to check this up. http://support.microsoft.com
    i checked some forum such as:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/e2c801c0-6120-432c-97d5-8d59a43ce7f3/thisaddinstartup-is-not-executed-when-open-ms-word-template-using-vsto-from-sharepoint-2010?forum=vsto
    perhaps you can also try to use other workaround, 
    http://blog.qumsieh.ca/2012/11/05/link-to-a-document-opens-in-read-only-mode/
    to check, please have a check if this issue was also shown in other client machine or other client browser version.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Is it possible to create a customs declaration for the document which is cleraed from customs

    Hi Experts,
    I want to generate a custom declaration for the declaration which is cleared from customs.
    Is there any function module for this requirement.
    Please post your suggestions ASAP.
    Thanks
    Srinivas

    hi Srinivas,
    It’s not possible to create a new declaration for a declaration that is
    already accepted by customs. There could be below 2 possible options
    1. U need inbound cancellation messages in the respective activity sequence,
    and then u can request customs by mail or phone to send the cancellation
    message. Once the cancellation message is received document gets cancelled and
    u can create new declaration
    2. U need a new optional activity sequence that will have outbound
    cancellation message. once u trigger the cancellation message, customs will
    reply back with the cancellation confirmation message and u can create a new
    declaration
    Hope this helps...
    Regards,
    Santosh

  • JavaScript function which fetches return_value from List of Values

    Hi,
    I have created List of Values named "NICKS". I want to write JavaScript function "get_workers_fullname(nick)" which returns display_value from List of Values. The parameter of function is return_value of List "NICKS".
    I am new with this and don't know how to handle this case.
    Please help me.

    Hi,
    The LOV, I mean is the item in Application's Shared Components. I don't mean the visible SelectList on the page.
    This is what I found in ApEx's help: "A List of Values can be referenced by page items as well as report fields. It controls the values displayed and limits the user's selection. Lists of Values can be static (based on values you enter) or dynamic (based on a SQL query)."
    I'd like to access values in such LOV from JavaScript. I am not sure it is possible.
    Cheers,
    Tom.

  • How to find in R/3 System, which FI document is from which external system?

    Hi Moderator/ FICO Experts,
    How to find in R/3 System, which FI document is from which external system?
    In case of different Non-SAP external Systems posting the data to one R/3 System.
    Thanks
    Chandra

    Hi,
    That really depends on the interfaces that your external systems are using. Check with your ABAP or BASIS team to see what is the method used for posting those documents and with which parameters is passed. Look at BKPF table (FI header) to see the attributes such as user, document type, reference, etc.
    Regards,
    Eli

  • How can I send scanned files, which are documents changed from doc to PDF, as documents that can be edited if the recipient doesn't have Adobe capabilities?

    How can I send scanned files, which are documents changed from doc to PDF, as documents that can be edited if the recipient doesn't have Adobe capabilities?

    Hi flaviusjack,
    If you still have the .doc files, it might be best to send those to your recipients so they can be edited. Otherwise, you can use ExportPDF to convert the PDF files back to .doc format. But, again, that step would be unnecessary if you have the .doc files.
    Best,
    Sara

  • Function module which can print from spool request ?

    Hi ,
    Is there any function module which can print from spool request ?
    Regards
    pabi

    I think NO.
    You have to take print from SP01.
    Amit.

  • Go Daddy UCC Certificate: "ExRCA can only validate the certificate chain using the Root Certificate Update functionality from Windows Update"

    Hello,
    I have this issue regarding certificate chains while performing Outlook Anywhere connectivity test
    by Microsoft Remote Connectivity Analyzer:
    "ExRCA can only validate the certificate chain using the Root Certificate Update functionality from Windows Update. Your certificate may not be trusted on Windows if the "Update Root Certificates" feature isn't enabled."
    Note: even if I got the error, Outlook Anywhere and
    ActiveSync services work fine.
    Environment:
    - Exchange 2007 with SP3
    - Go Daddy Multiple Domains UCC certificate (up to 5 Subject Alternative Names)
    I already read and followed instructions on this TechNet post
    Can I safely ignore this warning about the SSL cert? Using GoDaddy UCC cert but it is a little bit different by this case.
    So after an investigation I understand the issue above is related to SSL certificate
    Certification Path (see screenshots below).
    NO ERRORS on ExRCA checking
    Go Daddy Secure Certification Authority is under Intermediate Certification Authorities
    repository
    Go Daddy Class 2 Certification Authority is under Intermediate Certification Authorities
    repository
    Starfield Technologies (http://www.valicert.com)
    is under Trusted Root Certification Authorities repository
    ERROR on ExRCA checking
    Go Daddy Secure Certification Authority is under Intermediate Certification Authorities
    repository
    Go Daddy Class 2 Certification Authority is under Trusted Root Certification Authorities
    repository
    Can you add some useful information ?
    I'm opening a support ticket at Go Daddy; I hope they could me some positive feedbacks.
    Regards,
    Luca Fabbri
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Strange I have a feeling the exrca tool can't validate the godaddy class2 root authority due some older compability and wants to use the older original root authority valicert owned godaddy. Or when the exrca tool is validating the root CA it only has the
    goaddy class2 root ca that was issued by valicert and not the standalone cert when doing the comparision. I sent the question to MS and will let you know when I hear back.
    You can get rid of it
    https://certs.godaddy.com/anonymous/repository.seam
    Download the cert
    ◦gd_cross_intermediate.crt
    Then import it into the trusted root cert authority on your CAS boxes. Then you need to delete the other godaddy class2 root authority. Make sure you see the one you imported both will be named goaddy class2 root authority but one will be issued by valicert.
    Re-run the test and it will go away, I also saw the error with my domain as well using godaddy and got rid of it by using the new cert authority.
    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

  • Document root element is missing: migrating spring app from tomcat

    Hi!
    can anybody help me with this issue?
    I have ported my tomcat spring application to netweaver(6.40, SP 17, Windows 2k SP4) and i get the following error:
    Error occured in invoking event "contextInitialized()" on listener clas
    s com.webapp.listener.StartupListener. The error is: org.springfram
    ework.beans.factory.BeanCreationException: Error creating bean with nam
    e 'sessionFactory' defined in ServletContext resource [/WEB-INF/applica
    tionContext-hibernate.xml]: Initialization of bean failed; nested excep
    tion is org.hibernate.MappingException: Could not parse mapping documen
    t in input stream
    org.hibernate.MappingException: Could not parse mapp
    ing document in input stream
         at org.hibernate.cfg.Configuration.addIn
    putStream(Configuration.java:430)
         at org.springframework.orm.hibernat
    e3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.j
    ava:654)
         at org.springframework.beans.factory.support.AbstractAutowir
    eCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactor
    y.java:1059)
         at org.springframework.beans.factory.support.AbstractAut
    owireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.j
    ava:363)
         at org.springframework.beans.factory.support.AbstractBeanFac
    tory.getBean(AbstractBeanFactory.java:226)
         at org.springframework.bea
    ns.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java
    :147)
         at org.springframework.beans.factory.support.DefaultListableBea
    nFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
         at org.springframework.context.support.AbstractApplicationContext.ref
    resh(AbstractApplicationContext.java:320)
         at org.springframework.web.
    context.support.AbstractRefreshableWebApplicationContext.refresh(Abstra
    ctRefreshableWebApplicationContext.java:134)
         at org.springframework.w
    eb.context.ContextLoader.createWebApplicationContext(ContextLoader.java
    :246)
         at org.springframework.web.context.ContextLoader.initWebApplica
    tionContext(ContextLoader.java:184)
         at org.springframework.web.contex
    t.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:4
    9)
         at com.ifx.webapp.listener.StartupListener.contextInitialized(Star
    tupListener.java:42)
         at com.sap.engine.services.servlets_jsp.server.r
    untime.context.WebEvents.contextInitialized(WebEvents.java:45)
         at com
    .sap.engine.services.servlets_jsp.server.container.ApplicationThreadIni
    tializer.run(ApplicationThreadInitializer.java:112)
         at com.sap.engine
    .core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.sec
    urity.AccessController.doPrivileged(Native Method)
         at com.sap.engine.
    core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.
    sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    C
    aused by: org.dom4j.DocumentException: Error on line 1 of document  : D
    ocument root element is missing. Nested exception: Document root elemen
    t is missing.
         at org.dom4j.io.SAXReader.read(SAXReader.java:482)
         at
    org.hibernate.cfg.Configuration.addInputStream(Configuration.java:421)
         ... 18 more
    And yes, the xml files are valid xml files at least in anything i've used to look at them (eclipse, ultraedit, notepad, ie) :).....
    Thank you!
    ps. the file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
        "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
        <!-- Hibernate SessionFactory -->
        <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
            <property name="dataSource" ref="dataSource"/>
            <property name="mappingResources">
                <list>
                    <value>package/ModelObj1.hbm.xml</value>
                    <value>package/ModelObj2.hbm.xml</value>
                </list>
            </property>
            <property name="hibernateProperties">
                <props>
                    <prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
                </props>
            </property>
        </bean>
        <!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->
        <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
            <property name="sessionFactory" ref="sessionFactory"/>
        </bean>
        <!-- Generic DAO - can be used when doing standard CRUD -->
        <bean id="dao" class="com.dao.hibernate.BaseDAOHibernate">
            <property name="sessionFactory" ref="sessionFactory"/>
        </bean>
    </beans>

    hi istvan,
    we are also migrating from websphere to netweaver.
    But in spring framework we r facing problems.
    We hav spring-beans.jar file in lib dir of Web Application. But When we are creating BeanFactory from xml as,
    BeanFactory beanFactory = new ClassPathXmlApplicationContext ("client-config.xml");
    clent-config.xml file contains :
    [code<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
         <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
              <property name="location">
                   <value>conf/service-client/client.properties</value>
              </property>
         </bean></beans>
    [/code]
    But code is giving exception: ClassNotFoundException -org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.
    Wat is the problem ?
    Kindly help.
    We are also using JAAS for authentication.We are refering above code from our LoginModules login() method.
    Regards,
    sagar.

  • Using WebUtil Function giving an error

    I installed the WebUtil, i executed the demo(example which would have been in installation file which is running on my system) but now i want to open html file in my form using webutils function present in some remote system WEBUTIL_FILE_TRANSFER.URL_To_Client I have been created the form with one button & wrote an trigger when-button-pressed wrote the below means calling the below function which is giving an error
    WebUtil_file_transfer.URL_To_Client('www.somesite_filename.com','C:\CR');
    or
    WebUtil_file_transfer.URL_To_Client('C:\CR','www.somesite_filename.com');
    ERROR::'URL_TO_CLIENT' is not a procedure or is undefined
    Could u please help me & if u have any documents related to webutil please send those to me.My mail id is: [email protected]

    You need 3 arguments...
    FUNCTION URL_To_Client(    sourceURL         in VARCHAR2,
                                 clientDestination in VARCHAR2,
                                 fileSize          in PLS_INTEGER default 0) return BOOLEAN;
    webutil_file_transfer.url_to_client('some_url', 'c:\cf', null);------- snip from comments of webutil.pll --------------
       * URL_To_Client - pulls a file from the specified URL on any server and
       * sends it via http to the specified destination on the client
       * If you specify file size we can do a comparison after download to ensure
       * that the sizes match
       * Additionally if you specify withProgress and size you will get a progress
       * bar.
       * If you don't specify any size or if you specify default size, then webutil
       * will try to get the size of the url on its own for the purpose of showing
       * the progress bar.
       * Note that the Title, subtitle and message strings cannot contain the '|'
       * character
      FUNCTION URL_To_Client(    sourceURL         in VARCHAR2,
                                 clientDestination in VARCHAR2,
                                 fileSize          in PLS_INTEGER default 0) return BOOLEAN;
      FUNCTION URL_To_Client_With_Progress(
                                 sourceURL         in VARCHAR2,
                                 clientDestination in VARCHAR2,
                                 fileSize          in PLS_INTEGER default 0,
                                 progressTitle     in VARCHAR2,
                                 progressSubTitle  in VARCHAR2,
                                 progressMessage   in VARCHAR2) return BOOLEAN; 
    ----------------- End Snip ----------Message was edited by:
    Mark Reichman

  • Getting document no. using document id  from dms

    Dear Experts,
          I want to get Document No. using  Document ID of particuler document from DMS. Is there any Function Module which returns Document No. from Document ID. So how to get this.
    << Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    With Regards !
    Shekh Ibrahim
    Edited by: Rob Burbank on Jan 17, 2011 4:23 PM

    Hi again,
    maybe the report DMS_KPRO_READ2 can be useful for this requirement. Other useful tables could be DMS_PH_CD1, DMS_DOC2LOIO or DMS_PHIO2FILE.
    Best regards,
    Christoph

  • How to map directory not under "document root" directory?

    In Weblogic (5.1.0), how do you map one URL "directory" to a filesystem
    directory that is not a subdirectory of the regular document root
    directory?
    This is, I want some URL "http://xxx.com/some/subset" to map to local
    directory "/x/y" instead of mapping to a subdirectory "some/subset"
    under the document root directory (the directory to which
    "http://xxx.com/" maps).
    How do you do this in Weblogic (using Weblogic as the HTTP server,
    not using it plugged in to some other HTTP server)?
    (In Apache, this would be the "Alias" directive.)
    Thanks,
    Daniel
    Daniel Barclay
    Digital Focus
    [email protected]

    [REPLY TO NEWSGROUP ------- This followup was posted to
    weblogic.support.install and a copy was sent to the cited author.]
    Default registration for the file servlet is:
    weblogic.httpd.register.file=weblogic.servlet.FileServlet
    weblogic.httpd.initArgs.file=defaultFilename=index.html
    So do this:
    weblogic.httpd.register.some/subset=weblogic.servlet.FileServlet
    weblogic.httpd.initArgs.some/subset=defaultFilename=index.html,docHome=d:
    /foo/bar/baz
    mbg
    In article <[email protected]>,
    [email protected] says...
    >
    In Weblogic (5.1.0), how do you map one URL "directory" to a filesystem
    directory that is not a subdirectory of the regular document root
    directory?
    This is, I want some URL "http://xxx.com/some/subset" to map to local
    directory "/x/y" instead of mapping to a subdirectory "some/subset"
    under the document root directory (the directory to which
    "http://xxx.com/" maps).
    How do you do this in Weblogic (using Weblogic as the HTTP server,
    not using it plugged in to some other HTTP server)?
    (In Apache, this would be the "Alias" directive.)
    Thanks,
    Daniel
    ==================================================
    NewsGroup Rant
    ==================================================
    Rant 1.
    The less info you provide about your problem means
    the less we can help you. Try to look at the
    problem from an external perspective and provide
    all the data necessary to put your problem in
    perspective.

  • Photoshop CS5 Exit Code 7 Unable to get root from inChildPath

    I downloaded the trial version 32 bit and 64 bit, to my desktop (Core I7 3.2 GHZ, 12Gb ram, Win XP Pro 64) and when installing, it doesn't get past 0%, just spits out this:
    0 fatal errors, 1 error, 0 warning
    Error: Unable to get root from inChildPath
    Exit Code:7 Unable to complete silent workflow
    I wanted to see if the install files were bad, some I copied to my craptop, which runs Vista 32 bit, and it works fine. Any word yet on what causes this error? Going to check and see if I missed any updates while I wait to see if anyone's had this issue.

    Using your links, I can find Adobe's listing for error code 7, but all it tells me is that exit code 7 does not define my problem, but the lines that follow exit code 7 do. Which is the "unable to get root from inChildPath" bit. I might have missed something in your post, but when I poke around the links in the document, and in Adobe's troubleshooting search feature, I can't find anything about the terms "root from inChildPath".
    Here's a recap of everything I tried yesterday, note that each error is exactly the same:
    At the day's beginning, I had Adobe Master Suite CS4 installed, including PS CS4.
    Without un-installing, I attempted to install Photoshop CS5 Trial > Got the error
    Copied PS CS5 files to laptop, which also has Master Suite CS4 > Installed fine
    Uninstalled Photoshop from Master Suite, then installed PS CS5 > Got the error
    Tried to install only 64 bit > Got error
    Did "Run As", signed in as admin > Got error
    Booted into Safe Mode to install to see if a background process was conflicting > Got error
    Reinstalled Master Suite for 6 hours and quit trying...

Maybe you are looking for

  • Checkin errors on repository after upgrade to PD 16.5

    I'm getting the following error when checking in a document: PowerDesigner - Error The upgrade of the repository model failed. OK   And when I'm trying to do the same using the option "Create baseline version" I'm getting a different error: Unexpecte

  • Hear before you buy

    This has probably been asked before... I find the sample you hear inadequate. Is there a way to hear the entire song before you buy? If not, what other legal services do this?

  • Error in opening admin tool

    Hi, I am having one problem with iplanet administration tool.I am working in iplanet,sp3 on windows2000.I have an ear file of size 9 mb which contains jsps,servlets,supporting classes and ejbs.After deploying this application in Iplanet application s

  • Wireless Problems: Observations/Possible Fix for Some (No Guarantees)

    Hi All: I have been following our wireless problem threads. To a large extent, they revolve around lost connections, weak signals, etc. On my machine, I previously noticed what appeared to be wide fluctuations in signal strength, although I could alm

  • ORACLE RAC INTERVIEW

    Hi Gurus, I have been asked to take an interview for the post of ORACLE DBA. This job profile is to support RAC databases. I will be questioning DBA's on the following. INSTALL AND CONFIGURE RAC TAF BACKUP AND RECOVERY OF RAC database. But my main qu