Hi all,
First off this is really great open source project. Many thanks to the authors.
I’ve integrated the Liquibase ServletListener into our development environment which works fine on Tomcat, but fails when deployed on Weblogic 10.
Below is the relevant stackTrace:
liquibase.exception.UnexpectedLiquibaseException: Cannot read plugin classes from protocol zip
at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:195)
at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:129)
at liquibase.database.DatabaseFactory.(DatabaseFactory.java:17)
at liquibase.database.DatabaseFactory.getInstance(DatabaseFactory.java:32)
I’ve noticed a similar post couple of days ago for JBoss 5. I think WebLogic also has a funky abstraction of the file system.
For our needs we only target SQL Server so I wonder if I could work around the issue as follows:
- Copy LiquibaseServletListener into our project
- Change the Database lookup logic as follows:
// Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(connection));
MSSQLDatabase database = new MSSQLDatabase();
database.setConnection(new JdbcConnection(connection));
Are there any issues with this? I guess I’ll find out soon enough when we redeploy
Kind regards
Bob