In 1.4, for a local URL, spaces show up as %20

This code:
String className = this.getClass().getName();
className = new String( className.substring( className.lastIndexOf( '.' ) + 1 ) + ".class" );
URL url = this.getClass().getResource( className );
File file = new File( url.getPath() );is supposed to calculate the path to the current class (and it did perfectly under 1.3 and earlier)
Under 1.4 however, it behaves differently. Any spaces in the path now show up as '%20'. So our application now thinks it's running in a non-existant directory called "C:\Program%20Files\MyProgram", and this of course means its behaviour is completely FUBAR.
Does anyone know a good general solution to this? I can of course manually replace '%20' with ' ' in the code, but this is a hack. Can anyone think of a proper solution?

Yeah, that's nearly identical to my full function actually:
public File getApplicationFile()
    String stClass = this.getClass().getName();
    int iIndex = stClass.lastIndexOf( '.' );
    stClass = new String( stClass.substring( iIndex + 1 ) + ".class" );
    URL url = this.getClass().getResource( stClass );
    if( url.getProtocol().equals( "jar" ) )
        try
            JarURLConnection jarConnection = ( JarURLConnection )url.openConnection();
            url = jarConnection.getJarFileURL();
        catch( IOException x )
            x.printStackTrace();
    return File( url.getPath() ); // doesn't decode escape octets!
}But I didn't know about the URLDecoder class, thanks!

