Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.3-RC1
-
Fix Version/s: 1.3 RC2
-
Component/s: None
-
Labels:None
-
Environment:Grails 1.3.0RC1
Groovy 1.7
JDK 1.6.19
Windows XP x64
Description
run-war in Grails 1.3RC1 shows 404 error page and stacktrace.log shows
NoClassDefFoundError: org/springframework/util/StringUtils.
deleting Ivy cache and grails projects directory did not help.
Steps to reproduce:
Create new application "demo"
>grails create-app demo
>cd demo
demo>grails create-domain-class demo.Book
demo>grails generate-all demo.Book
demo>grails run-app
Now browse to http://localhost:80/demo , which shows default welcome page
"""
Welcome to Grails
Congratulations, you have successfully started your first Grails application! At the moment this is the default page, feel free to modify it to either redirect to a controller or display whatever content you may choose. Below is a list of controllers that are currently deployed in this application, click on each to execute its default action:
Available Controllers:
demo.BookController
"""
Now run
demo>grails run-war
console shows
Running Grails application..
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:.....
.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:.....
.grails/1.3.0.RC1/projects/demo13rc1/war/WEB-INF/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Server running. Browse to http://localhost:80/demo
Now browse to http://localhost:80/demo which show 404 error page.
"""
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/6.0-snapshot
"""
and
stacktrace.log shows java.lang.NoClassDefFoundError: org/springframework/util/StringUtils
Issue Links
- is related to
-
GRAILS-6688
run-war https with Tomcat no longer works
-
Duplicates
GRAILS-5666