On Wed, May 1, 2013 at 6:53 PM, Kurt T Stam <[email protected]> wrote:
> > > http://juddi.apache.org/docs/3.x/userguide/html/chap-jUDDI_Configuration.html#sect-startup > : > > juddi.persistenceunit.name=juddiDatabase > > Thanks again Kurt, Yes I do have this property set in my juddiv3.properties file. Problem is when it changes it gives aforementioned error. I am currently debugging the juddi 2.2.0 code to find the cause of this. Can you tell me the class which reads the data from persistence.xml file? The issue for the above exception is MapConfigurationProvider does not have the mentioned properties in the persistence.xml file when I changed the unit name to say "juddiDatabaseTest" . > > > --Kurt > > > > On 5/1/13 9:15 AM, Subash Chaturanga wrote: > > Hi, > May I please know whether $subject possible ? I have my own > persistence.xml which has the unit name as "juddiDatabase" and seems my > configurations not picking up. So I changed the unit name to something else > in my persistence.xml file inside juddi META-INF and I am getting following. > > > org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or > DataSource class name must be specified in the ConnectionDriverName > property. Available properties in configuration are > "org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl@442ce698". > at > org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:72) > at > org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:844) > at > org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:602) > at > org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1510) > at > org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:518) > at > org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:443) > at > org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:104) > at > org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68) > at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83) > at > org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:968) > at > org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:959) > at > org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:638) > at > org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:203) > at > org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156) > at > org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227) > at > org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154) > at > org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60) > at > org.apache.juddi.config.PersistenceManager.getEntityManager(PersistenceManager.java:45) > at > org.apache.juddi.config.AppConfig.getPersistentConfiguration(AppConfig.java:109) > at org.apache.juddi.config.AppConfig.loadConfiguration(AppConfig.java:95) > at org.apache.juddi.config.AppConfig.<init>(AppConfig.java:62) > at org.apache.juddi.config.AppConfig.getInstance(AppConfig.java:183) > at org.apache.juddi.config.AppConfig.getConfiguration(AppConfig.java:205) > at org.apache.juddi.Registry.start(Registry.java:55) > > > -- > Subash Chaturanga > Sri Lanka > > Blog - http://subashsdm.blogspot.com/ > Twitter - http://twitter.com/subash89 > > > > -- Subash Chaturanga Department of Computer Science & Engineering University of Moratuwa Sri Lanka Blog - http://subashsdm.blogspot.com/ Twitter - http://twitter.com/subash89
