Ibm mobilefirst 使用apache tomcat 7服务器部署Worklight V6项目
我使用的是WorklightV6.0、apache tomcat 7.0和MySQL 5.5.24。我用android环境创建了一个示例应用程序,并将整个项目导出为war文件。我已经使用下面的ant脚本进行了部署 Ant-Script.xml:Ibm mobilefirst 使用apache tomcat 7服务器部署Worklight V6项目,ibm-mobilefirst,Ibm Mobilefirst,我使用的是WorklightV6.0、apache tomcat 7.0和MySQL 5.5.24。我用android环境创建了一个示例应用程序,并将整个项目导出为war文件。我已经使用下面的ant脚本进行了部署 Ant-Script.xml: <?xml version="1.0" encoding="UTF-8"?> <project basedir="." default="install"> <taskdef resource="com/worklight/
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="install">
<taskdef resource="com/worklight/ant/defaults.properties">
<classpath>
<pathelement location="C:/Program Files/IBM/Worklight_6/WorklightServer/worklight-ant.jar"/>
</classpath>
</taskdef>
<target name="databases">
<configuredatabase kind="Worklight">
<mysql database="WRKLGHT" server="{IP Address}" user="worklight" password="worklight">
<dba user="root" password=""/>
<client hostname="{IP Address}"/>
</mysql>
<driverclasspath>
<pathelement location="E:/mysql-connector-java-5.1.8-bin.jar"/>
</driverclasspath>
</configuredatabase>
<configuredatabase kind="WorklightReports">
<mysql database="WLREPORT" server="{IP Address}" user="worklight" password="worklight">
<dba user="root" password=""/>
<client hostname="{IP Address}"/>
</mysql>
<driverclasspath>
<pathelement location="E:/mysql-connector-java-5.1.8-bin.jar"/>
</driverclasspath>
</configuredatabase>
</target>
<target name="install">
<configureapplicationserver shortcutsDir="/tmp/shortcuts">
<project warfile="E:/war_files/TestApps.war"/>
<!-- Here you can define values which override the
default values of Worklight configuration properties -->
<property name="serverSessionTimeout" value="10"/>
<applicationserver>
<tomcat installdir="E:/apache-tomcat-7.0.30"/>
</applicationserver>
<database kind="Worklight">
<mysql database="WRKLGHT" server="{IP Address}" user="worklight" password="worklight"/>
<driverclasspath>
<pathelement location="E:/mysql-connector-java-5.1.8-bin.jar"/>
</driverclasspath>
</database>
<database kind="WorklightReports">
<mysql database="WLREPORT" server="{IP Address}" user="worklight" password="worklight"/>
<driverclasspath>
<pathelement location="E:/mysql-connector-java-5.1.8-bin.jar"/>
</driverclasspath>
</database>
</configureapplicationserver>
</target>
</project>
在使用此脚本获得成功后
我尝试了这个url“http://{IP地址}:8088/worklight/”
但我没有得到任何输出。它显示没有内容的移动浏览器模拟器。
帮我解决这个问题
提前谢谢 我不太明白。。。如果你访问了你提到的这个URL,你会得到一个错误(!)。在Worklight 6.0中使用的正确URL是:
http://{ip address}:8088/Worklight/console
只有这样,您才能进入Worklight控制台,从中可以预览应用程序
还请注意,Worklight 6.0中的默认端口为
10080
,因此,如果您打算改用8088
,请确保已适当更新相关属性。谢谢您的回复。10080端口是worklight development server(WS-liberty server)。我需要使用ApacheTomcat7服务器。没关系。我只是想让你知道。