continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (CONTINUUM-2338) unable to export user db
Date Thu, 01 Oct 2009 08:54:38 GMT

    [ http://jira.codehaus.org/browse/CONTINUUM-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=193029#action_193029
] 

Luca commented on CONTINUUM-2338:
---------------------------------

here the output with 1.3.4 with only usersdb

1 [main] INFO org.apache.maven.continuum.management.DataManagementCli  - Processing Redback
database...
97 [main] INFO org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext  - Refreshing
org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@1a125f0: display name [org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@1a125f0];
startup date [Thu Oct 01 10:35:46 CEST 2009]; root of context hierarchy
691 [main] INFO org.codehaus.plexus.spring.PlexusApplicationContextDelegate  - Registering
Plexus to Spring XML translation
699 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML bean
definitions from URL [jar:file:/home/ex1511/migrate/data-management-cli-1.3.4-app.jar!/META-INF/plexus/components.xml]
1268 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML bean
definitions from URL [jar:file:/home/ex1511/migrate/data-management-cli-1.3.4-app.jar!/META-INF/plexus/plexus.xml]
1331 [main] INFO org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext  - Bean factory
for application context [org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@1a125f0]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@1d256fa
1461 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory  - Pre-instantiating
singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d256fa:
defining beans [artifactRepositoryLayout,artifactRepositoryLayout#legacy,artifactHandlerManager,artifactHandler#ejb,artifactHandler#jar,artifactHandler#test-jar,artifactHandler#maven-plugin,artifactHandler#pom,artifactHandler#java-source,artifactHandler#javadoc,artifactHandler#war,artifactHandler#ear,artifactHandler#ejb-client,artifactHandler#rar,artifactHandler#par,artifactHandler#ejb3,artifactFactory,artifactCollector,wagonManager,repositoryMetadataManager,artifactTransformation#snapshot,artifactTransformation#release,artifactTransformation#latest,artifactTransformationManager,artifactResolver,artifactInstaller,artifactDeployer,artifactRepositoryFactory,repositoryMetadataBuilder,mavenSettingsBuilder,mavenProjectHelper,modelInterpolator,modelDefaultsInjector,profileInjector,mavenProjectBuilder,profileActivator#always-on,profileActivator#jdk-prefix,profileActivator#system-property,profileActivator#os,profileActivator#file,modelInheritanceAssembler,modelValidator,pathTranslator,modelResolver,artifactMetadataSource#maven,mavenProfilesBuilder,mavenPluginRegistryBuilder,wagon#http,wagon#https,loggerManager,jdoFactory#continuum,jdoFactory#users];
root of factory hierarchy
48632 [main] INFO org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext
 - Refreshing org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1cc5069:
display name [org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1cc5069];
startup date [Thu Oct 01 10:36:34 CEST 2009]; parent: org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@1a125f0
49575 [main] INFO org.apache.maven.continuum.management.util.PlexusApplicationContextDelegate
 - Registering Plexus to Spring XML translation
49637 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/apache/continuum/data-management-redback-jdo/1.3.4/data-management-redback-jdo-1.3.4.jar!/META-INF/plexus/components.xml]
49669 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/apache/continuum/redback-legacy/1.3.4/redback-legacy-1.3.4.jar!/META-INF/plexus/components.xml]
49681 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/security/plexus-security-authentication-api/1.0-alpha-5/plexus-security-authentication-api-1.0-alpha-5.jar!/META-INF/plexus/components.xml]
49696 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/security/plexus-security-policy/1.0-alpha-5/plexus-security-policy-1.0-alpha-5.jar!/META-INF/plexus/components.xml]
49729 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-data-management/1.2.2/redback-data-management-1.2.2.jar!/META-INF/spring-context.xml]
50407 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-rbac-jdo/1.2.2/redback-rbac-jdo-1.2.2.jar!/META-INF/spring-context.xml]
50494 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-common-jdo/1.2.2/redback-common-jdo-1.2.2.jar!/META-INF/spring-context.xml]
50545 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-configuration/1.2.2/redback-configuration-1.2.2.jar!/META-INF/spring-context.xml]
50696 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/plexus-expression-evaluator/1.0-alpha-1/plexus-expression-evaluator-1.0-alpha-1.jar!/META-INF/plexus/components.xml]
50713 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/registry/plexus-registry-commons/1.0-alpha-2/plexus-registry-commons-1.0-alpha-2.jar!/META-INF/plexus/components.xml]
50760 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-keys-jdo/1.2.2/redback-keys-jdo-1.2.2.jar!/META-INF/spring-context.xml]
50809 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/plexus-digest/1.1/plexus-digest-1.1.jar!/META-INF/plexus/components.xml]
50837 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-users-jdo/1.2.2/redback-users-jdo-1.2.2.jar!/META-INF/spring-context.xml]
51073 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loading XML
bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-policy/1.2.2/redback-policy-1.2.2.jar!/META-INF/spring-context.xml]
51163 [main] INFO org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext
 - Bean factory for application context [org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1cc5069]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@18adae2
