GetRequestURI outputs wrong path

I've written a servlet Counter that outputs a jpeg image. I setContentType to "image/jpeg". And it works nicely when I coded a IMG tab ie. <IMG src="servlet/Counter"> in my index.htm page from the root directory.
However I notice that the request.getRequestURI(); statement in my counter servlet now returns the path where the servlet is (ie servlet/Counter) rather than the html page that calls it (ie root/index.htm).
How can I rectify this to get the caller's URI rather than the servlet path ?.
Rags

Thanks Kare for your response.
>>
I've written a servlet Counter that outputs a jpeg
image. I setContentType to "image/jpeg". And it works
nicely when I coded a IMG tab ie. <IMG
src="servlet/Counter"> in my index.htm page from the
root directory.
However I notice that the request.getRequestURI();
statement in my counter servlet now returns thepath
where the servlet is (ie servlet/Counter) ratherthan
the html page that calls it (ie root/index.htm).
There is nothing wrong with your servlet container.
When changed the servlet to output to contenttype txt/html and output the counter as html code; Using the SERVLET tag (vs the IMG tag), the method getRequestURI() returns the path I want (i.e html path).
It looks like
How can I rectify this to get the caller's URIrather
than the servlet path ?.Maybe you can give the page name as an argument for
the Counter servlet.
like: <img
src="servlet/Counter?page=root/index.html">
and the in servlet code call:
request.getParameter("page");
The whole purpose of implementing this is so that I don't have to specify the path. Any other ideas ?
regards
Rags

