Hi Bruno,
thanks again for the quick reply, now i can start intact-kickstart in
eclipse.
However, when i tried to create the database (postgres) again and
tried to import th controlled vocabularies, i realized that only 38
rows in ia_controlledvocab, about 900 were expected... Therfore, when
trying to run the ImportPsiData file it crashes.
I tested all possibilities, creating the database:
postgres=# CREATE DATABASE "intact-db" with owner = intact encoding =
'SQL_ASCII
'tablespace = pg_default template=template0;
and without the SCL_ASCII encoding (pgadmin complained about it...)
I tried to create the schema with the intact-kickstart running
CreateDatabase, ImportControlledVocabularies and ImportPsiData, but i
got several error messages.
The most useful for you should be this one:
CreateDatabase with Eclipse: (52 tables, 2 sequences: cv_local_seq,
intact_ac)
2011-10-25 18:01:07,006 [main] INFO (AbstractApplicationContext,456)
- Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@5dccce3c:
startup date [Tue Oct 25 18:01:06 CEST 2011]; root of context
hierarchy
2011-10-25 18:01:07,123 [main] INFO (XmlBeanDefinitionReader,315) -
Loading XML bean definitions from URL [jar:file:/C:/Users/
dominator/.m2/repository/uk/ac/ebi/intact/core/intact-core/2.5.0/
intact-core-2.5.0.jar!/META-INF/intact.spring.xml]
2011-10-25 18:01:09,679 [main] INFO (XmlBeanDefinitionReader,315) -
Loading XML bean definitions from URL [jar:file:/C:/Users/
dominator/.m2/repository/uk/ac/ebi/intact/dataexchange/psimi/intact-
psixml-exchange/2.1.3/intact-psixml-exchange-2.1.3.jar!/META-INF/
intact.spring.xml]
2011-10-25 18:01:09,732 [main] INFO (XmlBeanDefinitionReader,315) -
Loading XML bean definitions from URL [jar:file:/C:/Users/
dominator/.m2/repository/uk/ac/ebi/intact/dataexchange/intact-enricher/
2.1.3/intact-enricher-2.1.3.jar!/META-INF/intact.spring.xml]
2011-10-25 18:01:09,804 [main] INFO (XmlBeanDefinitionReader,315) -
Loading XML bean definitions from URL [jar:file:/C:/Users/
dominator/.m2/repository/uk/ac/ebi/intact/dataexchange/intact-cvutils/
2.1.3/intact-cvutils-2.1.3.jar!/META-INF/intact.spring.xml]
2011-10-25 18:01:09,915 [main] INFO (XmlBeanDefinitionReader,315) -
Loading XML bean definitions from class path resource [META-INF/
postgres-create.spring.xml]
2011-10-25 18:01:09,955 [main] INFO (XmlBeanDefinitionReader,315) -
Loading XML bean definitions from class path resource [META-INF/
base.spring.xml]
2011-10-25 18:01:10,099 [main] INFO (DefaultListableBeanFactory,612)
- Overriding bean definition for bean 'intactConfig': replacing
[Generic bean: class
[uk.ac.ebi.intact.core.config.IntactConfiguration]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null;
defined in URL [jar:file:/C:/Users/dominator/.m2/repository/uk/ac/ebi/
intact/core/intact-core/2.5.0/intact-core-2.5.0.jar!/META-INF/
intact.spring.xml]] with [Generic bean: class
[uk.ac.ebi.intact.core.config.IntactConfiguration]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null;
defined in class path resource [META-INF/base.spring.xml]]
2011-10-25 18:01:10,101 [main] INFO (DefaultListableBeanFactory,612)
- Overriding bean definition for bean 'userContext': replacing
[Generic bean: class [uk.ac.ebi.intact.core.context.UserContext];
scope=; abstract=false; lazyInit=false; autowireMode=0;
dependencyCheck=0; autowireCandidate=true; primary=false;
factoryBeanName=null; factoryMethodName=null; initMethodName=null;
destroyMethodName=null; defined in URL [jar:file:/C:/Users/
dominator/.m2/repository/uk/ac/ebi/intact/core/intact-core/2.5.0/
intact-core-2.5.0.jar!/META-INF/intact.spring.xml]] with [Generic
bean: class [uk.ac.ebi.intact.core.context.UserContext]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null;
defined in class path resource [META-INF/base.spring.xml]]
2011-10-25 18:01:10,883 [main] INFO (DriverManagerDataSource,153) -
Loaded JDBC driver: org.postgresql.Driver
2011-10-25 18:01:10,884 [main] INFO (AbstractApplicationContext
$BeanPostProcessorChecker,1332) - Bean 'kickstartDataSource' is not
eligible for getting processed by all BeanPostProcessors (for example:
not eligible for auto-proxying)
2011-10-25 18:01:10,920 [main] INFO (AbstractApplicationContext
$BeanPostProcessorChecker,1332) - Bean
'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#c970c0e'
is not eligible for getting processed by all BeanPostProcessors (for
example: not eligible for auto-proxying)
2011-10-25 18:01:10,946 [main] INFO
(LocalContainerEntityManagerFactoryBean,221) - Building JPA container
EntityManagerFactory for persistence unit 'intact-core-default'
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/dominator/.m2/repository/
org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/
StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/dominator/.m2/repository/
org/slf4j/slf4j-jdk14/1.5.8/slf4j-jdk14-1.5.8.jar!/org/slf4j/impl/
StaticLoggerBinder.class]
SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
2011-10-25 18:01:17,447 [main] INFO (JdbcSupportLoader,79) -
Disabling contextual LOB creation as JDBC driver reported JDBC version
[3] less than 4
2011-10-25 18:01:17,450 [main] INFO (TransactionFactoryFactory,62) -
Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
2011-10-25 18:01:17,452 [main] INFO (TransactionManagerLookupFactory,
80) - No TransactionManagerLookup configured (in JTA environment, use
of read-write or transactional second-level cache is not recommended)
2011-10-25 18:01:17,498 [main] INFO (SessionFactoryImpl,200) -
building session factory
2011-10-25 18:01:19,957 [main] INFO (SessionFactoryObjectFactory,105)
- Not binding factory to JNDI, no JNDI name configured
2011-10-25 18:01:24,585 [main] ERROR (SchemaExport,386) -
Unsuccessful: create table ia_lifecycle_event (ac varchar(30) not
null, created timestamp not null, created_user varchar(30) not null,
updated timestamp not null, userstamp varchar(30) not null, deprecated
bool not null, note text, when timestamp, event_ac varchar(30) not
null, publication_ac varchar(30) not null, user_ac varchar(30) not
null, primary key (ac))
2011-10-25 18:01:24,595 [main] ERROR (SchemaExport,387) - ERROR:
syntax error at or near "when"
2011-10-25 18:01:26,496 [main] ERROR (SchemaExport,386) -
Unsuccessful: create index idx_event_who on ia_lifecycle_event
(user_ac)
2011-10-25 18:01:26,506 [main] ERROR (SchemaExport,387) - ERROR:
relation "ia_lifecycle_event" does not exist
2011-10-25 18:01:26,506 [main] ERROR (SchemaExport,386) -
Unsuccessful: create index idx_event_event on ia_lifecycle_event
(event_ac)
2011-10-25 18:01:26,506 [main] ERROR (SchemaExport,387) - ERROR:
relation "ia_lifecycle_event" does not exist
2011-10-25 18:01:26,506 [main] ERROR (SchemaExport,386) -
Unsuccessful: alter table ia_lifecycle_event add constraint
FK_LIFECYCLE_EVENT_EVENT foreign key (event_ac) references
ia_controlledvocab
2011-10-25 18:01:26,516 [main] ERROR (SchemaExport,387) - ERROR:
relation "ia_lifecycle_event" does not exist
2011-10-25 18:01:26,516 [main] ERROR (SchemaExport,386) -
Unsuccessful: alter table ia_lifecycle_event add constraint
FK_LIFECYCLE_EVENT_PUBLICATION foreign key (publication_ac) references
ia_publication
2011-10-25 18:01:26,516 [main] ERROR (SchemaExport,387) - ERROR:
relation "ia_lifecycle_event" does not exist
2011-10-25 18:01:26,516 [main] ERROR (SchemaExport,386) -
Unsuccessful: alter table ia_lifecycle_event add constraint
FK_LIFECYCLE_EVENT_USER foreign key (user_ac) references ia_user
2011-10-25 18:01:26,516 [main] ERROR (SchemaExport,387) - ERROR:
relation "ia_lifecycle_event" does not exist
2011-10-25 18:01:27,306 [main] INFO (AbstractApplicationContext
$BeanPostProcessorChecker,1332) - Bean 'entityManagerFactory' is not
eligible for getting processed by all BeanPostProcessors (for example:
not eligible for auto-proxying)
2011-10-25 18:01:27,328 [main] INFO (DefaultListableBeanFactory,549)
- Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@2db7ae22:
defining beans
[institutionMerger,roleDaoImpl,userDaoImpl,preferenceDaoImpl,daoFactory,applicationDaoImpl,applicationPropertyDaoImpl,dbInfoDaoImpl,publicationDaoImpl,confidenceDaoImpl,componentConfidenceDaoImpl,componentParameterDaoImpl,experimentDaoImpl,interactionDaoImpl,interactionParameterDaoImpl,rangeDaoImpl,mineInteractionDaoImpl,aliasDaoImpl,componentDaoImpl,featureDaoImpl,proteinDaoImpl,xrefDaoImpl,lifecycleEventDaoImpl,bioSourceDaoImpl,polymerDaoImpl,institutionDaoImpl,searchableDaoImpl,interactorDaoImpl,cvObjectDaoImpl,annotationDaoImpl,userServiceImpl,simpleSearchService,configurationHandler,sequenceManager,floatPropertyConverter,shortPropertyConverter,booleanPropertyConverter,integerPropertyConverter,doublePropertyConverter,institutionPropertyConverter,longPropertyConverter,charPropertyConverter,stringPropertyConverter,correctionAssigner,lifecycleManager,releasedStatus,acceptedStatus,newStatus,readyForCheckingStatus,assignedStatus,curationInProgressStatus,readyForReleaseStatus,startStatus,acceptedOnHoldStatus,transitionCheckerAspect,intactFlushModeAspect,simpleProfiler,bulkOperationsImpl,intactContext,dataContext,lazyIntactCloner,interactorEnricher,bioSourceEnricher,cvObjectEnricher,interactionEnricher,institutionEnricher,experimentEnricher,componentEnricher,intactEntryEnricher,cvUpdaterFactory,annotationInfoDatasetService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor#0,org.springframework.aop.config.internalAutoProxyCreator,intactInitializer,userContext,intactConfig,schemaVersion,persisterHelper,corePersister,coreDeleter,finder,institutionIntact,institutionMint,institutionDip,institutionUndefined,defaultApp,psiExchange,psiEnricher,enricherConfig,enricherContext,enricherCacheManager,cvObjectFetcher,experimentFetcher,bioSourceFetcher,interactorFetcher,cvUpdater,cvExporter,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#1,entityManagerFactory,kickstartDataSource,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0];
root of factory hierarchy
2011-10-25 18:01:31,256 [main] INFO (IntactInitializer,99) - Starting
IntAct Core module...
2011-10-25 18:01:31,257 [main] INFO (IntactInitializer,100) - Binding
context to Application: default
2011-10-25 18:01:31,688 [main] INFO (ConfigurationHandler,56) -
Loading configuration for application: default
2011-10-25 18:01:31,864 [main] INFO (ConfigurationHandler,106) -
Persisting configuration for application: default
2011-10-25 18:01:32,108 [main] INFO (IntactInitializer,110) -
Default institution: Institution: exampleInstitution
2011-10-25 18:01:32,108 [main] INFO (IntactInitializer,111) - Schema
version: 2.5.0
2011-10-25 18:01:32,108 [main] INFO (IntactInitializer,112) -
Autopersist: true
2011-10-25 18:01:32,109 [main] INFO (IntactInitializer,113) -
Configuration: [Preference{key='intactConfig.acPrefix',
value='KICKSTART'}, Preference{key='intactConfig.defaultInstitution',
value='exampleInstitution'},
Preference{key='intactConfig.localCvPrefix', value='IA'},
Preference{key='intactConfig.autoUpdateExperimentLabel',
value='false'},
Preference{key='intactConfig.autoUpdateInteractionLabel',
value='false'}, Preference{key='intactConfig.skipSchemaCheck',
value='true'}]
2011-10-25 18:01:32,110 [main] INFO (IntactInitializer,116) -
DataSources(1):
2011-10-25 18:01:32,114 [main] INFO (IntactInitializer,118) -
kickstartDataSource: url: 'jdbc:postgresql://localhost:5432/intact-
db', username: 'intact'
2011-10-25 18:01:33,694 [main] INFO (IntactInitializer,224) -
Persisting necessary CvObjects
2011-10-25 18:01:34,013 [main] INFO (SequenceManager,107) - Sequence
could not be found and it is going to be created: cv_local_seq
2011-10-25 18:01:41,825 [main] INFO (IntactInitializer,343) - Created
user role: ADMIN
2011-10-25 18:01:41,876 [main] INFO (IntactInitializer,343) - Created
user role: CURATOR
2011-10-25 18:01:41,923 [main] INFO (IntactInitializer,343) - Created
user role: REVIEWER
2011-10-25 18:01:41,964 [main] INFO (IntactInitializer,328) - After
init: found 3 role(s) in the database.
2011-10-25 18:01:42,409 [Thread-1] INFO (AbstractApplicationContext,
1002) - Closing
org.springframework.context.support.ClassPathXmlApplicationContext@5dccce3c:
startup date [Tue Oct 25 18:01:06 CEST 2011]; root of context
hierarchy
2011-10-25 18:01:42,411 [Thread-1] INFO (DefaultSingletonBeanRegistry,
422) - Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@2db7ae22:
defining beans
[institutionMerger,roleDaoImpl,userDaoImpl,preferenceDaoImpl,daoFactory,applicationDaoImpl,applicationPropertyDaoImpl,dbInfoDaoImpl,publicationDaoImpl,confidenceDaoImpl,componentConfidenceDaoImpl,componentParameterDaoImpl,experimentDaoImpl,interactionDaoImpl,interactionParameterDaoImpl,rangeDaoImpl,mineInteractionDaoImpl,aliasDaoImpl,componentDaoImpl,featureDaoImpl,proteinDaoImpl,xrefDaoImpl,lifecycleEventDaoImpl,bioSourceDaoImpl,polymerDaoImpl,institutionDaoImpl,searchableDaoImpl,interactorDaoImpl,cvObjectDaoImpl,annotationDaoImpl,userServiceImpl,simpleSearchService,configurationHandler,sequenceManager,floatPropertyConverter,shortPropertyConverter,booleanPropertyConverter,integerPropertyConverter,doublePropertyConverter,institutionPropertyConverter,longPropertyConverter,charPropertyConverter,stringPropertyConverter,correctionAssigner,lifecycleManager,releasedStatus,acceptedStatus,newStatus,readyForCheckingStatus,assignedStatus,curationInProgressStatus,readyForReleaseStatus,startStatus,acceptedOnHoldStatus,transitionCheckerAspect,intactFlushModeAspect,simpleProfiler,bulkOperationsImpl,intactContext,dataContext,lazyIntactCloner,interactorEnricher,bioSourceEnricher,cvObjectEnricher,interactionEnricher,institutionEnricher,experimentEnricher,componentEnricher,intactEntryEnricher,cvUpdaterFactory,annotationInfoDatasetService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor#0,org.springframework.aop.config.internalAutoProxyCreator,intactInitializer,userContext,intactConfig,schemaVersion,persisterHelper,corePersister,coreDeleter,finder,institutionIntact,institutionMint,institutionDip,institutionUndefined,defaultApp,psiExchange,psiEnricher,enricherConfig,enricherContext,enricherCacheManager,cvObjectFetcher,experimentFetcher,bioSourceFetcher,interactorFetcher,cvUpdater,cvExporter,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#1,entityManagerFactory,kickstartDataSource,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0];
root of factory hierarchy
2011-10-25 18:01:42,422 [Thread-1] WARN (ConfigurationFactory,127) -
No configuration found. Configuring ehcache from ehcache-failsafe.xml
found in the classpath: jar:file:/C:/Users/dominator/.m2/repository/
net/sf/ehcache/ehcache/1.3.0/ehcache-1.3.0.jar!/ehcache-failsafe.xml
2011-10-25 18:01:42,452 [Thread-1] WARN (DisposableBeanAdapter,193) -
Invocation of destroy method failed on bean with name 'intactContext':
org.springframework.beans.factory.BeanCreationNotAllowedException:
Error creating bean with name 'configurationHandler': Singleton bean
creation not allowed while the singletons of this factory are in
destruction (Do not request a bean from a BeanFactory in a destroy
method implementation!)
2011-10-25 18:01:42,452 [Thread-1] INFO
(AbstractEntityManagerFactoryBean,406) - Closing JPA
EntityManagerFactory for persistence unit 'intact-core-default'
2011-10-25 18:01:42,452 [Thread-1] INFO (SessionFactoryImpl,925) -
closing
When trying to import the ControlledVocabs, the programs runs for
about 10 minutes, so i guess it does not complete successfully.
I also tried to create the schema from postgres by using the
intact-db=> \i postgres-2.0.dll
commad, but it did not work. In one schema e.g. does a ia_application
table exist (intact-kickstart i guess), in the other it didn´t (from
postgres by postgres-2.0.dll)
I did not change anything on my postgres and about some months ago i
did not have any problems to get everything running.
Any ideas?
Thank you in advance!
Cheer,
Dominik
On Oct 21, 1:29 pm, Bruno Aranda <
brunoara...@gmail.com> wrote:
> Hi, I have fixed the problem.
>
> There was one dependency on the kickstart that was relying on an old version
> of hibernate - one that was a bundle. Hence they were repeated classes in
> the classpath. I have updated the version for the dependencies and
> everything seems to work in eclipse as well...
>
> Cheers,
>
> Bruno
>
> On 21 October 2011 11:55, Arnaud Ceol <
arnaud.c...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I won't resolve the problem here, but just add a short comment that may
> > help in some cases : when working with eclipse, you may have to run the
> > eclipse plugin for maven, ie: *mvn eclipse:clean eclipse:eclipse*, and
> > then refresh the workspace.
>
> > best,
>
> > Arnaud
>
> > On 10/21/2011 12:46 PM, Bruno Aranda wrote:
>
> > Uhm, interestingly, this problem happens on Eclipse, but not on IntelliJ
> > IDEA, which is our favourite tool. I will investigate, probably this being
> > related to the order in which the classpath is handled/loaded by the
> > different IDEs... Trying to a class directly with Maven fails as well. Time
> > to investigate...
> > e
> > Cheers,
>
> > Bruno
>
> > PS We use Maven 3 by default
>
> > On 21 October 2011 10:43, Dominik Mertens <
> ...
>
> read more »