0
我正在使用Ant将我的应用程序部署到生产应用程序服务器(WebSphere)。 我使用位于$ {WORKLIGHT_INSTALL_DIR} \ configuration-samples文件夹中的示例配置文件。该配置文件被标记为适用于Websphere Liberty和Apache derby。 在配置部分,我更改路径元素标记(在代码报告下方)的值(并且仅根据文档IBM提供此值)。使用Ant任务部署Worklight应用程序
<taskdef resource="com/worklight/ant/defaults.properties">
<classpath>
<pathelement location="C:\workspace\jQueryMobileApplication\bin\jQueryMobileApplication.war"/>
</classpath>
设置的位置我的应用程序战争的道路。 build.xml文件位于我的项目的war文件的同一个文件夹中。 当我键入命令:
ant -f <filename>.xml
我得到这个异常:
Buildfile: C:\IBM\WorklightSRV\WorklightServer\configure-liberty-derby.xml
[taskdef] Could not load definitions from resource com/worklight/ant/defaults.properties. It could not be found.
我与工作灯开发一个新手(也使用Ant部署),所以我感谢所有帮助,即使这可能是一个微不足道的问题。
谢谢你tik27,我改变了这些东西,现在我可以建立它。无论如何,我面临着另一个问题,我没有设置'websphereappserverserver installdir',所以它的值仍然是默认值(即/n/java/webservers/was-liberty-8.5-express)。我应该在哪个应用程序服务器的文件夹中安装应用程序? – Riccardo
我尝试过使用C:\ Programfiles \ IBM \ WebSphere \ AppServer或C:\ Programfiles \ IBM \ WebSphere \ AppServer \ newApp,但它不起作用 – Riccardo
您是否运行完整的Websphere或Websphere Liberty? – tik27