Similar Messages

  • Wrong input and output files path?

    When i tried to run my code i got wrong path of input and output files, why it was and where is the mistake? I did not meant the path \tmp\xorout.txt and C:\jar\org\joone\samples\engine\xor\xor.txt in the source code - where are they from? :
    * XOR.java
    * Sample class to demostrate the use of the Joone's core engine
    * see the Developer Guide for more details
    * JOONE - Java Object Oriented Neural Engine
    * http://joone.sourceforge.net
    package org.joone.samples.engine.xor;
    import java.io.File;
    import org.joone.engine.*;
    import org.joone.engine.learning.*;
    import org.joone.io.*;
    import org.joone.net.NeuralNet;
    public class XOR implements NeuralNetListener {
    /** Creates new XOR */
    public XOR() {
    * @param args the command line arguments
    public static void main() {
    XOR xor = new XOR();
    xor.Go();
    public void Go() {
    * Firts, creates the three Layers
    LinearLayer input = new LinearLayer();
    SigmoidLayer hidden = new SigmoidLayer();
    SigmoidLayer output = new SigmoidLayer();
    input.setLayerName("input");
    hidden.setLayerName("hidden");
    output.setLayerName("output");
    /* sets their dimensions */
    input.setRows(2);
    hidden.setRows(3);
    output.setRows(1);
    * Now create the two Synapses
    FullSynapse synapse_IH = new FullSynapse(); /* input -> hidden conn. */
    FullSynapse synapse_HO = new FullSynapse(); /* hidden -> output conn. */
    synapse_IH.setName("IH");
    synapse_HO.setName("HO");
    * Connect the input layer whit the hidden layer
    input.addOutputSynapse(synapse_IH);
    hidden.addInputSynapse(synapse_IH);
    * Connect the hidden layer whit the output layer
    hidden.addOutputSynapse(synapse_HO);
    output.addInputSynapse(synapse_HO);
    FileInputSynapse inputStream = new FileInputSynapse();
    /* The first two columns contain the input values */
    inputStream.setAdvancedColumnSelector("1,2");
    /* This is the file that contains the input data */
    inputStream.setInputFile(new File("c:\\xor.txt"));
    input.addInputSynapse(inputStream);
    TeachingSynapse trainer = new TeachingSynapse();
    /* Setting of the file containing the desired responses,
    provided by a FileInputSynapse */
    FileInputSynapse samples = new FileInputSynapse();
    samples.setInputFile(new File("c:\\xor.txt"));
    /* The output values are on the third column of the file */
    samples.setAdvancedColumnSelector("3");
    trainer.setDesired(samples);
    /* Creates the error output file */
    FileOutputSynapse error = new FileOutputSynapse();
    error.setFileName("c:\\xorout.txt");
    //error.setBuffered(false);
    trainer.addResultSynapse(error);
    /* Connects the Teacher to the last layer of the net */
    output.addOutputSynapse(trainer);
    NeuralNet nnet = new NeuralNet();
    nnet.addLayer(input, NeuralNet.INPUT_LAYER);
    nnet.addLayer(hidden, NeuralNet.HIDDEN_LAYER);
    nnet.addLayer(output, NeuralNet.OUTPUT_LAYER);
    nnet.setTeacher(trainer);
              FileOutputSynapse results = new FileOutputSynapse();
    results.setFileName("c:\\results.txt");
    output.addOutputSynapse(results);
    // Gets the Monitor object and set the learning parameters
    Monitor monitor = nnet.getMonitor();
    monitor.setLearningRate(0.8);
    monitor.setMomentum(0.3);
    /* The application registers itself as monitor's listener
    * so it can receive the notifications of termination from
    * the net.
    monitor.addNeuralNetListener(this);
    monitor.setTrainingPatterns(4); /* # of rows (patterns) contained in the input file */
    monitor.setTotCicles(2000); /* How many times the net must be trained on the input patterns */
    monitor.setLearning(true); /* The net must be trained */
    nnet.go(); /* The net starts the training job */
    public void netStopped(NeuralNetEvent e) {
    System.out.println("Training finished");
    public void cicleTerminated(NeuralNetEvent e) {
    public void netStarted(NeuralNetEvent e) {
    System.out.println("Training...");
    public void errorChanged(NeuralNetEvent e) {
    Monitor mon = (Monitor)e.getSource();
    /* We want print the results every 200 cycles */
    if (mon.getCurrentCicle() % 200 == 0)
    System.out.println(mon.getCurrentCicle() + " epochs remaining - RMSE = " + mon.getGlobalError());
    public void netStoppedError(NeuralNetEvent e,String error) {
    ERROR:
    C:\jar>java -cp joone-engine.jar org.joone.samples.engine.xor.XOR C:\\xor.txt C:
    \\xorout.txt
    [main] [ERROR] - org.joone.io.FileOutputSynapse - IOException in Synapse 6. Mess
    age is : \tmp\xorout.txt (The system cannot find the path specified)
    Training...
    [Thread-0] [WARN] - org.joone.io.FileInputSynapse - IOException in Synapse 3. Me
    ssage is : C:\jar\org\joone\samples\engine\xor\xor.txt (The system cannot find t
    he path specified)
    [Thread-0] [WARN] - org.joone.io.FileInputSynapse - IOException in Synapse 3. Me
    ssage is : C:\jar\org\joone\samples\engine\xor\xor.txt (The system cannot find t
    he path specified)
    java.lang.NullPointerException
    at org.joone.io.StreamInputSynapse.getStream(StreamInputSynapse.java:176
    at org.joone.io.StreamInputSynapse.readAll(StreamInputSynapse.java:288)
    at org.joone.io.StreamInputSynapse.fwdGet(StreamInputSynapse.java:106)
    at org.joone.engine.Layer.fireFwdGet(Layer.java:212)
    at org.joone.engine.Layer.fwdRun(Layer.java:1225)
    at org.joone.net.NeuralNet.stepForward(NeuralNet.java:1015)
    at org.joone.net.NeuralNet.fastRun(NeuralNet.java:970)
    at org.joone.net.NeuralNet.fastRun(NeuralNet.java:937)
    at org.joone.net.NeuralNet$1.run(NeuralNet.java:890)
    at java.lang.Thread.run(Thread.java:534)

    c:xor.txt
    c:/xor.txt
    i think c:xor stands for somthing else like a virtual drive but ima not sure

  • Wrong path and application in registry protocol\stdFileEditing\Server ?

    Hi
    How come there is a wrong path in registry is it a security issue, error or just values not in use anymore ?
    I check via regedit: HKEY_CLASSES_ROOT the key .pdf points to
    AcroExch.Document the key curver points to AcroExch.Document.7
    Under this i check
    HKEY_CLASSES_ROOT\AcroExch.Document.7\protocol\StdFileEditing\server
    the value is
    "C:\Program Files\Adobe\Reader 9.0\Acrobat\Acrobat.exe" (Acrobat catalog and the exe file is not existing)
    but in my filesystem the real path is
    C:\Program Files\Adobe\Reader 9.0\Reader
    and i think the program should be AcroRd32.exe instead
    When I have corrected the key an update would reverse it to the old not existing value
    So could anyone tell me why i se this behaviour ?
    Regards
    SEJ

    Hi Frank,
    How did you call the application in a war?
    Regards,
    Violeta

  • Wrong path for go.bat in portal integration

    Hi Friends,
    during the configuration of the portal integration in rspor_cust01 I get the message
    'Windows can not find C:\usr.......\go.bat'.
    Where can I change the path because it is in D:\usr\sap\......go.bat.
    Thanks you for any help.
    Rg Jimbob

    Hi Subbu,
    I used workshop page properties to associate the image to the page.
    framework/skins/classic/images/home.gif
    - Shankar
    Subbu Allamaraju <[email protected]> wrote:
    Shankar,
    Did you use any tag to create the img tag? Do you have any sample
    HTML/JSP snippet?
    Subbu
    Shankar Bala wrote:
    I created a new desktop and have the following problem. The imagelinks to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a imageassociated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images.The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

  • Wrong path on JNLP chain

    Hi
    Sorry to post it here, but I was unable to find where We can post JavaFX Issues.
    This is a minor issue, but need to be adressed.
    I always set my java Console to shown, to test my applets, etc.
    While testing some JavaFX, I could note that JavaFX has a wrong path, or a wrong path chaining:
    network: Connecting http://javafx.com/launch/lib/lib/basickit.jar with cookie "JSESSIONID=c3c4962140d944b30859de123fae; s_cc=true; s_sq=%5B%5BB%5D%5D"
    java.io.FileNotFoundException: http://javafx.com/launch/lib/lib/basickit.jar
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
         at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    (...)Note the correnct URL is
    http://javafx.com/launch/lib/basickit.jar an not
    http://javafx.com/launch/lib/lib/basickit.jar , without the extra /lib
    A few lines later there is a correct call to basickit.jar :
    network: Connecting http://javafx.com/launch/lib/basickit.jar.pack.gz with cookie "JSESSIONID=c3c4962140d944b30859de123fae; s_cc=true; s_sq=%5B%5BB%5D%5D"
    network: ResponseCode for http://javafx.com/launch/lib/basickit.jar.pack.gz : 304
    network: Encoding for http://javafx.com/launch/lib/basickit.jar.pack.gz : null
    network: Disconnect connection to http://javafx.com/launch/lib/basickit.jar.pack.gzI hope it help to find out a fix.
    A.

    Which applet were you running?It happens on several demos at JavaFX.com .
    Perhaps in all of then.

  • Update Reader 9.5.2. Windows7 wrong path

    Waar kan ik het correcte pad invoeren?

    Sorry, I have no idea what "wrong path" you are talking about?  An error message during the update?  How are you updating?
    Maybe and uninstall (using http://labs.adobe.com/downloads/acrobatcleaner.html) and reinstall will fix the problem?

  • New desktop has wrong path for page links in nav bar

    I created a new desktop and have the following problem. The image links to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a image associated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images. The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

    Hi Subbu,
    I used workshop page properties to associate the image to the page.
    framework/skins/classic/images/home.gif
    - Shankar
    Subbu Allamaraju <[email protected]> wrote:
    Shankar,
    Did you use any tag to create the img tag? Do you have any sample
    HTML/JSP snippet?
    Subbu
    Shankar Bala wrote:
    I created a new desktop and have the following problem. The imagelinks to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a imageassociated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images.The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

  • Web Application Transaction Monitoring Alerts with "wrong" Path

    Hello,
    i have created some web transaction monitors, such as
    http://foo.htm who is  hosted on the server foo123.cologne.org.
    It works.. but
    we have also a mssql monitoring, the discovery of the mssql management pack discovers the reporting part of mssql server on our managementserver Operations12.cologne.org. So (it's right..) the server Operations12.cologne.org is a member of the SQL Instances;SQL
    Compontents;SQL Computers group.
    When the web transaction monitor generates an alert, it have the pathname Operations12.cologne.org and not the pathname of the "right" server foo123.cologne.org.
    For our mssql admins i have build an email-notification, when somethings going wrong at our sql servers (member of the SQL Instances;SQL Compontents;SQL Computers group) they received a mail.
    The problem is, that they received a mail, when a web transaction monitor generated one, because the pathname is the name of our management server, because the management server is a member of thos sql server groups.
    Someone have an idea to fix my "problem"?
    - Best way: changing the path names of the web transaction monitorings... but how? i can't find anything to change..
    Kind regards
    Wolfgang Winter

    Thank you, it's a help to decide, what to do, so i have to solutions:
    - installing an agent to the web-appliction-hosting-server and configure it as a watcher node
       (may be i will have problems with our firewall admins, because they have to allow the communications and.. when the hosting watcher is down, i have no alerts.. when i use more than one watcher nodes (good).. i have the wrong path names..
    - configure a part of our management server group without  SQL-Reporter Component as a watcher node
       (more easy, because i have to tell my firewall admins: "the server foo456 is the standard watcher node"
    Crazy.. because i don't know, how to assign the web transaction monitors to the "causing" server.., for mail notification and for our integration to HP Service Desk...

  • JSF - Why getting wrong path Handling URLs in Facelets Templates

    Hi, I am trying to do a web application using JSF, Facelets in Netbeans 6.7. but I am having a problem:
    Why I am getting wrong path ?
    It is very simple, straight forward web application.
    When run, it shows the template-client.xhtml perfectly . The navigation menu is shows ok, but they don't work. However, if I enter in the browser address http://localhost:8080/test3/portal/products.jsf it goes perfect to the right page and the navigation between About, Products and Home works perfect. But once I click on Home, the menu start to give me errors. Looks like the path is wrong again.
    folders structure:
    test3My code:
    faces-config.xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config version="1.2"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
        <application>
            <view-handler>
                com.sun.facelets.FaceletViewHandler
            </view-handler>   
        </application>
    </faces-config>web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <context-param>
            <param-name>com.sun.faces.verifyObjects</param-name>
            <param-value>true</param-value>
        </context-param>
        <context-param>
            <param-name>com.sun.faces.validateXml</param-name>
            <param-value>true</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
            <param-value>.xhtml</param-value>
        </context-param>
        <context-param>
            <param-name>facelets.DEVELOPMENT</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <param-name>facelets.SKIP_COMMENTS</param-name>
            <param-value>true</param-value>
        </context-param>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>forward.jsp</welcome-file>
            </welcome-file-list>
        </web-app>forward.jsp:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <jsp:forward page="template-client.jsf"/>template-client.xhtml:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html">
        <body>
            This text above will not be displayed.
            <ui:composition template="/template.xhtml">
                This text will not be displayed.
                <ui:define name="title">
                    Facelets
                </ui:define>
                This text will also not be displayed.
                <ui:define name="body">
                    Hello from the Facelets client template!
                </ui:define>
                This text will not be displayed.
            </ui:composition>
            This text below will also not be displayed.
        </body>
    </html>template.xhtml:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:ice="http://www.icesoft.com/icefaces/component">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Facelets - Template Example</title>
            <link href="#{facesContext.externalContext.requestContextPath}/css/default.css" rel="stylesheet" type="text/css" />
        </head>
        <body>
            <div id="menu">
                <ui:insert name="linemenu">
                    <ul>
                        <li><a href="../forward.jsp">Home</a></li>
                        <li><a href="about.jsf">About Us</a></li>
                        <li><a href="products.jsf">Products</a></li>
                    </ul>
                </ui:insert>
            </div>
            <div>
            <h1>
                <ui:insert name="title">Default Title</ui:insert>
            </h1>
            <p>
                <ui:insert name="body">Default Body</ui:insert>
            </p>
            </div>
        </body>
    </html>about.xhtml:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets">
        <body>
            <ui:composition template="./../template.xhtml">
                <ui:define name="title">
                    title ABOUT
                </ui:define>
                <ui:define name="body">
                    body ABOUT
                </ui:define>
            </ui:composition>
        </body>
    </html>products.xhtml:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets">
        <body>
            <ui:composition template="./../template.xhtml">
                <ui:define name="title">
                    title PRODUCTS
                </ui:define>
                <ui:define name="body">
                    body PRODUCTS
                </ui:define>
            </ui:composition>
        </body>
    </html>

    My folders:
    Test3
         Web Pages
              /WEB-INF
              /css
                  -default.css
              /layouts
              /portal
                  -about.xhtml
                  -products.xhtml
              -forward.jsp
              -template.xhtml
              -template-client.xhtmlPlease, I need help with this. It may is very easy to find out, I maybe skiping something
    Thank for your help anyone!!!

  • Mail has wrong path for Save

    I am using v. 7.1 of Mail under OS X 10.9.1. When I attempt to save an email to my Documents folder I get an error message:
    Could not save to path /Users/bob/~/~/~/~/~/~/~/~/~/~/Documents/Payment submitted.rtf. Choose a different path.
    Clearly Mail has a bad pathname for the Documents folder. TextEdit documents save properly to Documents. Terminal shows the path to Documents as: /Users/bob/Documents
    What is going wrong with Mail?
    Bob

    Agreed.  I get a completely different wrong path, but only (so far) when I try for Documents.  Seems like a bug. Good catch.
    Apple - Mac OS X - Feedback

  • Profile pictures wrong Path

    I have setup the thumbnail pictures for users in Sharepoint 2013. I can browse the library throughy this  link
    http://myserver/sites/mysite/_layouts/15/start.aspx#/User%20Photos/Forms/Thumbnails.aspx?RootFolder=%2Fsites%2Fmysite%2FUser%20Photos%2FProfile%20Pictures&FolderCTID=0x0120008BF2C6579F4E1947B6C670F4524E2C06&View=%7BDF932ADB%2D33D5%2D4024%2DA88C%2DA4B0253DBE98%7D
    but when I open a user page, the picture is not loading. I see from the debugger that is calling the following url which is missing a "/" right after the sites/mysite
    http://myserver/sites/mysiteUser%20Photos/Profile%20Pictures/j_doe_LThumb.jpg?t=63560464578
    How can I fix this??
    CKotsis

    Hi CKotsis,
    According to your description, my understanding is that the profile picture showed a wrong path.
    Please try to run a full user profile sync, compare the result.
    Please modify and run the following PowerShell commands to check if it works:
    $site = get-spsite "https://sharepoint" 
    $context= [Microsoft.office.server.servercontext]::GetContext($site)  
    $userProfileManager = new-object Microsoft.office.server.userprofiles.userprofilemanager($context)  
    $profiles = $userProfileManager.GetEnumerator()
        foreach ($profile in $profiles)
         $Matchurl = "mysitesUser Photos"
          if($profile["pictureurl"].value -match $matchurl)
                     Write-host $profile["AccountName"].value "contains incorrect url"
                     $CurrentURL = $profile["Pictureurl"].value
                     $CurrentURL = $CurrentURL.tostring()
                     $GoodUrl = "mysites/User Photos"
                     $CorrectUrl = $CurrentURL.replace($matchurl,$goodurl)
                     $profile["pictureurl"].value = $correcturl
                     $profile.commit()
                     Write-host $profile["AccountName"].value "PictureURL has been corrected"
    Here is a similar post for your reference:
    https://social.technet.microsoft.com/Forums/office/en-US/1fa50226-a495-4d3c-8fd3-da9fdede6a52/wrong-profile-picture-url?forum=sharepointadminprevious
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • FlashBuilder 4.7 Flex Module "Output SWF" path not working.

    I would like to use the Flex Module feature in FlashBuilder to easily compile some child SWF which are Modules.  The problem is that the "Output SWF" path is not respected, when I compile FlashBuilder 4.7 aways compiles the file default path.
    Cheers,
    Hays

    I forgot to attach my image.

  • Teststand 3.0 Deployment looking for a file(glang.chm) in a wrong path

    Hi, Please help
    i just try deploy an installer using TestStand 3.0. it can successfully process the workspace file,  But, when the TestStand deployment tool try to build the installer, it keep looking for one of project file(glang.chm) in a wrong path, the error message is following, see the attachment for the screen shot  
    Error Code:7
    Could not process LabVIEW VIs. Fix any broken VIs before rebuilding. LabVIEW error:
    C:\MVS 2\data\data\data\glang.chm - source does not exist
    +++++++++++++++++++++++++++++++++++++++++++++++++
    i understand that it is looking for glang.chm in "C:\MVS 2\data\data\data\", but in my project, glang.chm actually is under "C:\MVS 2\data\". In order to make it works, i need to create the path "C:\MVS 2\data\data\data\" and copy glang.chm into the path.
    My question is: How to change the setting in TestStand deployment tool, so that it would look for glang.chm in corrected path"C:\MVS 2\data\", not in "C:\MVS 2\data\data\data\" ?
    Attachments:
    error message(screen shot).jpg ‏184 KB

    Well, David's solution works as expected. It copies the the pristine .lnk file from the startup menu to the desktop.
    This .lnk file will start only the operator interface testexec.exe without loading any sequence.
    Now I did try a modification. I did create a .lnk file, which loads the sequence file automagically by providing the right commandline arguments to testexec.exe. This .lnk file works on the development system either I start it from desktop or from some normal directory with the explorer.
    And now I try to add that .lnk file to the deployed files like all other deployed files by adding it to some project in the workspace, which is configured to be used in the deployment wizard. That doesn't work.
    If there is a 2kb "MySequence.lnk" in t
    he development tree,you will also find a "MySequence.lnk" in the Image tree at the expected position. But this is 1396 kb big, which is just the size of testexec.exe ( Labwindows/CVI version) where the .lnk file did point to. And the properties (commandline) of that .lnk file became empty.
    Other "normal" files in the same directory, which are also included in the deployment, are copied without any coruption into the Image tree into the same directory as the corupted .lnk file.
    The installer will install the corupted .lnk file to the desired position without problems. And copying it with post.bat to the desktop is also no problem.

  • Wrong Path on deployment

    Hello,
    I'm not sure if this is a JDeveloper question or Enterprise Manager question, but I am having a problem with the deployment of a JSP application that contains BC4J components. The way I am deploying is I create a .WAR file through JDeveloper, then I use Enterprise manager to deploy that WAR file. I am able to navigate to the pages that do not contain business components, but as soon as I goto a page with a business component, DataHandler for example, I get a file not found exception. When I look at the stack trace I see that it is looking in the wrong directory for the DataHandlerComponent.jsp file. Say for instance my file resides in "$ORACLE_HOME/application/jsp" on the server and specify "/jspApp" as the URL to map my application to when deploying via enterprise manager. When I hit the page with the DataHandler component (or any other BC4J component for that matter), I get a file not found exception and it is looking at "$ORACLE_HOME/application/jsp/jspApp/DataHandlerComponent.jsp" and that is not where the file resides...it is with all the other JSP files. It appends the path I specified on deployment to where I look for any of the BC4J components. Do I have a setting wrong in JDeveloper or Enterprise manager? Any insight is much appreciated.
    Thanks,
    Dusty Gronso

    Try not specifying an additional path. The component tags also have an attribute that lets you specify the location of the JSP file that implements the component output. You can try overriding the location within your JSP page.

  • Wrong path when zip a file

    When I try to Zip a file(backup.zip) everything is good except one thing.
    When I use WinZip to unzip the file, the path for the file contains all subdirectories eg. c:\mycatalog\backup\db\data.data
    I would like the path to be like: backup\db\data.data
    The code:
    pathName is "c:\mycatalog"
    fileName is "backup"
    public class Zip {
    private static ZipOutputStream zos;
    * Creates a Zip archive. If the name of the file passed in is a
    * directory, the directory's contents will be made into a Zip file.
    public static void makeZip(File pathName, String fileName)
    throws IOException, FileNotFoundException
    File file = new File(pathName,fileName);
    zos = new ZipOutputStream(new FileOutputStream(pathName.toString()+"\\"+fileName+".lum"));
    //Call recursion.
    recurseFiles(file);
    //We are done adding entries to the zip archive,
    //so close the Zip output stream.
    zos.close();
    * Recurses down a directory and its subdirectories to look for
    * files to add to the Zip. If the current file being looked at
    * is not a directory, the method adds it to the Zip file.
    private static void recurseFiles(File file)
    throws IOException, FileNotFoundException
    if (file.isDirectory()) {
    //Create an array with all of the files and subdirectories
    //of the current directory.
    String[] fileNames = file.list();
    if (fileNames != null) {
    //Recursively add each array entry to make sure that we get
    //subdirectories as well as normal files in the directory.
    for (int i=0; i<fileNames.length; i++) {
    recurseFiles(new File(file, fileNames));
    //Otherwise, a file so add it as an entry to the Zip file.
    else {
    byte[] buf = new byte[1024];
    int len;
    //Create a new Zip entry with the file's name.
    ZipEntry zipEntry = new ZipEntry(file.toString());
    //Create a buffered input stream out of the file
    //we're trying to add into the Zip archive.
    FileInputStream fin = new FileInputStream(file);
    BufferedInputStream in = new BufferedInputStream(fin);
    zos.putNextEntry(zipEntry);
    //Read bytes from the file and write into the Zip archive.
    while ((len = in.read(buf)) >= 0) {
    zos.write(buf, 0, len);
    //Close the input stream.
    in.close();
    //Close this entry in the Zip stream.
    zos.closeEntry();

    Sorry, I want the path to be like: "\db\data.data"

Maybe you are looking for