51403 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory  -
Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@18adae2:
defining beans [dataManagementTool#legacy-redback-jdo,dataManagementTool#redback-jdo,databaseFactoryConfigurator#redback,user#jdo,authenticationKey#jdo,authenticationManager,authenticationDataSource#password,authenticationDataSource#token,rememberMeSettings,singleSignOnSettings,userSecurityPolicy,userValidationSettings,passwordEncoder#sha1,passwordEncoder#sha256,passwordRule#alpha-count,passwordRule#character-length,passwordRule#must-have,passwordRule#numerical-count,passwordRule#reuse,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,dataManagementTool#jdo,rBACManager#jdo,jdoTool,jdoFactory#users,userConfiguration,expressionSource#sysprops,expressionSource#properties,expressionEvaluator,registry#commons-configuration,keyManager#jdo,checksumFile,digester#sha1,streamingDigester#sha1,streamingDigester#md5,digester#md5,userManager#jdo,cookieSettings#rememberMe,passwordEncoder#plaintext,cookieSettings#signon,passwordRule#alpha-numeric,passwordRule#no-whitespaces];
parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d256fa
52767 [main] WARN JPOX.JDO  - Property org.jpox.validateSchema unknown - will be ignored
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'dataManagementTool#redback-jdo': FactoryBean threw exception on object
creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'userManager#jdo': Injection of resource fields failed; nested exception
is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userSecurityPolicy'
must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy], but was actually
of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:91)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1288)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
	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.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
	at org.codehaus.plexus.spring.PlexusContainerAdapter.lookup(PlexusContainerAdapter.java:422)
	at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:304)
	at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:197)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'userManager#jdo': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException:
Bean named 'userSecurityPolicy' must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy],
but was actually of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
	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.codehaus.plexus.spring.PlexusComponentFactoryBean.resolveRequirement(PlexusComponentFactoryBean.java:246)
	at org.codehaus.plexus.spring.PlexusComponentFactoryBean.createInstance(PlexusComponentFactoryBean.java:163)
	at org.codehaus.plexus.spring.PlexusComponentFactoryBean.getObject(PlexusComponentFactoryBean.java:108)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:121)
	... 11 more
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userSecurityPolicy'
must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy], but was actually
of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:537)
	at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
	at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:289)
	... 25 more

thanks

