1. From the stacktrace you can see that the last class in jUDDI that is involved is
the PersistenceManager.java at line 45:
org.apache.juddi.config.PersistenceManager.getEntityManager(PersistenceManager.java:45)

from then on OpenJPA takes over. We code against the JPA interfaces.

2. The error suggests that:

"A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property"

which I guess are missing from your persistence.xml

3. >I am currently debugging the juddi 2.2.0 code
We've never released a version 2.2.0. Not until 3.x we've started using JPA. I'm guess you are going through OpenJPA code?

Good luck!

--Kurt

On 5/1/13 10:36 AM, Subash Chaturanga wrote:


On Wed, May 1, 2013 at 6:53 PM, Kurt T Stam <[email protected] <mailto:[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
    <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 <http://subashsdm.blogspot.com/>/
Twitter - http://twitter.com/subash89

Reply via email to