mysql - 在 openshift 上部署 grails war 文件后显示空白页

标签 mysql tomcat grails openshift war

在使用以下指南创建 tomcat 7(JBoss EWS 2.0) 应用程序后,我将 war 文件部署到 openshift (deploy war file using git) 但在部署我的应用程序后,它只显示一个空白页面。这是我使用 rhc tail 命令获得的日志。

==> app-root/logs/jbossews.log <==
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1571)
        at net.sf.ehcache.util.concurrent.ConcurrentHashMap$ValuesView.iterator(
ConcurrentHashMap.java:3252)
        at net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl$1.run(Exten
dedStatisticsImpl.java:104)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:745)

==> app-root/logs/mysql.log <==
160420 10:20:46 InnoDB: highest supported file format is Barracuda.
160420 10:20:46  InnoDB: Waiting for the background threads to start
160420 10:20:47 InnoDB: 5.5.45 started; log sequence number 1595675
160420 10:20:47 [Note] Server hostname (bind-address): '127.9.179.2'; port: 3306

160420 10:20:47 [Note]   - '127.9.179.2' resolves to '127.9.179.2';
160420 10:20:47 [Note] Server socket created on IP: '127.9.179.2'.
160420 10:20:47 [Warning] 'proxies_priv' entry '@ root@ex-std-node563.prod.rhclo
ud.com' ignored in --skip-name-resolve mode.
160420 10:20:47 [Note] Event Scheduler: Loaded 0 events
160420 10:20:47 [Note] /opt/rh/mysql55/root/usr/libexec/mysqld: ready for connec
tions.
Version: '5.5.45'  socket: '/var/lib/openshift/571649900c1e669c5c00017c/mysql//s
ocket/mysql.sock'  port: 3306  MySQL Community Server (GPL)

==> app-root/logs/phpmyadmin.log <==
[Tue Apr 19 11:24:41 2016] [notice] Apache/2.2.15 (Unix) PHP/5.3.3 configured --
 resuming normal operations
[Tue Apr 19 12:27:32 2016] [notice] SIGHUP received.  Attempting to restart
[Tue Apr 19 12:27:32 2016] [notice] Digest: generating secret for digest authent
ication ...
[Tue Apr 19 12:27:32 2016] [notice] Digest: done
[Tue Apr 19 12:27:32 2016] [notice] Apache/2.2.15 (Unix) PHP/5.3.3 configured --
 resuming normal operations
[Wed Apr 20 10:20:38 2016] [notice] caught SIGWINCH, shutting down gracefully
[Wed Apr 20 10:21:05 2016] [notice] SELinux policy enabled; httpd running as con
text unconfined_u:system_r:openshift_t:s0:c4,c884
[Wed Apr 20 10:21:05 2016] [notice] Digest: generating secret for digest authent
ication ...
[Wed Apr 20 10:21:05 2016] [notice] Digest: done
[Wed Apr 20 10:21:05 2016] [notice] Apache/2.2.15 (Unix) PHP/5.3.3 configured --
 resuming normal operations

我部署的 war 文件的名称是 ROOT.war 使用 git push 并且部署成功。我正在使用 mysql 数据库和 phpmyadmin 墨盒。 我只是想弄清楚为什么当我尝试访问我的应用程序的 url 时它会显示一个空白页面。

提前致谢。

最佳答案

你提供的日志一点帮助都没有,因为它不完整,我什至看不到抛出什么异常。

这是关于在 OpenShift 上部署 grails 应用程序的最佳文章,它将对您有很大帮助: Grails on Openshift

此外,如果您使用 ftp 查看服务器上发生的情况,故障排除会更有效率 Using FileZilla and SFTP on Windows with OpenShift

关于mysql - 在 openshift 上部署 grails war 文件后显示空白页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36748289/

相关文章:

mysql - 数据库设计建议

tomcat - Apache Tomcat服务器可以默认运行PHP文件吗?

Java applet 与 tomcat 服务器上的 servlet 通信

grails - 如何防止页面重新提交?在grails 2.2.0中

python - Django 管理面板无法向表中添加任何记录

php - 在 Javascript 中打印特定的 JSON 数组元素

testing - Grails:非平凡测试的良好教程/解释

java - 在单元测试中模拟 Controller 标准...grails

mysql - 基数困惑

java - Netbeans调试报错java.lang.ClassNotFoundException : org. apache.xerces.xni.XNIException