Flex Project ; Compile Locally
When I set up a Flex project in Flex Buiilder 2 , and select
Flex Data Services, Compile Application locally in Flex Builder ,
then select root folder, root URL and context root, the application
fails to compile locally . I get an error in the problems section
stating , "Unexpected attribute 'url' found in 'endpoint' from
file: services-config.xml" . I am using LiveCycle Data Services ES.
Anyone having the same issue ? My co-worker was able to do a
similar set-up successfully using FDS2 , so I'm wondering if there
is an issue with LCDS ?
Thanks, Steve
sjlib,
I was able to resolve my same error by updating the Flex SDK
2. I found some information to do this here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=640&threadid =1253123&highlight_key=y&keyword1=flex%20Builder
I followed the directions posted on 03/29/2007 by
"nodogbite".
After updating the Flex SDK, I removed my projects from the
workspace & the J2EE DIR and rebuilt them from the source path.
After doing this I no longer got the "Unexpected attribute 'url'
found in 'endpoint' from file: services-config.xml" when I
recompiled.
I hope this helps, good luck!
-Gavin
Similar Messages
-
Security settings - Navigating flex projects locally
I have created a navigation-project that consist of links to
my other projects. This is meant for my own use and my own machine.
Running it on IE gives me a 'SecurityError: Error #2148 -
Navigator.swf cannot access local resource'
Reading about Flex / Flash security gives me headaches so I`m
wondering if anyone can give me a SIMPLE recipe for setting this up
to work.You need to make this an AIR app. Flex cannot acces local
hard drive, AIR (written in Flex is okay), can access local hard
drive. -
Compile flex project to multi swf files !
Hi all !
I have a flex project include one mxml main application, some mxml component and action script files. Can I compile flex project to multi swf files. My goal is: swf file very large, so I divide it into multi small swf files ! How can I do this? plz, give me some guide or links about it !
Thanks very much.Hi there,
Use modules to do that.
regards aktell2007 -
How to compile and excecute a downloaded flex project
I've a problem during the compile of downloaded flex projects
(with Flex Development)
I copy the project folder in Flex Builder 3 folder
Now.... File -> Import -> Flex Project
I Import the project in Flex Dev
I execute the debug ... or I execute the project
"Run Main" -> can't find bin-debug/main.html
"Debug Main" -> can't find bin-debug/main.html
I've tried with
Project -> "Export Release Build" -> Can't find
/Dashboard/libs folder
... I've tried to create the Libs folder
and I see:
Encountered errors or warnings while building project
main.mxml.
main.mxml: Cannot create HTML wrapper. Right-click here to
recreate folder html-template.
How Can I compile (and view) the projectCopy the "html-template" directory from one of your other
projectsand try again. -
I want to allow my local Flex projects to communicate with remote cfcs
I want to allow my local Flex projects to communicate with remote cfcs that are hosted on an external server.
For example I usually develop my flex apps locally and upload them to a server for testing. If could do the above I could have just have one database to test and run live data.
How to I set up my services-config.xml to do this. Is this something I should set up in Flex builder?You can set up your project in flex builder to connect to the remote server instead of the local one. Also, you could add remote database as a datasource in the cold fusion administrator for the localhost; this would allow you to have single database for testing and production. Personally i like to have my localhost mirroring the production server this allows me to test localy and make sure that everything is working properly before publishing to the live server.
-
Where does flex builder keep refererences to the flex projects?
Where does flex builder keep refererences to the flex projects?
I'm getting an error like this on FB3 startup:
The folder PR System Intranet does not exist in the workspace so the reference must be somewhere else.
thanks
!SESSION 2009-11-02 09:47:52.203 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.resources 2 10035 2009-11-02 09:47:53.610
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
!MESSAGE Workspace restored, but some problems occurred.
!SUBENTRY 1 org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
!MESSAGE Could not read metadata for 'PR System Intranet'.
!STACK 1
org.eclipse.core.internal.resources.ResourceException: The project description file (.project) for 'PR System Intranet' is missing. This file contains important information about the project. The project will not function properly until this file is restored.
at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceMan ager.java:663)
at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:792)
at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:772)
at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:663)
at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1319)
at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1949)
at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1713)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:363)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:9 99)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 74)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :111)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
!SUBENTRY 2 org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
!MESSAGE The project description file (.project) for 'PR System Intranet' is missing. This file contains important information about the project. The project will not function properly until this file is restored.
!ENTRY org.eclipse.osgi 4 0 2009-11-02 09:47:53.860
!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (161).
!STACK 0Thanks but that file contains things like
<?xml version="1.0" encoding="UTF-8"?>
<actionScriptProperties mainApplicationPath="main.mxml" version="3">
<compiler additionalCompilerArguments="-services "X:\Coldfusion9\wwwroot\WEB-INF\flex\services-config.xml" -locale en_US" copyDependentFiles="true" enableModuleDebug="true" flexSDK="Flex 3.2" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="true" htmlPlayerVersion="9.0.28" htmlPlayerVersionCheck="true" outputFolderPath="Staff_Ratings-debug" sourceFolderPath="src" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
<compilerSourcePath>
<compilerSourcePathEntry kind="1" linkType="1" path="H:/flash"/>
</compilerSourcePath>
<libraryPath defaultLinkType="1">
<libraryPathEntry kind="4" path=""/>
</libraryPath>
<sourceAttachmentPath/>
</compiler>
<applications>
<application path="main.mxml"/>
</applications>
<modules/>
<buildCSSFiles/>
</actionScriptProperties>
I don't see how FB3 knows about the
Pr System Intranet
project that seems to be the cause of the errors. -
Compile locally FDS application Problem
Hi,
I created a flex project with FDS enabled and "Compile
application locally in Flex Builder" enabled with the following:
My root folder is
C:\LOCALAPP\Specific\FDS_2\jrun4\servers\default\samples
My root URL is
http://localhost:8700/samples
My project name is LocalPortfolio
My main application file is portfoliojms.mxml
When I access the main page
http://localhost:8700/samples/LocalPortfolio/portfoliojms.html
it seems that I can't access the following:
C:\LOCALAPP\Specific\FDS_2\jrun4\servers\default\samples\WEB-INF
All the configuration files in WEB-INF\flex are not read
(license.properties, etc)
I don't have the problem when compiling on the server.
Is it a configuration problem?
THanks
Oliviercontext-root was not set in my configuration file
-
Can't importing a Flex project within a Java project
Hello,
I am taking over an existing project from a vendor that is no longer involved that has a two Flex projects inside of the Java project. I am using the Flash Builder plugin inside Eclipse. I have checked out the Java project locally and brought it into Eclipse and it builds perfectly. My issue is in getting Flash Builder to recognize or import the two Flex projects within. I have tried various methods of adding or importing the Flex project into my workspace but they all break the file structure in one way or another and thus make it impossible to compile in the structure that was set up. It looks like Flex was set up to build into the webapp/flash/projectname/build folder. No matter what I do Flash Builder creates other output folders or project folders. I have tried add project type, import and new. The original .project and .actionScriptProperties files are there but Flash builder seems to ignore them and create new ones elsewhere.
The file structure looks like this:
javaproject
src
main
Flex
flexprojectone
flexprojecttwo
java
resources
webapp
flash
flexprojectone
build
flexprojecttwo
build
internal
lib
themes
WEB-INF
Thank you
GregI am having same trouble. Installed JDK 5.0 Update 5. Installed the Studio. Ctrl+Shift+N, the only option I have is Web Application with Existing Ant Script.. Please advise how to solve this problem. thx
-
Difference between compiling locally and on the server with FDS
Hi,
I am doing soming very basic testing with remote Java objects
and I am finding that if I create a FDS project and compile on the
server the code runs, if I create a FDS project and compile locally
it gives me the following error :
[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Failed"]
what gives?
The compiler in Flex Builder string is :
-services "C:\Archivos de programa\Apache Software
Foundation\Tomcat
5.5\webapps\flex\WEB-INF\flex\services-config.xml" -locale en_US
Any insights?
DavidHi,
I am also facing an issue regarding compiling mxml using
remote objects using flex sdk. The error I am getting is
[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Security.Error error Error #2048: Security
sandbox violation:
http://localhost:9080/iReports/flexFiles/mxml/AdminServices.swf
cannot load data from
http://localhost:9080iReports/messagebroker/amf."
Can u help me?
Thanks,
Cheree -
Is there a way of working collaboratively on a flex project with a small project group?
Is there a way of working collaboratively on a flex project with a small project group?
I am part of a small group of developers who wish to work on a single flex project together. Is there a way to set up flex so that the project can be developed by multiple people at the same time. I have seen one thread out on the internet about working locally and then uploading to SVn but this is not an option in this case.
Any ideas.
Many thanks in advance
DaveI would say that rushing into development without a source-control system will cost you more in the long-run. If your organisation is serious about developing software it then it needs to invest in the necesary infrastructure, so you should get that process kicked-off as soon as possible.
In the interim you could set-up a source control server on one developer's machine or commandeer a spare machine to use as a temporary source control server. Just make sure you have it backed-up regularly. Or you could use one of the online source control services; many will support private repositories for a small fee. -
FLEX Builder Pro 3 New Flex Project cannot configure J2EE
I have FLEX Builder Pro 3 installed on a Windows XP machine. LiveCycle Data Services is installed (with Tomcat) on a Linux RHEL 5 machine. When trying to create a new FLEX project and configuring a J2EE server am very confused on what to put in Root Folder and Root URL. I have tried various paths on the Root Folder (with a drive mapped through windows and also with just using the servername) and keep getting the error message:
Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
I've located the flex-confing file in the tomcat5\webapps\ROOT\WEB-INF directory, but still get the error.
Please any help would be greatly appreciated.Are your new classes referenced from the old code? Mxmlc employs a questionable form of "as-needed" linking, so classes that are not referenced from the main application are not even compiled. This referencing requirement is recursive; that is, any classes that are to be included have to be referenced from the main application, or from classes referenced by the main application, or from classes referenced by classes referenced by the main application, and so on. But if your new classes are not referenced at all from the old code, they will be ignored.
-
Can flex 2 have local data persistence?
Guys, I am just checking RIA development environments. I am
aware the flash has local shared objects as a way of storing data
on a local machine. Is this available in Flex 2? It is essential
for the appication I wish to write. Any help welcome.
Best
SteveTracy,
OK that is extremely useful, we do a lot of MD5 already. If I
may, could I pick your brains for another issue I am grappling with
on this potential flex project? Is there any way a flex component
could be built that was associated with a particular file type. So
that whenever such a file type was offered from an HTML page, this
component automatically processed it? This would be a parameter
file that the other parts of flex application would utilise.
Very Best
Steve -
Hi,
I am planning to build a flex project with a small group of people. So, I am thinking to have one main project to load all the component (SWF) in swf loader, so that I can have the component to be distributed to everyone. Here I want to ask:
1. Besides local connection, what is the other best, fastest, and most stable way to have the main application to communicate with child application loaded via swf loader?
2. As each person may working on their own part, how to set up the project so that they can easily debug their part with the main application during the development?
3. The project will be deploy in both Air and web format. How to share the code base for both development so that we are easier to grow and maintain the app?
Thanks. Please advise if you have better way for group development.take a look at the first part of this video where he talks about different architectures
http://tv.adobe.com/watch/max-2010-develop/flexactionscript-30-architecture-and-dependency -injection-frameworks-overview/
you also might find this useful. Some example case studies for web/mobile apps, the same principle could be applied to web/desktop apps
http://www.adobe.com/devnet/flex/samples.html -
Shifting Flex project from Flex SDK 3.5 to Flex SDK 4.0
Hi,
I am currently working on a Flex project using Flex 3.5 SDK. I want to shift my project to Flex 4.0 SDK.
When I changed the project settings to use SDK 4.0, I got lot of unknown location errors.
1) 1046: Type was not found or was not a compile-time constant: ImportExportConfiguration
2) 1061: Call to a possibly undefined method setSelection through a reference with static type mx.core.ITextInput
While the same code of flex was working satisfactorily in Flex SDK 3.5.
Please tell, how can I get rid of these error and successfully shift my project to Flex SDK 4.0.
Regards,
Nitika AgarwalHi,
While I am migrating my project from flex 3.5 to Flex 4, I have to keep the Flex 3 compatibility mode off and theme as Flex 4 default theme that is Spark.
Then while i compile I get foloowing errors:
The style 'backgroundAlpha' is only supported by type 'mx.controls.TextInput' with the theme(s) 'halo'.
The style 'backgroundColor' is only supported by type 'com.app.model.WLSMSTextArea' with the theme(s) 'halo'.
The style 'borderColor' is only supported by type 'mx.controls.ComboBox' with the theme(s) 'halo'.
The style 'borderThickness' is only supported by type 'mx.containers.Canvas' with the theme(s) 'halo'.
The style 'cornerRadius' is only supported by type 'com.app.model.WLTextInput' with the theme(s) 'halo'.
The style 'cornerRadius' is only supported by type 'mx.controls.TextArea' with the theme(s) 'halo'.
The style 'fillAlphas' is only supported by type 'mx.controls.Button' with the theme(s) 'halo'.
The style 'fillAlphas' is only supported by type 'mx.controls.ComboBox' with the theme(s) 'halo'.
The style 'fillColors' is only supported by type 'mx.controls.Button' with the theme(s) 'halo'.
The style 'fillColors' is only supported by type 'mx.controls.ComboBox' with the theme(s) 'halo'.
The style 'themeColor' is only supported by type 'com.app.model.WLSMSTextArea' with the theme(s) 'halo'.
The style 'themeColor' is only supported by type 'com.app.model.WLTextInput' with the theme(s) 'halo'.
What is the resolution for these, as for most of the controls there is no substitute to these properties. If I do not want ot change my <mx:> controls to <s:>controls because it will hamper my UI look and field, which I cannot afford to do.
I have added following lines at the beginning of my stylesheet (*.CSS) as well:
@namespace "http://www.adobe.com/2006/mxml";
@namespace "library://ns.adobe.com/flex/mx";
@namespace s "library://ns.adobe.com/flex/spark";
Button { .... }
........ / * other styles */
Please help me on this.
Regards,
Nitika -
Flex files in Non-Flex Project
I use Eclipse for developing in Java. I have been trying out
the Flex 3 (public beta) plugin for Eclipse. I can create a new
Flex project and all of the Flex files compile and work correctly.
But how do I add Flex files to an existing project (non Flex
project) I already have created and setup it up so the Flex files
(.mxml, etc..) will be compiled and built correctly.
Thank youHey there,
I tried install a debug version of flash as you suggested. I
got this error from Firefox:
But I can't understand why this error could be happening
because the program works perfectly in IE.
TypeError: Error #1010: A term is undefined and has no
properties.
at FlexAnnotationProject/annotationsLoaded()
at FlexAnnotationProject/loadAnnotationEvent()
at FlexAnnotationProject/__loadAnnotation_result()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc.http.mxml::HTTPService/
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
Any ideas?
Aaron
Maybe you are looking for
-
I'm having troubles transfering two new playlists I just created on my new MacBook Air to my iPhone 5. I have some music on my iPhone that isn't on my MacBook yet and I don't want to lose the music on my iPhone. How do I just transfer the playlists?
-
How do I stop iTunes from syncing purchased music?
Every time I sync my iPhone, purchased music is going back onto the phone. This is such an odd problem. I have 'manually manage music' selected. Nothing else gets automatically synced but my purchased music. Also, sometimes, when I delete music from
-
Why won't my iMessage work with only one contact in my phone all my other iMessages send and they just got an iphone but all their iMessages are sending also. I've tried restarting my phone, deleting messages, contact, restarting network
-
Variable height for iframe on different domain
Our company is developing an internal website. we are using extensis portoflio to manage a showcase area and moveable type for a blog area. On the pages where the portfolio content will be pulled in we are using an iframe (this content lives on the s
-
Linking to just parts of a video
Hello: Have a menu listing 12 technology terms...the first option is to play entire 10 min video (which has 12 chapter markers), subsequent list on the menu are the 12 terms...want each term on the menu to link to only its section on the 10 min video