Hi,
I am trying to run Eureka Streams on Tomcat 6.0 on windows
environment. By doing the steps on
http://www.eurekastreams.org/build-and-run/
i run the application on Jetty.
Now i'm trying to run the application on Tomcat but after deployment
when i started the Tomcat, it uses all of my CPU and not respond. I
create the war file by using following command
mvn clean install -DskipTests -Dopenaccess-security -
Dbuild.db.dbname=eurekastreams -Dbuild.db.dbuser=eurekastreams -
Dbuild.web.baseurl=
http://localhost:8080 -Dbuild.web.grbaseurl=http://
localhost:8081 -Dcheckstyle.skip -DESCONFIG=
There are following errors on tomcat log file.
----------- LOG
FILE-----------------------------------------------------------------------------------------------------------------------------------------------------------
01.02.2012 11:14:06 org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener
instance of class
org.apache.shindig.common.servlet.GuiceServletContextListener
com.google.inject.CreationException: Guice creation errors:
1) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
77)
2) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
99)
3) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
81)
4) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
93)
5) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
89)
6) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
97)
7) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
87)
8) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
85)
9) No implementation for org.springframework.beans.factory.BeanFactory
was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
75)
10) No implementation for
org.springframework.beans.factory.BeanFactory was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
79)
11) No implementation for
org.springframework.beans.factory.BeanFactory was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
95)
12) No implementation for
org.springframework.beans.factory.BeanFactory was bound.
while locating org.springframework.beans.factory.BeanFactory
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
83)
13) An exception was caught and reported. Message: Error creating bean
with name 'queryOptimizer': Injection of persistence methods failed;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in class path
resource [org/eurekastreams/server/conf/applicationContext-model.xml]:
Invocation of init method failed; nested exception is
org.hibernate.MappingException: Unable to find column with logical
name actorid in table Activity
at com.google.inject.InjectorShell$Builder.build(InjectorShell.java:
135)
14) No implementation for
org.eurekastreams.commons.server.service.ActionController was bound.
while locating
org.eurekastreams.commons.server.service.ActionController
for field at
org.eurekastreams.server.service.opensocial.gadgets.oauth.OAuthStoreImpl.actionController(OAuthStoreImpl.java:
108)
at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:
71)
14 errors
at
com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:
354)
at
com.google.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:
152)
at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:105)
at com.google.inject.Guice.createInjector(Guice.java:92)
at
org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:
73)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
4206)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4705)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:
943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:
778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
324)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
463)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'queryOptimizer': Injection of
persistence methods failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in class path
resource [org/eurekastreams/server/conf/applicationContext-model.xml]:
Invocation of init method failed; nested exception is
org.hibernate.MappingException: Unable to find column with logical
name actorid in table Activity
Related cause:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.beans.factory.config.MethodInvokingFactoryBean#0'
defined in class path resource [org/eurekastreams/server/conf/
applicationContext-mappers.xml]: Cannot resolve reference to bean
'domainGroupEntityCacheUpdater' while setting bean property
'arguments' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'domainGroupEntityCacheUpdater': Injection of
persistence methods failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in class path
resource [org/eurekastreams/server/conf/applicationContext-model.xml]:
Invocation of init method failed; nested exception is
org.hibernate.MappingException: Unable to find column with logical
name actorid in table Activity
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:
324)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:
998)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
472)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
380)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:
139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:
83)
at
org.eurekastreams.server.service.opensocial.core.config.SpringContextGuiceModule.configure(SpringContextGuiceModule.java:
44)
at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
at com.google.inject.spi.Elements
$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at com.google.inject.InjectorShell$Builder.build(InjectorShell.java:
135)
at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:102)
... 26 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'entityManagerFactory' defined in class
path resource [org/eurekastreams/server/conf/applicationContext-
model.xml]: Invocation of init method failed; nested exception is
org.hibernate.MappingException: Unable to find column with logical
name actorid in table Activity
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:
1338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
164)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:
507)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:
473)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor
$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:
599)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor
$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:
570)
at org.springframework.beans.factory.annotation.InjectionMetadata
$InjectedElement.inject(InjectionMetadata.java:192)
at
org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:
117)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:
321)
... 47 more
Caused by: org.hibernate.MappingException: Unable to find column with
logical name actorid in table Activity
at org.hibernate.cfg.Mappings.getPhysicalColumnName(Mappings.java:
516)
at
org.hibernate.cfg.IndexOrUniqueKeySecondPass.addConstraintToColumn(IndexOrUniqueKeySecondPass.java:
66)
at
org.hibernate.cfg.IndexOrUniqueKeySecondPass.doSecondPass(IndexOrUniqueKeySecondPass.java:
56)
at
org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:
1177)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:
329)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:
1162)
at
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:
1226)
at
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:
173)
at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
854)
at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
425)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:
131)
at
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:
224)
at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:
291)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
1369)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:
1335)
... 63 more
----------- End Of LOG
FILE------------------------------------------------------------------------------------------------------------------------------------------------------
Is there anyone who know this error, or have any suggestions?
Best Regards...
Hsugka