CMS3 Forum
CMS3 Forum
Home | Register | Active Topics | Search | FAQ
 All Forums
 CMS 3.0
 Installation & Setup
 Migrate CMS3 run with grails 1.3.6 problems

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
 

T O P I C    R E V I E W
hoangnhat1412@yahoo.com Posted - 03/01/2011 : 20:12:44
I have problem with CMS3, now that's running with grails 1.0.3, I want to migration CMS3 run with grails 1.3.6. I edited some project's configurations, and little source code. The CMS3 is built and run now, but there are runtime errors when I run it. Would you like to help me resolve this problem, please.

About runtime errors you can see:

Message: Cannot get property 'id' on null object
Caused by: Cannot get property 'id' on null object
Class: AuthController
At Line: [70]
Code Snippet:
69: def user = User.getLoggedInUser()
70: def preferredLanguage = user.getProfile("Language")?.reference ?: 'en' // en / zh_TW / zh_CN / vi_VN
71:


Message:
Caused by: Error executing tag <g:render>: Error executing tag <g:grid>: null at /home/stewart/cms3/grails-app/views/patient/_searchResult.gsp:148 at /home/stewart/cms3/grails-app/views/layouts/main.gsp:40
Class: /home/stewart/cms3/grails-app/views/layouts/main.gsp
At Line: [40]
Code Snippet:
39: </script>
40: <g:render template="/share/localeResolver" plugin="mtg-core-lib" />
41:


Thank you for reading.
2   L A T E S T    R E P L I E S    (Newest First)
mail@mathiaslin.com Posted - 03/12/2011 : 17:36:55
Talking to the CMS3 engineers, they say that the open source version runs on Grails 2, whereas the proprietary still runs on 1.x, but it's not documented anywhere.

mathias.lin@metahealthcare.com Posted - 11/10/2011 : 10:17:47
I also have a problem regarding the grails version. The developer documentation and sources are a bit misleading, not clear which version to actually use.

In the developer manual, it's said to use grails 1.0.3, however, when using the latest source code (CMS3X_src_rev_1.0.10937), in the application.properties file, app.grails.version is set to 1.3.5., while in the build.xml, the GRAILS_HOME is set to C:\grails-1.0.3.

Which one now is the right version to use?


Error logs with grails 1.0.3:

C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3>grails

Welcome to Grails 1.0.3 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: c:\grails-1.0.3

No script name specified. Use 'grails help' for more info or 'grails interactive' to enter interactive mode
C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3>grails run-app

Welcome to Grails 1.0.3 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: c:\grails-1.0.3

Base Directory: C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3
Running script c:\grails-1.0.3\scripts\RunApp.groovy
Environment set to development
  [groovyc] Compiling 36 source files to C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\classes
    [javac] Compiling 39 source files to C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\classes
C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3\plugins\jawr-3.3.3\src\java\org\springframework\web\servlet\i18n\JawrSe
ssionLocaleResolver.java:9: package net.jawr.web.resource.bundle.locale does not exist
import net.jawr.web.resource.bundle.locale.LocaleResolver;
                                          ^
