过滤器映射中的<url-pattern> *无效。在glassfish上部署grails 3 app期间

时间:2016-10-13 14:38:41

标签: grails glassfish url-mapping

在Glassfish 4.1.1容器上描绘Grails 3应用程序时,我收到了下一个错误代码:

Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.IllegalArgumentException: Invalid <url-pattern> * in filter mapping.

我的UrlMappings.groovy:

class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }

        "/"(view:"/index")
        "500"(view:'/error')
        "404"(view:'/notFound')
    }
}

我错过了任何配置吗?

1 个答案:

答案 0 :(得分:0)