SSL Flex Remote Object - no remoting-config file
I realize that this topic has been discussed a lot, and I think
I have the solution figured out.
The problem is that I have to edit the remoting-config file - and there isn't one!
I've hunted high and low on the server, and I just don't have the file.
We are using Coldfusion 8,0,0,176276 Enterprise, and I have an instance for my flex applicaitons (we have multiple instances running, and none of them have the file). The server is running on a Solaris VM.
How do I fix this problem??
Thanks!
Jenn
My context root is specified as the default "/" When I remove the context root variable from the services-config.xml, it can't find the file. I don't know where I can change context root, but I am confused as to what it should be, regardless.
Add the -context-root to the compiler options, just like -services and set it to an empty string
-services="/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/f lex/servics-config.xml" -context-root=""
Similar Messages
-
Revision: 1705
Author: [email protected]
Date: 2008-05-14 08:58:31 -0700 (Wed, 14 May 2008)
Log Message:
1) Add a security constrain for MBeanObjectNameResolver destination in remoting-config.xml for WebSphere deployment
2) Update the MBean tests accordingly and correct a typo
3) Also make some additional ProxyServiceMBeanTest to solve a timing issue when getting MBean attributes on WAS
4) update the jgroups-udp.xml and set bind_to_all_interfaces to fall since it prevents server from startup when IPv6 is enabled on Windows
Modified Paths:
blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/jgroups-udp.xml
blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/remoting-config.mods.xml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/MBean/proxyservice/HTTPDestinati onTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/MBean/proxyservice/ProxyServiceM BeanTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/MBean/proxyservice/SOAPDestinati onTest.mxmlI guess the reason was that I wrote
<login-config>
<auth-method>Basic</auth-method>
</login-config>
instead of required
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
At deploy time, I got no error message. At usage time, I just got this AccessLocalException. That's not really nice ...
Merten -
Iphone apps using flex remote objects with CF???
I am used to making web applications that use flex remote objects to interact with CF.
Is it possible to use remoting from an iphone app cross compiled using flash builder to interact with Cf remoting on a remote server?Interseting, config files always seem to me like a strange way to do things.
I'm not exactly sure what you mean by this, but by default, that's how remoting works in Flex - you have channels and destinations defined on your server, and your compiler points to your config files and reads those values. So it's a little extra work to define them in AS instead.
Can you give me any tips on authenticating requests to cfc's from mobiles and how to protect my servers once I exposes cfc's to apps not hosted on the same server as CF?
There isn't really anything mobile-specific you need to do here. Exposing CFCs isn't any different than exposing CFM files that are accessed via a browser. You can use the standard CF session management and CF authentication (cflogin) - there are some examples available by Googling "coldfusion cflogin flex remoting".
Dave Watts, CTO, Fig Leaf Software -
Amfphp - flex remote object error event handler
I'm using amfphp and I want it to return an error that the flex remote object error event handler will pick up. At the moment I can get only the result handler to do anything in flex.
Hi,
Try throwing an exception in the remote method. For example,
function inverse($x) {
if (!$x) {
throw new Exception('Division by zero.');
else return 1/$x; -
Flex Config File DTDs or Schemas
I am writing a basic application to test Flex integration
with Java objects, and after solving a bunch of deployment errors,
I am happy to say I am finding no errors on deployment anymore. The
application, however, still doesn't work because of what must be
some undescribed configuration error.
I have been unable to find any DTDs or schemas that pertain
to any of the following files:
flex-config.xml
data-management-config.xml
flex-webtier-config.xml
remoting-config.xml
services-config.xml
mxml-manifest.xml
Putting aside my disappointment that I need all these files
for a Flex-Java application that couldn't get any simpler, I would
appreciate any insight into these files.
Thanks.Ok, I solved it by myself
I need to add the following codes when calling the Compiler
API
Configuration conf = application.getDefaultConfiguration();
conf.setToken("flexlib", "path to the frameworks")
applicaiton.setConfiguration(conf);
Then it solved the problem -
PROBLEM: Coldfusion/Flex Remote Project Creation
Okay,
I have read these two threads and have looked everywhere, but
still am stumped:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1239851&highlight_key=y&keyword1=coldfusion
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1239851&highlight_key=y&keyword1=coldfusion
I have FlexBuilder 2 installed on my local machine. My
project, however, is accessed via a mapped drive to our development
server (and yes, we have MX 7.0.2 installed).
All of the examples I see seem to assume that CF server is
installed locally -- but, of course in this instance it is not.
When creating the CF project, I am assuming that I have to some
make connection to the remote server, so it doesn't make sense to
browse to the config file on my mapped driver (where I get the
Invalid root error anyway).
I am tearing my hair out. I can't even do the easy-peasy
Hello World example that uses a cfc to return the string via
mx:remoteobject (remote connection errors). I have gotten to
Chapter 17 of the Flex 2: Training from the source and have bombed
in returning cfc data as the book, again, assumes a local
installation of cfserver (Server.Error.Request:HTTP request error),
and I have attempted another example that creates an xml doc (using
cfxml) on the fly.
So -- either I am an idiot, or there is some huge gap in the
documentation somewhere. Is the assumption that all Flex
development will occur locally (which would require the
installation of a cf server on the local machine (if using a cf
back end)? Or, are are we supposed to somehow use RDS to connect to
a remote development server running cf? I have a successful RDS
connection to the development server, but that does not seem to do
anything.
Please help!
Thanks so much,
GTOkay,
I have read these two threads and have looked everywhere, but
still am stumped:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1239851&highlight_key=y&keyword1=coldfusion
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1239851&highlight_key=y&keyword1=coldfusion
I have FlexBuilder 2 installed on my local machine. My
project, however, is accessed via a mapped drive to our development
server (and yes, we have MX 7.0.2 installed).
All of the examples I see seem to assume that CF server is
installed locally -- but, of course in this instance it is not.
When creating the CF project, I am assuming that I have to some
make connection to the remote server, so it doesn't make sense to
browse to the config file on my mapped driver (where I get the
Invalid root error anyway).
I am tearing my hair out. I can't even do the easy-peasy
Hello World example that uses a cfc to return the string via
mx:remoteobject (remote connection errors). I have gotten to
Chapter 17 of the Flex 2: Training from the source and have bombed
in returning cfc data as the book, again, assumes a local
installation of cfserver (Server.Error.Request:HTTP request error),
and I have attempted another example that creates an xml doc (using
cfxml) on the fly.
So -- either I am an idiot, or there is some huge gap in the
documentation somewhere. Is the assumption that all Flex
development will occur locally (which would require the
installation of a cf server on the local machine (if using a cf
back end)? Or, are are we supposed to somehow use RDS to connect to
a remote development server running cf? I have a successful RDS
connection to the development server, but that does not seem to do
anything.
Please help!
Thanks so much,
GT -
Retrieving the remote IP when using Flex Remoting over RTMP
Hello,
I am trying to retrieve the IP address of a user making a Java call to my service defined in remoting-config.xml
If i setup an AMF channel I can use the folllowing to retrieve the remote IP address:
String ip = FlexContext.getHttpRequest().getRemoteAddr();
But when i try to do the same over a RTMP channel I get a Java exception because the object that RTMP uses to fake a httprequest doesn't implement that function.
How do i retrieve the IP of the user making the call in this case? It has to be somewhere or the server wouldn't be able to send a reply to the client, but i haven't been able to find it.
Constantijn VisinescuI tried all of your ideas and still no luck (see below). One thing I forgot to mention was that when using Internet Exploier to view the web page on another computer I can see the document title (AKA- VI name) and the header I typed in. But where the vi should be I have the missing picture Icon (the one you see when a web page has a bad link to an image). Image will show up on sever computer when I click preview web page. Is there anything that the receiving computer needs to have other than the run time code?
TST – I have found that the start web sever button will gray out if you goto tools options web server configuration then manual check the enable web server check box. So that wasn’t it.
Soroush- I set up computer to be a server using control panel (I didn’t know you could do that) thank for the ini file I will update mine
Thoskins- I change port number and the still didn’t work
HTML code created using Labview web publishing code (everything looked go to me???)
var obj = '<OBJECT ID="LabVIEWControl" CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AC" WIDTH=1019 HEIGHT=716 CODEBASE="ftp://ftp.ni.com/support/labview/runtime/windows/7.1';
if (lng.indexOf("fr") != -1) { obj = obj + '/French'; }
else if (lng.indexOf("de") != -1) { obj = obj + '/German'; }
else if (lng.indexOf("ja") != -1) { obj = obj + '/Japanese'; }
obj = obj + '/LVRunTimeEng.exe">';
document.write(obj);
// --></SCRIPT>
<PARAM name="LVFPPVINAME" value="390Troubleshoot.vi">
<PARAM name="REQCTRL" value=false>
<EMBED SRC=".LV_FrontPanelProtocol.rpvi71" LVFPPVINAME="390Troubleshoot.vi" REQCTRL=false TYPE="application/x-labviewrpvi71" WIDTH=1019 HEIGHT=716 PLUGINSPAGE="http://digital.ni.com/express.nsf/express?openagent&code=ex3e33&"></EMBED>
</OBJECT>
</TD></TR></TABLE>
</HTML> -
How to add more than a single remote service destination to
the remote-config.xml file? When I try to add a new destination tag
in the remote-config.xml I get an error when calling the mxml file
in the browser. Please help.Have you seen the example remoting-config.xml file in the
/resources/config directory that is laid down during an FDS
installation?
destination elements are children of the service element.
<service ...>
<destination id="dest1">
</destination>
<destination id="dest2">
</destination>
</service>
Perhaps your SWF didn't get updated with the new
configuration file? You need to recompile the SWF in order to get
the new configuration information into it... also, you'd need to
restart the app server if you change the config file. If you're
using Flex Builder to compile an .mxml file then you may need to
force a recompile with the Clean... option as it may have not
noticed that the services-config.xml include file
remoting-config.xml changed? -
Source path Flex config files not updated in generated output
I have a project, built using Flash Builder 4.0 on Mac OS X 10.6.
One of my source directories is src/main/webapp which contains a WEB-INF directory with this structure:
webapp
- WEB-INF (applicationContext.xml etc)
- - classes
- - flex (services-config.xml, remoting-config.xml, proxy-config.xml, messaging-config.xml)
- - lib
In properties, under Flex Build Path I have set src/main/webapp as an additional source folder.
When the project compiles, all the artifacts are created, and all of the above, including *.xml files under
WEB-INF are copied to the output folder, except for the WEB-INF flex directory which has the four xml
configuration files.
The same happens when I create a bin-release folder using the Project/Export Release Build menu.
Any ideas why just the WEB-INF/flex directory is not being copied to bin-debug or bin-release?
Thanks.I don't know a whole lot about beehive pageflow and I haven't done this myself, but I do believe you have run apt to have it generate the various other files pageflow and controls needs. I found some information in the pageflow docs:
http://beehive.apache.org/docs/1.0.2/netui/projects.html#building
http://beehive.apache.org/docs/1.0.2/infra/beehive-ant-macros.html
Greg -
Configure remote-config for calling java class
Hi...all
i'm newbie, i got trouble for configure remote-config in flex project
how to configure remote-config.xml, if i have java class like below
package org.springframework.flex.samples.secured;
import java.util.Map;
import org.springframework.flex.security.AuthenticationResultUtils;
public class SecurityHelper {
public Map<String, Object> getAuthentication() {
return AuthenticationResultUtils.getAuthenticationResult();
please help me.....i'm newbie and wanna learnin
thanksHi,
May be this could be of good help to you
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
Thanks,
Balaji -
How to Email a remote html file as an attachment
Hi ,
I want to mail an html file as an attachment using JAVAMail. I have only the URL of the remote file.How can i do this? Please show me a way.......I basically want to send a multipart object as an attachment using java mail.My multipart object contains a remote html file contents and related gifs. I want to send the whole object as attachement so that the user can save it locally and view the html and embedded gifs.this is what i did
MimeMultipart multipart = new MimeMultipart("related");
messageBody.setContent(totContent,"text/html");//totContent is the html file contents.
multipart.addBodyPart(messageBody);
//loop to embed the gifs
messageBody.setDataHandler(new DataHandler(new URL(imagepath)));
messageBody.setHeader("Content-ID", imgName);
multipart.addBodyPart(messageBody);
//loop ends
i want this multipart to be send as an attachment. Please enlighten me.......this is a bit urgent........ -
XML file in the form of .config file how to convert it to class and store it in single object
Hi,
I have a config file in which i have to convert it to class and get an object.
example:
<?xml version="1.0" encoding="utf-8" ?>
<xyz xmlns="">
<Container name ="Basic">
<Connectivity user="" server="" protocol="udp"/>
<Connectivity user="" server="" protocol="udp"/>
</Container>
<Container name ="Cp">
<settings version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.counterpath.com/cps">
<domain name="audio">
<section name="headset">
<setting name="audio_in_agc_enabled " value="1"/>
</section>
<section name="incoming">
<setting name="use_agc" value="1"/>
</section>
<section name="vad">
</section>
</domain>
<domain name="system">
<section name="qos">
<setting name="audio" value="tos 46"/>
</section>
<section name="dtmf">
<setting name="force_send_in_band" value="0"/>
<setting name="minimum_rfc2833_play_time" value="40"/>
</section>
<section name="network">
<setting name="dtx_enabled" value="0"/>
</section>
<section name="diagnostics">
<setting name="enable_logging" value="1"/>
<setting name="log_level" value="Error"/>
</section>
<section name="general">
<setting name="add_OS_version_to_user_agent_header" value="1"/>
</section>
<section name="indialog_notify">
<setting name="enable_indialognotify" value="1"/>
</section>
</domain>
<domain name="rtp">
<section name="2833">
<setting name="enabled" value="1"/>
<setting name="packet_time_in_ms" value="60"/>
<setting name="payload_number" value="101"/>
</section>
<section name="inactivity">
<setting name="timer_enabled" value="0"/>
</section>
</domain>
<domain name="proxies">
<section name="proxy0">
</section>
<section name="proxy1">
</section>
</domain>
<domain name="ggg">
<section name="device">
<setting name="use_headset" value="1"/>
<setting name="rrr" value="1"/>
<setting name="eee" value="480"/>
<setting name="eme" value="hhh"/>
<setting name="headset_name" value="vvv"/>
<setting name="manual_audio_devices_configure" value="0"/>
<setting name="audio_in_device" value=""/>
<setting name="audio_out_device" value=""/>
<setting name="ringer_device" value=""/>
</section>
<section name="system">
<setting name="export_settings" value="EndpointSettings.xml"/>
<setting name="enable_export_settings" value="0"/>
<setting name="log_level_AbstractPhone" value="0"/>
<setting name="log_level_Audio" value="0"/>
<setting name="log_level_Auto Configuration" value="0"/>
<setting name="log_level_CCM" value="0"/>
<setting name="log_level_Conferencing" value="0"/>
<setting name="log_level_Contacts" value="0"/>
<setting name="log_level_DNS" value="0"/>
<setting name="log_level_GUI" value="0"/>
<setting name="log_level_Jitter" value="0"/>
<setting name="log_level_Licensing" value="0"/>
<setting name="log_level_Media" value="0"/>
<setting name="log_level_Privacy" value="0"/>
<setting name="log_level_RTP" value="0"/>
<setting name="log_level_STUN" value="0"/>
<setting name="log_level_Security" value="0"/>
<setting name="log_level_Storage" value="0"/>
<setting name="log_level_Transport" value="0"/>
<setting name="log_level_USB Devices" value="Info"/>
<setting name="log_level_Utilities" value="0"/>
<setting name="log_level_Video" value="0"/>
<setting name="log_level_Voice Quality" value="0"/>
<setting name="log_level_XMPP" value="0"/>
<setting name="log_level_Endpoint" value="6"/>
</section>
<section name="beeptone">
<setting name="play_locally" value="0"/>
<setting name="enable_beeptone" value="1"/>
<setting name="beeptone_file" value="beep.wav"/>
<setting name="beeptone_timeout" value="30000"/>
</section>
<section name="dtmf">
<setting name="play_locally" value="1"/>
<setting name="pause_start_stop_dtmf" value="100"/>
</section>
<section name="control">
<setting name="auto_answer" value="0"/>
</section>
<section name="ctrol">
<setting name="auto_ans" value="0"/>
</section>
</domain>
</settings>
</Container>
</xyz>
Please help me out in creating an object from it.
Thanks,
HiranmayeeIt's one of those things you usually start from the other end.
IE with a class and then serialise / deserialize to xml.
Because you have a namespace in there:
<settings version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.counterpath.com/cps">
I think you will find linq to xml will have issues with that.
You could still use xpath to pick data out of there and there's been a thread on the c# forum recently which is relevent:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/2dc0581e-f2fd-4fd3-89ee-e59280c398e6/read-xml?forum=csharpgeneral
Why do you want to turn that into an object?
By the way.
This isn't a wpf question and you should probably have posted it on the c# forum.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML -
Help needed in executing a remote batch file
I need to execute a batch file which is located on a remote machine through my machine. I have no idea to go about with. Please can someone help me out with can be used to execute the remote bat file. I am at present using Runtime.exec() to execute it on my machine.. But i cant use it to execute teh bat file on teh remote machine.Please help
Below is an example server that would run on the remote host. You can connect to it using telnet from DOS prompt, it takes a Y/N to run your command in the cmd variable. I haven't included code for a client as it's really not needed for the example below.
Change the cmd and port variables to what you need. You may need to setup firewall rules to allow your chosen port.
Once it's running, you can test it by using "telnet localhost 1234" on your machine, localhost would obviously become the remote computer's hostname or IP.
I am incredibly new to Java (using the forums to learn bits), so excuse any bad coding practises, I'm sure people will point them out.
Keep in mind that this is totally insecure, so if you're using it on an untrusted network, you may want to look into encryption and providing some kind of password authentication, that, for the moment is out of my league.
Screenshot here.
import java.io.*;
import java.net.*;
class RemoteServer {
public static int port = 1234; // Port to listen on
public static String cmd = "C:\\Test.bat"; // Command to run
public static void main(String[] args)
System.out.println("Waiting for connection...");
try {
/* If you want the server to run forever, uncomment the while
loop */
// while (true)
startServer();
} catch (IOException e) {
e.printStackTrace();
System.exit(1);
/* Starts the server */
private static void startServer() throws IOException
ServerSocket server = null;
Socket client = null;
String input;
try {
server = new ServerSocket(port);
} catch (IOException e) {
System.err.println("Unable to list on port " + port);
System.exit(1); // Can't listen, nothing else to do
try {
client = server.accept();
System.out.println("Client connected... awaiting Y/N");
} catch (IOException e) {
System.err.println("Unable to accept connection.");
System.exit(1);
PrintWriter out = new PrintWriter(client.getOutputStream(), true);
BufferedReader in = new BufferedReader(new InputStreamReader(
client.getInputStream()));
out.println("You are connected, ready to launch command: <y/n>");
while ((input = in.readLine()) != null)
if (input.equalsIgnoreCase("y"))
Runtime rt = Runtime.getRuntime();
rt.exec(cmd);
out.println("Command executed... disconnecting.");
System.out.println("Command executed... disconnecting client.");
break;
} else if (input.equalsIgnoreCase("n")) {
break;
} else {
out.println("Please enter Y/N.");
out.close();
in.close();
client.close();
server.close();
} -
How to get source of remote html file.
i want to read the remote html file source
i don't have any physical / original path of the file
i have only the url path
example url : http://mydomain.com/myhomepage.html
using this url can i get the source of the file myhomepage.html
thanx
senthil.U can use java.io.*, java.net.* API
here goes a sample code
import java.io.*;
import java.net.*;
public class URLconnecting{
public static void main(String[] args)throws Exception{
URL url = new URL("http://www.yahoo.com");
URLConnection conn = url.openConnection();
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while( (line= reader.readLine()) != null) System.out.println(line);
reader.close(); -
How can I run a remote jar file?
There is a runnable jar (Java Application) file on server and my client program wants to run it on the client. What should I write for my client code to do this?
It is possible to load it directly into client memory and run it?
And basically, does a Jar file completely load into memory, when we are deploying it, or only required resources load?I suppose you are not speaking of applets.
If Iunderstand your question correctly, you are looking for a way, the client always has newest software downloaded from the server.
If that is what you are looking for, try JavaWebStart.
You find tutorials on javasoft.com.
If you just want the client to download an application (like an .exe) use a runnable jar!
Maybe you are looking for
-
WD External Hard drive not working with new Macbook Pro
I have recently upgraded to a new Macbook Pro and when connecting a WD 1 TB Passport external hard drive, it doesn't appear on the MBP, but when I connect it to my old Macbook running 10.5.8, it appears normally. Is this a problem with formatting or
-
Report for Discrepancy report in QM
Hi All, Whethwer Anybody did report on this Discrepancy report. This Discrepancy report is between "INSPECTION CHARACTARASTICS and SPECIFICATION CLASSES" Here by i am using "C1F5_specifications_READ " function module, to read Specification data RM
-
I cannot figure out where the administrator password is so I can disable it. I do have parental controls on.
-
Im assuming the bug is that the formatting is messed up? or is it not supposed to be a level 3 / error alert?
-
Can't output Digital Audio in Windows 7 (Macbook Air 2011).
Hi All, I'm using my MBA 2011 to play 3D Blurays Movies. The problem is... > Lion works fine (with HDMI audio) but i can't play 3D Blurays in LION, just 2D Blurays. [I can send...DTS/DOLBY etc etc to my RECEIVER with no problems using the "Moshi mini