grailsoc4j

Grails - Layout is not getting applied after deploying to OC4J container


i am using grails 1.3.7. below is the snip of how i am applying the customized layout to my pages.

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="customized"/>

it is perfectly working when i run the application locally using run-app command. However, after deploying the application to OC4J, layout is not getting applied and view is getting rendered without any required CSS and JS files. see the screenshot below:

enter image description here

Edit: List of plugins i am using along with versions:

any idea whats going wrong here??


Solution

  • I just got the solution to above issue and decided to put it here as an answer. maybe it can help someone suffering from the same issue.

    In my case, issue is related to JDK compliance level. On development machine, it was configured as 1.6 in eclipse IDE. And OC4J is using 1.5. So I did the following to get it working: