在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')
}
}
我错过了任何配置吗?
答案 0 :(得分:0)
这可能取决于此默认配置:
默认为此值:
尝试在grails-app/conf/application.yml
:
grails:
web:
servlet:
path: "/"