continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manfred A <manfred.al...@juliusbaer.com>
Subject Database migration tool from 1.2.3 to 1.3.6 does not work?
Date Fri, 13 Aug 2010 08:38:56 GMT

Hi, 

when trying to update from Continuum 1.2.3 to 1.3.6, I encountered problems
with migrating the Derby 
builds database. 
I could export the builds database to a nearly 9MB long "builds.xml" file
using the database migration tool 
1.2.3.1 (data-management-cli-1.2.3.1-app.jar) as described in 
   http://continuum.apache.org/docs/1.4.0/installation/upgrade.html. 
However, I could not import the file to Continuum 1.3.6 using the tool
data-management-cli-1.3.6-app.jar 
as described on the same page. 
I got  NoClassDefFoundErrors for the classes 
   (org/codehaus/plexus/jdo/) DefaultConfigurableJdoFactory,
ConfigurableJdoFactory, JdoFactory, 
   AbstractConfigurableJdoFactory, javax/jdo/PersistenceManagerFactory, 
   javax/xml/stream/XMLStreamException,
org/apache/maven/continuum/store/ContinuumStoreException, 
   org/apache/continuum/dao/DaoUtils, LocalRepositoryDao,
DirectoryPurgeConfigurationDao, 
   RepositoryPurgeConfigurationDao and several other Daos. 
- Do you have the same problems? 
- Is this problem related to CONTINUUM-2013
(http://jira.codehaus.org/browse/CONTINUUM-2013)? 
   The plexus annotations in the patch given there are almost the same as
those mentinoed in the 
   NoClassDefFoundError I get. 
- How can I get rid of the problem and migrate the data to Continuum 1.3.6? 
- Am I possibly doing something wrong? 
- StackTrace: 
..
6655 [main] INFO
org.apache.maven.continuum.management.util.PlexusApplicationContextDelegate 
- Registering Plexus to Spring XML translation
7538 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  -
Loading XML bean definitions from URL
[jar:file:/export/home/jcc/.m2/repository/org/apache/continuum/data-management-jdo/1.3.6/data-management-jdo-1.3.6.jar!/META-INF/plexus/components.xml]
7962 [main] INFO
org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext 
- Bean factory for application context
[org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1284fd4]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@1570945
7974 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory  -
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1570945:
defining beans
[dataManagementTool#continuum-jdo,dataManagementTool#legacy-continuum-jdo,databaseFactoryConfigurator#continuum];
parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@1d53f5b
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'databaseFactoryConfigurator#continuum': FactoryBean threw
exception on object creation; nested exception is
java.lang.NoClassDefFoundError:
Lorg/codehaus/plexus/jdo/DefaultConfigurableJdoFactory;
        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:300)
        at
org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:189)
Caused by: java.lang.NoClassDefFoundError:
Lorg/codehaus/plexus/jdo/DefaultConfigurableJdoFactory;
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
        at java.lang.Class.getDeclaredField(Class.java:1852)
        at
org.codehaus.plexus.spring.PlexusComponentFactoryBean.findField(PlexusComponentFactoryBean.java:211)
        at
org.codehaus.plexus.spring.PlexusComponentFactoryBean.createInstance(PlexusComponentFactoryBean.java:162)
        at
org.codehaus.plexus.spring.PlexusComponentFactoryBean.getObject(PlexusComponentFactoryBean.java:108)
        at
org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:121)
        ... 11 more

Thanks,
Manfred

-- 
View this message in context: http://old.nabble.com/Database-migration-tool-from-1.2.3-to-1.3.6-does-not-work--tp29426722p29426722.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Mime
View raw message