C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3\plugins\jawr-3.3.3\src\java\org\springframework\web\servlet\i18n\JawrSe
ssionLocaleResolver.java:15: cannot find symbol
symbol: class LocaleResolver
public class JawrSessionLocaleResolver extends SessionLocaleResolver implements LocaleResolver{
                                                                                ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\JawrImgController.java:2: package net.jawr.web.ser
vlet does not exist
import net.jawr.web.servlet.*;
^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\JawrImgController.java:20: package net.jawr.web.se
rvlet does not exist
public net.jawr.web.servlet.JawrImageRequestHandler getRequestHandler() { return (net.jawr.web.servlet.JawrImageRequestHandler)null; }

                           ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\JawrImgController.java:21: package net.jawr.web.se
rvlet does not exist
public void setRequestHandler(net.jawr.web.servlet.JawrImageRequestHandler value) {}
                                                  ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\ParentDelegatingClassLoader.java
:3: package grails.web.container does not exist
import grails.web.container.*;
^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\SearchFirstURLClassLoader.java:3
: package grails.web.container does not exist
import grails.web.container.*;
^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatLoader.java:3: package gra
ils.web.container does not exist
import grails.web.container.*;
^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServer.java:3: package gra
ils.web.container does not exist
import grails.web.container.*;
^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServer.java:22: package gr
ails.web.container does not exist
    grails.web.container.EmbeddableServer,    groovy.lang.GroovyObject {
                        ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServer.java:58: cannot fin
d symbol
symbol  : class PluginBuildSettings
location: class org.grails.tomcat.TomcatServer
public PluginBuildSettings getPluginSettings() { return (PluginBuildSettings)null; }
       ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServer.java:59: cannot fin
d symbol
symbol  : class PluginBuildSettings
location: class org.grails.tomcat.TomcatServer
public void setPluginSettings(PluginBuildSettings value) {}
                              ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServerFactory.java:3: pack
age grails.web.container does not exist
import grails.web.container.*;
^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServerFactory.java:13: can
not find symbol
symbol: class EmbeddableServerFactory
    EmbeddableServerFactory,    groovy.lang.GroovyObject {
    ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServerFactory.java:16: can
not find symbol
symbol  : class EmbeddableServer
location: class org.grails.tomcat.TomcatServerFactory
public EmbeddableServer createInline(java.lang.String basedir, java.lang.String webXml, java.lang.String contextPath, java.lang.ClassL
oader classLoader) { return (EmbeddableServer)null;}
       ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServerFactory.java:17: can
not find symbol
symbol  : class EmbeddableServer
location: class org.grails.tomcat.TomcatServerFactory
public EmbeddableServer createForWAR(java.lang.String warPath, java.lang.String contextPath) { return (EmbeddableServer)null;}
       ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\JawrImgController.java:20: package net.jawr.web.se
rvlet does not exist
public net.jawr.web.servlet.JawrImageRequestHandler getRequestHandler() { return (net.jawr.web.servlet.JawrImageRequestHandler)null; }

                                                                                                      ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServer.java:58: cannot fin
d symbol
symbol  : class PluginBuildSettings
location: class org.grails.tomcat.TomcatServer
public PluginBuildSettings getPluginSettings() { return (PluginBuildSettings)null; }
                                                         ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServerFactory.java:16: can
not find symbol
symbol  : class EmbeddableServer
location: class org.grails.tomcat.TomcatServerFactory
public EmbeddableServer createInline(java.lang.String basedir, java.lang.String webXml, java.lang.String contextPath, java.lang.ClassL
oader classLoader) { return (EmbeddableServer)null;}

                             ^
C:\Documents and Settings\mathias\.grails\1.0.3\projects\CMS3\generated-java-source\org\grails\tomcat\TomcatServerFactory.java:17: can
not find symbol
symbol  : class EmbeddableServer
location: class org.grails.tomcat.TomcatServerFactory
public EmbeddableServer createForWAR(java.lang.String warPath, java.lang.String contextPath) { return (EmbeddableServer)null;}
                                                                                                       ^
20 errors
Compilation error: Compile failed; see the compiler error output for details.



Error log with grails 1.3.5:

C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3>grails
Welcome to Grails 1.3.5 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: c:\grails-1.3.5

No script name specified. Use 'grails help' for more info or 'grails interactive' to enter interactive mode
C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3>grails run-app
Welcome to Grails 1.3.5 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: c:\grails-1.3.5

Base Directory: C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3
Resolving dependencies...
Dependencies resolved in 3844ms.
Running script c:\grails-1.3.5\scripts\RunApp.groovy
Environment set to development
Application expects grails version [1.0.3], but GRAILS_HOME is version [1.3.5] - use the correct Grails version or run 'grails upgrade' if this Grails version is newer than the version your application expects.

... and then after adjusting the properties/grails path to 1.3.5:

C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3>grails run-app
Welcome to Grails 1.3.5 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: c:\grails-1.3.5

Base Directory: C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3
Resolving dependencies...
Dependencies resolved in 938ms.
Running script c:\grails-1.3.5\scripts\RunApp.groovy
Environment set to development
  [groovyc] Compiling 92 source files to C:\Documents and Settings\mathias\.grails\1.3.5\projects\CMS3\plugin-classes
  [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  [groovyc] /C:/workspaces/healthcare/CMS3/CMS3X_src_rev_1.0.10937/CMS3/grails-app/domain/Patient.groovy: 1097: Apparent variable 'SysConfig' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
  [groovyc] You attempted to reference a variable in the binding or an instance variable from a static context.
  [groovyc] You misspelled a classname or statically imported field. Please check the spelling.
  [groovyc] You attempted to use a method 'SysConfig' but left out brackets in a place not allowed by the grammar.
  [groovyc]  @ line 1097, column 139.
  [groovyc]    , params:[tabIndex:5, format: SysConfig.
  [groovyc]                                  ^
  [groovyc]
  [groovyc] /C:/workspaces/healthcare/CMS3/CMS3X_src_rev_1.0.10937/CMS3/grails-app/domain/Patient.groovy: 1103: Apparent variable 'SysConfig' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
  [groovyc] You attempted to reference a variable in the binding or an instance variable from a static context.
  [groovyc] You misspelled a classname or statically imported field. Please check the spelling.
  [groovyc] You attempted to use a method 'SysConfig' but left out brackets in a place not allowed by the grammar.
  [groovyc]  @ line 1103, column 144.
  [groovyc]    , params:[tabIndex:6, format: SysConfig.
  [groovyc]                                  ^
  [groovyc]
  [groovyc] 2 errors
: Compilation Failed
        at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:910)
        at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:605)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy:117)
        at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsCompile_groovy$_run_closure4.doCall(_GrailsCompile_groovy:104)
        at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:69)
        at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy:85)
        at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:84)
        at RunApp$_run_closure1.doCall(RunApp.groovy:28)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/C:/workspaces/healthcare/CMS3/CMS3X_src_rev_1.0.10937/CMS3/grails-app/domain/Patient.groovy: 1097: Apparent variable 'SysConfig' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