Similar Messages

  • URL for viewing local files

    I'd been using Browserlab successfully today, viewing local files from Dreamweaver CS5. I logged out and then returned later in the day and am now having problems as the Browserlab window is failing to  automatically load the local file's URL in the box at the top of Browserlab screen (the URL box just stays blank. Can I manually input the local address and if so can someone advise the general format. I assume something like http://localhost/.... Obviously I will need to input my own file names, but just need the root URL/general format for viewing local files.
    Thanks

    Hi flowersplash,
    Thank you for your interest in BrowserLab.  Please check to see if you have the BrowserLab web site open in another browser or browser tab.  You should only have one instance of BrowserLab open at a time.  You might also try restarting your browser (all instances) and Dreamweaver and if that doesn't work, the OS.
    BrowserLab currently only allows you to specify local or firewalled URLs from Dreamweaver.  Directly inputting a URL into the BrowserLab testing interface will test the page from the perspective of a person elsewhere on the Internet.  Open the site you want to test in Dreamweaver LiveView, select "Local" in the BrowserLab Panel in Dreamweaver and click the Preview button.
    Cheers,
    Josh

  • Edge Inspect not working for domain.dev URL's running locally on my laptop, displays error message.

    "An error occured
    Web page not availiable".
    This, printed on a white screen, on my iphone5 (OSX and iOS all running latest updates, latest Adobe Edge Inspect, freshly downloaded) is all I see when I try to visit any of the sites I run on my laptop with Apache.
    I set up my domains as "http://foobar.dev"  (where '.dev' is the TLD on my localhost for things ... local).
    I can view any public internet sites, and they will show up on Edge Inspect on my phone, with no problem.
    I've tested this with turning off the firewall on my computer... (but I'm surprised thats how edge works, but what ever).
    Any guides? tricks? help?
    Thanks.

    Edge Inspect doesn't do anything different to read the website off your computer than a normal browser does. We send a URL to the connected devices and expect them to be able to load that address into the WebView/UIWebView components in the Edge Inspect app on the devices.The reason you're seeing an issue with Edge Inspect and your http://foobar.dev site is the same reason why you wouldn't/shouldn't expect to type that URL into a browser on another machine and be able to view the website... there's no external DNS server to talk to that knows where that address is actually located.
    So, Edge Inspect might be doing less than you thought is was in those terms. The main focus of Edge Inspect really is:
    1. Managing the connection from your computer to multiple connected devices
    2. Translating localhost, 127.0.0.1, and <machinename>.local urls
    3. Keeping multiple devices in sync
    4. Simplifying things like cache clearing and screenshots on all your devices
    5. Providing a simple interface into weinre for remote inspection
    Definitely read more on xip.io. It's a public website, yes. We don't have anything to do with it, but it does provide a nice workflow for using virtual hosts with Edge Inspect.
    Mark
    Message was edited by: Mark Rausch to clarify the 1st paragraph

  • Connecting Outlook 2013 for a local user

    We’re having trouble connecting a users connecting a domain user’s Outlook 2013 to our Exchange 2013 server. The user has a domain user account, and an Exchange mailbox.
    However;
     The user in question uses a PC that is physically connected to the network, but isn’t a domain-joined machine. The user is using a locally-provisioned account on the PC.
    The machine can query internal DNS servers, and has network connectivity through to the Exchange server.
    The user can successfully log in to OWA, where everything functions as normal. The user wishes to use Outlook 2013 for archiving of PST files.
    We are having issues creating a mail profile for the user, whether manually configuring or utilising autodiscover.
    With autodiscover, the user enters her name, email address and password in the initial wizard in Outlook 2013. 2 of the 3 steps succeed, before ‘The action cannot be completed. The name cannot be matched to a name in the address list’ error window is displayed.
    Is this because Exchange is having issues with the account being used to create the profile (the local user account on the PC)?
    Now what’s really odd, is that when using Outlook 2013 away from the network (at home), with any PC, the autodiscover method succeeds. What is causing it to fail internally?
    So, with the autodiscover method out of the window, we turned to manually configuring the profile.
    The local name of the Exchange server is entered for the server name, with the user’s email address for the username.
    In ‘More Settings’, the connection tab is configured to ‘Connect to Microsoft Exchange using HTTP’.
    The URL used to connect the proxy server for Exchange, is the external name used for OWA. This is the same address used when the user is using OWA internally/externally, which works without issue.
    Options ‘Connect using SSL only’, along with ‘Only connect to proxy servers that have this principal name in their certificate’ are selected with
    msstd:<external FQDN name> being entered.
    Basic Authentication is selected for the proxy authentication settings section.
    The user is then prompted for credentials. The following formats have been attempted;
    Domain.local\username
    Email Address
    [email protected]
    The correct password is used, but nothing is accepted.
    How can we get Outlook 2013 configured for this non-domain joined PC?
    Many thanks.

    We’re having trouble connecting a users connecting a domain user’s Outlook 2013 to our Exchange 2013 server. The user has a domain user account, and an Exchange mailbox.
    However;
     The user in question uses a PC that is physically connected to the network, but isn’t a domain-joined machine. The user is using a locally-provisioned account on the PC.
    The machine can query internal DNS servers, and has network connectivity through to the Exchange server.
    The user can successfully log in to OWA, where everything functions as normal. The user wishes to use Outlook 2013 for archiving of PST files.
    We are having issues creating a mail profile for the user, whether manually configuring or utilising autodiscover.
    With autodiscover, the user enters her name, email address and password in the initial wizard in Outlook 2013. 2 of the 3 steps succeed, before ‘The action cannot be completed. The name cannot be matched to a name in the address list’ error window is displayed.
    Is this because Exchange is having issues with the account being used to create the profile (the local user account on the PC)?
    Now what’s really odd, is that when using Outlook 2013 away from the network (at home), with any PC, the autodiscover method succeeds. What is causing it to fail internally?
    So, with the autodiscover method out of the window, we turned to manually configuring the profile.
    The local name of the Exchange server is entered for the server name, with the user’s email address for the username.
    In ‘More Settings’, the connection tab is configured to ‘Connect to Microsoft Exchange using HTTP’.
    The URL used to connect the proxy server for Exchange, is the external name used for OWA. This is the same address used when the user is using OWA internally/externally, which works without issue.
    Options ‘Connect using SSL only’, along with ‘Only connect to proxy servers that have this principal name in their certificate’ are selected with
    msstd:<external FQDN name> being entered.
    Basic Authentication is selected for the proxy authentication settings section.
    The user is then prompted for credentials. The following formats have been attempted;
    Domain.local\username
    Email Address
    [email protected]
    The correct password is used, but nothing is accepted.
    How can we get Outlook 2013 configured for this non-domain joined PC?
    Many thanks.
    The first problem is, if this Exchange 2013 then the server name in Outlook isn't really a server name, it is in actuality the ExchangeGUID of the mailbox.  
    Since you are trying to access the mailbox from a machine that is not on the domain you will need to make sure the externalURLs resolve properly internally.  Meaning either the user can access them by going out to the internet and getting routed back
    in (not ideal) or you configure them to resolve to the internal IPs on your internal DNS servers.
    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
    Thank you for your reply.
    As I mentioned, this machine can query internal DNS servers without issue. Autodiscover is working in a fashion, as the name of the mail server is hashed. 
    In an update to the post, I have exported a working profile from the registry of the machine for a domain user, and have imported for a local user. This actually works, but I'd still like to know the reason for not being able to configure it in the first
    instance.

  • DataSocket Server will not start when the Launch DS Server if Local URL.VI is bundled into a LabVIEW application.

    I want to run a LabVIEW application on several machines remotely that do not have LabVIEW installed (licensing issues). Hence I have built a LabVIEW executable with the RunTime Engine to install on all of these remote machines.
    The VI has a bi-directional link, using Datasockets, to a machine with DAQ and Image acquisition functions. It primarily receives data items, but also the capability to change data items so it needs to run the "Launch DS Server if Local URL.VI" in order to publish data to the DataSocket server.
    When I run the pre-built VI on a machine that has LabVIEW Developers Edition installed, everything works fine - ie.
    the DataSocket server starts on the remote machine. However when I build the *.exe application and run it on a machine with and without LabVIEW Developers Edition installed the VI successfully subscribes to the DAQ and Image Acquisiton machine, but it does not start its own connection to the Data Socket server, and hence does not publish the data that the DAQ machine needs to suscribe to. IT seems that the Launch DS Server if Local URL.VI is bypassed? I have fiddled around with the Build settings but to no avail.
    In short, how do I get the DataSocket Server to run in a LabVIEW executable? Is it indeed possible? Any advice would be welcomed.
    When distributing a Labview Application (*.exe) with Data Socket Server Publish functionality, the DataSocket server does not start and hence no data can be sent by the Remote PC to the Server. The VI successfully retrieves data from the DS Server. I have used the "Launch DS Server if Local URL.vi" in the ditributed application but for some r
    eason this VI is not executed when I run the executable. How can you force the DataSocket Server to run with executable LabVIEW applications?

    Ryan,
    How to add Datasocket Server Control.vi?
    Source Files only show Project Files.
    So, I added Datasocket Server Control.vi file to the project first.
    Then I added it to Always Included < Source Files < Application Properties (Build Executable).
    Last, I built the Executable, but it didn't work.
    Can you help me.
    Thank you.
    Pedro Raposo

  • ITunes Resets to local Drive Space when External Hard Drive not mounted

    I have a large shared network drive where my son, my wintel box and I all have media placed on. All our computers are networked and authorized for each others music.
    The problem is iTunes will default the 'iTunes Music folder location' to a local drive space if the external drive / path is not immediate available when iTunes is started (user:Music:iTunes Music vrs Eternal HD:Music:iTunes Music). This will sometimes will happen on boot, I have login mounting the external drive but that authorization / process once in a while times takes longer than starting up iTunes mostly due to an iPod connected to that computer. Since iTunes is not seeing that external drive (it isn't available yet). So the effect is iTunes defaults 'iTunes Music folder location' to the local music location - but - maintains the full library list (ie 10,000 question marks).
    I have each computer maintaining it's own libraries on their respective drives which index to the music folders / files on the external (this is an itunes default to maintain the local library one each computer).
    So ... How can I force iTunes to maintain the 'iTunes Music folder location' ?
    (can the default location be changed ?... plist or some other file, or is this hard coded - or write a script to hold up iTunes to launch until after the external Hd is mounted)

    I am sure that some will cringe at this
    Note (my opinion) : I found when sharing with a Wintel box and Apple boxes it is better to use just smb. Mixing the smb AND afp arises to hang up problems and the afp is the side that seems to hang up the most. (that hurt me to type, I blame Finder - another story)
    So - the script I use is fairly straight forward - Open Script Editor:
    tell application "Finder"
    mount volume "smb://[ip address of hard drive]/[drive directory you wish to mount]" as user name "[username]" with password "[password of said user]"
    end tell
    I recommend compiling the script (don't forget to save a copy you can also edit too - save as script). To compile a script : Save as Application, Run Only, No Start Up Screen. Since this has hard code Username / Passwords in the code - make sure you are happy with who will be running this script. So with the goal is to auto run when you start up, I tend to feel let it go ahead. If you wish to use afp (ie you are only sharing between macs - change the smb to afp in that code).
    Next is to add this to your start up. Sys Pref > Accounts > Login Items
    Just add the compiled application script to your user(s) login item.
    Now for the - well, ugly part. Remove the iTunesHelper from the list.
    Using Finder, Find iTunes - Show Package Contents, find iTunesHelper (it is iTunes:Contents:Resources)
    Drag iTunesHelper into the Login Items (it should be listed now at the end of the list). Why this help I really can not tell you - I only have an idea of why - I have noticed that when my iPod may be plugged in when I reboot that iTunesHelper starts later in the sequence.
    I did play around with changing the start up info on the unix side, for the brave only I would suggest. But - you can hard code a little better auto mounting a volume / hard disk / folder there on boot up. I did with to stay in the Mac GUI and AppleScript was just plain simple. The script can be modified to test if the volume is mounted etc time out try again etc etc etc... I kept it simple and straight forward.

  • How to select the right JSP for a locale

    This may be a very stupid question but someone please help me out. I've
    looked at the JSP spec and the Weblogic documentation and even browsed the
    newsgroup and I still can't figure this out. Perhaps I'm just being dense
    (more than likely).
    What we want to do is support multiple locals from one server. My idea is
    that we'd write the JSP in English then hire translation companies to
    convert the JSP to French,German, Japanese, etc.(We've moved all the java
    code out of the JSPs using taglibs/java beans to make this easier). What
    we'd like to do is have all the languages on the server at once and based on
    the local of the client select the right JSP. We'd still like the URL to
    remain constant. What I can't seem to figure out is how to have one URL
    (like http:/www.myserver.com/example.JSP) and have the server select the
    right real JSP for the local (like example-en.JSP, example-fr.JSP, etc).
    I had hoped I could find a deployment descriptor (J2EE or Weblogic specific)
    directive that mapped a URL to a set of JSP based on locale but I don't see
    one.
    How does one make this happen or is the wrong way to do it". If it the
    "wrong way" what is the right way? Any links or example someone can point
    me to would be great.
    Kent

    We use a Servlet "filter" (not the Servlet 2.3 sense, but a 2.2 servlet that
    does a RequestDispatch.forward())
    This filter selects the most appropriate JSP page (using a similar naming
    convention to the one you indicate), then server-side forwards to it. Works
    quite well.
    j
    "Kent Mitchell" <[email protected]> wrote in message
    news:[email protected]...
    So has anybody come up with other solutions that work better. I was
    thinking about having a "main" jsp that all it did was check the local and
    then forward the request to the right internationalized jsp. So forexample
    I'd have the three files:
    someMain.jsp
    someMain-EN.jsp
    someMain-FR.jsp
    The main check the local and forwards to EN for English and FRfor French.
    etc.. Has anyone done anything like this? Is so what were the pros and
    cons?
    Kent
    "Mettu Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Completely Agree. Once you start using TAG's get Internationalized
    Strings
    tools
    are less useful.
    Kumar.
    Kent Mitchell wrote:
    O.K. but doesn't this sort of make JSP editing tools like dreamweaver
    pretty
    much useless because of all the embedded Java code or and I missing
    something.
    "Mettu Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Kent,
    Most common way of doing this is having one jsp where All the
    Textual
    messages in the page are read from properties file based on Locale.
    Kumar.
    Kent Mitchell wrote:
    This may be a very stupid question but someone please help me out.
    I've
    looked at the JSP spec and the Weblogic documentation and evenbrowsed
    the
    newsgroup and I still can't figure this out. Perhaps I'm just
    being
    dense
    (more than likely).
    What we want to do is support multiple locals from one server. My
    idea
    is
    that we'd write the JSP in English then hire translation companies
    to
    convert the JSP to French,German, Japanese, etc.(We've moved all
    the
    java
    code out of the JSPs using taglibs/java beans to make this
    easier).
    What
    we'd like to do is have all the languages on the server at once
    and
    based on
    the local of the client select the right JSP. We'd still like the
    URL
    to
    remain constant. What I can't seem to figure out is how to have
    one
    URL
    (like http:/www.myserver.com/example.JSP) and have the server
    select
    the
    right real JSP for the local (like example-en.JSP, example-fr.JSP,etc).
    I had hoped I could find a deployment descriptor (J2EE or Weblogicspecific)
    directive that mapped a URL to a set of JSP based on locale but I
    don't
    see
    one.
    How does one make this happen or is the wrong way to do it". If
    it
    the
    "wrong way" what is the right way? Any links or example someone
    can
    point
    me to would be great.
    Kent

  • How to use the local storage space in OVM 3.2.1

    Hi
    We have installed OVM 3.2.1 in a server , which has 1TB HDD and 350GB RAM and we have installed the OVM manager in a seperate machine.
    I am able to identified the server in the manager console but how can i use the local storage space.
    Kindly help us to solve this issue.
    Regards
    Niranjan

    Hi,
    if you want to import an ISO image, why you mount it?
    after you complete your installation.
    1- discover server. (if your installation is finished good, then you found your server in Onglet Servers and VMs / unassigned servers)
    2- Go to Perspective / Physical Disk to verify that detect the second partition
    3- if it's good, then crearte a pool with no Clustered Server Pool.
    4- create a repository on your physical disk.
    5- Go to ISOs in your repository and click import iso image.
    Now, verify that your apache/httpd server it is working or not.
    1- after you install apache/httpd
    2- you shoud verify if it is running or not (pgrep httpd) if not start it (e.g. service httpd start )
    3- copy the ISO file under /var/www/html
    4- open your browser and verify.
    and at this point i think it is good.
    then copy the url to import the iso file with Oracle VM Manager
    the URL Look's like http://IP-Address/image-iso.iso
    you should verify that the IP-Address is reached from the Oracle VM Server.
    and that's it
    I tested it: and in my case:
    i have copied the windows iso image:
    cp ../windowsXP.iso /var/www/html/
    and now my URL is like * http://IP-Address/windowsXP.iso*
    I hope this can help you
    Best Regards

  • ConnectionException: Name space accessor for the java: name space has not b

    Hi,
    While running JUnti test cases I am getting the following. Can anyone help?
    com.deere.u90.iaf.jdbc.connection.ConnectionException: Name space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.
    IAF JDBC Connection Management Framework exception in JNDI lookup of DataSource.
    Source of configuration data = C:\starteam\JDPS - Software Delivery system\3123_CanDB\sds\WebContent\WEB-INF\classes\config\SDSConnectionManagerLocal.properties
    Dynamic Properties = false
    Property Name Suffix = SDS
    Connection Pooling Enabled = true
    JNDI Provider URL = corbaloc:iiop:wpuds90700.jdnet.deere.com:2811
    DataSource Name = java:comp/env/jdbc/SDSDEVLDataSource
         at com.deere.u90.iaf.jdbc.connection.ConnectionManager.initializeEnvironment(ConnectionManager.java:282)
         at com.deere.u90.iaf.jdbc.connection.ConnectionManager.<init>(ConnectionManager.java:224)
         at sds.view.intranet.servlets.SDSGenericServlet.getConnectionManager(SDSGenericServlet.java:192)
         at junittest.ProgrammedECUAddComponentTest.setUp(ProgrammedECUAddComponentTest.java:75)
         at junit.framework.TestCase.runBare(TestCase.java:125)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
    Thanks in advance,
    Dhir

    I also get the same problem, this is very tedious but if you edit the song somehow and re-save it then it will copy. Not sure what the problem is at all, tried contacting Apple about this to no avail.

  • Warning: No patterns found. Skipping rewrite rules creation for Meet simple URLs.

    Hi 
    It feels like a have tested the most that I can Google, but im new on Lync..
    I have a lync multitennant 2013 server.
    But when I run enable-cscomputer I get the following
    WARNING: No patterns found. Skipping rewrite rules creation for Meet simple URLs.
    WARNING: No patterns found. Skipping rewrite rule creation for dial-in conferencing.
    WARNING: No patterns found. Skipping rewrite rule creation for Web Scheduler.
    WARNING: No patterns found. Skipping rewrite rule creation for dial-in conferencing.
    WARNING: No patterns found. Skipping rewrite rule creation for Web Scheduler.
    WARNING: "Enable-CsComputer" processing has completed with warnings. "5" warnings were recorded during this run.
    WARNING: Detailed results can be found at "C:\Users\xxx\AppData\Local\Temp\Enable-CsComputer-26374787-f6b5-4a07-b8f4-7bd819d3ffc3.html".
    Im not sure what to test? And what to do to verify that the settings is correct. Im new on Lync.. So all tips are greatly appreciated.

    To set the DNS name for the simple URL for multitenant Lync Server, run the following cmdlets:
    $BaseURL = "https://meet.litwareinc.com/"
    set-CsProvisionServiceConfiguration -SimpleUrlDnsName $BaseURL
    To verify that the DNS name was set, run the following cmdlet:
    (Get-CsProvisionServiceConfiguration).SimpleUrlDNSName
    The following is a similar thread you can refer to:
    http://social.technet.microsoft.com/Forums/lync/en-US/dfa064d8-5c53-4a69-aecd-ffe487a353d1/lync-meet-now-not-working
    Lisa Zheng
    TechNet Community Support

  • Virtual URL space on OC4J

    How is it possible to deploy e.g. servlet on ROOT of the Site (based on standalone OC4J) which will test all requests to OC4J. This application should check if request is made for resource in here virtual URL space and if it is, it should return requested resource. If it is not then servlet should release request for standard processing.
    eg. server has three deployed application on locations
    /human_resources , /personal_pages and default on /
    1. first case: user place request like /personal_pages default application takes request analyze it and hand it over to deployed application /personal_pages
    2. second case: user place request like /students/articles (application with this uri is not deployed on server) default application takes request analize it finds articles list in database, form HTML and send response to user how placed request.
    3. third case: user place request like /automotive/gear (application with this uri is not deployed on server) default application takes request analyze it and as it is not in here virtual uri space it passed to default processing which will return resource not available.

    When I look at the page using the rules that I shared with you, it worked!
    Now when I look at your interpretation
    ul.MenuBarHorizontal li:last-child {
        border-right: solid 2px #B9C9D9;
    it is telling me that you want a right border with a with of 2px on the last li element. I know it is the same colour as the background but it does not have the same effect as my original proposal.
    Gramps

  • How can i get more local storage space on my iphone 4

    I want to put more song on my iphone 4 but it keeps saying i dont have enough local staorage space. How can i get more local storage space on my iphone 4?

    You don't. Delete 'stuff' you don't need or buy a phone with more storage. you can not increase or upgrade the internal storage in the iPhone.

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • How can I cancel my order for extra ICloud storage space?

    How can I cancel my order for extra ICloud storage space?
    I don't need it afterall...

    Call Apple. 1-800-My-Apple

  • Unable to get the SharePoint 2013 List names using Client object model for the input URL

    Please can you help with this issue.
    We are not able to get the SharePoint 2013 List names using Client object model for the input URL.
    What we need is to use default credentials to authenticate user to get only those list which he has access to.
    clientContext.Credentials = Net.CredentialCache.DefaultCredentials
    But in this case we are getting error saying ‘The remote server returned an error: (401) Unauthorized.’
    Instead of passing Default Credentials, if we pass the User credentials using:
    clientContext.Credentials = New Net.NetworkCredential("Administrator", "password", "contoso")
    It authenticates the user and works fine. Since we are developing a web part, it would not be possible to pass the user credentials. Also, the sample source code works perfectly fine on the SharePoint 2010 environment. We need to get the same functionality
    working for SharePoint 2013.
    We are also facing the same issue while authenticating PSI(Project Server Interface) Web services for Project Server 2013.
    Can you please let us know how we can overcome the above issue? Please let us know if you need any further information from our end on the same.
    Sample code is here: http://www.projectsolution.com/Data/Support/MS/SharePointTestApplication.zip
    Regards, PJ Mistry (Email: [email protected] | Web: http://www.projectsolution.co.uk | Blog: EPMGuy.com)

    Hi Mistry,
    I sure that CSOM will authenticate without passing the
    "clientContext.Credentials = Net.CredentialCache.DefaultCredentials" by default. It will take the current login user credentials by default. For more details about the CSOM operations refer the below link.
    http://msdn.microsoft.com/en-us/library/office/fp179912.aspx
    -- Vadivelu B Life with SharePoint

Maybe you are looking for

  • Sale order_Variant configuration

    Dear Experts, We have created a sale order for a configurable material  'CM' . It has 10 line items all with the same material 'CM'. The strategy type and group for the material ' CM' is Y5 ( Make to order production)  with customer requirement type

  • Windows 7 driver solution for HP deskjet F4100

    New HP computer with Windows 7.  Cannot install HP Deskjet F4100.  Any solution? This question was solved. View Solution.

  • ..yet another NoClassDefFoundError, though a little different

    Ok, this java tool has been running for a year now in a production env... Just a few days ago I now get: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object I understand that I should use -cp or -classpath or s

  • Excise Capture

    Dear Expert There is  a requirement that client plant location is in special economic zone , which is excise duty free , but the client want they want to capture the excise duty for reporting , no cenvat  credit will be availed , posting is not requi

  • Host hangs during bootup after installing Hyper-V Role

    My hyperv test box is a Dell Optiplex 980, i7, 8GB RAM. Due to small data partitions I had to rearrange the partitions on the disk. Before this the layout was like this: #1 primary WS2008R2SP1 #2 primary WS2012 RTM Build9200 #3 primary ext3, boot par