有什么需要在一个.war文件部署Flex应用程序? [英] What needs to be in a .war file to deploy a Flex application?

查看:231
本文介绍了有什么需要在一个.war文件部署Flex应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Flex Builder 3为创建可使用LiveCycle Data Services的更大的Flex / Java项目的一部分,Flex应用程序。 Flex Builder中创建和部署.war文件,这方便了开发周期,但我不明白.war文件是为了部署和运行遏制。

I've been using Flex Builder 3 to create Flex applications that are part of larger Flex / Java project using LiveCycle Data Services. Flex Builder creates and deploys the .war file, which is convenient for the development cycle, but I don't understand what the .war file has to contain in order to deploy and run.

我已经通过试验和错误,改变Flex项目的某些属性(即上下文根)发现可以打破或修复中的应用,并以某种方式这些设置使之成为.war文件。

I've found through trial and error that changing certain properties of the Flex Project (i.e. the Context Root) can break or fix the application, and somehow those settings make it into the .war file.

我需要得到蚂蚁下实施的整个构建过程,更重要的是,我需要了解哪些项目的Flex部分取决于。我一直没能找到描述了一个.war文件必须包括部署一个Flex / Java应用程序的任何文件,但是。

I need to get the entire build process implemented under Ant, and more importantly, I need to understand what the Flex part of the project depends on. I haven't been able to find any documentation that describes what a .war file has to include to deploy a Flex / Java application, however.

例如,Flex Builder中创建一个web.xml文件,并用正确的标签填充它。但如果我添加其他功能我是否需要额外的标签在web.xml中?

For example, Flex Builder creates a web.xml file and populates it with the correct tags. but if I add other features do I need additional tags in web.xml?

有谁知道在哪里我可以为Flex / Java项目.war文件的内容找到文档?

Does anyone know where I can find documentation on the .war file contents for a Flex / Java project?

推荐答案

点击这里,查看示例应用程序:

Check out the sample applications here:

<一个href=\"http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=build_apps_3.html\" rel=\"nofollow\">http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=build_apps_3.html

这些应用会给你什么需要在战争中走了一些想法。概括地说有使用LCDS或WAR在一个标准的WAR 4显著位置,增加一个显著位置的Blaze DS:

Those apps will give you some idea of what needs to go in the WAR. In a nutshell there are four significant locations in a standard WAR and one additional significant location in WAR using LCDS or Blaze DS:

myapp.war/
  WEB-INF/    <-- not accessible via the browser over HTTP
    classes/  <-- compiled classes and configuration files (this is where your .class files and jdbc.properties would go)
    flex/     <-- LCDS XML config files (services-config.xml)
    lib/      <-- web application libraries (.jar files, for LCDS and other tools you might be using)
    web.xml   <-- web application configuration

Flex应用程序本身可能会在myapp.war根目录或您选择除了WEB-INF中的任何子目录坐。

The Flex application itself will likely sit in the root of myapp.war or in any subdirectory of your choosing except for WEB-INF.

不过,如果你研究的样本应用程序,让你的Ant脚本构建,你看到有你不应该有太多的问题相同的结构。

However if you study the sample apps and get your Ant script building the same structure that you see there you shouldn't have too many problems.

这篇关于有什么需要在一个.war文件部署Flex应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