Hi Alain, It looks like we have a typo in our Upgrade instructions. Apologies.
When upgrading, the "mvn -U clean package" command MUST be run from the [dspace-source] directory (NOT from [dspace-source]/dspace/). Running the command from [dspace-source] ensures that *all* DSpace modules are recompiled/rebuilt for DSpace 4.0. (Whereas, running the build from [dspace-source]/dspace/ performs a "quick build", which does NOT recompile all modules.) I've corrected the upgrade documentation at: https://wiki.duraspace.org/display/DSDOC4x/Upgrading+From+3.x+to+4.0 Feel free to email us again on this list if you encounter any other issues. - Tim On 12/17/2013 12:47 PM, Alain Tschanz wrote: > Hello, > > I’m trying to upgrade from DSpace 3.2 to 4.0, but I get the following error: > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Reactor Summary: > > [INFO] > > [INFO] DSpace Addon Modules .............................. SUCCESS [2.002s] > > [INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [7.016s] > > [INFO] DSpace XML-UI (Manakin) :: Local Customizations ... FAILURE [1.897s] > > [INFO] DSpace LNI :: Local Customizations ................ SKIPPED > > [INFO] DSpace JSP-UI :: Local Customizations ............. SKIPPED > > [INFO] DSpace REST (JAX RS 1 - Jersey) :: Local Customizations SKIPPED > > [INFO] DSpace SWORD :: Local Customizations .............. SKIPPED > > [INFO] DSpace SWORD v2 :: Local Customizations ........... SKIPPED > > [INFO] DSpace SOLR :: Local Customizations ............... SKIPPED > > [INFO] DSpace OAI 2.0 :: Local Customizations ............ SKIPPED > > [INFO] DSpace Assembly and Configuration ................. SKIPPED > > [INFO] > ------------------------------------------------------------------------ > > [INFO] BUILD FAILURE > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Total time: 12.123s > > [INFO] Finished at: Tue Dec 17 13:40:46 EST 2013 > > [INFO] Final Memory: 29M/69M > > [INFO] > ------------------------------------------------------------------------ > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-resources-plugin:2.5:resources > (default-resources) on project xmlui: Error loading property file > '/home/webmaster/Downloads/DSpace-dspace-4.0/dspace/modules/xmlui/../../../target/build.properties' > -> [Help 1] > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > execute goal > org.apache.maven.plugins:maven-resources-plugin:2.5:resources > (default-resources) on project xmlui: Error loading property file > '/home/webmaster/Downloads/DSpace-dspace-4.0/dspace/modules/xmlui/../../../target/build.properties' > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:601) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error loading > property file > '/home/webmaster/Downloads/DSpace-dspace-4.0/dspace/modules/xmlui/../../../target/build.properties' > > at > org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:316) > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > > ... 19 more > > Caused by: org.apache.maven.shared.filtering.MavenFilteringException: > Error loading property file > '/home/webmaster/Downloads/DSpace-dspace-4.0/dspace/modules/xmlui/../../../target/build.properties' > > at > org.apache.maven.shared.filtering.DefaultMavenFileFilter.loadProperties(DefaultMavenFileFilter.java:289) > > at > org.apache.maven.shared.filtering.DefaultMavenFileFilter.getDefaultFilterWrappers(DefaultMavenFileFilter.java:204) > > at > org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering.filterResources(DefaultMavenResourcesFiltering.java:162) > > at > org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:310) > > ... 21 more > > Caused by: java.io.FileNotFoundException: > /home/webmaster/Downloads/DSpace-dspace-4.0/dspace/modules/xmlui/../../../target/build.properties > > at > org.apache.maven.shared.filtering.PropertyUtils.loadPropertyFile(PropertyUtils.java:65) > > at > org.apache.maven.shared.filtering.DefaultMavenFileFilter.loadProperties(DefaultMavenFileFilter.java:283) > > ... 24 more > > [ERROR] > > [ERROR] > > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > > [ERROR] > > [ERROR] After correcting the problems, you can resume the build with the > command > > [ERROR] mvn <goals> -rf :xmlui > > Alain Tschanz > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Dspace-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-general > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Dspace-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-general