You attempted to reference a variable in the binding or an instance variable from a static context.
You misspelled a classname or statically imported field. Please check the spelling.
You attempted to use a method 'SysConfig' but left out brackets in a place not allowed by the grammar.
 @ line 1097, column 139.
   , params:[tabIndex:5, format: SysConfig.
                                 ^

/C:/workspaces/healthcare/CMS3/CMS3X_src_rev_1.0.10937/CMS3/grails-app/domain/Patient.groovy: 1103: Apparent variable 'SysConfig' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
You attempted to reference a variable in the binding or an instance variable from a static context.
You misspelled a classname or statically imported field. Please check the spelling.
You attempted to use a method 'SysConfig' but left out brackets in a place not allowed by the grammar.
 @ line 1103, column 144.
   , params:[tabIndex:6, format: SysConfig.
                                 ^

2 errors

        at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296)
        at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:959)
        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:509)
        at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:487)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:464)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:448)
        at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:57)
        at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:170)
        at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:895)
        ... 26 more
--- Nested Exception ---
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/C:/workspaces/healthcare/CMS3/CMS3X_src_rev_1.0.10937/CMS3/grails-app/domain/Patient.groovy: 1097: Apparent variable 'SysConfig' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
You attempted to reference a variable in the binding or an instance variable from a static context.
You misspelled a classname or statically imported field. Please check the spelling.
You attempted to use a method 'SysConfig' but left out brackets in a place not allowed by the grammar.
 @ line 1097, column 139.
   , params:[tabIndex:5, format: SysConfig.
                                 ^

/C:/workspaces/healthcare/CMS3/CMS3X_src_rev_1.0.10937/CMS3/grails-app/domain/Patient.groovy: 1103: Apparent variable 'SysConfig' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
You attempted to reference a variable in the binding or an instance variable from a static context.
You misspelled a classname or statically imported field. Please check the spelling.
You attempted to use a method 'SysConfig' but left out brackets in a place not allowed by the grammar.
 @ line 1103, column 144.
   , params:[tabIndex:6, format: SysConfig.
                                 ^

2 errors

        at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296)
        at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:959)
        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:509)
        at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:487)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:464)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:448)
        at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:57)
        at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:170)
        at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:895)
        at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:605)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy:117)
        at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsCompile_groovy$_run_closure4.doCall(_GrailsCompile_groovy:104)
        at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:69)
        at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy:85)
        at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:84)
        at RunApp$_run_closure1.doCall(RunApp.groovy:28)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Compilation error: Compilation Failed
C:\workspaces\healthcare\CMS3\CMS3X_src_rev_1.0.10937\CMS3>





Powered By: Snitz Forums 2000
Copyright © 2009 Mobigator Technology Group. All rights reserved. | cmsplus@mobigator.com | Terms of Use | Privacy Policy