jcoderz / m3util Goto Github PK
View Code? Open in Web Editor NEWA utility collection for managing large media databases
License: GNU General Public License v3.0
A utility collection for managing large media databases
License: GNU General Public License v3.0
$ time ./m3util index -q GOLD
Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: org.jcoderz.m3] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
at org.jcoderz.m3util.intern.db.RepositoryDb.startup(RepositoryDb.java:25)
at org.jcoderz.m3util.intern.db.DatabaseUpdater.(DatabaseUpdater.java:60)
at org.jcoderz.m3util.M3Util.handleIndex(M3Util.java:225)
at org.jcoderz.m3util.M3Util.main(M3Util.java:155)
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver org.apache.derby.jdbc.EmbeddedDriver class not found
at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:107)
at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2283)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2279)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1748)
at org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:94)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
... 7 more
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Unable to load class [org.apache.derby.jdbc.EmbeddedDriver]
at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:104)
... 21 more
Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.apache.derby.jdbc.EmbeddedDriver
at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
... 22 more
This ticket should discuss the new (final) layout of the library:
A few new tools have been discussed recently:
Perform Unicode normalization: http://ahinea.com/en/tech/accented-translate.html
This should be done before adding files to the Lucene index as otherwise searching will be hard for languages with diacritic characters.
But also filenames in the file-system might be written without any diacritic characters to allow easy file searches.
This can be implemented by using the Java5/ICU4J Library class Normalizer:
m3server needs classes from m3util, therefore the m3util SNAPSHOT JARs should be published to Maven Central.
The project is running under the name "m3util". Therefore the modules and package names should be aligned:
Names to be discussed!
The DatabaseUpdater tool should use Derby by default as Derby comes with the JDK since Java 6.
The Derby database files should be put under /tools/var/lib/db/m3db
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.