Hello Armin, The Template i use, ojb-blank, only includes a repository_user.xml file. So i look into the OJB.properties, and there i find the line "repositoryFile=repository.xml". So I decided to change that line to repository_user.xml. If I do not I get the error message:
Can not read repository class descriptor data, using repository: repository.xml The question is, where is that file repository.xml with the xml-reference and why is it not included in ojb-blank.jar??? Thanks, Sven Am Samstag, 14. Februar 2004 18:51 schrieb Armin Waibel: > Hi Sven, > > > Caused by: org.apache.ojb.broker.metadata.MetadataException: Can not > > read > > > repository class descriptor data, using repository: > > repository_user.xml > > seems that properties file was found, but OJB has a problem with your > repository file. > Why try OJB to read repository_user.xml - did you set this in > OJB.properties? OJB should try to read repository.xml file. This file > has an xml-reference to repository_user.xml. Or put all together in one > xml-file. > > regards, > Armin > > Sven Alisch wrote: > > Hi ML, > > > > after i copied all files (including OJB.properties and repository.xml) in > > ../ressources to the path where my class-files are situated, the i get > > new error messages like these: > > > > Hello OJB! > > Exception in thread "main" java.lang.ExceptionInInitializerError > > at > > org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.getDefaultKey > >(Unknown Source) > > at > > org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersis > >tenceBroker(Unknown Source) > > at > > org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(U > >nknown Source) > > at JEgmont.main(Unknown Source) > > Caused by: org.apache.ojb.broker.metadata.MetadataException: Can not read > > repository class descriptor data, using repository: repository_user.xml > > at org.apache.ojb.broker.metadata.MetadataManager.init(Unknown > > Source) at org.apache.ojb.broker.metadata.MetadataManager.<init>(Unknown > > Source) > > at > > org.apache.ojb.broker.metadata.MetadataManager.<clinit>(Unknown Source) > > ... 4 more > > Caused by: org.apache.ojb.broker.metadata.MetadataException: Exception > > when reading metadata information, please check your repository.xml file > > at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:658) at > > org.apache.crimson.parser.Parser2.parse(Parser2.java:333) at > > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) > > at > > org.apache.ojb.broker.metadata.RepositoryPersistor.readMetadataFromXML(Un > >known Source) > > at > > org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Unknow > >n Source) > > at > > org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorReposito > >ry(Unknown Source) > > ... 7 more > > > > Same program like in my last post. What is ment with these exceptions??? > > > > Thanks, > > Sven > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