> unable to export user db
> ------------------------
>
>                 Key: CONTINUUM-2338
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2338
>             Project: Continuum
>          Issue Type: Bug
>          Components: Data Management
>    Affects Versions: 1.2.3.1
>            Reporter: Luca
>             Fix For: 1.3.5
>
>         Attachments: builds.xml.gz
>
>
> executing 
> java -Xmx512m -jar data-management-cli-1.2.3.1-app.jar -buildsJdbcUrl jdbc:derby:continuum/database/continuum
-usersJdbcUrl jdbc:derby:continuum/database/users -mode EXPORT -overwrite
> I get 
> ...
> 13956 [main] INFO JPOX.RDBMS  - Validated 1 unique key(s) for table PROJECTNOTIFIER_CONFIGURATION
> 13962 [main] INFO JPOX.RDBMS  - Validated 1 foreign key(s) for table PROJECTNOTIFIER_CONFIGURATION
> 13968 [main] INFO JPOX.RDBMS  - Validated 2 index(es) for table PROJECTNOTIFIER_CONFIGURATION
> 13984 [main] INFO JPOX.RDBMS  - Validated 1 unique key(s) for table PROJECT_NOTIFIERS
> 13997 [main] INFO JPOX.RDBMS  - Validated 2 foreign key(s) for table PROJECT_NOTIFIERS
> 14007 [main] INFO JPOX.RDBMS  - Validated 3 index(es) for table PROJECT_NOTIFIERS
> 127522 [main] INFO JPOX.RDBMS.Schema  - Managing Persistence of Class : org.apache.continuum.model.repository.AbstractPurgeConfiguration
[Table : ABSTRACTPURGECONFIGURATION, InheritanceStrategy : new-table]
> 127522 [main] INFO JPOX.RDBMS.Schema  - Managing Persistence of Class : org.apache.continuum.model.repository.RepositoryPurgeConfiguration
[Table : REPOSITORYPURGECONFIGURATION, InheritanceStrategy : new-table]
> 127580 [main] INFO JPOX.RDBMS  - Validated 2 unique key(s) for table REPOSITORYPURGECONFIGURATION
> 127586 [main] INFO JPOX.RDBMS  - Validated 2 foreign key(s) for table REPOSITORYPURGECONFIGURATION
> 127589 [main] INFO JPOX.RDBMS  - Validated 3 index(es) for table REPOSITORYPURGECONFIGURATION
> 127593 [main] INFO JPOX.RDBMS  - Validated 1 unique key(s) for table ABSTRACTPURGECONFIGURATION
> 127597 [main] INFO JPOX.RDBMS  - Validated 1 foreign key(s) for table ABSTRACTPURGECONFIGURATION
> 127600 [main] INFO JPOX.RDBMS  - Validated 2 index(es) for table ABSTRACTPURGECONFIGURATION
> 127683 [main] INFO JPOX.RDBMS.Schema  - Managing Persistence of Class : org.apache.continuum.model.repository.DirectoryPurgeConfiguration
[Table : DIRECTORYPURGECONFIGURATION, InheritanceStrategy : new-table]
> 127732 [main] INFO JPOX.RDBMS  - Validated 2 unique key(s) for table DIRECTORYPURGECONFIGURATION
> 127736 [main] INFO JPOX.RDBMS  - Validated 1 foreign key(s) for table DIRECTORYPURGECONFIGURATION
> 127739 [main] INFO JPOX.RDBMS  - Validated 2 index(es) for table DIRECTORYPURGECONFIGURATION
> 130305 [main] INFO org.apache.maven.continuum.management.DataManagementCli  - Processing
Redback database...
> 134987 [main] WARN JPOX.JDO  - Property org.jpox.validateSchema unknown - will be ignored
> 135249 [main] INFO JPOX.JDO  - PersistenceManagerFactory - Vendor: JPOX  Version: 1.1.6
> 135250 [main] INFO JPOX.JDO  - PersistenceManagerFactory initialised for datastore URL=jdbc:derby:continuum/database/users
driver=org.apache.derby.jdbc.EmbeddedDriver userName=sa
> 136463 [main] INFO JPOX.RDBMS  - ================ DatabaseAdapter ==================
> 136464 [main] INFO JPOX.RDBMS  - Adapter : org.jpox.store.rdbms.adapter.DerbyAdapter
> 136464 [main] INFO JPOX.RDBMS  - Datastore : name="Apache Derby" version="10.1.3.1" (major=10,
minor=1, revision=3)
> 136464 [main] INFO JPOX.RDBMS  - Driver : name="Apache Derby Embedded JDBC Driver" version="10.1.3.1"
(major=10, minor=1)
> 136464 [main] INFO JPOX.RDBMS  - ===================================================
> 136513 [main] INFO JPOX.RDBMS.Schema  - Initialising Catalog "", Schema "SA" using "SchemaTable"
auto-start option
> 137205 [main] INFO JPOX.RDBMS.Schema  - Catalog "", Schema "SA" initialised - managing
0 classes
> 137230 [main] WARN JPOX.MetaData  - No manager for annotations was found in the CLASSPATH
so all annotations are ignored.
> Exception in thread "main" org.jpox.metadata.InvalidMetaDataException: Error in MetaData
for field "localRepository" in class "ProjectGroup" : this is declared as org.apache.continuum.model.repository.LocalRepository
with "persistence-modifier=none" yet has either "default-fetch-group=true" or "primary-key=true"
specified! These should be false.
> 	at org.jpox.metadata.AbstractPropertyMetaData.populate(AbstractPropertyMetaData.java:820)
> 	at org.jpox.metadata.ClassMetaData.populatePropertyMetaData(ClassMetaData.java:434)
> 	at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:251)
> 	at org.jpox.metadata.MetaDataManager.populateFileMetaData(MetaDataManager.java:1060)
> 	at org.jpox.metadata.JDOMetaDataManager.loadMetaDataForClass(JDOMetaDataManager.java:608)
> 	at org.jpox.metadata.JDOMetaDataManager.getMetaDataForClassInternal(JDOMetaDataManager.java:313)
> 	at org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:377)
> 	at org.jpox.AbstractPersistenceManager.hasMetaDataForPersistenceCapableClass(AbstractPersistenceManager.java:4109)
> 	at org.jpox.AbstractPersistenceManager.assertPersistenceCapableClass(AbstractPersistenceManager.java:4139)
> 	at org.jpox.AbstractPersistenceManager.getExtent(AbstractPersistenceManager.java:2323)
> 	at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:358)
> 	at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:346)
> 	at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:335)
> 	at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:330)
> 	at org.codehaus.plexus.redback.keys.jdo.JdoKeyManager.getAllKeys(JdoKeyManager.java:143)
> 	at org.codehaus.plexus.redback.management.JdoDataManagementTool.backupKeyDatabase(JdoDataManagementTool.java:112)
> 	at org.apache.maven.continuum.management.redback.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:66)
> 	at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:265)
> 	at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:177)
> the build.xml export seems to be correct.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message