The target execution of WebSphere Application Server v7.0 is not defined - apache-flex

I'm using spring with flex (with IDE flash builder 4.6)
I have this error The target execution of WebSphere Application Server v7.0 is not defined. please where should I configure the server
thanks for helping

Sounds like you're running into a problem using FB's application server integration. I don't even remember FB supporting WebSphere.
It's getting hard to remember how this used to be done, but I know we never used to use this type of functionality in Flash Builder. It's possible to deploy your mid-tier app in Tomcat (or WAS), start that, and then run/debug your Flex app which connects to that independently started server.
Depending on how it connects (Blaze/Granite remoting, REST, etc) it may be harder or easier to do that, but the point is that I'm sure you don't need to use this functionality in FB.
If you still want to try using that functionality, I'm pretty sure the configuration is somewhere in that list on the left side of the dialog posted, but again I never bothered with it.

Related

Weblogic Console not showing applications

I use a Weblogic 10.3.6 Server on which I have numerous Enterprise Applications, Web Applications and Libraries deployed.
A few days ago, after a deployment glitch, the Console's deployment view does not show applications anymore. Only libraries are listed.
Does anyone know where I can start looking to fix the problem? How are enterprise and web applications found by the server to be displayed?
Edit 1:
Applications are in fact running, accessible and listed under the /Environment/Server//Deployments tab. From there I cannot update/start/stop them, however. They are missing only in the /Deployments view.
config/config.xml seems to be correct. All applications are listed there.
Okay, that fixed it.
The Admin Server had an application called wls-cat.war installed, which failed upon server start. Apparently, it is Oracle's Classloader Analysis Tool which may come in useful in debugging. Not in this case, though. It failed on Admin Server startup. You cannot start, stop, deploy, undeploy or redeploy it with the standard means (it is an internal application).
In the end, I shut down the server and manually removed it from the /config/config.xml file.
<app-deployment>
<name>wls-cat</name>
<target>SBV00PG9_PERM01_ADMIN_SPU_PORTAL</target>
<module-type>war</module-type>
<source-path>${WL_HOME}/server/lib/wls-cat.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<cache-in-app-directory>false</cache-in-app-directory>
</app-deployment>
After that, the server shows applications again. I may need to reinstall the app at a later time, but for now the server seems to run well without it.
Very special thanks to Emmanuel Collin for setting me on the right path.

How to access local file system from Flex web application?

I'm trying to access local file system from Flex web application.
I know it is pretty difficult, but I think there must be a way. Is there a way that Flex app can use AIR components or maybe web application can call some AIR module in order to choose files and upload?
There is no direct way that a web based Flex/Flash application can access AIR based APIs. They aren't built into the Flash Player, but are rather extensions built into the AIR runtime. You can't access them directly because they aren't there.
If you have an AIR app installed on the user's local machine you can, in theory, use that app as a proxy with localConnection. That way the AIR app can access the file system directly, triggered by the browser based app. I'm not sure how user interaction would work, though.
If you have server software installed on the client machine, you can trigger file processing commands from Flex using RmoteObject/HTTPService/WebService commands. This wouldn't give the user any interaction ability and is not usually practical unless you have strong control over your client machines.
Either approach would present an app installation nightmare; which almost defeats the purpose of a browser based app in the first place.
You can use FileReference's methods to ask user to select files to open (load into flash, upload into server) or save (from server or bytes from flash).

Probable issues with running flex application/swf in local mode

We are developing client application for our solution. Its a desktop client. We are using flex for same. (Although I know flex is meant for web application and air application is best suited for desktop clients, but due to some build issues we can't go for air applications). Now according to our use case we required to read file from local file system which is not allowed in flex application due to sandbox policy. To override it we had planned to use it in local mode (i.e. running from local file system instead of deploying in web container). So after running application in local mode it bypasses sandbox policy and allows to read local file. Eventually we requires remote services call (either using web services or blaze ds) also in our application. To avoid sandbox restriction for network access in local mode we are planning to explicitly grant network access permission to our flex application. So does anybody finds any issues in this approach which I may encounter ?
Thanks,
Ankur Shah
As long as you make sure to use the local-with-networking security sandbox. This will allow you to access both the local file system and the network.
You can see more about the different sandbox types here: http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html
We had to avoid any of these kinds of issues by using Air with C# WebServices and HttpServices (twas an Air GUI with C# server-side running on Windows). Although not much help to you.
Another possible solution might be to use JavaScript within Internet Explorer to access the local file system via ActiveX controls (which I hav'nt done), and then use Flex's ExternalInterface API to grab the JavaScript/Html data from within the same browser (which I have).

Flex: Setting "Server Type" ...why?

Whenever I make a new Flex project it always asks me "Server Type". So far I have always checked "none", Although my server type is PHP and I usually access .php scripts to get information from data-bases just fine with server type not set. So what is server-type for? what does it do for me? if I can get some extra benefits from it I want to do that.
Thanks.
When you create a Flex application, you are asked the server type so that Flex can properly configure itself for your Application server, not web server. This is only if you're Flex application is going to be backed by an application server. In your case, you're just calling some PHP scripts and don't require full blown application server support.

Running asp.net app on localhost

This might be a 'duh' question after all.
Are there any caveats running an asp.net (3.5) application on a local host? Assuming I have all the required services installed, I am looking for pitfalls/ troubles in terms of
database access
reporting/ charting and other such features
performance
The main reason for this is that the app I am developing will be eventually hosted on a proper web server but till then I want to be able to use my app from a browser (for test, demos...).
[Note: till the time the app is hosted on a web server, only I will be using the app]
As long as you install all the same components (and the same versions of them to be 100% sure) on your computer as you have available on the server, there shouldn't be any difference at all in functionality. One thing to watch out for is that the app will certainly be less responsive when someone accesses it over the internet, compared to the client and server being the same machine.
You won't have any problems at all, this is how many people indeed test. When you are ready to move it online, just make sure the host supports everything you need.

Resources