Announcement Announcement Module
Collapse
No announcement yet.
JBoss 4.2.3 seems to load the war file but gives a 404 page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JBoss 4.2.3 seems to load the war file but gives a 404 page

    Hi,

    I deployed my Grails 2.1.1 application on JBoss 4.2.3.
    During startup everything seems to get loaded except for the following warning:

    2012-12-10 17:39:06,872 WARN [org.codehaus.groovy.grails.web.servlet.DefaultGrai lsApplicationAttributes] ApplicationContext not found in org.codehaus.groovy.grails.APPLICATION_CONTEXT attribute of servlet context.

    There are no other errors.
    However, when I'm trying to access the application I get 404 page.
    The problem doesn't occur when running the application from GGTS or grails run-app.

    Does anyone have any idea what could be the problem?

    Thanks,
    Shai

  • #2
    Upgrading from Grails 1.2.2 to version 2.1.1 I should have fully followed the upgrade instructions in
    http://grails.org/doc/2.1.1/guide/up...sOfGrails.html

    It says:
    "Another side-effect of the changes to the redirect method is that it now always uses the grails.serverURL configuration option if it's set. Previous versions of Grails included default values for all the environments, but when upgrading to Grails 2.0 those values more often than not break redirection. So, we recommend you remove the development and test settings for grails.serverURL or replace them with something appropriate for your application."

    Commenting out grails.serverURL fixed the problem.

    Cheers,
    Shai

    Comment

    Working...
    X