WAR 文件已部署但在 GlassFish 上运行不正确

WAR file is deployed but works incorrectly on GlassFish

我有一个 grails 应用程序 (grails-2.4.4)。我用 grails war 命令创建了一个 war 文件。 War 文件结构:

1. /css
    ...
2. /images
    ...
3. /js
    /prototype
        ....
    application.js
4. META-INF
    ...
5. WEB-INF
    ...

我可以在 GlassFish4 和 运行 应用程序上成功部署 war。但是index页面显示不正确,因为页面资源中没有prototype文件夹(及其js文件)。只是 application.js

确保安装了用于 Grails 的 prototype-plugin

来自 Grails plugin page:

As of Grails 2.0 Prototype is no longer the default JavaScript library (jQuery is used instead). This plugin allows older application to continue to use Prototype by uninstalling the jQuery plugin and installing this one.

See https://github.com/gpc/grails-prototype for the source and usage information