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

问题描述

我一直在使用 Flex Builder 3 创建 Flex 应用程序,这些应用程序是使用 LiveCycle Data Services 的更大 Flex/Java 项目的一部分.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.

我需要在Ant下实现整个构建过程,更重要的是我需要了解项目的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:

http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=build_apps_3.html

这些应用程序会让您对 WAR 中需要做的事情有所了解.简而言之,在标准 WAR 中有四个重要位置,在使用 LCDS 或 Blaze DS 的 WAR 中有一个额外的重要位置:

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 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 16:48