RAD Application Server Publishing 设置和基于WTP的Maven项目
来源:互联网 发布:京东买淘宝卖 编辑:程序博客网 时间:2024/06/06 05:11
RAD提供两种WebSphere Application Server publishing设置选项: 1) Run server with resources within the workspace, 和 2) Run server with resources on Server. 当"Run/Debug on Server"时, 如果使用"within the workspace"选项, 应用程序运行于workspace中, 当使用"on Server"选项时, RAD首先将应用程序部署到WAS服务器上,然后从WAS服务器上运行。
如果在开发环境中有本地的WAS服务器, RAD缺省使用"within the workspace"选项, 与“on Server”相比,该设置的发布时间较短。 然而,该设置不适用于使用WTP并选择Workspace Resolution的Maven项目。
举例而言, 一个Maven项目包含两个模块 - core和web, 并在Maven选项中使用Workspace Resolution, 当使用within the workspace"选项运行"Run/Debug on Server"时, RAD并不会将core jar文件发布到workspace发布目录(一般位于.metadata\.plugins\org.eclipse.wst.server.core\tmp1\目录下), 而是使用两个不同的class loader来装载core jar和Web应用程序。 由此可能造成的问题包括:
- web模块中的spring xml无法使用如下代码来载入core模块中的spring xml,<import resource="classpath:com/test/resources/spring-core-beans.xml" />
- web模块中无法使用ResourceBundle.getBundle(baseName) 来载入core模块中的资源。
上述问题的解决方法时使用"Run server with resources on Server"选项进行应用程序的发布。- RAD Application Server Publishing 设置和基于WTP的Maven项目
- Eclipse 和 RAD 的字体设置
- Eclipse 和 RAD 的字体设置
- 成功在wtp项目中使用maven
- maven项目导入到eclipse wtp中
- Akshell: 基于JavaScript和在线IDE的RAD云
- eclipse的maven项目中target目录m2e-wtp无法提交到SVN的处理办法
- maven:解决项目发布报错Publishing failed Could not publish to the server. java.lang.IndexOutOfBoundsException
- 解决Maven项目发布报错:Publishing failed Could not publish to the server. java.lang.IndexOutOfBoundsException
- WTP中Publishing failed:Resource /xxxx does not exist问题的解决
- WTP中Publishing failed:Resource /xxxx does not exist问题的解决
- 如何在基于Eclipse的Maven项目中配置Web Application开发包?
- 二.认证入门:Application形式基于ini配置文件的认证(maven项目)
- 搭建基于WTP的javaEE工程
- 未安装m2e-scm和m2e-wtp插件如何从svn下载maven项目和在tomcat中部署
- 未安装m2e-scm和m2e-wtp插件如何从svn下载maven项目和在tomcat中部署
- maven运行application项目
- mouce 和 rad的区别
- java中接口和抽象类的区别--
- 用JAVA实现程序最小化到托盘区
- hdu 1799 DFS求组合数
- QString乱谈(2)
- 关于URL编码
- RAD Application Server Publishing 设置和基于WTP的Maven项目
- JAVA获取当前操作系统的信息
- Objective-C Primer(2)Private Methods and Class Properties
- LaTeX 中算法有关宏包和命令的使用
- Objective-C Primer(3)Multiple arguments for one method, synthesize and dynamic
- 字符编码笔记:ASCII,Unicode和UTF-8
- 大话编译原理---上篇
- iOS中的url编码问题
- 比一比才知道 GET vs POST