`
kimmking
  • 浏览: 536329 次
  • 性别: Icon_minigender_1
  • 来自: 中华大丈夫学院
社区版块
存档分类
最新评论

flex3eclipse插件和wtp的一个小问题

阅读更多

今天新建一个web项目,添加flex特性,配置好各个文件。然后发现RemoteObject的路径不对。

远程对象请求的地址http://localhost:8080/WebContent/messagebroker/amf. 中间是WebContent而不是项目名称。

 

 打开services-config.xml,路径中有context.root啊。

<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"/>
        </channel-definition>

 项目的flex属性的context root不知道我没注意弄错了,还是默认的是WebContent,然后改成项目名称,重启,clean,build,okay。

不过开始一直不行,没办法,调试,从RemoteObject开始追,找配置的地方,追到ServerConfig类,前面的注释说配置xml在编译的时候生成,郁闷鸟。

写道
The XML source is provided during the compilation process.

 

编译器参数加上 -keep-generated-actionscript,看看生成的as文件啥样。

果然,在项目的_项目名FlexInit-generated.as文件的最后面,发现了ServerConfig.xml的定义。

 

ServerConfig.xml =
<services>
	<service id="remoting-service">
		............

 而且编译器把WebContent\WEB-INF\flex下的4个xml配置文件中客户端用的信息都提出来了,放在这里。

 

试验时,一次flex的输出路径改成WebContent,然后觉得不爽,又改成bin-debug, 发现flex插件竟然把整个WebContent都删掉了。我靠,是它太白痴还是我太白痴,所有的非flex的资源,网页,jar包,都在这里。幸亏有备份。

 

-----------------------------

 

然后刷新,clean,build发现bin-debug中的swf就是不会被部署到服务器目录下。ft,在eclipse中找啊找,啥也没有找到。怎么都无法同步到服务器。

 

翻翻项目目录的哪些东西,发现wtp的部署选项在web项目下的.settings/org.eclipse.wst.common.component文件中,如下,deploy-path是服务器contextpath路径,source-path是相对于项目的根路径。要部署项目里的哪个目录到服务器端,添加一个配置项即可。

 

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="USERMANAGEFlex">
<wb-resource deploy-path="/" source-path="/WebContent"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<wb-resource deploy-path="/" source-path="/flex_src"/>
<wb-resource deploy-path="/" source-path="/bin-debug"/>
<property name="java-output-path"/>
<property name="context-root" value="USERMANAGEFlex"/>
</wb-module>
</project-modules>

 

1
0
分享到:
评论

相关推荐

    Eclipse 3.3配置WTP插件

    下载Eclipse3.3。 这里我用的Eclipse Classic 3.3.1.1 ,主要是为了学习如何在Eclipse上安装插件(完整文章参考Eclipse3.3 安装及插件配置)。

    eclipse wtp plugs 3

    eclipse wtp-R-3.0.5-20090521045405 请将文件名改为 wtp-R-3.03.fss ...综上所述,要想得到完整的 Eclipse Plugs 你必须下载 5 个文件 :eclipse wtp plugs 0 ~ eclipse wtp plugs 4, eclipse wtp merge

    eclipse WTP 1.2 插件 支持 jquery 1.6

    jQueryWTP一个让Eclipse WTP支持jQuery Javascript代码自动补全功能的Eclipse插件。 支持jquery 1.6

    eclipse wtp plugs 2

    eclipse wtp-R-3.0.5-20090521045405 请将文件名改为 wtp-R-3.02.fss ...综上所述,要想得到完整的 Eclipse Plugs 你必须下载 5 个文件 :eclipse wtp plugs 0 ~ eclipse wtp plugs 4, eclipse wtp merge

    Eclipse_wtp_tomcat

    Eclipse_wtp_tomcatEclipse_wtp_tomcatEclipse_wtp_tomcatEclipse_wtp_tomcatEclipse_wtp_tomcatEclipse_wtp_tomcatEclipse_wtp_tomcatEclipse_wtp_tomcatEclipse_wtp_tomcat

    在eclipse_的一个项目中同时开发j2ee模块和flex_客户端模块

    Eclipse通过wtp插件对j2ee web app的开发提供了很好的支持,flex builder plugin是基于eclipse 的一个用于开发flex 应用程序的插件,blazeds是一个用于集成flex 客户端和j2ee server的组件,下面介绍一种方法,集成...

    eclipse插件 - jQuery

    如果采用了jquery框架,当然很希望Eclipse能帮我们完成代码自动完成的功能了,但Eclipse默认只是支持js的代码自动完成,利用这个插件,可以让Eclipse支持jquery的代码自动完成功能(前提:Eclipse已完成WTP的安装),...

    myeclipse或eclipse无法从wtpServer添加tomcatserver

    文档解决了myeclipse或eclipse无法从wtpServer添加tomcatserver

    使用Eclipse及WTP插件开发JSP应用程序

    在Eclipse环境下,基于WTP插件,开发JSP应用程序 内容还是比较详尽的,以图示的方式介绍了安装过程,最后还举了一个非常简单的例子作为示例

    eclipse wtp plugs 1

    eclipse wtp-R-3.0.5-20090521045405 plugs 请将文件名改为 wtp-R-3.01.fss ...综上所述,要想得到完整的 Eclipse Plugs 你必须下载 5 个文件 :eclipse wtp plugs 0 ~ eclipse wtp plugs 4, eclipse wtp merge

    eclipse wtp plugs 4

    wtp-R-3.0.5-20090521045405 请将文件名改为 wtp-R-3.04.fss ...综上所述,要想得到完整的 Eclipse Plugs 你必须下载 5 个文件 :eclipse wtp plugs 0 ~ eclipse wtp plugs 4, eclipse wtp merge

    eclipse wtp merge

    eclipse wtp plugs merge tool 请将文件名改为 .exe 因为文件太大,Eclipse WTP ...综上所述,要想得到完整的 Eclipse Plugs 你必须下载 5 个文件 :eclipse wtp plugs 0 ~ eclipse wtp plugs 4, eclipse wtp merge

    Eclipse WTP Web应用开发

    Eclipse WTP Web应用开发,(曼德尔),姚军等译。

    eclipse wtp plugs 0

    eclipse wtp-R-3.0.5-20090521045405 plugs 请将文件名改为 wtp-R-3.00.fsm ...综上所述,要想得到完整的 Eclipse Plugs 你必须下载 5 个文件 :eclipse wtp plugs 0 ~ eclipse wtp plugs 4, eclipse wtp merge

    在eclipse中同时开发j2ee模块和flex_客户端模块DOC

    Eclipse 通过 wtp 插件对 j2ee web app 的开发提供了很好的支持 ,flex builder plugin 是基于 eclipse 的一个用于开发 flex 应用程序的插件 ,blazeds 是一个用于集成 flex 客户端和 j2ee server 的组件 , 下面介绍...

    flex整合j2ee-在eclipse wtp环境下使用blazeds

    NULL 博文链接:https://fzlihui.iteye.com/blog/1011407

    eclipse离线安装maven插件(m2e),maven插件离线安装包

    现在eclipse的社区版都不内置maven插件了,站点在线安装实在是太痛苦了(我装了6个小时),于是急于寻找一种离线安装的办法,可是在网上又找不到对应的m2e包(我用的eclipse4.7),于是我决定将站点下的文件(很多)...

    eclipse(wtp)内存溢出相关配置文件

    eclipse(wtp)内存溢出解决办法 修改配置文件

    Eclipse wtp(tomcat)配置手册

    有图,有文,步骤清晰,有测试是否成功安装的方法

    MyEclipse Web工程 完美移植到Eclipse WTP

    完美移植到Eclipse

Global site tag (gtag.js) - Google Analytics