我尝试打开并在我的电脑上测试ScadaLTS(Windows 10)。在阅读安装版本之前,我已经下载并安装了Tomcat和MySQL,配置了context.xml和env.properties。我在更改之前重新启动了Tomcat并导航到localhost。一切似乎都运作良好。显示登录页面,我可以使用' admin / admin'登录。我点击添加视图并创建新视图。我去编辑按钮。当我尝试添加新组件时,只显示两个选项(SLTS Image Componen和SLTS Visit Counter)。如果我回到旧的UI,添加一个视图,然后尝试添加一个组件,列表发布如图所示是youtube,但是当我点击添加时,没有任何反应。在可绘制表面上没有添加任何项目。
我在Tomcat日志文件夹中查找错误但没有找到。如果我用开发工具打开Angular 2 UI,控制台会显示两个错误:
Failed to load resource: the server responded with a status of 404 (Not found) ~https://fonts.googleapis.com/icon?family=Material+Icons
Failed to load resource: the server responded with a status of 404 (Not found) ~@angular/material/prebuilt-themes/deeppurple-amber.css
在他们之前,还有两个人不断出现:
ERROR TypeError: Cannot read property '_has' of undefined
at p (plotly.min.js:52)
at Object.t [as relayout] (plotly.min.js:52)
at WatchlistComponent.webpackJsonp.../../../../../src/app/appBody/watchlist/watchlist.component.ts.WatchlistComponent.autorangeChart (main.bundle.js:3859)
at main.bundle.js:3635
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (vendor.bundle.js:33289)
at Object.onInvokeTask (vendor.bundle.js:81064)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (vendor.bundle.js:33288)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (vendor.bundle.js:33056)
at webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask (vendor.bundle.js:33363)
at ZoneTask.invoke (vendor.bundle.js:33352)
defaultErrorLogger @ vendor.bundle.js:78203
:8080/ScadaBR/api/point_value/getValue/null Failed to load resource: the server responded with a status of 400 (Bad request)
vendor.bundle.js:78203 ERROR Error: Uncaught (in promise): Response with status: 400 Petición incorrecta for URL: http://localhost:8080/ScadaBR/api/point_value/getValue/null
at resolvePromise (vendor.bundle.js:33648)
at resolvePromise (vendor.bundle.js:33619)
at vendor.bundle.js:33696
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (vendor.bundle.js:33289)
at Object.onInvokeTask (vendor.bundle.js:81064)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (vendor.bundle.js:33288)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (vendor.bundle.js:33056)
at drainMicroTaskQueue (vendor.bundle.js:33460)
at ZoneTask.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (vendor.bundle.js:33367)
at invokeTask (vendor.bundle.js:34235)
你能帮帮我吗?提前致谢
答案 0 :(得分:1)
您使用的是哪个版本的Java,Tomcat和MySQL? 问题可能是由于Tomcat版本太高造成的。我们建议使用7.0.82版。
运行Scada-LTS的最简单方法是使用我们的docker容器: https://github.com/SCADA-LTS/Scada-LTS/wiki/Run-ScadaLTS-on-docker---instruction