Deploying Flex app online
Dear,
I'm searching a way out to deploy my flex application online. But still it won't work.
Does anyone have a tutorial or some info about putting a flex application online, using zend amf?
If I run everything on my localhost, it works.
But if I put it online.. I get a Badversion Call.. Or other errors.
I putted the ZendFramework folder online, in the root of my host and I adjusted the services that have been automaticly created with my sql password, host, username,...
Thanks
Most Flex applications are deployed by simply copying the HTML wrapper and SWF file somewhere on the server where the server will respond if that URL is requested. It's just a matter of copying a few files to the server.
Is it the case that you are not familiar with deploying to J2EE servers in general? I'm not familiar with it, but I thought if you were, then you could just copy the files.
If this post answered your question or helped, please mark it as such.
Similar Messages
-
I'm using FB3 to build and release Flex app. Copy the
bin-debug directory out of the workspace and change the directory
name, make a zip file from the directory.
Upload the zip file to the server and unzip the file.
FB3 creates a html wrapper for the swf file. Is accessing the
swf file directly better than going through the HTML
wrapper?This is actually more of a SAP J2EE engine question as there
may be some set up that it keeping it from accessing the correct
jar files. I'm not sure how the SAP J2EE works, but it has tomcat,
the solution might be found here:
http://forum.java.sun.com/thread.jspa?threadID=487257&messageID=2283292
The mx4j-jmx.jar probably has your missing files. You can
download it here (
http://mx4j.sourceforge.net/)
and see if that works. -
Security for deployed Flex Apps
I know that there are many decompilers available for .SWF
files. How can you make your Flex apps secure ?
I have seen this product, is this reccomened for flex
http://www.amayeta.com/software/swfencrypt/Refer tohttp://www.oracle.com/technology/documentation/1012_solaris/install.1012/install/ports.htm
-
Deployment of Flex app to web and app server
Hi
I'm working on putting a Flex front-end on an existing J2EE
app which gets deployed as an ear file. The architecture consists
of web server, app server and database server. Is the following
approach to deployment possible / recommended?
My Flex app will be deployed to the web server. The J2EE ear
file will be deployed to the app server (Weblogic). BlazeDS will be
bundled within the ear file as a war file. Remote Objects will be
configured in my BlazeDS configuration files to enable me to access
the code in my J2EE app. In the compiler options of my Flex app,
I'll be setting the server root folder and server root URL to point
to the BlazeDS war file on my app server.
At present I'm at the stage where I can run my Flex app
directly from Flex builder on my development PC and it's able to
connect tto the J2EE app, which is running on the app server
(Weblogic) also on my development PC. I can't find documentation
explaining how to extend this to work on a multi-tier architecture.
Thanks
DavidHi,
I replied to your post in FDS forum. Please visit the URL
below for the response.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=583&threadid=1373523
Hope this helps. -
Using Weblogic to Deploy Simple Flex App
Hi,
I am trying to deploy a simple Flex application in a weblogic8.1 server , so that I can use it locally.
Can any one please guide me where and how I have to deploy my flex app .
I am pretty new to this can any body provide me a guide or walk through step wise for me.
More over What is the url I need to give in the browser to access the flex app I deploy in the Weblogic server.
(At present I am using the IIS -- just copying the .swf file and wrapper html page in to the C:\Inetpub\wwwroot and giving http://localhost/test.html
in the browser to access it) --- How do I do this using Weblogic 8.1
thanks
NashHi again Nash,
the stuff I am doing at present is not yet permitted to be publicly available, but the principles are very straightforward. Remember that WebLogic is primarily concerned with server-side functionality and Flex with client-side, so there is not really a great deal of overlap. The place where your Flex instantiation code will sit is in one or other JSP, using code very like the templates that Adobe generate. The only thing you have to do is ensure that your JSP (or the controller/code files behind it) generate HTML that contains the necessary. I tend to use the Apache Beehive libraries for UI stuff, but from vague memory I don't think these were around in WL8 - however, it doesn't really matter what tag library you prefer as all you are doing is generating HTML that looks like the usual JavaScript calls to AC_FL_RunContent (or swfobject if you are using that method). Basically, just take the Adobe-generated template and wrap the necessary bits and pieces round the edge to make it a proper JSP.
When you need to make calls to get functionality, just use something like
service = new HTTPService();
separator_date = new Date();
service.url = "get_tool_list.jsp?sep=" + separator_date.valueOf();
service.addEventListener(FaultEvent.FAULT , fault_handler);
service.addEventListener(ResultEvent.RESULT, resultHandler);
service.resultFormat = "text";
CursorManager.setBusyCursor();
service.requestTimeout = WEB_SERVICE_TIMEOUT;
service.send();
and then inside get_tool_list.jsp (or whatever...) do the server-side functionality you need, and return the result in a suitable format that the Flex resultHandler method can then interpret and make use of.
Hope that helps,
Richard -
Loading purchased swf into Flash Builder 4 Flex app
I have purchased a Flash "fundraising thermometer" from an online Flash components site. It takes input from an xml file and displays a thermometer with the goal at the top and the current amount raised indicated. It came with the following files:
thermometer.swf
thermometer01.fla
thermometer01.html (A sample that works.)
xml/thermometer.xml (The source file: goal amount, current amount, mark interval, etc.)
caurina/transitions (Mostly .as files.)
Since the test html (thermometer01.html) works fine, I thought this would be a no-brainer.
I first unzipped the files into a "thermometer" folder in my current project. I then went into Flash Builder and created a SWFLoader object as follows:
<mx:SWFLoader
id="myLoader" source="../thermometer/thermometer.swf" complete="initThermometer();" autoLoad="true" scaleContent="false"/>\
private function initThermometer():void {
Alert.show('Thermometer loaded');
The Design view looks fine. I can see the thermometer default image (see below).
When I run the app, I get no errors, just a broken image link in a box (see below). The alert box also never shows up.
I'm new to Flex, so I may be doing something stupid that keeps this from working. I contacted the author of the thermometer widget but he doesn't know anything about Flex.
Any help figuring out how to get this to work in a flex app would be appreciated.You should probably add more event handlers to see what's going on. Especially "ioError". The complete list is below. For coverage, add a handler for each event. You can also use in MXML
complete="initThermometer(event)
and add an argument to your Actionscript method, to find out details about the event.
private function initThermometer(event:Event):void {
Alert.show('Thermometer loaded ' + event.type);}
Events
complete="No default"
httpStatus="No default"
init="No default"
ioError="No default"
open="No default"
progress="No default"
securityError="No default"
unload="No default
General info here:
http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html
I did not test my code suggestions, but it's probably close. -
Automating a flex app on a headless server
I have a flex chart drawing application that needs to be automated. When automated it will read in data from the DB, draw the charts, and save them as .png files. This works flawlessly on my localhost version of oc4j on my Mac. However it has never worked on our Solaris oc4j deployment which is a headless server. I've set flex to run as headless in the config files but no dice. How can I get this working? Here are some of the error messages I'm getting:
LINUX/UNIX browser attempting to launch /opt/sfw/bin/firefox http://flexdomain.yadayadyada
08/11/06 14:41:53
user dir: /usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/j2ee/home
08/11/06 14:41:54 ERR>The application 'firefox-bin' lost its connection to the display flexdomain. yadayadyada:1.0;
08/11/06 14:41:54 ERR>most likely the X server was shut down or you killed/destroyed
08/11/06 14:41:54 ERR>the application.
08/11/06 14:41:54 ExitValue: 1
And here's a snippet from the Java which launches the flex app in the firefox browser:
String cmd = "/opt/sfw/bin/ff.sh "+ url; // ff.sh is a script which sets DISPLAY and launches firefox with the flex url
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(cmd);
I'm using 10g, by the way.
Thanks!
Edited by: Solerous on Nov 7, 2008 7:04 AMOk, I'm convinced that this is some sort of configuration problem. I can get the browser to launch when written as a simple java program compiled at the command line:
import java.util.*;
import java.io.*;
public class Launcher {
public static void main(String args[]) throws IOException {
String url = "http://www.ebay.com";
String[] commands = {"/bin/sh", "-c", "/opt/sfw/bin/firefox ", url, "-width", "1600", "-height", "1200", ":5"};
ProcessBuilder pb = new ProcessBuilder(commands);
Map<String, String> env = pb.environment();
env.put( "DISPLAY", ":5" );
Iterator it = env.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry)it.next();
System.out.println("\t>> environ: "+pairs.getKey() + " = " + pairs.getValue());
Process process = pb.start();
The output is just to show the environment variables and it looks like this:
>> environ: XFILESEARCHPATH = /usr/dt/app-defaults/%L/Dt
>> environ: LANG = C
>> environ: DISPLAY = :5
>> environ: ORACLE_BASE = /oracle
>> environ: ORACLE_TERM = vt100
>> environ: PWD = /usr/local/u00/de8
>> environ: _ = /usr/bin/java
>> environ: MAGICK_HOME = /usr/ImageMagicK/ImageMagick-6.4.4
>> environ: ORACLE_SID = cots
>> environ: USER = de8
>> environ: NLSPATH = /usr/dt/lib/nls/msg/%L/%N.cat
>> environ: EDITOR = /bin/vi
>> environ: MOZILLA_SOLARIS_PATCHCHECKER = disable_patchchecker
>> environ: HOME = /u00/de8
>> environ: SSH_CONNECTION = 128.219.196.118 64994 160.91.230.33 22
>> environ: LD_LIBRARY_PATH = /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/server:/usr/jdk/instances/jdk1.5.0/jre/lib/sparc:/usr/jdk/instances/jdk1.5.0/jre/../lib/sparc:/opt/SUNWspro/lib:/usr/openwin/lib:/usr/dt/lib:/usr/ImageMagicK/ImageMagick-6.4.4/lib::/oracle/product/9.2.0/lib
>> environ: LOGNAME = de8
>> environ: SHELL = /bin/ksh
>> environ: ORACLE_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
>> environ: SSH_TTY = /dev/pts/1
>> environ: MAILMSG = [YOU HAVE NEW MAIL]
>> environ: MANPATH = /usr/opt/SUNWmd/man:/usr/man:/usr/local/man:/usr/share/man:
>> environ: NNTPSERVER = time.ornl.gov
>> environ: SSH_CLIENT = 128.219.196.118 64994 22
>> environ: MAIL = /var/mail/de8
>> environ: TZ = US/Eastern
>> environ: PS1 = ${PWD###/} $
>> environ: TERM = vt100
>> environ: PATH = /oracle/product/10.1.3.2.0/OracleAS_1:/oracle/product/10.1.3.2.0/OracleAS_1/OPatch:/usr/xpg4/bin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/usr/ucb:/etc:/usr/sbin:/u00/de8/bin:/opt/NSCPcom:/sbin:/usr/local/etc:/usr/lib:/usr/opt/SUNWmd/sbin:/usr/bin:/usr/local/bin/perl5.00502:/usr/openwin/bin:/opt/sfw/bin:/usr/ImageMagicK/ImageMagick-6.4.4/bin:.:/oracle/product/9.2.0/bin
I decided to output the env vars in hopes that it would show what needs to be reset. But if I use the exact same code in my deployment, it fails and I get the following env settings:
08/12/09 14:14:27 >> environ: XFILESEARCHPATH = /usr/dt/app-defaults/%L/Dt
08/12/09 14:14:27 >> environ: LANG = C
08/12/09 14:14:27 >> environ: DISPLAY = :5
08/12/09 14:14:27 >> environ: ORACLE_CONFIG_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
08/12/09 14:14:27 >> environ: NLSPATH = /usr/dt/lib/nls/msg/%L/%N.cat
08/12/09 14:14:27 >> environ: TMP = /tmp
08/12/09 14:14:27 >> environ: TZ = US/Eastern
08/12/09 14:14:27 >> environ: NLS_LANG = AMERICAN_AMERICA.WE8MSWIN1252
08/12/09 14:14:27 >> environ: ORA_NLS33 = /oracle/product/10.1.3.2.0/OracleAS_1/ocommon/nls/admin/data
08/12/09 14:14:27 >> environ: LD_LIBRARY_PATH = /usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/lib/sparc/server:/usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/lib/sparc:/usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/../lib/sparc:/oracle/product/10.1.3.2.0/OracleAS_1/opmn/lib:/oracle/product/10.1.3.2.0/OracleAS_1/lib32
08/12/09 14:14:27 >> environ: X_LD_LIBRARY_PATH_64 = /oracle/product/10.1.3.2.0/OracleAS_1/lib
08/12/09 14:14:27 >> environ: ORACLE_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
08/12/09 14:14:27 >> environ: SHELL = /bin/bash
Does anyone know how I can get the deployed version (running in the server container) to work exactly in the same way as the version run from a simple command line? -
Configuring socket policy for flex apps(with blocked port 843)?
We have built several flex-based ecommerce apps for a fortune 500 customer of ours, that for various reasons, we need to use sockets to a different domain and requires a socket policy file, but were having trouble configuring our flex apps for deployment in thier enviornment where they are blocking virtually everything except port 80 . The current documentation in in regards to socket policy files and crossdomain files in a non-standard configuration not using port 843 is not providing any useful help to us.
Here is the scenario:
Flex apps are served from domain www.a.com in to users browsers via http. The apps then make socket connections to domain www.b.com:80 where there are php scripts serving json data to the flex apps via port 80 using http(we use sockets because we need to set and read back http headers). The problem is the flex apps cannot make socket connections to the www.b.com domain without errors like below(unless we setup a socket policy server on port 843 of www.b.com, in which case everything works):
Warning: Timeout on xmlsocket://www.b.com:80 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation.
Error: Request for resource at xmlsocket://www.b.com:80 by requestor from http://www.a.com/bin-debug/DownloadManagerFlex.swf is denied due to lack of policy file permissions.
Error: Request for resource at xmlsocket://www.b.com:80 by requestor from http://www.a.com.us/bin-debug/DownloadManagerFlex.swf is denied due to lack of policy file permissions.
Since we cannot use port 843 for the socket policy file server, we setup the socket policy server on a different ip in the same domain: spf.b.com:80 (using the sample perl code Adobe provides), and per the docs(cited below), use Security.loadPolicyFile("xmlsocket://spf.b.com:80") before we invoke "socket.connect", to supposedly tell the flash player to check there for the socket policy file. The problem, as you can see from the error log, is that the loadPolicyFile("xmlsocket://spf.b.com:80") is ignored.
No matter what we do or how we set things up, we cannot get the flash player to recognize the loadPolicyFile(), it always wants to go to the port were making the socket connection on. It is unclear how to properly configure the flex app, socket policy file and crossdomain file for the above scenario. The docs allude to being able to serve the socket policy file from a different port 80 in the same domain as the socket connection were trying to make, but were having no luck with that.
->Can anyone shed some light on how to make this work or what are we missing/doing wrong? Also, if we can get this to work, are we stuck with a 3 second delay because this(very large) customer is blocking port 843?
As an aside, the documentation for all this is a bit scattered, unclear and contrdictory:
One document says:(http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_07.html)
"This warning usually means one of two things: first, that you need to set up a
socket policy file server on port 843, which is the first location that Flash
Player checks by default; or second, that you need to provide more explicit
guidance to Flash Player from ActionScript by calling loadPolicyFile to indicate the location
of a socket policy file. When you call loadPolicyFile rather than allowing Flash Player to check
locations by default, Flash Player will wait as long as necessary for a
response from a socket policy file server, rather than timing out after 3
seconds."
Another document says(http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html):
"If an ActionScript Security.loadPolicyFile() command exists within the SWF file, then the Flash Player runtime checks that location. Flash Player checks the destination of the loadPolicyFile() only after it has checked the master policy file on port 843 for permission to acknowledge other policy files. If the developer has not specified a loadPolicyFile() command, then Flash Player checks the destination port of the connection."I found the reason why the Flex application was ignoring the socket policy (crossdomain.XML). I have a policy server that listens to port 843 and submits the policy to the Flex client. My policy was getting ignored by the Flex application and I was getting the sandbox security error you were getting. The solution to this problem isto write a null byte right after the policy server sends the policy. I'm using Apache Mina that is wrtten is Java and the null byte is written as follows:
public void sessionCreated (IoSession session)
throws Exception
session.write(_policy); -- > policy string
session.write("\u0000"); --> null byte
//session.close(true); ---> No need to close the session because it is closed by the Flex client after it receives the null byte.
Now my Flex application can read and accept the policy from port 843 and I'm not getting more security violations.
Thanks for your reply,
Alberto -
How to migrate a flex app from Flex Builder 3 to Flash Builder 4.7
Hello,
I have written an extensive application using Flex Builder 3. I have maintained the app for several years using FB3. In the mean time I have created several mobile apps using Flash Builder 4.7. So I am very familiar with the the new framework. However, my client has requested some big changes to the app. I figured this would be a great opportunity to migrate the app to FB4.7. I would like to keep the mx structure for the time being. So, are there any good documents concerning this migration path? What SDK should I use. Should I start using the Apache Flex SDK?
Thanks,
--randuHello Raja,
Thanks. Your reply has been very helpful.
For deploying the Flex app, as a web on NW 04S, I did the following:
- Created a web project and included the following files as web-content. These files were created using the Flex builder or in the Flex development perspective of NWDI - CE, you can find them in the "bin" folder of your Flex project.
- AC_OETags.js
- your-app.html
- your-app.swf
- history.htm
- history.js
- history.swf
- playerProductInstall.swf
- crossdomain.xml - This file is important, if our Flex app wants data from the server.
( I made the simplest possible crossdomain.xml containing
<allow-access-from domain="*" secure = "false"/>
- Declare "your-app.htm" as the welcome file in web.xml
- Package, this .war after building this web project in an Enterprise application project and build it.
Now, you have the .ear made, which is deployable on your NW Web AS.
Apart from this, another thing which is important to be included in your Flex mxml code is the following:
( Thanks to Abesh for this........ )
- You have to tell the Flex app, in the action script, as to from where should the Flash engine pick the crossdomain.xml ( in case you are accessing the server for data from your app)
You might have noticed, we packaged the crossdomain.xml along with our other web content in the .war.
So mention, something like this in your action script.
Security.loadPolicyFile("http://<hostname>:<http-port>/<context-root fo your web app>/crossdomain.xml");
The code will work like a charm.
Hope this helps everyone.
Thanks guys.
Best Regards, Gagan. -
I have created a Flex App with out a Server now I need one
So I'm new to Flex and didn't think the project needed a
server at first (poor planning on my part) now I'll need one. I
have alot built and would like to just conevert the app if I can.
The project has been sourced in to Subversion, I would like not to
have to rebuild the repository.
Thanks for the helpOK, so I think what you're saying is that you have developed
locally, which is good, and are using java objects as your back end
solution - I'll just state that Java is the *only* method of data
transfer that I haven't used (I use ColdFusion, XML, WEb Services
mostly), so at some stage I may not be able to help you.
Still, lets see how far we get. So, you can deploy your SWF
file to any web server, and browse to it with your browser. The
output in the /bin directory will include the SWF (usually the name
of the project) and a html wrapper file.
Is the Flex app actually rendering (i.e., your containers)
before you get the error? (I'm trying to determine if the problem
is the data transfer or the flex app proper)??
David -
Issue in setting flex app in load balanced environment using SSL
I have developed the dashboard in my application using flex 3.0. For this I have used JSP wrapper around the flex application. My application runs on JBoss application server. for communication between flex app and my application i am using LCDS. HTTPService component is being used to receive data from the server. Channel definitions are given in service-config.xml for amf and http channels and for both secure secure and not secure mode. In my proxy-config.xml i have defined Channels and destinations.
services-config.xml
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel-definition>
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>
<channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
</channel-definition>
<channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>
proxy-config.xml
<default-channels>
<channel ref="my-http"/>
<channel ref="my-amf"/>
<channel ref="my-secure-http"/>
<channel ref="my-secure-amf"/>
</default-channels>
<destination id="dashboardService">
<properties>
<url>/kr/servlet/DashboardServlet</url>
</properties>
</destination>
<destination id="dashboardJSPService">
<properties>
<url>/kr/krportal/dashboardJSPService.jsf</url>
</properties>
</destination>
In my development environment both secure and non secure mode were working fine. Now when I have deployed it behind the load balancer(which accepts secure requests only and if the request is not secure it redirects it to secure url) there is no response from the message broker servlet. One thing more I have observed is when the environment is non load balanced there are request like 'http://{server.name}:{server.port}/{context.root}/messagebroker/http'. and these requests are post request. But in load balanced environment with ssl the request is again like 'http://{server.name}:{server.port}/{context.root}/messagebroker/http' which is a post request and it is redirected to 'https://{server.name}:{server.port}/{context.root}/messagebroker/http' which is a get request. The content returned by this get request is null.
Looking for some comments
Thanks
Abhishek Guptaif the load balancing environment is already well configured, thes rest is very easy, there is no difference between a configuration of load balancing environment and a simple one, for you that is transparent, except the manual deployment and manual copying
of files in the directory 15 -
Port flex app from tomcat to oracle oas
any direction given will be appreciated. i have a flex 3 app up and running on my localhost. i'm using a local install of tomcat(6.0.18) and i'm also using blazeds(3.2.0.3978). this combined java/flex app is using remote objects connecting to a back end oracle db on a diff host. as i mentioned... this app runs fine on my local tomcat server. i'm looking for docs or direction to port this over to an oracle app server(10.1.3.4). i have exported my project as a war file... deployed it error free on my OAS 10.1..3.4 server. the app loads but fails to do any remoting with [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http:/*****/messagebroker/amf'"]. i'm not sure if there are config changes i need to make before export or after deployment on oracle app server.
thanks
-doug-All jars are inside war so no need to conf, look inside oracle all server logs for error
-- Sent from my Palm Pre
On Apr 5, 2010 4:18 PM, msdawgs <[email protected]> wrote:
thanks for the reply...
url returns...404 Not FoundServlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
let me take a step back... i have not done any initial config of this oracle app server for this particular application. do i need to get blazeds.jar and ojdbc14.jar over there first? then deploy?
thanks
-doug- -
hi people, i know this should be the n+1 time this question is posted here, i have read all post before and follow their instructions to have a Tomcat 6 working with a very simple adf components. the error i get is Tomcat cant deploy that app. this is how tomcat is configured:
inside lib dir:
1116 adf-controller-api.jar
132 adf-controller.jar
500 adf-controller-rt-common.jar
4 adf-controller-security.jar
668 adf-faces-databinding-rt.jar
32 adflibfilter.jar
8 adflogginghandler.jar
7576 adfm.jar
44 adfmweb.jar
16 adf-pageflow-dtrt.jar
216 adf-pageflow-fwk.jar
340 adf-pageflow-impl.jar
44 adf-pageflow-rc.jar
1568 adf-richclient-api-11.jar
7320 adf-richclient-impl-11.jar
316 adf-share-base.jar
648 adf-share-ca.jar
3004 adfsharembean.jar
16 adf-share-security.jar
268 adf-share-support.jar
16 annotations-api.jar
1944 cache.jar
56 catalina-ant.jar
128 catalina-ha.jar
1160 catalina.jar
232 catalina-tribes.jar
112 commons-el.jar
56 db-ca.jar
1544 dms.jar
492 dvt-databindings.jar
128 dvt-facesbindings.jar
3420 dvt-faces.jar
6368 dvt-jclient.jar
1244 dvt-trinidad.jar
1268 dvt-utils.jar
32 el-api.jar
608 fmw_audit.jar
808 glassfish.jsf_1.2.9.0.jar
368 glassfish.jstl_1.2.0.1.jar
344 identitystore.jar
368 inspect4.jar
108 jasper-el.jar
516 jasper.jar
1376 jasper-jdt.jar
2512 javatools-nodeps.jar
64 javax.activation_1.1.0.0_1-1.jar
352 javax.jsf_1.2.0.1.jar
16 javax.management.j2ee_1.0.jar
12 javax.transaction_1.0.0.0_1-1.jar
3004 jewt4.jar
364 jmxframework.jar
612 jmxspi.jar
444 jps-api.jar
648 jps-common.jar
24 jps-ee.jar
1644 jps-internal.jar
112 jps-unsupported-api.jar
72 jrf-api.jar
332 jsf-api.jar
776 jsf-ri.jar
76 jsp-api.jar
24 jstl.jar
5488 mdsrt.jar
2476 ojdbc6dms.jar
1948 ojdbc6.jar
4 oracle-el.jar
216 oraclepki.jar
168 org.apache.commons.beanutils_1.6.jar
144 org.apache.commons.digester_1.8.jar
40 org.apache.commons.logging_1.0.4.jar
168 osdt_cert.jar
256 osdt_core.jar
88 servlet-api.jar
56 share.jar
388 standard.jar
744 tomcat-coyote.jar
228 tomcat-dbcp.jar
72 tomcat-i18n-es.jar
52 tomcat-i18n-fr.jar
56 tomcat-i18n-ja.jar
0 tree.txt
1224 trinidad-api.jar
4220 trinidad-impl.jar
1244 wls-api.jar
4 wls.jsf.di.jar
1196 xercesImpl.jar
752 xmlef.jar
1412 xmlparserv2.jar
i am deploying the app directly from jDeveloper the same way shay does in a video tutorial i have found. it looks like everything goes fine:
[02:47:09 PM] ---- Deployment started. ----
[02:47:09 PM] Target platform is (Tomcat 6.x).
[02:47:09 PM] Running dependency analysis...
[02:47:09 PM] Building...
[02:47:16 PM] Deploying profile...
[02:47:17 PM] Wrote Web Application Module to /home/isanchez/jdeveloper/MyGecu/View/deploy/GeCUweb.war
[02:47:18 PM] Wrote Enterprise Application Module to /home/isanchez/jdeveloper/MyGecu/View/deploy/GeCUweb.ear
[02:47:18 PM] Copied /home/isanchez/jdeveloper/MyGecu/View/deploy/GeCUweb.war to /usr/share/Tomcat6a/webapps
[02:47:18 PM] Elapsed time for deployment: 9 seconds
[02:47:18 PM] ---- Deployment finished. ----
the application is very simple. it only shows a login.jsp page with adf components, and it would be really nice this applications should be working like this. I have finished a full application using ADF with jDeveloper and I only need this final step.
this is how the app is configured by the developer:
WEB-INF/web.xml:
<?xml version = '1.0' encoding = 'UTF-8'?>
<web-app 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"
version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
<param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
<param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
<param-value>false</param-value>
</context-param>
<filter>
<filter-name>JpsFilter</filter-name>
<filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
<init-param>
<param-name>enable.anonymous</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter>
<filter-name>trinidad</filter-name>
<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>JpsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>trinidad</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>BIGRAPHSERVLET</servlet-name>
<servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>BIGAUGESERVLET</servlet-name>
<servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>MapProxyServlet</servlet-name>
<servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>GatewayServlet</servlet-name>
<servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/afr/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>BIGRAPHSERVLET</servlet-name>
<url-pattern>/servlet/GraphServlet/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>BIGAUGESERVLET</servlet-name>
<url-pattern>/servlet/GaugeServlet/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MapProxyServlet</servlet-name>
<url-pattern>/mapproxy/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/bi/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>GatewayServlet</servlet-name>
<url-pattern>/flashbridge/*</url-pattern>
</servlet-mapping>
</web-app>
WEB-INF/trinidad-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
<skin-family>fusion</skin-family>
</trinidad-config>
and WEB-INF/faces-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
<application>
<default-render-kit-id>oracle.adf.rich</default-render-kit-id>
<locale-config>
<default-locale>es</default-locale>
<supported-locale>es</supported-locale>
</locale-config>
</application>
<managed-bean>
<managed-bean-name>SelectedApp</managed-bean-name>
<managed-bean-class>gecu.view.SelectedApp</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>DatabaseQueryBean</managed-bean-name>
<managed-bean-class>gecu.view.DatabaseQueryBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>ClavesQueryBean</managed-bean-name>
<managed-bean-class>gecu.view.ClavesQueryBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>LoginBean</managed-bean-name>
<managed-bean-class>gecu.view.LoginBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>usuario</property-name>
<property-class>java.lang.String</property-class>
<value></value>
</managed-property>
<managed-property>
<property-name>password</property-name>
<property-class>java.lang.String</property-class>
<value></value>
</managed-property>
</managed-bean>
<navigation-rule>
<from-view-id>/login.jsp</from-view-id>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/login.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/core/select.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>logout</from-outcome>
<to-view-id>/logout.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/core/main.jsp</from-view-id>
<navigation-case>
<from-outcome>done</from-outcome>
<to-view-id>/core/main.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>logout</from-outcome>
<to-view-id>/logout.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>select</from-outcome>
<to-view-id>/core/select.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>filter</from-outcome>
<to-view-id>/util/filters.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>export</from-outcome>
<to-view-id>/util/exports.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>calc</from-outcome>
<to-view-id>/util/calcs.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/core/select.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/core/main.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/util/filters.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/core/main.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/util/exports.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/core/main.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/util/calcs.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/core/main.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/login.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>ControlSession</managed-bean-name>
<managed-bean-class>gecu.model.ControlSession</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>backing_util_calcs</managed-bean-name>
<managed-bean-class>gecu.view.Calcs</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<!--oracle-jdev-comment:managed-bean-jsp-link:1util/calcs.jsp-->
</managed-bean>
<managed-bean>
<managed-bean-name>backing_util_exports</managed-bean-name>
<managed-bean-class>gecu.view.Exports</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<!--oracle-jdev-comment:managed-bean-jsp-link:1util/exports.jsp-->
</managed-bean>
<managed-bean>
<managed-bean-name>backing_util_filters</managed-bean-name>
<managed-bean-class>gecu.view.Filters</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<!--oracle-jdev-comment:managed-bean-jsp-link:1util/filters.jsp-->
</managed-bean>
</faces-config>
If someone has got really nicely configured the tomcat 6 running ADF components error free, it would be good if you can share it with us, i run out ideas and still got no answers.
Really thanked for all help received.
isyhi John,
you are correct. I would like to ask you something else if I can, becouse programming these days is a matter of time, and you may know how much that cost to a company. Our other option, instead of working with Tomcat, it is an Oracle IAS server we have here, but I do not know if that is supported with ADF components. We need to deploy our recently made application from jDeveloper 11g, and we need to have the production server online next week to start working on.
Something else I would like to comment, just to talk about, java is made for people, and it is really powerfull. Java enterprise web applications also, and it would be good, if you are developing with ADF, to be able to transport those applications to be used under different web servers. Just to make them "academical" and ease to learn. This last quote is just my own opinion as a java developer and learner on web development using powerfull jsf components like adf.
sincerely
Israel -
Flex app calling CF cfc to download file gets "Channel disconnected" fault
I am a newbie with ColdFusion and Flex. I am trying to implement file download/streaming functionality in my Flex 4.5 application and I am running ColdFusion 9 as my back end. More specifically, I have a component in my Flex app that displays a list of files - some of these files can be available for opening (or "previewing") via the client. I want the client to be able to click a button and download the file from the ColdFusion server, after the appropriate security checks are performed (also in ColdFusion). Right now I am just trying to get the basic download functionality to work with a very simple cfc. Here is the cfc code:
<cfcomponent displayname="Preview Document"
output="false">
<cffunction name="streamFile" access="remote" returntype="any">
<cfargument name="filename" displayName="Filename" type="string" required="true" />
<cfheader name="Content-Disposition" value="attachment;filename=#filename#" >
<cfcontent type="application/unknown" file="c:\myserverpath\#filename#">
</cffunction>
</cfcomponent>
When I try this via a cfm, it works fine (I get a File Download window where I can choose to either open or save the file). But when I try to use this in my Flex app, I get an error.
In my Flex app, I have a RemoteObject to access my cfc and a CallResponder:
<s:RemoteObject id="PreviewDocument"
source="PreviewDocument"
destination="ColdFusion"
showBusyCursor="true"/>
<s:CallResponder id="PreviewDocumentResult"
fault="Alert.show('CallResponder PreviewDocumentResult: ' +
event.fault.faultString + '\n' + event.fault.faultDetail)"
result="PreviewDocumentResult_resultHandler(event)"/>
Then I created a button whose click even executes the following line:
PreviewDocumentResult.token = PreviewDocument.streamFile("myfile.pdf");
When I run my app, I get the following fault:
faultCode = "Client.Error.DeliveryInDoubt"
faultString = "Channel disconnected"
faultDetail = "Channel disconnected before an acknowledgement was received"
I have tried many different approaches and searched online for help with this fault, but I could not find any helpful clue to where I can start investigating this.
Can anyone help with why I am getting this fault?
Thanks in advance.@sir_teddy, thanks for your reply again.
Yes I have created a simple cfc that returns a string successfully (in fact I had used the same cfc and basically just commented out the cfcontent and cfheader tags, and returned the name of the file being requested in the cfreturn tag). When I un-comment the cfcontent tag from the code, the error comes back.
So I am really at a loss here... -
Interaction with Content behind Transparent Flex App
Hi,
I have a Flex application with wmode=transparent and a transparent section that allows whatever is underneath it on the HTML page to show through. In this case, what's showing through is another Flash application. This works fine, but I can't interact with the Flash application showing through.
I tried setting the z-index of the Flash app to something greater than my Flex app, and that worked, but unfortunately that solution doesn't work for my case because the Flex application has components that occasionally overlay in that area, and setting the z-index of the Flash app to be higher means those components are always stuck behind it. Also unfortunately I don't control the loading of that Flash app, so I can't load/embed it into my app to get around this problem.
Are there any other ways to do this?
Cheers,
KarthikUPDATE:
So, I spent an entire work-day on trying to get this to
work.... I finally ended up hacking the flex html filter library to
display the formatted text as best as I could. It basically created
a bunch of "<textformat>" tags. There were still a few
layout/indentation issues. So, I tested it, and deployed to our
test website, and got approval from one of the managers. Then, I
come in this morning, and the all my work is gone. "Did I deploy
the files to right server? I know I tested it last night....", I
asked myself. The dates on the files were from last night. Odd. So
I ask my supervisor if I was looking at the correct website for the
server where I deployed the files.... "Oh yeah", he said, "I had to
roll that back, because [the manager who gave me the content]
didn't like how it looked." Nevermind that the files included other
changes as well (it was a nightly build, the source control for the
source files are done through a different source control program on
a different server), so now the whole thing looks screwed up.
Oh well.... I really need a blog to complain about this....
Thanks everyone for your help.
Maybe you are looking for
-
I'm programming a RMI based messenger system. I tested the server and a java console client... all worked very well! After that, I programmed a very simple test applet (source below). import java.awt.*; import java.awt.event.*; import java.applet.*;
-
Wirelessly Connected But No Internet!
Hi, I have run into my second problem trying to connect this new Airport Base Station. All my wired computers have internet connection but my laptop connecting wirelessly has none! It is connected to my wireless network and the connection has perfect
-
Using two drives as source/target for copying a disk?
Greetings, Please bear with what is probably a stupid question from a pc ship-jumper Mac newbie. I ordered my new Mac Pro with two Pioneer optical drives in order to, as Apple says, "streamline disk burning". I learned that Toast is the gold standard
-
Pessimistic Locking (relating to COBOL)
Hi, Apologies for the SA I've written below - just wanted to explain the context around my problem. I'm working on an application which replaces the Micro Focus COBOL file handler & allows data in COBOL VSAM files to be migrated to Oracle in such a w
-
Powerbook shuts down without warning
Lately, when I am running on battery, the Powerbook will shut-off without warning. This happens anywhere from 20 minutes to an hour. The battery is showing fully charged when plugged into an ac adapter. When the shutdown occurs, I can not restart fro