无法在 tomcat 中部署 Grails War 文件 - 导致 404 [英] Can't deploy Grails War file in tomcat - results in 404

查看:56
本文介绍了无法在 tomcat 中部署 Grails War 文件 - 导致 404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 GrailsApplication.war 文件,我将它添加到 webapps 文件夹 (tomcat 7) 中.当我尝试访问 url (:8080/GrailsApplication) 时,它给了我 404 错误.我在部署 grails 战争文件时做错了什么?

I have a GrailsApplication.war file with me, and i added that into the webapps folder (tomcat 7). When i tried to access the url (<ipaddress>:8080/GrailsApplication) it gives me a 404 error. What have i done wrong deploying the grails war file ?

Grails 版本:2.2.4

Grails version : 2.2.4

雄猫:7

服务器:Ubuntu

推荐答案

在 Grails 2 应用程序中,Config.groovy 中应该存在如下配置设置,请验证是否存在:

In Grails 2 apps, there should be a config setting present in Config.groovy as below, verify if that is present:

environments {
    production {
        grails.serverURL = "http://<youripaddress>:8080/${appName}"
    }
}

这篇关于无法在 tomcat 中部署 Grails War 文件 - 导致 404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