在tomcat上部署flex

发布于 2024-09-01 18:44:48 字数 269 浏览 2 评论 0原文

我正在使用 Flash builder 4 (SDK3.5) 来创建我的 Flex 程序。 我想部署这个程序并将其加载到 tomcat 服务器。 我在项目属性中配置“flex server”根文件夹和其他参数。 问题是,我不知道如何使其通用。例如,我朋友的tomcat安装在计算机上的其他目录中。 我知道在 Eclipse 中我可以从 IDE 运行服务器和 tomcat。我看不到如何在 Eclipse 4 的 Flash 构建器插件中执行此操作。 有服务器配置,但没有 tomcat 的适配器。 有什么想法吗? 谢谢。

I am using Flash builder 4 (SDK3.5) to create my flex program.
I want to deploy this program and load it to a tomcat server.
I configure my "flex server" root folder and other parameters in the project properties.
The problem is, that i don't know how to make it generic. e.g. my friend's tomcat is installed in other directory on the computer.
I know that in eclipse i can run the server and tomcat from the IDE. I can't see how i do it in Flash builder plugin for eclipse 4.
There is a server configuration, but there isn't adapter for tomcat.
Any ideas?
thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦巷 2024-09-08 18:44:48

我建议您使用 flex ant 任务来编译和部署 swf。它提供与 Adob​​e Flex/Flash Builder 相同的功能,但更容易针对不同环境进行配置。这些任务基本上是命令行 Flex 编译器的包装器

一个好的起点是
http://www.adobe.com/devnet/flex/articles/flex_ant_pt1。 html

此外。在使用服务器连接的情况下,您应该查看 mcmlc ant 任务的 context.root 和 services 属性。

I suggest you use the flex ant tasks to compile and deploy your swf. It offers the same functionality as Adobe Flex/Flash Builder, but it is more easy to configure for different environments. The tasks are basically wrappers for the commandline flex compiler

A good place to start is
http://www.adobe.com/devnet/flex/articles/flex_ant_pt1.html

Furthermore. In your case with a server connection, you should take a look at the context.root and services property of the mcmlc ant task.

等风来 2024-09-08 18:44:48

我也有同样的困惑。我的做法是这样的。

创建 Flex 项目时不要指定服务器类型。在编译器参数中,您需要指定“-services”和“-context-root”。
-services 将指向您的 services-config.xml。这可以从 Eclipse 工作区指向,也可以将所有必需的配置文件从 Flex 文件夹复制并粘贴到任何其他位置,然后从那里链接它。仅在编译 Flex 项目时才需要此操作。因此它需要具有与您在项目中使用的相同的目的地。

-context-root 将是您的应用程序名称。

这使得它具有通用性。您可以在任何服务器中使用该 swf。

I also had the same confusion. My approach to this is like this.

Dont specify a server type while you create the flex project. In the compiler arguments you need to specify the "-services" and "-context-root".
-services will point to your services-config.xml. This can either be pointed from your eclipse workspace or copy and paste the all the required config files from the flex folder to any other location and link it from there. This is required only while compiling the flex project. So it needs to have the same destinations you use in your project.

-context-root would be your application name.

This makes it generic. you can use the swf in any server.

初吻给了烟 2024-09-08 18:44:48

您需要使用“安装新软件”选项下载服务器适配器并输入 http://download.eclipse。 org/releases/helios.然后选择“Web、XML 和 Java EE 开发”,并选择“WST 服务器适配器”和“JST 适配器”(其中之一包括 Tomcat)。

You need to download the Server Adapters s by using the Intall New Software option and enter http://download.eclipse.org/releases/helios. Then select the Web, XML, and Java EE Development and select the WST Server Adapters and the JST-Adapters (one of them includes Tomcat).

能否归途做我良人 2024-09-08 18:44:48

首先,在 Flash builder 4 及更早版本上配置服务器是相同的。
了解具体操作方法

您可以在此处 在 tomcat 上部署应用程序与任何计算机上的 tomcat 路径无关,您只需确保它不是 WebApp 目录即可。

现在,您能更详细地解释一下您的问题到底是什么吗?

First, configure server on Flash builder 4 and older is the same.
You can see how to do it here

Second, deploying your app on tomcat is not related to tomcat path on any computer, you just need to make sure its not the WebApp directory.

Now, can you explain in more details what is your problem exactly?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文