geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Chan <bc...@liferay.com>
Subject Re: Geronimo Liferay Plugins
Date Tue, 17 Oct 2006 04:39:57 GMT
<p>Jeff,</p><p>I hope you're right... cause I'd like to buy you a beer anyways
(just one though).</p><p>--<br />Brian Chan<br />Chief Software Architect<br
/>Liferay, Inc.<br />Enterprise. Open Source. For Life.<br /><br />On
10/16/06 8:51 PM,&nbsp;Jeff Genender &lt;<a href="mailto: jgenender@apache.org">jgenender@apache.org</a>&gt;
wrote:<br /></p><div style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 1ex; BORDER-LEFT:
rgb(204,204,204) 1px solid"><pre>Brian Chan wrote:
&gt; Paul, that stacktrace looks very very similar.
&gt; 

I am pretty certain it is the deployer filter...I am willing to bet some
large quantity of beers that if Paul removes the Spring filter from the
jetty deployer plan file, it will work ;-)  I remember that error pretty
well when we worked on the Enterprise Liferay and it took a good day to
figure it out...

Paul needs to remove the Spring and Antlr hidden classes from the jetty
deployer plan.


Jeff


&gt; I believe I actually had to do a fix on the Liferay code itself. Are you
&gt; using Liferay trunk?
&gt; 
&gt; --
&gt; Brian Chan
&gt; Chief Software Architect
&gt; Liferay, Inc.
&gt; Enterprise. Open Source. For Life.
&gt; 
&gt; On 10/16/06 9:08 AM, Paul McMahan  paulmcmahan@gmail.com&gt;&gt; wrote:
&gt; 
&gt; On 10/16/06, Jeff Genender  wrote:
&gt;&gt;
&gt;&gt;
&gt;&gt; Paul McMahan wrote:
&gt;&gt; &gt; Also, I worked on a Jetty version of the plugin but encountered
some
&gt;&gt; &gt; problems with classloading that I think may be due to the Jetty
&gt;&gt; &gt; assembly pulling in Spring and/or cglib differently than the Tomcat
&gt;&gt; &gt; assembly?  I saw a couple of emails go by last week about issues
with
&gt;&gt; &gt; Spring in the Jetty assembly, perhaps that could be related.  I
&gt;&gt; &gt; haven't drilled down far enough to know the real culprit yet.
&gt;&gt;
&gt;&gt; I suspect a hidden-classes declaration in the Liferay environment will
&gt;&gt; fix this for you.
&gt; 
&gt; I suspected that at first and added this to geronimo-application.xml :
&gt; 		
&gt;                         org.springframework
&gt; 		
&gt; 
&gt; But I still get the ST at the bottom of this note, the following
&gt; portion looking especially suspect:
&gt;   interface org.springframework.aop.framework.Advised is not visible
&gt; from class loader
&gt; 
&gt; I've tried several other different variations of using
&gt; , , and  to work
&gt; around this.   But without a thorough understanding of the underlying
&gt; problem I'm starting to feel like I'm taking shots in the dark.
&gt; Unless there's enough information in the ST below to trigger some
&gt; suggestions I suppose I just need to bite the bullet and crawl through
&gt; startup with a debugger :-)
&gt; 
&gt; BTW, the magic ingredient that worked for me in creating the 4.0.0
&gt; Liferay plugin for Geronimo's 1.1 tomcat assembly was:
&gt; 		
&gt;                         org.apache.commons.logging
&gt;                         org.apache.velocity
&gt;                         org.springframework
&gt;                 
&gt; 		
&gt;                         net.sf.cglib
&gt;                 
&gt; This forced Geronimo to use Spring from Liferay but cglib from
&gt; Geronimo.  But now the tomcat liferay plugin doesn't need this and the
&gt; same plan doesn't work for Jetty.
&gt; 
&gt; com.liferay.portal.SystemException:
&gt; org.springframework.beans.factory.BeanCreationException: Error
&gt; creating bean with name
&gt; 'com.liferay.lock.service.spring.LockServiceFactory' defined in class
&gt; path resource [META-INF/lock-spring-enterprise.xml]: Cannot resolve
&gt; reference to bean
&gt; 'com.liferay.lock.service.spring.LockService.enterprise' while setting
&gt; bean property 'service'; nested exception is
&gt; org.springframework.beans.factory.BeanCreationException: Error
&gt; creating bean with name
&gt; 'com.liferay.lock.service.spring.LockService.enterprise' defined in
&gt; class path resource [META-INF/lock-spring-enterprise.xml]:
&gt; Initialization of bean failed; nested exception is
&gt; java.lang.IllegalArgumentException: interface
&gt; org.springframework.aop.framework.Advised is not visible from class
&gt; loader
&gt;         at com.liferay.lock.service.spring.LockServiceUtil.clear(LockServiceUtil.java:48)
&gt;         at com.liferay.portal.events.StartupAction.run(StartupAction.java:66)
&gt;         at com.liferay.portal.events.EventsProcessor._process(EventsProcessor.java:144)
&gt;         at com.liferay.portal.events.EventsProcessor.process(EventsProcessor.java:73)
&gt;         at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:135)
&gt;         at javax.servlet.GenericServlet.init(GenericServlet.java:168)
&gt;         at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:383)
&gt;         at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:243)
&gt;         at org.apache.geronimo.jetty.JettyWebAppContext.registerServletHolder(JettyWebAppContext.java:588)
&gt;         at org.apache.geronimo.jetty.JettyWebAppContext$$FastClassByCGLIB$$99d6fb54.invoke()
&gt;         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
&gt;         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
&gt;         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
&gt;         at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
&gt;         at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
&gt;         at org.apache.geronimo.management.geronimo.WebModule$$EnhancerByCGLIB$$7577bc9a.registerServletHolder()
&gt;         at org.apache.geronimo.jetty.JettyServletHolder.(JettyServletHolder.java:80)
&gt;         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
&gt;         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
&gt;         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
&gt;         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:933)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
&gt;         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
&gt;         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
&gt;         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)
&gt;         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
&gt;         at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)
&gt;         at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:411)
&gt;         at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
&gt;         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
&gt;         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
&gt;         at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke()
&gt;         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
&gt;         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
&gt;         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
&gt;         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
&gt;         at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
&gt;         at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
&gt;         at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$cb32bcee.startConfiguration()
&gt;         at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
&gt;         at java.lang.Thread.run(Thread.java:534)
&gt; Caused by: org.springframework.beans.factory.BeanCreationException:
&gt; Error creating bean with name
&gt; 'com.liferay.lock.service.spring.LockServiceFactory' defined in class
&gt; path resource [META-INF/lock-spring-enterprise.xml]: Cannot resolve
&gt; reference to bean
&gt; 'com.liferay.lock.service.spring.LockService.enterprise' while setting
&gt; bean
&gt; property 'service'; nested exception is
&gt; org.springframework.beans.factory.BeanCreationException: Error
&gt; creating bean with name
&gt; 'com.liferay.lock.service.spring.LockService.enterprise' defined in
&gt; class path resource [META-INF/lock-spring-enterprise.xml]:
&gt; Initialization of bean failed; nested exception is
&gt; java.lang.IllegalArgumentException: interface
&gt; org.springframework.aop.framework.Advised is not visible from class
&gt; loader
&gt;         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:190)
&gt;         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
&gt;         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
&gt;         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
&gt;         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
&gt;         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
&gt;         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
&gt;         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:537)
&gt;         at com.liferay.lock.service.spring.LockServiceFactory.getService(LockServiceFactory.java:42)
&gt;         at com.liferay.lock.service.spring.LockServiceUtil.clear(LockServiceUtil.java:42)
&gt;         ... 53 more
&gt; Caused by: org.springframework.beans.factory.BeanCreationException:
&gt; Error creating bean with name
&gt; 'com.liferay.lock.service.spring.LockService.enterprise' defined in
&gt; class path resource [META-INF/lock-spring-enterprise.xml]:
&gt; Initialization of bean failed; nested exception is
&gt; java.lang.IllegalArgumentException: interface
&gt; org.springframework.aop.framework.Advised is not visible from class
&gt; loader
&gt;         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:403)
&gt;         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
&gt;         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
&gt;         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)
&gt;         ... 62 more
&gt; Caused by: java.lang.IllegalArgumentException: interface
&gt; org.springframework.aop.framework.Advised is not visible from class
&gt; loader
&gt;         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:331)
&gt;         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:552)
&gt;         at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:104)
&gt;         at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:94)
&gt;         at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:70)
&gt;         at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:99)
&gt;         at org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean.afterPropertiesSet(SimpleRemoteStatelessSessionProxyFactoryBean.java:99)
&gt;         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
&gt;         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
&gt;         ... 65 more</pre></div>
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message