Marshmallow
Marshmallow

Reputation: 11

Upgrade Alfresco from 5.0.c to 5.0.d

I got the error shown below §from maven test state when I updated properties "alfresco.version" to 5.0.d

Does anyone know how to solve this error?

java.lang.IllegalStateException: Failed to load ApplicationContext ... Caused by: org.alfresco.error.AlfrescoRuntimeException: 03240001 Schema auto-update failed ... Caused by: org.alfresco.error.AlfrescoRuntimeException: 03240000 Script [ classpath:alfresco/dbscripts/upgrade/4.2/${db.script.dialect}/migrate-locale-multilingual.sql ] can't be found for class org.hibernate.dialect.H2Dialect at org.alfresco.repo.domain.schema.SchemaBootstrap.getScriptInputStream(SchemaBootstrap.java:1205) at org.alfresco.repo.domain.schema.SchemaBootstrap.executeScriptUrl(SchemaBootstrap.java:1116) at org.alfresco.repo.domain.schema.SchemaBootstrap.checkSchemaPatchScripts(SchemaBootstrap.java:1108) at org.alfresco.repo.domain.schema.SchemaBootstrap.updateSchema(SchemaBootstrap.java:973) ...

Upvotes: 1

Views: 832

Answers (3)

Krutik Jayswal
Krutik Jayswal

Reputation: 3175

Remove alf_data_dev directory and and do mvn clean install.It should resolve your issue if you are developing alfresco application.In case of any other scenario like upgrading it in production environment.This issue will not be there, as it(production) is not using h2 database.

Upvotes: 0

abarisone
abarisone

Reputation: 3783

You should absolutely use Alfresco Maven SDK 2.0 and moreover you have to check this Alfresco Maven SDK tutorial by Jeff Potts.

You're likely using version 1.1.1 of the SDK, in fact in the understanding the project structure section of this tutorial you will find this passage:

For example, version 1.1.1 of the archetype assumes you are working with Alfresco Community Edition 4.2.e.

This tutorial will explain you clearly most of the aspects related to Maven SDK.

Upvotes: 0

Teqnology
Teqnology

Reputation: 1298

You're probably using the wrong maven sdk version, as apparently you were on a 4.2.x earlier before (and I guess maven sdk 1.1.1). You need to switch to maven 2.0.0.

Here: Alfresco Maven Compatibility Matrix you'll find a more detailed table of supported versions.

Upvotes: 1

Related Questions