您好 Worklight 团队和开发人员!
我们已经完成了我们的开发项目,并且在本地开发服务器(Tomcat)中一切正常。现在我们正在尝试构建要部署到测试 WAS ND 8.0.3 服务器的项目。我们一直在关注信息中心中的手册,并根据需要修改了每个必需的文件(worklight.properties 和 application-descriptor.xml)
我们对 worklight.properties 文件进行了以下更改:
publicWorkLightHostname=working.hostname.com
# http or https
publicWorkLightProtocol=http
# For default port leave empty
publicWorkLightPort=ourport
publicWorkLightContext=/worklight
wl.db.jndi.name=jdbc/WorklightDS
wl.db.type=DB2
wl.db.url=jdbc:db2:Worklight
wl.db.username=wluser
wl.db.password=passwd
我们在 WAS 控制台中测试了 jdbc 源代码,它运行良好。我们继续构建战争、适配器和 wlapp (ALL),我们得到这个错误:
[2013-05-21 12:48:44] FWLSE4001W: Failed to resolve JNDI name: "jdbc/WorklightDS".
Application may fail to access the database in runtime. If building for remote server - ignore this warning.
[2013-05-21 12:48:44] FWLST0011E: ====== Worklight Project BPMWorklight-project-customization failed to start: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
[2013-05-21 12:48:44] Activation failed. Bundle didn't start:C:pathto\BPMWorklight-customization.jar
这发生在开发人员工作站中,如果我们在创建 jdbc 源的服务器中安装 Studio,也会发生同样的情况。我猜 Worklight 正在尝试在 TOMCAT 而不是 WAS 中“获取”一个 JDBC 源,但我们正在为 WAS 构建,因此构建失败并且错误后没有更改任何文件。NO BUILD 被执行。
我们还尝试在 Studio 中使用 ANT 执行 build.xml,但出现此错误:
Buildfile: C:\Users\Primary User\IBM\Worklight\LIS_SampleCollection\BPMWorklight\build.xml
BUILD FAILED
C:\Pathtofile\BPMWorklight\build.xml:3: Cannot find ../../common.xml imported from
C:\Pathtofile\BPMWorklight\build.xml
Total time: 62 milliseconds
非常感谢您的帮助!非常感谢!!
最好的,
尼古拉斯·E。