Grails

Grails 1.3RC1 run-war does not work - shows 404 error page

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker 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

Activity

Hide
Graeme Rocher added a comment -

Duplicates GRAILS-5666

Show
Graeme Rocher added a comment - Duplicates GRAILS-5666
Hide
Ketul Gandhi added a comment -

I still get 404 error in 1.3 snapshot build #100 for Tomcat, not for Jetty though.
GRAILS-5666 mentions about multiple SLF4J bindings message but not about 404 error.
I get multiple SLF4J bindings message for both Tomcat and Jetty, still Jetty works.

Show
Ketul Gandhi added a comment - I still get 404 error in 1.3 snapshot build #100 for Tomcat, not for Jetty though. GRAILS-5666 mentions about multiple SLF4J bindings message but not about 404 error. I get multiple SLF4J bindings message for both Tomcat and Jetty, still Jetty works.
Hide
Graeme Rocher added a comment -

That is because I haven't published a new version of the tomcat plugin yet, but the fix in in Git

Show
Graeme Rocher added a comment - That is because I haven't published a new version of the tomcat plugin yet, but the fix in in Git
Hide
Ketul Gandhi added a comment -

Since the issue was marked as fixed, I downloaded snapshot build and tested. I will wait for 1.3RC2.

Show
Ketul Gandhi added a comment - Since the issue was marked as fixed, I downloaded snapshot build and tested. I will wait for 1.3RC2.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: