Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo and Grails 1.3.7 MissingPropertyException
Virgo and Grails 1.3.7 MissingPropertyException [message #748224] Mon, 24 October 2011 15:14 Go to next message
Tony Day is currently offline Tony DayFriend
Messages: 9
Registered: October 2011
Junior Member
Hi,

Still working away at this Grails web-app (Sorry Glynn!)

My web-app is now failing on the following exception:

Context initialization failed org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is groovy.lang.MissingPropertyException: No such property: context for class: org.codehaus.groovy.grails.plugins.CoreGrailsPlugin


From the full error:

System.err                                                        24-Oct-2011 15:57:49 org.apache.catalina.core.ApplicationContext log 
System.err                                                        INFO: Initializing Spring root WebApplicationContext 
org.springframework.web.context.ContextLoader                     Root WebApplicationContext: initialization started 
o.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext   Refreshing ServerOsgiBundleXmlWebApplicationContext(bundle=com.acme.grailshello, config=/WEB-INF/applicationContext.xml): startup date [Mon Oct 24 15:57:49 BST 2011]; root of context hierarchy 
o.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext   Application Context service already unpublished 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader     Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml] 
o.e.virgo.kernel.dmfragment.internal.LoadTimeWeaverPostProcessor  Load-time weaving not enabled for bundle 'com.acme.grailshello_0.1.0 [139]', 
o.e.virgo.kernel.dmfragment.internal.MBeanExporterPostProcessor   MBean exporting not enabled for bundle 'com.acme.grailshello_0.1.0 [139]', 
o.s.beans.factory.support.DefaultListableBeanFactory              Pre-instantiating singletons in [email]org.springframework.beans.factory.support.DefaultListableBeanFactory@7f374c[/email]: defining beans [grailsApplication,pluginManager,grailsConfigurator,grailsResourceLoader,grailsResourceHolder,characterEncodingFilter]; root of factory hierarchy 
o.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext   Publishing application context as OSGi service with properties {org.springframework.context.service.name=com.acme.grailshello, Bundle-SymbolicName=com.acme.grailshello, Bundle-Version=0.1.0} 
org.osgi.service.log.LogService                                   Bundle com.acme.grailshello_0.1.0, Service 272, ServiceEvent REGISTERED 
org.springframework.web.context.ContextLoader                     Context initialization failed org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is groovy.lang.MissingPropertyException: No such property: context for class: org.codehaus.groovy.grails.plugins.CoreGrailsPlugin
	at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)


I'm struggling to source this but something tells me there could be an inconsistency between the Spring bundles in use with Virgo 3.0.1.RELEASE and what Grails is looking for. If anyone has seen this before or recognises where the issue may be I shall investigate further.

Thanks

[Updated on: Mon, 24 October 2011 15:14]

Report message to a moderator

Re: Virgo and Grails 1.3.7 MissingPropertyException [message #748291 is a reply to message #748224] Mon, 24 October 2011 16:03 Go to previous messageGo to next message
Peter Ledbrook is currently offline Peter LedbrookFriend
Messages: 1
Registered: October 2011
Junior Member
Please start your application with "-Dgrails.full.stacktrace=true" and post the resulting stacktrace.

Thanks,

Peter
Re: Virgo and Grails 1.3.7 MissingPropertyException [message #749426 is a reply to message #748291] Tue, 25 October 2011 08:05 Go to previous messageGo to next message
Tony Day is currently offline Tony DayFriend
Messages: 9
Registered: October 2011
Junior Member
Hi Peter, thanks for your post.

I don't get this problem when running the Grails application directly. This is only when running within Virgo (using a modified version of the Grails OSGi plugin to work with 3.0.1).

Since I'm running it inside of Virgo as an OSGi bundle, there's no way to pass command-line arguments in is there?

Cheers
Re: Virgo and Grails 1.3.7 MissingPropertyException [message #749618 is a reply to message #749426] Tue, 25 October 2011 10:30 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Tony Day wrote on Tue, 25 October 2011 09:05
Hi Peter, thanks for your post.

I don't get this problem when running the Grails application directly. This is only when running within Virgo (using a modified version of the Grails OSGi plugin to work with 3.0.1).

Since I'm running it inside of Virgo as an OSGi bundle, there's no way to pass command-line arguments in is there?

Cheers


Yes, set a system environment variable JAVA_OPTS to "-Dgrails.full.stacktrace=true" before invoking the startup script.
Re: Virgo and Grails 1.3.7 MissingPropertyException [message #749676 is a reply to message #749618] Tue, 25 October 2011 11:13 Go to previous message
Tony Day is currently offline Tony DayFriend
Messages: 9
Registered: October 2011
Junior Member
Hi Peter,

I set the environment variable and restarted Virgo but I'm not getting any extra information in the log file (serviceability/logs/log.log).

In the root/stacktrace.log I have this however:


groovy.lang.MissingPropertyException: No such property: context for class: org.codehaus.groovy.grails.plugins.CoreGrailsPlugin
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49)
	at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:239)
	at org.codehaus.groovy.grails.plugins.CoreGrailsPlugin$_closure1.doCall(CoreGrailsPlugin.groovy:70)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
	at org.codehaus.groovy.grails.plugins.CoreGrailsPlugin$_closure1.doCall(CoreGrailsPlugin.groovy)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
	at groovy.lang.Closure.call(Closure.java:282)
	at groovy.lang.Closure.call(Closure.java:277)
	at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
	at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
	at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
	at org.codehaus.groovy.grails.plugins.DefaultGrailsPlugin.doWithRuntimeConfiguration(DefaultGrailsPlugin.java:600)
	at org.codehaus.groovy.grails.plugins.AbstractGrailsPluginManager.doRuntimeConfiguration(AbstractGrailsPluginManager.java:107)
	at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:153)
	at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:124)
	at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.configureWebApplicationContext(GrailsConfigUtils.java:120)
	at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:73)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)


Doesn't look too helpful though.
Previous Topic:Deploying Grails Webapp
Next Topic:blueprint
Goto Forum:
  


Current Time: Fri Apr 19 11:07:55 GMT 2024

Powered by FUDForum. Page generated in 0.02162 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top