Please read update repository and webapp before you begin to gain a better understanding of the required steps.
Goal
Have a partially migrated repository and webapp. Update files in the Magnolia repositories and update files in the webapp.
Update the repository
Make a backup of the repository in 4.4.6. Name it training_repositories_446.
You can take the repository coming from the Bundle. Starts the Bundle (see exercise 1), the repository will be created automatically in the folder ./Bundle/training_repositories training_repositories.
- Update the repository. There are a few lines to change all the
workspace.xmlfiles in each workspace. - For the update of the workspace.xml files, please use the script
ws.pydescribe in the section 4. Update repository and webapp. Copy it under training_repositories/magnolia. - From a terminal run:
$ cd training_repositories/magnolia $ chmod 777 ws.py $ ./ws.py .
Update files inside the webapp
Some files have to be updated in update-training-44-webapp:
- magnolia.properties
- web.xml
- jaas.config
Update the magnolia.properties file
- Download the latest bundle, get the magnolia.properties and check what is different.
- Add magnolia.migration.persistReport=true to save the logs in the web project, unless you have very big project.
- Additionally - but not absolutely necessary - remove the property
magnolia.update.stkMigrationdue to MAGNOLIA-4769 - Getting issue details... STATUS .
Update web.xml
In the <listener> section, change the <listener-class> value to:
info.magnolia.init.MagnoliaServletContextListener
Update jaas.config
Copy the one from the bundle.
Checkout Git
Nothing works? Just checkout Git and get an updated project.
$ git checkout -t origin/Ex3-UpdateRepoAndWebapp // or if the branches already exist locally $ git checkout Ex3-UpdateRepoAndWebapp
2 Comments
Lea Hänsenberger
There is no ws.py in 4. Update repository and webapp. I also don't find any part about updating the repository on this page. Is this missing in the documentation or an error in this exercise?
Lea Hänsenberger
I had to add the following to wsp.py in order for the migration tasks to work:
if p.getAttribute("name") == "analyzer": index.removeChild(p)